47Foam::betaMaxStepRamp::betaMaxStepRamp
54 betaMin_(
dict.getOrDefault<scalar>(
"betaMin",
Zero)),
58 (Function1<scalar>::New(
"betaMaxStepRamp",
dict,
"stepRamp"));
61 <<
"betaMaxStepRamp:: creating interpolation function of type "
70 const scalar t = mesh_.time().timeOutputValue();
71 const scalar value = betaMin_ + (value_ - betaMin_)*funcPtr_().value(t);
73 <<
"stepRamp betaMax:: t, betaMax value "
74 << t <<
", " << value <<
endl;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Computes the betaMax using a stepRamp function which updates itself based on the current time.
virtual scalar value() const
Get value.
autoPtr< Function1< scalar > > funcPtr_
The step ramp function.
scalar betaMin_
Minimum betaMax value (to be used at the first opt cycles).
Base class for selecting the betaMax value, i.e. the value multiplying the Brinkman penalisation term...
const fvMesh & mesh_
Reference to mesh.
scalar value_
betaMax value
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define DebugInfo
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0).