DirichletBC
-
class DirichletBC : public godzilla::EssentialBC, protected godzilla::FunctionInterface
Dirichlet boundary condition.
Can be used only on single-field problems
Public Functions
-
virtual void create() override
Called to construct the object.
-
virtual void set_up() override
Set up this boundary condition.
-
virtual const std::vector<Int> &get_components() const override
Get the component numbers this boundary condition is constraining.
- Returns:
Vector of component numbers
-
virtual void evaluate(Real time, const Real x[], Scalar u[]) override
Evaluate the boundary condition.
- Parameters:
time – The time at which to sample
x – The coordinates
u – The output field values
-
virtual void evaluate_t(Real time, const Real x[], Scalar u[]) override
Evaluate time derivative of the boundary condition.
- Parameters:
time – The time at which to sample
x – The coordinates
u – The output field values
-
virtual void create() override