36namespace functionObjects
46bool Foam::functionObjects::pow::calc()
55 if (!checkDimensions_)
67 if (!checkDimensions_)
89 checkDimensions_(true),
104 checkDimensions_ =
dict.getOrDefault<
Switch>(
"checkDimensions",
true);
105 n_ =
dict.get<scalar>(
"n");
106 scale_ =
dict.getOrDefault<scalar>(
"scale", 1.0);
107 offset_ =
dict.getOrDefault<scalar>(
"offset", 0.0);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual bool read()
Re-read model coefficients if they have changed.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static bool checking() noexcept
True if dimension checking is enabled (the usual default)
Abstract base-class for Time/database function objects.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
word resultName_
Name of result field.
word fieldName_
Name of field to process.
Computes the power of an input volScalarField.
virtual bool read(const dictionary &)
Read the randomise data.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.