41 class fvFieldDecomposer::fieldsCache::privateCache
46 #define declareField(Type) \ 47 PtrList<DimensionedField<Type, volMesh>> Type##DimFields_; \ 48 PtrList<GeometricField<Type, fvPatchField, volMesh>> Type##VolFields_; \ 49 PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>> Type##SurfFields_; 63 #define doLocalCode(Type) \ 65 count += Type##DimFields_.size(); \ 66 count += Type##VolFields_.size(); \ 67 count += Type##SurfFields_.size(); \ 85 #define doLocalCode(Type) \ 87 fieldsDistributor::readFields \ 93 fieldsDistributor::readFields \ 100 fieldsDistributor::readFields \ 118 template<
class GeoField>
147 #define doLocalCode(Flavour) \ 149 decompose(decomposer, scalar##Flavour##Fields_, report); \ 150 decompose(decomposer, vector##Flavour##Fields_, report); \ 151 decompose(decomposer, sphericalTensor##Flavour##Fields_, report); \ 152 decompose(decomposer, symmTensor##Flavour##Fields_, report); \ 153 decompose(decomposer, tensor##Flavour##Fields_, report); \ 186 return (!cache_ || cache_->empty());
192 return (cache_ ? cache_->size() : label(0));
210 cache_->readAll(
mesh, objects);
223 cache_->decomposeAll(decomposer, report);
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.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
bool empty() const
No fields.
static void decompose(const fvFieldDecomposer &decomposer, const PtrList< GeoField > &fields, bool report)
label size() const
Total number of fields.
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
A traits class, which is primarily used for primitives and vector-space.
Functions to operate on Pointer Lists.
void decomposeAllFields(const fvFieldDecomposer &decomposer, bool report=false) const
Decompose and write all fields.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
#define doLocalCode(Type)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
void readAllFields(const fvMesh &mesh, const IOobjectList &objects)
Read all fields given mesh and objects.
void decomposeAll(const fvFieldDecomposer &decomposer, bool report) const
fieldsCache()
Default construct.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Finite Volume volume and surface field decomposer.
label size() const noexcept
#define declareField(Type)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Volume discretisation.
~fieldsCache()
Destructor.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void decomposeFields(const PtrList< GeoField > &fields) const
Decompose list of fields.
void readAll(const fvMesh &mesh, const IOobjectList &objects)
Tensor of scalars, i.e. Tensor<scalar>.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.