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;
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.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
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.