37 const word& defaultPatchFieldType,
38 const bool validBoundary
55 if (!isA<processorPolyPatch>(patch))
57 forAll(polyPatches, patchi)
61 if (isA<processorPolyPatch>(pp))
74 defaultPatchFieldType,
82 void Foam::fvMeshTools::setPatchFields
89 setPatchFields<volScalarField>(
mesh,
patchi, patchFieldDict);
90 setPatchFields<volVectorField>(
mesh,
patchi, patchFieldDict);
91 setPatchFields<volSphericalTensorField>(
mesh,
patchi, patchFieldDict);
92 setPatchFields<volSymmTensorField>(
mesh,
patchi, patchFieldDict);
93 setPatchFields<volTensorField>(
mesh,
patchi, patchFieldDict);
95 setPatchFields<surfaceScalarField>(
mesh,
patchi, patchFieldDict);
96 setPatchFields<surfaceVectorField>(
mesh,
patchi, patchFieldDict);
97 setPatchFields<surfaceSphericalTensorField>(
mesh,
patchi, patchFieldDict);
98 setPatchFields<surfaceSymmTensorField>(
mesh,
patchi, patchFieldDict);
99 setPatchFields<surfaceTensorField>(
mesh,
patchi, patchFieldDict);
101 if (mesh.foundObject<
pointMesh>(pointMesh::typeName))
104 setPatchFields<pointScalarField>(pm,
patchi, patchFieldDict);
105 setPatchFields<pointVectorField>(pm,
patchi, patchFieldDict);
106 setPatchFields<pointSphericalTensorField>(pm,
patchi, patchFieldDict);
107 setPatchFields<pointSymmTensorField>(pm,
patchi, patchFieldDict);
108 setPatchFields<pointTensorField>(pm,
patchi, patchFieldDict);
127 if (mesh.foundObject<
pointMesh>(pointMesh::typeName))
130 setPatchFields<pointScalarField>(pm,
patchi,
Zero);
131 setPatchFields<pointVectorField>(pm,
patchi,
Zero);
132 setPatchFields<pointSphericalTensorField>(pm,
patchi,
Zero);
133 setPatchFields<pointSymmTensorField>(pm,
patchi,
Zero);
134 setPatchFields<pointTensorField>(pm,
patchi,
Zero);
143 const label nNewPatches,
144 const bool validBoundary
153 label newi = oldToNew[i];
155 if (newi >= 0 && newi < nNewPatches)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
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.
label findPatchID(const word &patchName) const
Find patch index given a name.
static const pointMesh & New(const polyMesh &mesh)
Mesh representing a set of points created from polyMesh.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
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.