NaturalRiemannBC
-
class NaturalRiemannBC : public godzilla::BoundaryCondition
Base class for natural Riemann boundary conditions.
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 *c, const Real *n, const Scalar *xI, Scalar *xG) = 0
Evaluate the boundary condition.
- Parameters:
time – The time at which to sample
c – Centroid
n – Normal vector
xI – State at the interior cell
xG – State at the ghost cell (computed)
-
virtual void create() override