42void Foam::wallDist::constructn()
const
56 patchDistMethod::patchTypes<vector>(
mesh(), patchIDs_)
64 for (
const label patchi : patchIDs_)
66 nbf[patchi] ==
patches[patchi].nf();
77 const word& patchTypeName
87 const word& defaultPatchDistMethod,
89 const word& patchTypeName
94 patchTypeName_(patchTypeName),
99 patchTypeName_ &
"Dist"
109 defaultPatchDistMethod
116 "y" & patchTypeName_,
125 updateInterval_(dict_.getOrDefault<label>(
"updateInterval", 1)),
126 nRequired_(dict_.getOrDefault(
"nRequired", false)),
162 <<
"n requested but 'nRequired' not specified in the "
163 << (patchTypeName_ &
"Dist") <<
" dictionary" <<
nl
164 <<
" Recalculating y and n fields." <<
endl;
168 pdm_->correct(y_, n_.ref());
179 (updateInterval_ != 0)
180 && ((mesh_.time().timeIndex() % updateInterval_) == 0)
183 requireUpdate_ =
true;
186 if (requireUpdate_ && pdm_->movePoints())
190 requireUpdate_ =
false;
194 return pdm_->correct(y_, n_.ref());
198 return pdm_->correct(y_);
208 pdm_->updateMesh(mpm);
214 requireUpdate_ =
true;
GeometricBoundaryField< vector, fvPatchField, volMesh > Boundary
Type of boundary fields.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
const fvMesh & mesh() const
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Selector class for finite volume differencing schemes. fvMesh is derived from fvSchemes so that all f...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void updateMesh()
Update for new mesh topology.
Specialisation of patchDist for wall distance calculation.
Interface to run-time selectable methods to calculate the distance-to-wall and normal-to-wall fields.
virtual bool movePoints()
Update the y-field when the mesh moves.
virtual ~wallDist()
Destructor.
const volVectorField & n() const
Return reference to cached normal-to-wall field.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const polyBoundaryMesh & patches
#define DebugInfo
Report an information message using Foam::Info.
#define WarningInFunction
Report a warning using Foam::Warning.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionSet dimless
Dimensionless.
PtrList< fvPatch > fvPatchList
Store lists of fvPatch as a PtrList.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
bool isNull(const T *ptr)
True if ptr is a pointer (of type T) to the nullObject.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
constexpr char nl
The newline '\n' character (0x0a)
wordList patchTypes(nPatches)