dune-geometry  2.4
Classes | Enumerations | Functions
Dune::GenericGeometry Namespace Reference

Classes

struct  BaseTopology
 
struct  BaseTopology< Prism< Base > >
 
struct  BaseTopology< Pyramid< Base > >
 
class  CodimTable
 
class  CodimTable< Element,-1 >
 
struct  Convert
 
struct  Convert< GeometryType::cube, 0 >
 
struct  Convert< GeometryType::cube, dim >
 
struct  Convert< GeometryType::prism, dim >
 
struct  Convert< GeometryType::pyramid, dim >
 
struct  Convert< GeometryType::simplex, 0 >
 
struct  Convert< GeometryType::simplex, dim >
 
struct  CubeTopology
 
struct  CubeTopology< 0 >
 
struct  DuneCoordTraits
 
class  DuneGeometryType
 statically convert a generic topology type into a GeometryType More...
 
class  DuneGeometryType< Point, linetype >
 
class  DuneGeometryType< Prism< BaseTopology >, linetype >
 
class  DuneGeometryType< Pyramid< BaseTopology >, linetype >
 
class  DuneGeometryTypeProvider
 dynamically convert a generic topology type into a GeometryType More...
 
struct  FieldHelper
 
class  GenericSubTopologyNumbering
 
struct  GenericSubTopologyNumberingHelper
 
struct  GenericSubTopologyNumberingHelper< Prism< BaseTopology >, codim, subdim, 0 >
 
struct  GenericSubTopologyNumberingHelper< Prism< BaseTopology >, codim, subdim, subcodim >
 
struct  GenericSubTopologyNumberingHelper< Prism< BaseTopology >, codim, subdim, subdim >
 
struct  GenericSubTopologyNumberingHelper< Pyramid< BaseTopology >, codim, subdim, 0 >
 
struct  GenericSubTopologyNumberingHelper< Pyramid< BaseTopology >, codim, subdim, subcodim >
 
struct  GenericSubTopologyNumberingHelper< Pyramid< BaseTopology >, codim, subdim, subdim >
 
class  IfTopology
 
class  IfTopology< Operation, 0, Topology >
 
struct  IsCube
 
struct  IsGeneralizedPrism
 
struct  IsGeneralizedPrism< Prism< BaseTopology > >
 
struct  IsHybrid
 
struct  IsSimplex
 
struct  MatrixHelper
 
struct  Point
 
struct  Prism
 
struct  PrismTopology
 
struct  Pyramid
 
struct  PyramidTopology
 
struct  ReferenceDomain
 
class  ReferenceDomainBase
 
struct  ReferenceElement
 
struct  SimplexTopology
 
struct  SimplexTopology< 0 >
 
struct  Size
 Statically compute the number of subentities of a given codimension. More...
 
class  SizeImpl
 
class  SizeImpl< Point, dim, codim >
 
class  SizeImpl< Prism< BaseTopology >, dim, 0 >
 
class  SizeImpl< Prism< BaseTopology >, dim, codim >
 
class  SizeImpl< Prism< BaseTopology >, dim, dim >
 
class  SizeImpl< Pyramid< BaseTopology >, dim, 0 >
 
class  SizeImpl< Pyramid< BaseTopology >, dim, codim >
 
class  SizeImpl< Pyramid< BaseTopology >, dim, dim >
 
struct  SubTopology
 
class  SubTopologyImpl
 
class  SubTopologyImpl< Point, dim, codim, i >
 
class  SubTopologyImpl< Prism< BaseTopology >, dim, 0, i >
 
class  SubTopologyImpl< Prism< BaseTopology >, dim, codim, i >
 
class  SubTopologyImpl< Prism< BaseTopology >, dim, dim, i >
 
class  SubTopologyImpl< Pyramid< BaseTopology >, dim, 0, i >
 
class  SubTopologyImpl< Pyramid< BaseTopology >, dim, codim, i >
 
class  SubTopologyImpl< Pyramid< BaseTopology >, dim, dim, i >
 
class  SubTopologyMapper
 
class  SubTopologyNumbering
 
class  SubTopologySize
 
class  Topology
 
class  Topology< id, 0 >
 

Enumerations

