40 namespace patchDistMethods
54 Foam::patchDistMethods::directionalMeshWave::directionalMeshWave
94 nbf[patchi] ==
patches[patchi].nf();
116 patchData.set(patchi, &nbf[patchi]);
122 patchDataWave<directionalWallPointData<vector>,
vector> wave
132 y.transfer(wave.distance());
134 n.transfer(wave.cellData());
141 scalarField& waveFld = wave.patchDistance()[patchi];
143 if (!isA<emptyFvPatchScalarField>(ybf[patchi]))
147 vectorField& wavePatchData = wave.patchData()[patchi];
149 nbf[patchi].
transfer(wavePatchData);
154 y.correctBoundaryConditions();
155 n.correctBoundaryConditions();
158 this->nUnset_ = wave.nUnset();
160 return this->nUnset_ > 0;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
const labelList patchIDs(pbm.indices(polyPatchNames, true))
virtual bool correct(volScalarField &y)
Correct the given distance-to-patch field.
Fast topological mesh-wave method for calculating the distance to nearest patch for all cells and bou...
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
addToRunTimeSelectionTable(patchDistMethod, advectionDiffusion, dictionary)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Type of boundary fields.
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
Macros for easy insertion into run-time selection tables.
const fvMesh & mesh_
Reference to the mesh.
#define forAll(list, i)
Loop across all elements in list.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void transfer(UPtrList< T > &list)
Transfer contents into this list and annul the argument.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Volume discretisation.
defineTypeNameAndDebug(advectionDiffusion, 0)
const polyBoundaryMesh & patches
const labelHashSet patchIDs_
Set of patch IDs.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)
static constexpr const zero Zero
Global zero (0)