ConstantInitialCondition

Parameters

  • Required:
    • app (godzilla::App*) - Application we are part of

    • value ([Real, …]) - Constant values for each field component

  • Optional:
    • field (String) - Field name

    • name (String) - Name of the object

class ConstantInitialCondition : public godzilla::InitialCondition

Constant initial condition.

Use to set the initial condition of a field to constant values Note that if the field has multiple components, you can provide a single value for each component

Public Functions

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

Evaluate the initial condition.

Parameters:
  • time – The time at which to sample

  • x – The coordinates

  • u – The output field values