dune-grid
2.2.1
|
#include <dune/grid/alugrid/3d/geometry.hh>
Public Types | |
typedef GridImp::ctype | ctype |
typedef FieldVector< ctype, mydim > | LocalCoordinate |
type of local coordinates | |
typedef FieldVector< ctype, cdim > | GlobalCoordinate |
type of the global coordinates | |
typedef FieldMatrix< ctype, cdim, mydim > | Jacobian |
type of jacobian (also of jacobian inverse transposed) | |
typedef FieldMatrix< ctype, mydim, cdim > | JacobianTransposed |
type of jacobian transposed | |
typedef FieldMatrix< ctype, EntityCount< elementType > ::numVerticesPerFace, 3 > | FaceCoordinatesType |
Public Member Functions | |
ALU3dGridGeometry () | |
GeometryType | type () const |
int | corners () const |
return the number of corners of this element. Corners are numbered 0..n-1 | |
const GlobalCoordinate & | operator[] (int i) const |
access to coordinates of corners. Index is the number of the corner | |
GlobalCoordinate | corner (int i) const |
access to coordinates of corners. Index is the number of the corner | |
GlobalCoordinate | global (const LocalCoordinate &local) const |
LocalCoordinate | local (const GlobalCoordinate &global) const |
ctype | integrationElement (const LocalCoordinate &local) const |
A(l) , see grid.hh. | |
const Jacobian & | jacobianInverseTransposed (const LocalCoordinate &local) const |
const JacobianTransposed & | jacobianTransposed (const LocalCoordinate &local) const |
jacobian transposed | |
bool | affine () const |
returns true if mapping is affine | |
ctype | volume () const |
returns volume of geometry | |
bool | buildGeom (const IMPLElementType &item) |
Methods that not belong to the Interface, but have to be public. | |
bool | buildGeom (const HFaceType &item, int twist, int faceNum) |
bool | buildGeom (const HEdgeType &item, int twist, int) |
bool | buildGeom (const VertexType &item, int twist, int) |
bool | buildGeom (const FaceCoordinatesType &coords) |
template<class coord_t > | |
bool | buildGeom (const coord_t &p0, const coord_t &p1, const coord_t &p2, const coord_t &p3) |
template<class coord_t > | |
bool | buildGeom (const coord_t &p0, const coord_t &p1, const coord_t &p2) |
template<class GeometryType > | |
bool | buildGeomInFather (const GeometryType &fatherGeom, const GeometryType &myGeom) |
build geometry of local coordinates relative to father | |
void | print (std::ostream &ss) const |
void | invalidate () |
invalidate geometry implementation to avoid errors | |
bool | valid () const |
invalidate geometry implementation to avoid errors | |
GlobalCoordinate | center () const |
return center of the geometry |
Static Public Attributes | |
static const int | mydimension |
static const int | coorddimension |
Friends | |
class | ALU3dGridIntersectionIterator< GridImp > |
typedef GridImp :: ctype Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::ctype |
typedef FieldMatrix<ctype, EntityCount< elementType >:: numVerticesPerFace , 3> Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::FaceCoordinatesType |
typedef FieldVector<ctype, cdim > Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::GlobalCoordinate |
type of the global coordinates
typedef FieldMatrix<ctype,cdim,mydim> Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::Jacobian |
type of jacobian (also of jacobian inverse transposed)
typedef FieldMatrix< ctype, mydim, cdim > Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::JacobianTransposed |
type of jacobian transposed
typedef FieldVector<ctype, mydim> Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::LocalCoordinate |
type of local coordinates
Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::ALU3dGridGeometry | ( | ) |
for makeRefGeometry == true a Geometry with the coordinates of the reference element is made
|
inline |
returns true if mapping is affine
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const IMPLElementType & | item | ) |
Methods that not belong to the Interface, but have to be public.
generate the geometry out of a given ALU3dGridElement
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const HFaceType & | item, |
int | twist, | ||
int | faceNum | ||
) |
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const HEdgeType & | item, |
int | twist, | ||
int | |||
) |
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const VertexType & | item, |
int | twist, | ||
int | |||
) |
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const FaceCoordinatesType & | coords | ) |
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const coord_t & | p0, |
const coord_t & | p1, | ||
const coord_t & | p2, | ||
const coord_t & | p3 | ||
) |
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const coord_t & | p0, |
const coord_t & | p1, | ||
const coord_t & | p2 | ||
) |
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::buildGeomInFather | ( | const GeometryType & | fatherGeom, |
const GeometryType & | myGeom | ||
) |
build geometry of local coordinates relative to father
|
inlineinherited |
return center of the geometry
GlobalCoordinate Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::corner | ( | int | i | ) | const |
access to coordinates of corners. Index is the number of the corner
int Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::corners | ( | ) | const |
return the number of corners of this element. Corners are numbered 0..n-1
GlobalCoordinate Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::global | ( | const LocalCoordinate & | local | ) | const |
maps a local coordinate within reference element to global coordinate in element
ctype Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::integrationElement | ( | const LocalCoordinate & | local | ) | const |
A(l) , see grid.hh.
void Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::invalidate | ( | ) |
invalidate geometry implementation to avoid errors
const Jacobian& Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::jacobianInverseTransposed | ( | const LocalCoordinate & | local | ) | const |
can only be called for dim=dimworld! (Trivially true, since there is no other specialization...)
const JacobianTransposed& Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::jacobianTransposed | ( | const LocalCoordinate & | local | ) | const |
jacobian transposed
LocalCoordinate Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::local | ( | const GlobalCoordinate & | global | ) | const |
maps a global coordinate within the element to a local coordinate in its reference element
const GlobalCoordinate& Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::operator[] | ( | int | i | ) | const |
access to coordinates of corners. Index is the number of the corner
void Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::print | ( | std::ostream & | ss | ) | const |
print internal data no interface method
GeometryType Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::type | ( | ) | const |
return the element type identifier line , triangle or tetrahedron, depends on dim
bool Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::valid | ( | ) | const |
invalidate geometry implementation to avoid errors
ctype Dune::ALU3dGridGeometry< mydim, cdim, GridImp >::volume | ( | ) | const |
returns volume of geometry
Reimplemented from Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU3dGridGeometry >.
|
friend |
|
staticinherited |
|
staticinherited |