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 =
70 trelaxedCorrection.
ref() += (scalar(1) -
relax)*oldCorrection;
72 oldCorrection = tcorrection;
74 return trelaxedCorrection;
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const word & name() const noexcept
Return the object name.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Registry of regIOobjects.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
Type & lookupObjectRef(const word &name, const bool recursive=false) const
A class for managing temporary objects.
A class for handling words, derived from Foam::string.