39 void Foam::wallDist::constructn()
const 46 patchDistMethod::patchTypes<vector>(
mesh(), patchIDs_)
51 volVectorField::Boundary& nbf = n_.ref().boundaryFieldRef();
55 label patchi = iter.key();
67 patchTypeName_(patchTypeName),
73 .subDict(patchTypeName_ &
"Dist"),
92 static_cast<const
fvSchemes&>(mesh).subDict(patchTypeName_ &
"Dist")
93 .lookupOrDefault<
Switch>(
"nRequired", false)
110 const word& patchTypeName
115 patchTypeName_(patchTypeName),
120 static_cast<const fvSchemes&>(mesh)
121 .subDict(patchTypeName_ &
"Dist"),
130 "y" & patchTypeName_,
136 patchDistMethod::patchTypes<scalar>(
mesh, patchIDs_)
140 static_cast<const fvSchemes&>(mesh).subDict(patchTypeName_ &
"Dist")
141 .lookupOrDefault<Switch>(
"nRequired",
false)
167 <<
"n requested but 'nRequired' not specified in the " 168 << (patchTypeName_ &
"Dist") <<
" dictionary" <<
nl 169 <<
" Recalculating y and n fields." <<
endl;
173 pdm_->correct(y_, n_.ref());
182 if (pdm_->movePoints())
186 return pdm_->correct(y_, n_.ref());
190 return pdm_->correct(y_);
202 pdm_->updateMesh(mpm);
intWM_LABEL_SIZE_t 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.
wallDist(const fvMesh &mesh, const word &patchTypeName="wall")
Construct from mesh and optional patch type name.
wordList patchTypes(nPatches)
virtual ~wallDist()
Destructor.
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< vector >> &)
Return a temporary field constructed from name,.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
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.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const Time & time() const
Return the top-level database.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
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...
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
A class for handling words, derived from string.
virtual void updateMesh(const mapPolyMesh &)
Update the y-field when the mesh changes.
virtual bool movePoints()
Update the y-field when the mesh moves.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
defineTypeNameAndDebug(combustionModel, 0)
static const GeometricField< vector, fvPatchField, volMesh > & null()
Return a null geometric field.
const fvMesh & mesh() const
PtrList< fvPatch > fvPatchList
container classes for fvPatch
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
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...
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.