KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::BoundaryFace< Grid, Face, Displacement, dimw > Class Template Reference

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

Detailed Description

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
class Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >

A class for representing displaced/deformed boundary faces.

We distinguish three cases:

  • boundary faces of volume grids: these are characterized by facedimension==celldimension-1 and celldimension==griddimension==worlddimension.
  • cells of a d-dimensional grid in a d+1-dimensional space: these are characterized by dimension==dimensionworld-1 and mydimension==dimension. Examples are surface meshes embedded in3D space.
  • cells of a d-dimensional grid in a d-dimensional space that are deformed into a d+1-dimensional world: these are characterized by dimensionworld==dimension+1. Examples are planar grids deformed into 3D space, e.g., for shell or membrane mechanics.

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).

Template Parameters
Grida Dune grid class
Facethe 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).
dimwthe dimension of the world space in which the grid is embedded

Definition at line 51 of file boundaryFace.hh.

Member Typedef Documentation

◆ Cell

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::Cell = typename Grid::template Codim<0>::Entity

Definition at line 60 of file boundaryFace.hh.

◆ CellGlobalPosition

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
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.

◆ CellLocalPosition

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
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.

◆ ctype

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
using Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::ctype = typename Face::ctype

Definition at line 59 of file boundaryFace.hh.

◆ GlobalPosition

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
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.

◆ LocalPosition

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
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.

Constructor & Destructor Documentation

◆ BoundaryFace()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::BoundaryFace ( Face const & f,
Displacement const * d = nullptr )

Constructor.

◆ ~BoundaryFace()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::~BoundaryFace ( )

Member Function Documentation

◆ boundingBox()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
std::pair< GlobalPosition, GlobalPosition > Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::boundingBox ( ) const

Computes the axis-aligned bounding box.

◆ global()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
GlobalPosition Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::global ( LocalPosition const & xi) const

Computes the global world position of the given local coordinate.

◆ gridFace()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
Face const & Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::gridFace ( ) const
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.

◆ intersection()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
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.

Returns
a pair \( (\xi,t) \) of local position and line parameter, such that \( \mathrm{global}(\xi) \approx (1-t)a+tb \) holds.

◆ type()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
Dune::GeometryType Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::type ( ) const
inline

Returns the type of reference face.

Definition at line 117 of file boundaryFace.hh.

◆ unitOuterNormal()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
GlobalPosition Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::unitOuterNormal ( LocalPosition const & xi) const

Computes the unit outer normal of the deformed face.

◆ volume()

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
ctype Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::volume ( ) const
inline

Computes the area of the deformed face.

Definition at line 125 of file boundaryFace.hh.

Member Data Documentation

◆ celldimension

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
int const Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::celldimension = Grid::dimension
static

Definition at line 55 of file boundaryFace.hh.

◆ facedimension

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
int const Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::facedimension = Face::mydimension
static

Definition at line 54 of file boundaryFace.hh.

◆ griddimension

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
int const Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::griddimension = Face::dimensionworld
static

Definition at line 56 of file boundaryFace.hh.

◆ worlddimension

template<class Grid, class Face, class Displacement, int dimw = Face::dimensionworld>
int const Kaskade::BoundaryFace< Grid, Face, Displacement, dimw >::worlddimension = dimw
static

Definition at line 57 of file boundaryFace.hh.


The documentation for this class was generated from the following file: