38 const word& defaultPatchFieldType,
39 const bool validBoundary
56 if (!isA<processorPolyPatch>(patch))
58 forAll(polyPatches, patchi)
62 if (isA<processorPolyPatch>(pp))
75 defaultPatchFieldType,
83 void Foam::fvMeshTools::setPatchFields
90 setPatchFields<volScalarField>(
mesh,
patchi, patchFieldDict);
91 setPatchFields<volVectorField>(
mesh,
patchi, patchFieldDict);
92 setPatchFields<volSphericalTensorField>(
mesh,
patchi, patchFieldDict);
93 setPatchFields<volSymmTensorField>(
mesh,
patchi, patchFieldDict);
94 setPatchFields<volTensorField>(
mesh,
patchi, patchFieldDict);
96 setPatchFields<surfaceScalarField>(
mesh,
patchi, patchFieldDict);
97 setPatchFields<surfaceVectorField>(
mesh,
patchi, patchFieldDict);
98 setPatchFields<surfaceSphericalTensorField>(
mesh,
patchi, patchFieldDict);
99 setPatchFields<surfaceSymmTensorField>(
mesh,
patchi, patchFieldDict);
100 setPatchFields<surfaceTensorField>(
mesh,
patchi, patchFieldDict);
102 if (mesh.foundObject<
pointMesh>(pointMesh::typeName))
105 setPatchFields<pointScalarField>(pm,
patchi, patchFieldDict);
106 setPatchFields<pointVectorField>(pm,
patchi, patchFieldDict);
107 setPatchFields<pointSphericalTensorField>(pm,
patchi, patchFieldDict);
108 setPatchFields<pointSymmTensorField>(pm,
patchi, patchFieldDict);
109 setPatchFields<pointTensorField>(pm,
patchi, patchFieldDict);
128 if (mesh.foundObject<
pointMesh>(pointMesh::typeName))
131 setPatchFields<pointScalarField>(pm,
patchi,
Zero);
132 setPatchFields<pointVectorField>(pm,
patchi,
Zero);
133 setPatchFields<pointSphericalTensorField>(pm,
patchi,
Zero);
134 setPatchFields<pointSymmTensorField>(pm,
patchi,
Zero);
135 setPatchFields<pointTensorField>(pm,
patchi,
Zero);
144 const label nNewPatches,
145 const bool validBoundary
154 label newi = oldToNew[i];
156 if (newi >= 0 && newi < nNewPatches)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void addPatch(const label insertPatchi, const polyPatch &patch, const dictionary &patchFieldDict, const word &defaultPatchFieldType, const bool validBoundary)
Add/insert single patch. If validBoundary the new situation.
virtual void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reorder and trim existing patches. If validBoundary the new.
Holds information (coordinate and normal) regarding nearest wall point.
label findPatchID(const word &patchName) const
Find patch index given a name.
Mesh representing a set of points created from polyMesh.
A class for handling words, derived from string.
static pointMesh & New(polyMesh &mesh)
label size() const
Return the number of elements in the UPtrList.
Mesh data needed to do the Finite Volume discretisation.
A patch is a list of labels that address the faces in the global face list.