Go to the documentation of this file.
42 namespace patchDistMethods
51 Foam::patchDistMethods::meshWave::meshWave
59 correctWalls_(
dict.getOrDefault(
"correctWalls",
true)),
64 Foam::patchDistMethods::meshWave::meshWave
68 const bool correctWalls
72 correctWalls_(correctWalls),
90 volScalarField::Boundary& ybf =
y.boundaryFieldRef();
94 if (!isA<emptyFvPatchScalarField>(ybf[patchi]))
98 ybf[patchi].transfer(waveFld);
120 volVectorField::Boundary& nbf =
n.boundaryFieldRef();
124 patchData.set(patchi, &nbf[patchi]);
142 volScalarField::Boundary& ybf =
y.boundaryFieldRef();
148 if (!isA<emptyFvPatchScalarField>(ybf[patchi]))
150 ybf[patchi].transfer(waveFld);
154 nbf[patchi].
transfer(wavePatchData);
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Takes a set of patches to start MeshWave from.
defineTypeNameAndDebug(advectionDiffusion, 0)
#define forAll(list, i)
Loop across all elements in list.
void transfer(UPtrList< T > &list)
Transfer contents into this list and annul the argument.
const bool correctWalls_
Do accurate distance calculation for near-wall cells.
Takes a set of patches to start MeshWave from. After construction holds distance at cells and distanc...
const scalarField & distance() const
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const Field< Type > & cellData() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Specialisation of patchDist for wall distance calculation.
const fvMesh & mesh_
Reference to the mesh.
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
const FieldField< Field, scalar > & patchDistance() const
const labelHashSet patchIDs_
Set of patch IDs.
addToRunTimeSelectionTable(patchDistMethod, advectionDiffusion, dictionary)
const FieldField< Field, Type > & patchData() const
const scalarField & distance() const
virtual bool correct(volScalarField &y)
Correct the given distance-to-patch field.
label nUnset_
Number of unset cells and faces.
const FieldField< Field, scalar > & patchDistance() const