dune-grid
2.1.1
|
#include <dune/grid/alugrid/2d/geometry.hh>
Public Types | |
typedef FieldVector < alu2d_ctype, cdim > | GlobalCoordinate |
typedef FieldVector < alu2d_ctype, mydim > | LocalCoordinate |
typedef GridImp::ctype | ctype |
Public Member Functions | |
ALU2dGridGeometry () | |
const 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 |
alu2d_ctype | integrationElement (const LocalCoordinate &local) const |
A(l) , see grid.hh. | |
alu2d_ctype | volume () const |
return volume of geometry | |
bool | affine () const |
return true if geometry has affine mapping | |
const FieldMatrix< alu2d_ctype, cdim, mydim > & | jacobianInverseTransposed (const LocalCoordinate &local) const |
jacobian inverse transposed | |
const FieldMatrix< alu2d_ctype, mydim, cdim > & | jacobianTransposed (const LocalCoordinate &local) const |
jacobian transposed | |
bool | buildGeom (const HElementType &item) |
Methods that not belong to the Interface, but have to be public. | |
bool | buildGeom (const HElementType &item, const int aluFace) |
bool | buildGeom (const VertexType &item, const int) |
template<class GeometryType , class LocalGeomType > | |
bool | buildLocalGeom (const GeometryType &geo, const LocalGeomType &lg) |
bool | buildLocalGeometry (const int faceNumber, const int twist, const int coorns) |
build local geometry given local face number | |
GlobalCoordinate & | getCoordVec (int i) |
return non-const reference to coord vecs | |
void | print (std::ostream &ss) const |
print internal data | |
bool | buildGeomInFather (const Geometry &fatherGeom, const Geometry &myGeom) |
build geometry with local coords of child in reference element | |
bool | up2Date () const |
void | unsetUp2Date () const |
FieldVector< ctype, cdim > | center () const |
return center of the geometry | |
Static Protected Member Functions | |
static std::pair< FieldMatrix < alu2d_ctype, 4, 2 > , FieldVector< alu2d_ctype, 4 > > | calculateReferenceCoords (const int corners) |
Protected Attributes | |
GeometryImplType | geoImpl_ |
alu2d_ctype | det_ |
bool | up2Date_ |
is true if geom is up2date |
Defines the geometry part of a mesh entity. Works for all dimensions, element types and dimensions of world. Provides reference element and mapping between local and global coordinates. The element may have different implementations because the mapping can be done more efficient for structured meshes than for unstructured meshes.
dim: An element is a polygonal in a hyperplane of dimension dim. 0 <= dim <= 2 is typically dim=0 is a point.
dimworld: Each corner is a point with dimworld coordinates. ALU2dGridGeometry Empty definition, needs to be specialized for element type
typedef GridImp::ctype Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU2dGridGeometry >::ctype [inherited] |
typedef FieldVector< alu2d_ctype, cdim > Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::GlobalCoordinate |
typedef FieldVector< alu2d_ctype, mydim > Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::LocalCoordinate |
Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::ALU2dGridGeometry | ( | ) |
for makeRefGeometry == true a Geometry with the coordinates of the reference element is made
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::affine | ( | ) | const [inline] |
return true if geometry has affine mapping
References Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::geoImpl_.
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const HElementType & | item | ) |
Methods that not belong to the Interface, but have to be public.
generate the geometry for out of given ALU2dGridElement
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const HElementType & | item, |
const int | aluFace | ||
) |
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::buildGeom | ( | const VertexType & | item, |
const int | |||
) |
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::buildGeomInFather | ( | const Geometry & | fatherGeom, |
const Geometry & | myGeom | ||
) | [inline] |
build geometry with local coords of child in reference element
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::buildLocalGeom | ( | const GeometryType & | geo, |
const LocalGeomType & | lg | ||
) |
build geometry for intersectionSelfLocal and intersectionNeighborLocal
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::buildLocalGeometry | ( | const int | faceNumber, |
const int | twist, | ||
const int | coorns | ||
) |
build local geometry given local face number
static std::pair< FieldMatrix< alu2d_ctype, 4, 2 >, FieldVector< alu2d_ctype, 4 > > Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::calculateReferenceCoords | ( | const int | corners | ) | [static, protected] |
FieldVector<ctype, cdim> Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU2dGridGeometry >::center | ( | ) | const [inline, inherited] |
return center of the geometry
GlobalCoordinate Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::corner | ( | int | i | ) | const |
access to coordinates of corners. Index is the number of the corner
int Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::corners | ( | ) | const [inline] |
return the number of corners of this element. Corners are numbered 0...n-1
References Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::geoImpl_.
GlobalCoordinate& Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::getCoordVec | ( | int | i | ) |
return non-const reference to coord vecs
GlobalCoordinate Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::global | ( | const LocalCoordinate & | local | ) | const |
maps a local coordinate within reference element to global coordinate in element
alu2d_ctype Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::integrationElement | ( | const LocalCoordinate & | local | ) | const |
A(l) , see grid.hh.
const FieldMatrix<alu2d_ctype,cdim,mydim>& Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::jacobianInverseTransposed | ( | const LocalCoordinate & | local | ) | const |
jacobian inverse transposed
const FieldMatrix<alu2d_ctype,mydim,cdim>& Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::jacobianTransposed | ( | const LocalCoordinate & | local | ) | const |
jacobian transposed
LocalCoordinate Dune::ALU2dGridGeometry< 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::ALU2dGridGeometry< mydim, cdim, GridImp >::operator[] | ( | int | i | ) | const |
access to coordinates of corners. Index is the number of the corner
void Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::print | ( | std::ostream & | ss | ) | const |
print internal data
const GeometryType Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::type | ( | ) | const [inline] |
return the element type identifier line , triangle or tetrahedron, depends on dim
References Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::geoImpl_.
void Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::unsetUp2Date | ( | ) | const [inline] |
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::up2Date | ( | ) | const [inline] |
alu2d_ctype Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::volume | ( | ) | const |
return volume of geometry
Reimplemented from Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU2dGridGeometry >.
alu2d_ctype Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::det_ [mutable, protected] |
GeometryImplType Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::geoImpl_ [mutable, protected] |
bool Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::up2Date_ [mutable, protected] |
is true if geom is up2date
Referenced by Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::unsetUp2Date(), and Dune::ALU2dGridGeometry< mydim, cdim, GridImp >::up2Date().