50 const word& sourceName,
51 const word& modelType,
57 fieldName_(
dict.get<
word>(
"fieldName")),
58 tableName_(
dict.get<
word>(
"tableName")),
71 zeroGradientFaPatchScalarField::typeName
75 new PatchFunction1Types::MappedFile<scalar>
103 const scalar t =
mesh().time().value();
105 if (isActive() && t > timeStart() && t < (timeStart() + duration()))
111 pExt_.field() = value_->value(t);
112 eqn += pExt_/solidMass;
113 curTimeIndex_ =
mesh().time().timeIndex();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void resize(const label len)
Adjust allocated size of list.
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A special matrix type and solver, designed for finite area solutions of scalar equations....
const GeometricField< Type, faPatchField, areaMesh > & psi() const
Applies sources on a specified field within a specified region by using an external table file for co...
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual void addSup(const areaScalarField &rho, faMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible momentum equation.
Intermediate abstract class for handling face-set options for the derived faOptions.
Base abstract class for handling finite area options (i.e. faOption).
wordList fieldNames_
Field names to apply source to - populated by derived models.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace of functions to calculate implicit derivatives returning a matrix. Time derivatives are cal...
#define DebugInfo
Report an information message using Foam::Info.
const dimensionSet dimPressure
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.