41 class faFieldDecomposer::fieldsCache::privateCache
46 #define declareField(Type) \ 47 PtrList<GeometricField<Type, faPatchField, areaMesh>> Type##AreaFields_; \ 48 PtrList<GeometricField<Type, faePatchField, edgeMesh>> Type##EdgeFields_; 62 #define doLocalCode(Type) \ 64 count += Type##AreaFields_.size(); \ 65 count += Type##EdgeFields_.size(); \ 87 #define doLocalCode(Type) \ 89 fieldsDistributor::readFields \ 95 fieldsDistributor::readFields \ 102 fieldsDistributor::readFields \ 120 template<
class BoolListType>
123 const BoolListType& haveMeshOnProc,
130 #define doLocalCode(Type) \ 132 fieldsDistributor::readFields \ 140 fieldsDistributor::readFields \ 159 template<
class GeoField>
184 #define doLocalCode(Flavour) \ 186 decompose(decomposer, scalar##Flavour##Fields_, report); \ 187 decompose(decomposer, vector##Flavour##Fields_, report); \ 188 decompose(decomposer, sphericalTensor##Flavour##Fields_, report); \ 189 decompose(decomposer, symmTensor##Flavour##Fields_, report); \ 190 decompose(decomposer, tensor##Flavour##Fields_, report); \ 222 return (!cache_ || cache_->empty());
228 return (cache_ ? cache_->size() : label(0));
246 cache_->readAll(
mesh, objects);
253 const bitSet& haveMeshOnProc,
261 cache_->readAll(haveMeshOnProc, subsetter,
mesh, objects);
276 cache_->readAll(haveMeshOnProc, subsetter,
mesh, objects);
289 cache_->decomposeAll(decomposer, report);
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
bool empty() const noexcept
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
#define doLocalCode(Type)
Finite Area area and edge field decomposer.
void readAll(const faMesh &mesh, const IOobjectList &objects)
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
#define declareField(Type)
void readAllFields(const faMesh &mesh, const IOobjectList &objects)
Read all fields given mesh and objects.
constexpr char nl
The newline '\n' character (0x0a)
A traits class, which is primarily used for primitives.
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
Functions to operate on Pointer Lists.
void decomposeFields(const PtrList< GeoField > &fields) const
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
fieldsCache()
Default construct.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static void decompose(const faFieldDecomposer &decomposer, const PtrList< GeoField > &fields, bool report)
bool empty() const
No fields.
label size() const noexcept
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
messageStream Info
Information stream (stdout output on master, null elsewhere)
~fieldsCache()
Destructor.
void decomposeAll(const faFieldDecomposer &decomposer, bool report) const
Tensor of scalars, i.e. Tensor<scalar>.
label size() const
Number of fields.
void decomposeAllFields(const faFieldDecomposer &decomposer, bool report=false) const
Decompose and write all fields.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.