13#ifndef BOUNDARYFACE_HH
14#define BOUNDARYFACE_HH
20#include "dune/common/fmatrix.hh"
21#include "dune/common/fvector.hh"
22#include "dune/geometry/type.hh"
50 template <
class Gr
id,
class Face,
class Displacement,
int dimw=Face::dimensionworld>
59 using ctype =
typename Face::ctype;
60 using Cell =
typename Grid::template Codim<0>::Entity;
63 enum Kind { VOLUMEMESH, SURFACEMESH, PLANARMESH };
117 Dune::GeometryType
type()
const
156 PositionExtension
const& z);
170 std::pair<DeformationJacobian,GridJacobian> jacobians(
LocalPosition const& xi)
const;
171 std::pair<DeformationJacobian,GridJacobian> jacobiansUncached(
LocalPosition const& xi)
const;
173 std::shared_ptr<Face> face;
174 Dune::GeometryType gt;
177 Displacement
const* disp;
178 bool displacementAffine;
183 DeformationJacobian deformationJacobian;
184 GridJacobian gridJacobian;
typename Face::ctype ctype
static int const griddimension
static int const worlddimension
BoundaryFace(Face const &f, Displacement const *d=nullptr)
Constructor.
Dune::GeometryType type() const
Returns the type of reference face.
static int const facedimension
static int const celldimension
std::pair< GlobalPosition, GlobalPosition > boundingBox() const
Computes the axis-aligned bounding box.
GlobalPosition global(LocalPosition const &xi) const
Computes the global world position of the given local coordinate.
Dune::FieldVector< ctype, facedimension > LocalPosition
Local position vector in the face's reference simplex.
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 , if there is any.
Face const & gridFace() const
returns the underlying face (or cell in case of surface meshes).
Dune::FieldVector< ctype, worlddimension > GlobalPosition
Global position in the world.
ctype volume() const
Computes the area of the deformed face.
GlobalPosition unitOuterNormal(LocalPosition const &xi) const
Computes the unit outer normal of the deformed face.
typename Grid::template Codim< 0 >::Entity Cell
Dune::FieldVector< ctype, griddimension > CellGlobalPosition
Global position of the grid.
Dune::FieldVector< ctype, celldimension > CellLocalPosition
Local position in the grid cell to which this face belongs.
typename GridView::Intersection Face
The type of faces in the grid view.