enum  TopologyConstruction { pyramidConstruction = 0, prismConstruction = 1 }
 

Functions

unsigned long referenceVolumeInverse (unsigned int topologyId, int dim)
 
template<class ct , int cdim>
bool checkInside (unsigned int topologyId, int dim, const FieldVector< ct, cdim > &x, ct tolerance, ct factor=ct(1))
 
template<class ct , int cdim>
unsigned int referenceCorners (unsigned int topologyId, int dim, FieldVector< ct, cdim > *corners)
 
template<class ct >
ct referenceVolume (unsigned int topologyId, int dim)
 
template<class ct , int cdim>
unsigned int referenceOrigins (unsigned int topologyId, int dim, int codim, FieldVector< ct, cdim > *origins)
 
template<class ct , int cdim, int mydim>
unsigned int referenceEmbeddings (unsigned int topologyId, int dim, int codim, FieldVector< ct, cdim > *origins, FieldMatrix< ct, mydim, cdim > *jacobianTransposeds)
 
template<class ct , int cdim>
unsigned int referenceIntegrationOuterNormals (unsigned int topologyId, int dim, const FieldVector< ct, cdim > *origins, FieldVector< ct, cdim > *normals)
 
template<class ct , int cdim>
unsigned int referenceIntegrationOuterNormals (unsigned int topologyId, int dim, FieldVector< ct, cdim > *normals)
 
unsigned int size (unsigned int topologyId, int dim, int codim)
 Compute the number of subentities of a given codimension. More...
 
unsigned int subTopologyId (unsigned int topologyId, int dim, int codim, unsigned int i)
 Compute the topology id of a given subentity. More...
 
void subTopologyNumbering (unsigned int topologyId, int dim, int codim, unsigned int i, int subcodim, unsigned int *beginOut, unsigned int *endOut)
 
unsigned int numTopologies (int dim)
 obtain the number of topologies of a given dimension More...
 
bool isPyramid (unsigned int topologyId, int dim, int codim=0)
 check whether a pyramid construction was used to create a given codimension More...
 
bool isPrism (unsigned int topologyId, int dim, int codim=0)
 check whether a prism construction was used to create a given codimension More...
 
bool isTopology (TopologyConstruction construction, unsigned int topologyId, int dim, int codim=0)
 check whether a specific topology construction was used to create a given codimension More...
 
unsigned int baseTopologyId (unsigned int topologyId, int dim, int codim=1)
 obtain the base topology of a given codimension More...
 

Enumeration Type Documentation

Enumerator
pyramidConstruction 
prismConstruction 

Function Documentation

unsigned int Dune::GenericGeometry::baseTopologyId ( unsigned int  topologyId,
int  dim,
int  codim = 1 
)
inline

obtain the base topology of a given codimension

Parameters
[in]topologyIdid of the topology
[in]dimdimension of the topology
[in]codimcodimension for which the information is desired (defaults to 1)

References numTopologies().

Referenced by checkInside(), referenceCorners(), referenceEmbeddings(), referenceIntegrationOuterNormals(), referenceOrigins(), referenceVolumeInverse(), size(), subTopologyId(), and subTopologyNumbering().

template<class ct , int cdim>
bool Dune::GenericGeometry::checkInside ( unsigned int  topologyId,
int  dim,
const FieldVector< ct, cdim > &  x,
ct  tolerance,
ct  factor = ct( 1 ) 
)
inline
bool Dune::GenericGeometry::isPrism ( unsigned int  topologyId,
int  dim,
int  codim = 0 
)
inline

check whether a prism construction was used to create a given codimension

Parameters
[in]topologyIdid of the topology
[in]dimdimension of the topology
[in]codimcodimension for which the information is desired (defaults to 0)
Returns
true, if a prism construction was used to generate the codimension the topology.

References numTopologies().

Referenced by Dune::MultiLinearGeometry< ct, mydim, cdim, Traits >::affine(), checkInside(), Dune::MultiLinearGeometry< ct, mydim, cdim, Traits >::global(), Dune::MultiLinearGeometry< ct, mydim, cdim, Traits >::jacobianTransposed(), referenceCorners(), referenceEmbeddings(), referenceIntegrationOuterNormals(), referenceOrigins(), referenceVolumeInverse(), size(), subTopologyId(), and subTopologyNumbering().

