GridFormat 0.4.0
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
PredefinedTraits

Traits specializations and helper classes for frameworks. More...

Detailed Description

Files

file  cgal.hpp
 Traits specializations for cgal triangulations in 2D 3D.
 
file  dealii.hpp
 Traits specializations for dealii triangulations
 
file  dolfinx.hpp
 Traits specializations for dolfinx meshes
 
file  dune.hpp
 Traits specializations for dune grid views
 
file  mfem.hpp
 Traits specializations for mfem::Mesh
 

Classes

class  GridFormat::DolfinX::LagrangePolynomialGrid
 Wrapper around a nodal dolfinx::FunctionSpace, exposing it as a mesh composed of lagrange elements with the order of the given function space. More...
 
class  GridFormat::Dune::LagrangePolynomialGrid< GV >
 Exposes a Dune::GridView as a grid composed of lagrange cells with the given order. Can be used to conveniently write Dune::Functions into grid files. More...
 
class  GridFormat::Dune::FunctionField< _Function, Grid, T >
 Implements the field interface for a Dune::Function defined on a (wrapped) Dune::GridView. More...
 
class  GridFormat::Dune::GridFactoryAdapter< Grid >
 Adapter around a Dune::GridFactory to be compatible with GridFormat::Concepts::GridFactory. Can be used to export a grid from a reader directly into a Dune::GridFactory. For instance: More...
 

Functions

template<typename Writer , Concepts::Scalar T, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_point_function (const dolfinx::fem::Function< T > &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, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_cell_function (const dolfinx::fem::Function< T > &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, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_function (const dolfinx::fem::Function< T > &f, Writer &writer, const std::string &name="", const Precision< P > &prec={})
 Insert the given function into the writer as field.
 
template<typename Function , typename Writer >
void GridFormat::Dune::set_point_function (Function &&f, Writer &writer, const std::string &name)
 Insert the given Dune::Function to the writer as point field.
 
template<typename Function , typename Writer , GridFormat::Concepts::Scalar T>
void GridFormat::Dune::set_point_function (Function &&f, Writer &writer, const std::string &name, const Precision< T > &prec)
 Insert the given Dune::Function to the writer as point field with the given precision.
 
template<typename Writer , typename Function >
void GridFormat::Dune::set_cell_function (Function &&f, Writer &writer, const std::string &name)
 Insert the given Dune::Function to the writer as cell field.
 
template<typename Writer , typename Function , GridFormat::Concepts::Scalar T>
void GridFormat::Dune::set_cell_function (Function &&f, Writer &writer, const std::string &name, const Precision< T > &prec)
 Insert the given Dune::Function to the writer as cell field with the given precision.
 

Function Documentation

◆ set_cell_function() [1/3]

template<typename Writer , Concepts::Scalar T, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_cell_function ( const dolfinx::fem::Function< T > &  f,
Writer writer,
std::string  name = "",
const Precision< P > &  prec = {} 
)
Parameters
fThe function to be inserted
writerThe writer in which to insert it
nameThe name of the field (defaults to f.name)
precThe precision with which to write the field (defaults to the function's scalar type)

◆ set_cell_function() [2/3]

template<typename Writer , typename Function >
void GridFormat::Dune::set_cell_function ( Function &&  f,
Writer writer,
const std::string &  name 
)
Note
This requires the Writer to have been constructed with a LagrangePolynomialGrid.

◆ set_cell_function() [3/3]

template<typename Writer , typename Function , GridFormat::Concepts::Scalar T>
void GridFormat::Dune::set_cell_function ( Function &&  f,
Writer writer,
const std::string &  name,
const Precision< T > &  prec 
)
Note
This requires the Writer to have been constructed with a LagrangePolynomialGrid.

◆ set_function()

template<typename Writer , Concepts::Scalar T, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_function ( const dolfinx::fem::Function< T > &  f,
Writer writer,
const std::string &  name = "",
const Precision< P > &  prec = {} 
)
Parameters
fThe function to be inserted
writerThe writer in which to insert it
nameThe name of the field (defaults to f.name)
precThe precision with which to write the field (defaults to the function's scalar type)

◆ set_point_function() [1/3]

template<typename Writer , Concepts::Scalar T, Concepts::Scalar P = T>
void GridFormat::DolfinX::set_point_function ( const dolfinx::fem::Function< T > &  f,
Writer writer,
std::string  name = "",
const Precision< P > &  prec = {} 
)
Parameters
fThe function to be inserted
writerThe writer in which to insert it
nameThe name of the field (defaults to f.name)
precThe precision with which to write the field (defaults to the function's scalar type)

◆ set_point_function() [2/3]

template<typename Function , typename Writer >
void GridFormat::Dune::set_point_function ( Function &&  f,
Writer writer,
const std::string &  name 
)
Note
This requires the Writer to have been constructed with a LagrangePolynomialGrid.

◆ set_point_function() [3/3]

template<typename Function , typename Writer , GridFormat::Concepts::Scalar T>
void GridFormat::Dune::set_point_function ( Function &&  f,
Writer writer,
const std::string &  name,
const Precision< T > &  prec 
)
Note
This requires the Writer to have been constructed with a LagrangePolynomialGrid.