![]() |
KASKADE 7 development version
|
A class for representing displaced/deformed boundary faces. More...
#include <boundaryFace.hh>
Public Types | |
| using | ctype = typename Face::ctype |
| using | Cell = typename Grid::template Codim<0>::Entity |
| using | LocalPosition = Dune::FieldVector<ctype,facedimension> |
| Local position vector in the face's reference simplex. | |
| using | GlobalPosition = Dune::FieldVector<ctype,worlddimension> |
| Global position in the world. | |
| using | CellLocalPosition = Dune::FieldVector<ctype,celldimension> |
| Local position in the grid cell to which this face belongs. | |
| using | CellGlobalPosition = Dune::FieldVector<ctype,griddimension> |
| Global position of the grid. | |
Public Member Functions | |
| BoundaryFace (Face const &f, Displacement const *d=nullptr) | |
| Constructor. | |
| ~BoundaryFace () | |
| Face const & | gridFace () const |
| returns the underlying face (or cell in case of surface meshes). | |
| std::pair< GlobalPosition, GlobalPosition > | boundingBox () const |
| Computes the axis-aligned bounding box. | |
| Dune::GeometryType | type () const |
| Returns the type of reference face. | |
| ctype | volume () const |
| Computes the area of the deformed face. | |
| GlobalPosition | global (LocalPosition const &xi) const |
| Computes the global world position of the given local coordinate. | |
| GlobalPosition | unitOuterNormal (LocalPosition const &xi) const |
| Computes the unit outer normal of the deformed face. | |
| std::optional< std::pair< LocalPosition, ctype > > | intersection (GlobalPosition const &a, GlobalPosition const &b) const |
| Computes the intersection of the boundary face with the given line segment \( [a,b] \), if there is any. | |
Static Public Attributes | |
| static int const | facedimension = Face::mydimension |
| static int const | celldimension = Grid::dimension |
| static int const | griddimension = Face::dimensionworld |
| static int const | worlddimension = dimw |
A class for representing displaced/deformed boundary faces.
We distinguish three cases:
In the first case, Face denotes a face in the grid, i.e. a codimension 1 entity. In the other two cases, Face denotes a grid cell (a codimension 0 entity).
| Grid | a Dune grid class |
| Face | the grid entity for faces to be found by the boundary locator. This is either a GridView::Intersection (in case of volumetric grids) or a cell of the grid (in case of surface meshes). |
| dimw | the dimension of the world space in which the grid is embedded |
Definition at line 51 of file boundaryFace.hh.
| using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::Cell = typename Grid::template Codim<0>::Entity |
Definition at line 60 of file boundaryFace.hh.
| using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::CellGlobalPosition = Dune::FieldVector<ctype,griddimension> |
Global position of the grid.
Definition at line 89 of file boundaryFace.hh.
| using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::CellLocalPosition = Dune::FieldVector<ctype,celldimension> |
Local position in the grid cell to which this face belongs.
Definition at line 84 of file boundaryFace.hh.
| using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::ctype = typename Face::ctype |
Definition at line 59 of file boundaryFace.hh.
| using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::GlobalPosition = Dune::FieldVector<ctype,worlddimension> |
Global position in the world.
Definition at line 79 of file boundaryFace.hh.
| using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::LocalPosition = Dune::FieldVector<ctype,facedimension> |
Local position vector in the face's reference simplex.
Definition at line 74 of file boundaryFace.hh.
| Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::BoundaryFace | ( | Face const & | f, |
| Displacement const * | d = nullptr ) |
Constructor.
| Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::~BoundaryFace | ( | ) |
| std::pair< GlobalPosition, GlobalPosition > Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::boundingBox | ( | ) | const |
Computes the axis-aligned bounding box.
| GlobalPosition Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::global | ( | LocalPosition const & | xi | ) | const |
Computes the global world position of the given local coordinate.
|
inline |
returns the underlying face (or cell in case of surface meshes).
Note that if a displacement is active, the geometry of the underlying mesh face and the boundary face do not coincide.
Definition at line 104 of file boundaryFace.hh.
| std::optional< std::pair< LocalPosition, ctype > > Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::intersection | ( | GlobalPosition const & | a, |
| GlobalPosition const & | b ) const |
Computes the intersection of the boundary face with the given line segment \( [a,b] \), if there is any.
|
inline |
Returns the type of reference face.
Definition at line 117 of file boundaryFace.hh.
| GlobalPosition Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::unitOuterNormal | ( | LocalPosition const & | xi | ) | const |
Computes the unit outer normal of the deformed face.
|
inline |
Computes the area of the deformed face.
Definition at line 125 of file boundaryFace.hh.
|
static |
Definition at line 55 of file boundaryFace.hh.
|
static |
Definition at line 54 of file boundaryFace.hh.
|
static |
Definition at line 56 of file boundaryFace.hh.
|
static |
Definition at line 57 of file boundaryFace.hh.