37#ifndef Foam_parFaFieldDistributorCache_H
38#define Foam_parFaFieldDistributorCache_H
55class parFaFieldDistributorCache
60 #define declareField(Type) \
61 PtrList<GeometricField<Type, faPatchField, areaMesh>> Type##AreaFields_; \
62 PtrList<GeometricField<Type, faePatchField, edgeMesh>> Type##EdgeFields_;
75 template<
class BoolListType>
78 const Time& baseRunTime,
79 const fileName& proc0CaseName,
82 const BoolListType& areaMeshOnProc,
83 refPtr<fileOperation>& readHandler,
84 const fileName& areaMeshInstance,
89 template<
class GeoField>
90 static void redistributeAndWrite
92 const faMeshDistributor& distributor,
94 const bool isWriteProc
117 const Time& baseRunTime,
120 const bool decompose,
131 const Time& baseRunTime,
134 const bool decompose,
142 void redistributeAndWrite
145 const bool isWriteProc
Forwards and collection of common area field types.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
A class for handling file names.
void operator=(const parFaFieldDistributorCache &)=delete
No copy assignment.
parFaFieldDistributorCache(const parFaFieldDistributorCache &)=delete
No copy construct.
parFaFieldDistributorCache()=default
Default construct.
void read(const Time &baseRunTime, const fileName &proc0CaseName, const bool decompose, const bitSet &areaMeshOnProc, refPtr< fileOperation > &readHandler, const fileName &areaMeshInstance, faMesh &mesh)
Read distributed fields.
void read(const Time &baseRunTime, const fileName &proc0CaseName, const bool decompose, const boolUList &areaMeshOnProc, refPtr< fileOperation > &readHandler, const fileName &areaMeshInstance, faMesh &mesh)
Read distributed fields.
void redistributeAndWrite(const faMeshDistributor &distributor, const bool isWriteProc)
A class for managing references or pointers (no reference counting).
Tensor of scalars, i.e. Tensor<scalar>.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Forwards for edge field types.
UList< bool > boolUList
A UList of bools.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
#define declareField(Type)
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields