38 const word& defaultPatchFieldType,
39 const bool validBoundary
56 if (!isA<processorPolyPatch>(patch))
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);
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);
116 setPatchFields<volScalarField>(mesh,
patchi,
Zero);
117 setPatchFields<volVectorField>(mesh,
patchi,
Zero);
118 setPatchFields<volSphericalTensorField>(mesh,
patchi,
Zero);
119 setPatchFields<volSymmTensorField>(mesh,
patchi,
Zero);
120 setPatchFields<volTensorField>(mesh,
patchi,
Zero);
122 setPatchFields<surfaceScalarField>(mesh,
patchi,
Zero);
123 setPatchFields<surfaceVectorField>(mesh,
patchi,
Zero);
124 setPatchFields<surfaceSphericalTensorField>(mesh,
patchi,
Zero);
125 setPatchFields<surfaceSymmTensorField>(mesh,
patchi,
Zero);
126 setPatchFields<surfaceTensorField>(mesh,
patchi,
Zero);
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)
#define forAll(list, i)
Loop across all elements in list.
static pointMesh & New(const polyMesh &mesh)
label size() const
Return the number of elements in the UPtrList.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
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.
bool foundObject(const word &name) const
Is the named Type in registry.
const word & name() const
Return name.
Mesh representing a set of points created from polyMesh.
label findPatchID(const word &patchName) const
Find patch index given a name.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.