Dirichlet.h¶
-
template<typename
Lab
>
classCubism::BC
::
Dirichlet
: public Cubism::BC::Base<Lab>¶ Dirichlet BC.
Constant value Dirichlet boundary condition
- Template Parameters
Lab
: Type ofFieldLab
Public Functions
-
inline
Dirichlet
(const size_t dir, const size_t side, const DataType &val)¶ Main constructor.
- Parameters
dir
: Direction in which to apply the boundaryside
: On which side along directiondir
val
: Boundary value
-
inline virtual void
operator()
(Lab &lab) override¶ Apply boundary condition.
- Parameters
lab
: Lab on which the boundary is applied
-
inline virtual std::string
name
() const override¶ Name of boundary condition.
- Return
Name string
-
inline DataType &
getValue
()¶ Get boundary value.
- Return
Reference to
DataType
-
inline const DataType &
getValue
() const¶ Get boundary value.
- Return
const
reference toDataType