dune-pdelab 2.9
Loading...
Searching...
No Matches
Dune::PDELab::DirichletConstraintsParameters Struct Reference

#include <dune/pdelab/constraints/common/constraintsparameters.hh>

Inheritance diagram for Dune::PDELab::DirichletConstraintsParameters:
Inheritance graph

Public Types

typedef LeafNodeTag NodeTag
 

Public Member Functions

template<typename I >
bool isDirichlet (const I &intersection, const FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename I >
bool isNeumann (const I &intersection, const FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename T >
void setTime (const T &time)
 

Static Public Member Functions

static constexpr auto degree ()
 

Static Public Attributes

static const bool isLeaf
 
static const bool isPower
 
static const bool isComposite
 
static const std::size_t CHILDREN
 

Detailed Description

Interface for the constraints parameters describing Dirichlet constraints.

Note
This class not only describes the required interface of the parameter class, but can also be used as a convenient standard implementation that will add Dirichlet constraints to all locations it is queried about.

Member Function Documentation

◆ isDirichlet()

template<typename I >
bool Dune::PDELab::DirichletConstraintsParameters::isDirichlet ( const I &  intersection,
const FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inline

Indicates whether the given position should be Dirichlet-constrained.

Parameters
intersectionThe grid intersection containing the queried location.
coordThe position of the queried location in local coordinates of the intersection.
Returns
true iff the given location should have a Dirichlet constraint.

◆ isNeumann()

template<typename I >
bool Dune::PDELab::DirichletConstraintsParameters::isNeumann ( const I &  intersection,
const FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inline

Indicates whether the given position should be Neumann-constrained.

Most of the time, this method will be equivalent to !isDirichlet(...), but sometimes (in particular in multi-domain scenarios), both methods may return false.

Parameters
intersectionThe grid intersection containing the queried location.
coordThe position of the queried location in local coordinates of the intersection.
Returns
true iff the given location should have a Neumann constraint.

◆ setTime()

template<typename T >
void Dune::PDELab::DirichletConstraintsParameters::setTime ( const T &  time)
inline

Sets the current time (only required for instationary problems).

Note
This method only needs to be implement for instationary problems.

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