34 template<
class FieldType>
35 int Foam::functionObjects::ddt2::apply(
const word& inputName,
int& state)
40 if (state || !foundObject<FieldType>(inputName))
45 const FieldType&
input = lookupObject<FieldType>(inputName);
54 const dimensionSet dims =
bool set(const Key &key)
Same as insert (no value to overwrite)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
const word & name() const noexcept
Return the name of this functionObject.
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Calculate the first temporal derivative.
word outputName("finiteArea-edges.obj")
static Istream & input(Istream &is, IntRange< T > &range)
virtual const word & type() const =0
Runtime type information.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Type gAverage(const FieldField< Field, Type > &f)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
static Ostream & output(Ostream &os, const IntRange< T > &range)
Request registration (bool: true)
const fvMesh & mesh_
Reference to the fvMesh.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)
const Time & time_
Reference to the time database.