|
dune-vtk 2.12
|
#include <dune/vtk/gridcreators/lagrangegridcreator.hh>

Classes | |
| struct | EntitySet |
| class | LocalFunction |
| class | LocalParametrization |
Public Types | |
| using | Grid = GridType |
| using | Element = typename Grid::template Codim< 0 >::Entity |
| using | GlobalCoordinate = typename Super::GlobalCoordinate |
| using | LocalCoordinate = typename Element::Geometry::LocalCoordinate |
| using | LocalGeometry = MultiLinearGeometry< typename Element::Geometry::ctype, Element::dimension, Element::dimension > |
| template<class F > | |
| using | HasParametrizedElements = decltype(std::declval< F >().insertElement(std::declval< GeometryType >(), std::declval< std::vector< unsigned int > const & >(), std::declval< std::function< GlobalCoordinate(LocalCoordinate)> >())) |
| using | Derived = LagrangeGridCreator< GridType > |
Public Member Functions | |
| void | insertVerticesImpl (std::vector< GlobalCoordinate > const &points, std::vector< std::uint64_t > const &) |
Implementation of the interface function insertVertices() | |
| void | insertElementsImpl (std::vector< std::uint8_t > const &types, std::vector< std::int64_t > const &offsets, std::vector< std::int64_t > const &connectivity) |
Implementation of the interface function insertElements() | |
| LocalParametrization | localParametrization (unsigned int insertionIndex) const |
| Construct an element parametrization. | |
| LocalParametrization | localParametrization (Element const &element) const |
| Construct an element parametrization. | |
| LocalGeometry | localGeometry (Element const &element) const |
| Construct a transformation of local element coordinates. | |
| int | order (GeometryType type, std::size_t nNodes) const |
| Determine lagrange order from number of points. | |
| int | order (ElementParametrization const &localParam) const |
| int | order () const |
| Determine lagrange order from number of points from the first element parametrization. | |
| std::string | name () const |
| int | numComponents () const |
| Vtk::DataTypes | dataType () const |
| EntitySet | entitySet () const |
| Dummy function returning a placeholder entityset. | |
| GlobalCoordinate | operator() (GlobalCoordinate const &) const |
| Dummy function returning a placeholder entityset. | |
| GridFactory< Grid > & | factory () |
| Return the associated GridFactory. | |
| GridFactory< Grid > const & | factory () const |
| Return the associated (const) GridFactory. | |
| void | insertVertices (std::vector< GlobalCoordinate > const &points, std::vector< std::uint64_t > const &point_ids) |
| Insert all points as vertices into the factory. | |
| void | insertElements (std::vector< std::uint8_t > const &types, std::vector< std::int64_t > const &offsets, std::vector< std::int64_t > const &connectivity) |
| Create elements based on type and connectivity description. | |
| void | insertPieces (std::vector< std::string > const &pieces) |
| Insert part of a grid stored in file into factory. | |
| std::unique_ptr< Grid > | createGrid () const |
| Construct the actual grid using the GridFactory. | |
| auto | comm () const |
| Return the mpi collective communicator. | |
| void | insertPiecesImpl (std::vector< std::string > const &) |
Protected Member Functions | |
| Derived & | asDerived () |
| const Derived & | asDerived () const |
Protected Attributes | |
| std::shared_ptr< GridFactory< Grid > > | factory_ |
Friends | |
| LocalFunction | localFunction (LagrangeGridCreator &gridCreator) |
| Local function representing the parametrization of the grid. | |
| LocalFunction | localFunction (LagrangeGridCreator const &gridCreator) |
| LocalFunction | localFunction (LagrangeGridCreator &&gridCreator) |
Detailed Description
class Dune::Vtk::LagrangeGridCreator< GridType >
The grid is created from the first nodes of a cell parametrization, representing the corner vertices. Thus a piecewise "flat" grid is constructed. The parametrization is 1. passed as a local element parametrization to the insertElement() function of a gridFactory to allow the grid itself to handle the parametrization and 2. is stored internally that can be accessed by using this GridCreator object as a grid function, or by extracting locally the parametrization on each existing grid element after creation of the grid.
So, the LagrangeGridCreator models both, a GridCreator and a GridFunction.
Member Typedef Documentation
◆ Derived
|
inherited |
◆ Element
| using Dune::Vtk::LagrangeGridCreator< GridType >::Element = typename Grid::template Codim<0>::Entity |
◆ GlobalCoordinate
| using Dune::Vtk::LagrangeGridCreator< GridType >::GlobalCoordinate = typename Super::GlobalCoordinate |
◆ Grid
| using Dune::Vtk::LagrangeGridCreator< GridType >::Grid = GridType |
◆ HasParametrizedElements
| using Dune::Vtk::LagrangeGridCreator< GridType >::HasParametrizedElements = decltype(std::declval<F>().insertElement(std::declval<GeometryType>(), std::declval<std::vector<unsigned int> const&>(), std::declval<std::function<GlobalCoordinate(LocalCoordinate)> >())) |
◆ LocalCoordinate
| using Dune::Vtk::LagrangeGridCreator< GridType >::LocalCoordinate = typename Element::Geometry::LocalCoordinate |
◆ LocalGeometry
| using Dune::Vtk::LagrangeGridCreator< GridType >::LocalGeometry = MultiLinearGeometry<typename Element::Geometry::ctype,Element::dimension,Element::dimension> |
Member Function Documentation
◆ asDerived() [1/2]
|
inlineprotectedinherited |
◆ asDerived() [2/2]
|
inlineprotectedinherited |
◆ comm()
|
inlineinherited |
Return the mpi collective communicator.
◆ createGrid()
|
inlineinherited |
Construct the actual grid using the GridFactory.
◆ dataType()
|
inline |
◆ entitySet()
|
inline |
Dummy function returning a placeholder entityset.
◆ factory() [1/2]
|
inline |
Return the associated GridFactory.
◆ factory() [2/2]
|
inline |
Return the associated (const) GridFactory.
◆ insertElements()
|
inlineinherited |
Create elements based on type and connectivity description.
◆ insertElementsImpl()
|
inline |
Implementation of the interface function insertElements()
◆ insertPieces()
|
inlineinherited |
Insert part of a grid stored in file into factory.
◆ insertPiecesImpl()
|
inlineinherited |
◆ insertVertices()
|
inlineinherited |
Insert all points as vertices into the factory.
◆ insertVerticesImpl()
|
inline |
Implementation of the interface function insertVertices()
◆ localGeometry()
|
inline |
Construct a transformation of local element coordinates.
An element might have a different local coordinate system than the coordinate system used to defined the element parametrization. Thus coordinate transform of the local parametrization is needed for element-local evaluations. This local geometry transform is obtained by figuring out the permutation of corners in the element corresponding to the inserted corner vertices.
◆ localParametrization() [1/2]
|
inline |
Construct an element parametrization.
The returned LocalParametrization is a mapping GlobalCoordinate(LocalCoordinate) where LocalCoordinate is w.r.t. the local coordinate system in the passed element andGlobalCoordinate` a world coordinate in the parametrized grid.
◆ localParametrization() [2/2]
|
inline |
Construct an element parametrization.
The returned LocalParametrization is a mapping GlobalCoordinate(LocalCoordinate) where LocalCoordinate is w.r.t. the local coordinate system in an element with giveninsertionIndex<tt>(defined by the inserted corner vertices) and GlobalCoordinate` a world coordinate in the parametrized grid.
◆ name()
|
inline |
◆ numComponents()
|
inline |
◆ operator()()
|
inline |
Dummy function returning a placeholder entityset.
◆ order() [1/3]
|
inline |
Determine lagrange order from number of points from the first element parametrization.
◆ order() [2/3]
|
inline |
◆ order() [3/3]
|
inline |
Determine lagrange order from number of points.
Friends And Related Symbol Documentation
◆ localFunction [1/3]
|
friend |
◆ localFunction [2/3]
|
friend |
Local function representing the parametrization of the grid.
The returned object models Functions::Concept::LocalFunction and can thus be bound to an element of the created grid and evaluated in the local coordinates of the bound element.
It is implemented in terms of the LocalParametrization function returned by the method localParametrization(element). See comments there for further details.
Note, this methods requires the GridCreator to be based by lvalue-reference. This is necessary, since we want to guarantee that all internal storage is preserved while evaluating the local function.
◆ localFunction [3/3]
|
friend |
Member Data Documentation
◆ factory_
|
protectedinherited |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8