Go to the documentation of this file.
41 namespace patchDistMethods
50 Foam::patchDistMethods::meshWave::meshWave
58 correctWalls_(
dict.lookupOrDefault(
"correctWalls",
true)),
63 Foam::patchDistMethods::meshWave::meshWave
67 const bool correctWalls
71 correctWalls_(correctWalls),
89 volScalarField::Boundary& ybf =
y.boundaryFieldRef();
93 if (!isA<emptyFvPatchScalarField>(ybf[patchi]))
97 ybf[patchi].transfer(waveFld);
119 volVectorField::Boundary& nbf =
n.boundaryFieldRef();
123 patchData.set(patchi, &nbf[patchi]);
141 volScalarField::Boundary& ybf =
y.boundaryFieldRef();
147 if (!isA<emptyFvPatchScalarField>(ybf[patchi]))
149 ybf[patchi].transfer(waveFld);
153 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.
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.
const FieldField< Field, scalar > & patchDistance() const