Go to the documentation of this file.
73 patchTypeName_(patchTypeName),
79 .subDict(patchTypeName_ &
"Dist"),
98 static_cast<const
fvSchemes&>(
mesh).subDict(patchTypeName_ &
"Dist")
99 .lookupOrDefault<
Switch>(
"nRequired", false)
116 const word& patchTypeName
121 patchTypeName_(patchTypeName),
127 .subDict(patchTypeName_ &
"Dist"),
136 "y" & patchTypeName_,
142 patchDistMethod::patchTypes<scalar>(
mesh, patchIDs_)
146 static_cast<const fvSchemes&
>(
mesh).subDict(patchTypeName_ &
"Dist")
147 .lookupOrDefault<Switch>(
"nRequired",
false)
173 <<
"n requested but 'nRequired' not specified in the "
174 << (patchTypeName_ &
"Dist") <<
" dictionary" <<
nl
175 <<
" Recalculating y and n fields." <<
endl;
179 pdm_->correct(y_, n_());
188 if (pdm_->movePoints())
192 return pdm_->correct(y_, n_());
196 return pdm_->correct(y_);
208 pdm_->updateMesh(mpm);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual void updateMesh(const mapPolyMesh &)
Update the y-field when the mesh changes.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
A class for managing temporary objects.
Selector class for finite volume differencing schemes. fvMesh is derived from fvShemes so that all fi...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Time & time() const
Return time.
static autoPtr< patchDistMethod > New(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs)
wordList patchTypes(nPatches)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Interface to run-time selectable methods to calculate the distance-to-wall and normal-to-wall fields.
const fvMesh & mesh() const
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual bool movePoints()
Update the y-field when the mesh moves.
const volVectorField & n() const
Return reference to cached normal-to-wall field.
Specialisation of patchDist for wall distance calculation.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
void constructn() const
Construct the normal-to-wall field as required.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
tmp< volVectorField > n_
Normal-to-wall field.
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const Time & time() const
Return the top-level database.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
wallDist(const wallDist &)
Disallow default bitwise copy construct.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
const word patchTypeName_
Name for the patch set, e.g. "wall".
const labelHashSet patchIDs_
Set of patch IDs.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
bool nRequired_
Flag to indicate if the distance-to-wall field is required.
virtual ~wallDist()
Destructor.