32 template<
class Type,
template<
class>
class IOContainer>
34 Foam::lagrangianFieldDecomposer::decomposeField
36 const IOobject& fieldIoObject
40 const IOContainer<Type> field(fieldIoObject);
43 PtrList<IOContainer<Type>> procFields(procMeshes_.size());
54 procMeshes_[proci].time().name(),
61 Field<Type>(field, particleProcAddressing_[proci])
73 template<
class>
class IOContainer,
74 template<
class>
class IOContainerType
76 void Foam::lagrangianFieldDecomposer::decomposeFields
81 const word& fieldClassName = IOContainerType<Type>::typeName;
87 Info<<
nl <<
" Decomposing " << fieldClassName <<
"s" <<
nl <<
endl;
91 Info<<
" " << fieldIter()->name() <<
endl;
93 PtrList<IOContainer<Type>> procFields =
94 decomposeField<Type, IOContainer>(*fieldIter());
98 procFields[proci].write();
108 void Foam::lagrangianFieldDecomposer::decomposeFields
113 decomposeFields<Type, IOField, IOField>(
objects);
114 decomposeFields<Field<Type>, CompactIOField, IOField>(
objects);
115 decomposeFields<Field<Type>, CompactIOField, CompactIOField>(
objects);
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
static const word prefix
The prefix to local: lagrangian.
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
Ostream & endl(Ostream &os)
Add newline and flush stream.