39 void Foam::wallDist::constructn()
const
51 patchDistMethod::patchTypes<vector>(
mesh(), patchIndices_)
72 patchTypeName_(patchTypeName),
77 mesh.schemes().subDict(patchTypeName_ &
"Dist"),
98 .subDict(patchTypeName_ &
"Dist")
99 .lookupOrDefault<
Switch>(
"nRequired", false)
105 pdm_->correct(y_, n_());
118 const word& patchTypeName
122 patchIndices_(patchIDs),
123 patchTypeName_(patchTypeName),
128 mesh.schemes().subDict(patchTypeName_ &
"Dist"),
137 "y" & patchTypeName_,
149 .subDict(patchTypeName_ &
"Dist")
150 .lookupOrDefault<
Switch>(
"nRequired", false)
156 pdm_->correct(y_, n_());
178 <<
"n requested but 'nRequired' not specified in the "
179 << (patchTypeName_ &
"Dist") <<
" dictionary" <<
nl
180 <<
" Recalculating y and n fields." <<
endl;
184 pdm_->correct(y_, n_());
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
const fvMesh & mesh() const
Generic GeometricField class.
GeometricBoundaryField< Type, GeoMesh, PrimitiveField > Boundary
Type of the boundary field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const Time & time() const
Return time.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
const word & name() const
Return name.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Specialisation of patchDist for wall distance calculation.
Interface to run-time selectable methods to calculate the distance-to-wall and normal-to-wall fields.
wallDist(const fvMesh &mesh, const word &patchTypeName="wall")
Construct from mesh and optional patch type name.
virtual ~wallDist()
Destructor.
const volVectorField & n() const
Return reference to cached normal-to-wall field.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const fvPatchList & patches
#define WarningInFunction
Report a warning using Foam::Warning.
VolField< vector > volVectorField
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList findIndices(const ListType &, typename ListType::const_reference, const label start=0)
Find all occurrences of given element. Linear search.
const dimensionSet dimless
const dimensionSet dimLength
PtrList< fvPatch > fvPatchList
container classes for fvPatch
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
wordList patchTypes(nPatches)