39 void Foam::wallDist::constructn()
const 51 patchDistMethod::patchTypes<vector>(
mesh(), patchIDs_)
60 label patchi = iter.key();
72 patchTypeName_(patchTypeName),
78 .subDict(patchTypeName_ &
"Dist"),
97 static_cast<const
fvSchemes&>(mesh).subDict(patchTypeName_ &
"Dist")
98 .lookupOrDefault<
Switch>(
"nRequired", false)
114 const word& patchTypeName
119 patchTypeName_(patchTypeName),
124 static_cast<const fvSchemes&>(mesh)
125 .subDict(patchTypeName_ &
"Dist"),
134 "y" & patchTypeName_,
140 patchDistMethod::patchTypes<scalar>(
mesh, patchIDs_)
144 static_cast<const fvSchemes&>(mesh).subDict(patchTypeName_ &
"Dist")
145 .lookupOrDefault<Switch>(
"nRequired",
false)
170 <<
"n requested but 'nRequired' not specified in the " 171 << (patchTypeName_ &
"Dist") <<
" dictionary" <<
nl 172 <<
" Recalculating y and n fields." <<
endl;
176 pdm_->correct(y_, n_());
185 if (pdm_->movePoints())
189 return pdm_->correct(y_, n_());
193 return pdm_->correct(y_);
205 pdm_->topoChange(map);
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static autoPtr< patchDistMethod > New(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs)
const volVectorField & n() const
Return reference to cached normal-to-wall field.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
wallDist(const fvMesh &mesh, const word &patchTypeName="wall")
Construct from mesh and optional patch type name.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
wordList patchTypes(nPatches)
virtual ~wallDist()
Destructor.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
GeometricBoundaryField< vector, fvPatchField, volMesh > Boundary
Type of the boundary field.
const dimensionSet dimless
const Time & time() const
Return the top-level database.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionSet dimLength
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool movePoints()
Update the y-field when the mesh moves.
defineTypeNameAndDebug(combustionModel, 0)
const fvMesh & mesh() const
virtual void topoChange(const polyTopoChangeMap &)
Update the y-field when the mesh changes.
PtrList< fvPatch > fvPatchList
container classes for fvPatch
#define WarningInFunction
Report a warning using Foam::Warning.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Selector class for finite volume differencing schemes. fvMesh is derived from fvSchemes so that all f...
Mesh data needed to do the Finite Volume discretisation.
Interface to run-time selectable methods to calculate the distance-to-wall and normal-to-wall fields...
Class containing mesh-to-mesh mapping information.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Specialisation of patchDist for wall distance calculation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.