Class to calculate the wall distance at every element or vertex of a grid. More...
#include <dumux/discretization/walldistance.hh>
GridGeometry | The grid geometry. |
DistanceField | The type of distance field to use (parameterized with the geometry type) |
Public Types | |
using | WallData = WallDataImpl |
Public Member Functions | |
template<class LocationTag , class ScvfSelectionFunctor > | |
WallDistance (std::shared_ptr< const GridGeometry > gridGeometry, LocationTag tag, const ScvfSelectionFunctor &select) | |
Constructs a new wall distance object. More... | |
template<class LocationTag > | |
WallDistance (std::shared_ptr< const GridGeometry > gridGeometry, LocationTag tag) | |
Constructs a new wall distance object. More... | |
template<class LocationTag , class ScvfSelectionFunctor > | |
WallDistance (const GridGeometry &gridGeometry, LocationTag tag, const ScvfSelectionFunctor &select) | |
caller has to make sure the lifetime of grid geometry exceeds the lifetime of wall distance More... | |
template<class LocationTag > | |
WallDistance (const GridGeometry &gridGeometry, LocationTag tag) | |
caller has to make sure the lifetime of grid geometry exceeds the lifetime of wall distance More... | |
const std::vector< Scalar > & | wallDistance () const |
Returns a vector storing the distance from each DOF location to the nearest wall. For the atElementCenter policy, this is the distance from the element center to the nearest wall. For the atVertexCenter policy, this is the distance from the vertex to the nearest wall. More... | |
const std::vector< WallData > & | wallData () const |
Returns a vector storing additional information about the nearest scvf on the wall (element index and scvf index). For the atElementCenter policy, this information is given for each element For the atVertexCenter policy, this information is given for each vertex. More... | |
Static Public Attributes | |
static constexpr auto | atElementCenters = Utility::Tag<ElementCenters>{} |
static constexpr auto | atVertexCenters = Utility::Tag<VertexCenters>{} |
using Dumux::WallDistance< GridGeometry, DistanceField >::WallData = WallDataImpl |
|
inline |
gridGeometry | the grid geometry of the grid |
tag | the policy (either WallDistance::atElementCenters or WallDistance::atVertexCenters) |
select | a selection functor taking an scvf and returning bool signifying whether the scvfs is part of the wall |
|
inline |
gridGeometry | the grid geometry of the grid |
tag | the policy (either WallDistance::atElementCenters or WallDistance::atVertexCenters) |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
|
staticconstexpr |