Dirichlet.h

template<typename Lab>
class Cubism::BC::Dirichlet : public Cubism::BC::Base<Lab>

Dirichlet BC.

Constant value Dirichlet boundary condition

Template Parameters
  • Lab: Type of FieldLab

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 boundary

  • side: On which side along direction dir

  • 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 to DataType