Go to the documentation of this file.
39 namespace patchDistMethods
56 correctWalls_(
dict.lookupOrDefault<
Switch>(
"correctWalls",
true)),
65 const bool correctWalls
69 correctWalls_(correctWalls),
87 forAll(
y.boundaryField(), patchI)
89 if (!isA<emptyFvPatchScalarField>(
y.boundaryField()[patchI]))
93 y.boundaryField()[patchI].transfer(waveFld);
115 forAll(
n.boundaryField(), patchI)
117 patchData.
set(patchI, &
n.boundaryField()[patchI]);
135 forAll(
y.boundaryField(), patchI)
139 if (!isA<emptyFvPatchScalarField>(
y.boundaryField()[patchI]))
141 y.boundaryField()[patchI].transfer(waveFld);
145 n.boundaryField()[patchI].transfer(wavePatchData);
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
Takes a set of patches to start MeshWave from.
defineTypeNameAndDebug(advectionDiffusion, 0)
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...
Pre-declare SubField and related Field type.
const scalarField & distance() const
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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 any number of values (e....
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
bool set(const label) const
Is element set.
const scalarField & distance() const
virtual bool correct(volScalarField &y)
Correct the given distance-to-patch field.
label nUnset_
Number of unset cells and faces.
Generic GeometricField class.
const FieldField< Field, scalar > & patchDistance() const
meshWave(const meshWave &)
Disallow default bitwise copy construct.