49 const word oldFieldName(fieldName +
"_0");
51 vf.
mesh().fieldRelaxationFactor(
"snGrad("+fieldName+
")");
58 SurfFieldType* oldCorrection =
59 new SurfFieldType(oldFieldName, tcorrection());
60 oldCorrection->store();
66 SurfFieldType& oldCorrection =
69 trelaxedCorrection.ref() *=
relax;
70 trelaxedCorrection.ref() += (scalar(1) -
relax)*oldCorrection;
72 oldCorrection = tcorrection;
74 return trelaxedCorrection;
Type & lookupObjectRef(const word &name, const bool recursive=false) const
Lookup and return non-const reference to the object of the given Type. Fatal if not found or the wron...
const word & name() const noexcept
Return the object name.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Generic GeometricField class.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the relaxedSnGrad for the given field using the gradients of the fi...
A class for handling words, derived from Foam::string.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
const Mesh & mesh() const noexcept
Return mesh.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
A class for managing temporary objects.
Registry of regIOobjects.