38 namespace functionObjects
52 mesh_.boundary().size(),
58 if (isA<wallFvPatch>(mesh_.boundary()[
patchi]))
122 mesh_.time().timeName(),
132 const word divScheme(
"div(phi," + schemesField_ +
")");
135 scalar relaxCoeff = 0.0;
136 if (mesh_.relaxEquation(schemesField_))
138 relaxCoeff = mesh_.equationRelaxationFactor(schemesField_);
155 for (
label i = 0; i <= nCorr_; ++ i)
162 tEqn.
relax(relaxCoeff);
164 tEqn.
solve(schemesField_);
169 for (
label i = 0; i <= nCorr_; ++ i)
176 tEqn.
relax(relaxCoeff);
178 tEqn.
solve(schemesField_);
182 Info<<
"Min/max age:" <<
min(t).value() <<
' ' <<
max(t).value() <<
endl;
virtual bool execute()
Execute.
virtual bool read(const dictionary &)
Read the data.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
static const char *const typeName
age(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
wordList patchTypes(nPatches)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const dimensionSet & dimensions() const
Return dimensions.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
Calculate the matrix for the first temporal derivative.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
SolverPerformance< Type > solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
defineTypeNameAndDebug(Qdot, 0)
Calculate the matrix for the divergence of the given field and flux.
List< word > wordList
A List of words.
virtual ~age()
Destructor.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual bool write()
Write.
virtual Ostream & write(const token &)=0
Write next token to stream.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...