bool Dune::GenericGeometry::isPyramid ( unsigned int  topologyId,
int  dim,
int  codim = 0 
)
inline

check whether a pyramid construction was used to create a given codimension

Parameters
[in]topologyIdid of the topology
[in]dimdimension of the topology
[in]codimcodimension for which the information is desired (defaults to 0)
Returns
true, if a pyramid construction was used to generate the codimension the topology.

References numTopologies().

Referenced by Dune::MultiLinearGeometry< ct, mydim, cdim, Traits >::global(), Dune::MultiLinearGeometry< ct, mydim, cdim, Traits >::jacobianTransposed(), size(), subTopologyId(), and subTopologyNumbering().

bool Dune::GenericGeometry::isTopology ( TopologyConstruction  construction,
unsigned int  topologyId,
int  dim,
int  codim = 0 
)
inline

check whether a specific topology construction was used to create a given codimension

Parameters
[in]constructionconstruction to check for
[in]topologyIdid of the topology
[in]dimdimension of the topology
[in]codimcodimension for which the information is desired (defaults to 0)
Returns
true, if construction was used to generate the codimension the topology.

References numTopologies().

unsigned int Dune::GenericGeometry::numTopologies ( int  dim)
inline

obtain the number of topologies of a given dimension

Note
Valid topology ids are 0,...,numTopologies(dim)-1.
Parameters
[in]dimdimension
Returns
number of topologies for the dimension

Referenced by baseTopologyId(), checkInside(), isPrism(), isPyramid(), isTopology(), referenceCorners(), referenceEmbeddings(), referenceIntegrationOuterNormals(), referenceOrigins(), referenceVolumeInverse(), and size().

template<class ct , int cdim>
unsigned int Dune::GenericGeometry::referenceCorners ( unsigned int  topologyId,
int  dim,
FieldVector< ct, cdim > *  corners 
)
inline
template<class ct , int cdim, int mydim>
unsigned int Dune::GenericGeometry::referenceEmbeddings ( unsigned int  topologyId,
int  dim,
int  codim,
FieldVector< ct, cdim > *  origins,
FieldMatrix< ct, mydim, cdim > *  jacobianTransposeds 
)
inline
template<class ct , int cdim>
unsigned int Dune::GenericGeometry::referenceIntegrationOuterNormals ( unsigned int  topologyId,
int  dim,
const FieldVector< ct, cdim > *  origins,
FieldVector< ct, cdim > *  normals 
)
inline
template<class ct , int cdim>
unsigned int Dune::GenericGeometry::referenceIntegrationOuterNormals ( unsigned int  topologyId,
int  dim,
FieldVector< ct, cdim > *  normals 
)
inline
template<class ct , int cdim>
unsigned int Dune::GenericGeometry::referenceOrigins ( unsigned int  topologyId,
int  dim,
int  codim,
FieldVector< ct, cdim > *  origins 
)
inline
template<class ct >
ct Dune::GenericGeometry::referenceVolume ( unsigned int  topologyId,
int  dim 
)
inline
unsigned long Dune::GenericGeometry::referenceVolumeInverse ( unsigned int  topologyId,
int  dim 
)

References baseTopologyId(), isPrism(), and numTopologies().

Referenced by referenceVolume().

unsigned int Dune::GenericGeometry::size ( unsigned int  topologyId,
int  dim,
int  codim 
)
unsigned int Dune::GenericGeometry::subTopologyId ( unsigned int  topologyId,
int  dim,
int  codim,
unsigned int  i 
)

Compute the topology id of a given subentity.

Parameters
topologyIdTopology id of entity
dimDimension of entity
codimCodimension of the subentity that we are interested in
iNumber of the subentity that we are interested in

References baseTopologyId(), isPrism(), isPyramid(), prismConstruction, pyramidConstruction, and size().

Referenced by Dune::ReferenceElement< ctype, dim >::SubEntityInfo::initialize(), and subTopologyNumbering().

void Dune::GenericGeometry::subTopologyNumbering ( unsigned int  topologyId,
int  dim,
int  codim,
unsigned int  i,
int  subcodim,
unsigned int *  beginOut,
unsigned int *  endOut 
)