Symmetry.h¶
-
template<typename
Lab>
classCubism::BC::Symmetry: public Cubism::BC::Base<Lab>¶ Symmetry BC (reflecting)
Symmetry/reflecting boundary condition
- Template Parameters
Lab: Type ofFieldLab
Public Functions
-
inline
Symmetry(const size_t dir, const size_t side, const DataType sign = 1)¶ Main constructor.
The
signparameter can be used to flip the sign of the boundary value for example the momentum vector.- Parameters
dir: Direction in which to apply the boundaryside: On which side along directiondirsign: Determines the sign of the value computed in the ghosts
-
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