GridFormat 0.6.0
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
dolfinx.hpp File Reference

Traits specializations for dolfinx meshes. More...

#include <array>
#include <ranges>
#include <cstdint>
#include <utility>
#include <memory>
#include <algorithm>
#include <concepts>
#include <span>
#include <vector>
#include <dolfinx/io/cells.h>
#include <dolfinx/io/vtk_utils.h>
#include <dolfinx/mesh/cell_types.h>
#include <dolfinx/mesh/Mesh.h>
#include <dolfinx/fem/Function.h>
#include <dolfinx/fem/FunctionSpace.h>
#include <gridformat/common/ranges.hpp>
#include <gridformat/common/exceptions.hpp>
#include <gridformat/common/precision.hpp>
#include <gridformat/grid/cell_type.hpp>
#include <gridformat/grid/traits.hpp>
#include <gridformat/grid/writer.hpp>

Detailed Description

Note
These traits are written for and tested with dolfinx 0.11.

Go to the source code of this file.

Classes

struct  GridFormat::DolfinX::Cell
struct  GridFormat::DolfinX::Point
struct  GridFormat::Traits::Cells< dolfinx::mesh::Mesh< T > >
struct  GridFormat::Traits::CellType< dolfinx::mesh::Mesh< T >, DolfinX::Cell >
struct  GridFormat::Traits::CellPoints< dolfinx::mesh::Mesh< T >, DolfinX::Cell >
struct  GridFormat::Traits::Points< dolfinx::mesh::Mesh< T > >
struct  GridFormat::Traits::PointCoordinates< dolfinx::mesh::Mesh< T >, DolfinX::Point >
struct  GridFormat::Traits::PointId< dolfinx::mesh::Mesh< T >, DolfinX::Point >
struct  GridFormat::Traits::NumberOfPoints< dolfinx::mesh::Mesh< T > >
struct  GridFormat::Traits::NumberOfCells< dolfinx::mesh::Mesh< T > >
struct  GridFormat::Traits::NumberOfCellPoints< dolfinx::mesh::Mesh< T >, DolfinX::Cell >
class  GridFormat::DolfinX::LagrangePolynomialGrid< T >
 Wrapper around a nodal dolfinx::FunctionSpace, exposing it as a mesh composed of lagrange elements with the order of the given function space. More...
struct  GridFormat::Traits::Cells< DolfinX::LagrangePolynomialGrid< T > >
struct  GridFormat::Traits::CellType< DolfinX::LagrangePolynomialGrid< T >, DolfinX::Cell >
struct  GridFormat::Traits::CellPoints< DolfinX::LagrangePolynomialGrid< T >, DolfinX::Cell >
struct  GridFormat::Traits::Points< DolfinX::LagrangePolynomialGrid< T > >
struct  GridFormat::Traits::PointCoordinates< DolfinX::LagrangePolynomialGrid< T >, DolfinX::Point >
struct  GridFormat::Traits::PointId< DolfinX::LagrangePolynomialGrid< T >, DolfinX::Point >
struct  GridFormat::Traits::NumberOfPoints< DolfinX::LagrangePolynomialGrid< T > >
struct  GridFormat::Traits::NumberOfCells< DolfinX::LagrangePolynomialGrid< T > >
struct  GridFormat::Traits::NumberOfCellPoints< DolfinX::LagrangePolynomialGrid< T >, DolfinX::Cell >

Functions

template<std::floating_point T>
 GridFormat::DolfinX::LagrangePolynomialGrid (const dolfinx::fem::FunctionSpace< T > &) -> LagrangePolynomialGrid< T >
template<std::floating_point T>
LagrangePolynomialGrid< T > GridFormat::DolfinX::make_lagrange_grid (const dolfinx::fem::FunctionSpace< T > &space)
 Create a LagrangePolynomialGrid from the given function space.
template<typename Writer, Concepts::Scalar T, std::floating_point U, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_point_function (const dolfinx::fem::Function< T, U > &f, Writer &writer, std::string name="", const Precision< P > &prec={})
 Insert the given function into the writer as point field.
template<typename Writer, Concepts::Scalar T, std::floating_point U, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_cell_function (const dolfinx::fem::Function< T, U > &f, Writer &writer, std::string name="", const Precision< P > &prec={})
 Insert the given function into the writer as cell field.
template<typename Writer, Concepts::Scalar T, std::floating_point U, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_function (const dolfinx::fem::Function< T, U > &f, Writer &writer, const std::string &name="", const Precision< P > &prec={})
 Insert the given function into the writer as field.