EssentialBC

class EssentialBC : public godzilla::BoundaryCondition

Essential boundary condition.

Subclassed by godzilla::DirichletBC

Public Functions

virtual void create() override

Called to construct the object.

virtual void set_up() override

Set up this boundary condition.

Int get_field_id() const

Get the ID of the field this boundary condition operates on.

Returns:

ID of the field

virtual const std::vector<Int> &get_components() const = 0

Get the component numbers this boundary condition is constraining.

Returns:

Vector of component numbers

virtual void evaluate(Real time, const Real x[], Scalar u[]) = 0

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[]) = 0

Evaluate time derivative of the boundary condition.

Parameters:
  • time – The time at which to sample

  • x – The coordinates

  • u – The output field values