39 template<
class Type,
template<
class>
class GeoField>
40 void Foam::fvMeshStitcher::resizePatchFields()
42 UPtrList<GeoField<Type>>
fields(mesh_.
fields<GeoField<Type>>());
48 typename GeoField<Type>::Patch& pf =
51 if (isA<nonConformalFvPatch>(pf.patch()))
53 pf.map(pf, setSizeFieldMapper(pf.patch().size()));
60 template<
template<
class>
class GeoField>
61 void Foam::fvMeshStitcher::resizePatchFields()
63 #define ResizePatchFields(Type, nullArg) \
64 resizePatchFields<Type, GeoField>();
66 #undef ResizePatchFields
71 void Foam::fvMeshStitcher::preConformSurfaceFields()
73 UPtrList<SurfaceField<Type>>
fields(mesh_.fields<SurfaceField<Type>>());
79 fields[i].boundaryFieldRefNoStoreOldTimes()
86 void Foam::fvMeshStitcher::preConformVolFields()
88 UPtrList<VolField<Type>>
fields(mesh_.fields<VolField<Type>>());
94 fields[i].boundaryFieldRefNoStoreOldTimes()
101 void Foam::fvMeshStitcher::postUnconformSurfaceFields()
103 if (mesh_.topoChanged())
105 UPtrList<SurfaceField<Type>> curFields
107 mesh_.curFields<SurfaceField<Type>>()
112 curFields[i].clearOldTimes();
116 UPtrList<SurfaceField<Type>>
fields(mesh_.fields<SurfaceField<Type>>());
122 fields[i].boundaryFieldRefNoStoreOldTimes()
129 void Foam::fvMeshStitcher::postUnconformVolFields()
131 UPtrList<VolField<Type>>
fields(mesh_.fields<VolField<Type>>());
137 fields[i].boundaryFieldRefNoStoreOldTimes()
144 void Foam::fvMeshStitcher::postUnconformEvaluateVolFields()
150 isA<nonConformalFvPatch>(pf.patch())
151 && pf.type() == pf.patch().patch().type()
154 || isA<nonConformalErrorFvPatch>(pf.patch());
157 UPtrList<VolField<Type>>
fields(mesh_.fields<VolField<Type>>());
#define forAll(list, i)
Loop across all elements in list.
GeoMesh::template PatchField< Type > Patch
Type of the patch field of which the Boundary is composed.
static label nRequests()
Get number of outstanding requests.
static void waitRequests(const label start=0)
Wait until all requests (from start onwards) have finished.
static bool & parRun()
Is this a parallel run?
static commsTypes defaultCommsType
Default commsType.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
UPtrList< GeoField > fields(bool strict=false, const HashSet< word > &geometryFields=fvMesh::geometryFields) const
Return the list of fields of type GeoField.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
#define ResizePatchFields(Type, nullArg)
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)