35 const IOobjectList& lagrangianObjects,
36 PtrList<PtrList<IOField<Type>>>& lagrangianFields
40 IOobjectList lagrangianTypeObjects
48 new PtrList<IOField<Type>>
50 lagrangianTypeObjects.size()
54 label lagrangianFieldi = 0;
55 forAllIter(IOobjectList, lagrangianTypeObjects, iter)
57 lagrangianFields[cloudI].set
60 new IOField<Type>(*iter())
70 const IOobjectList& lagrangianObjects,
71 PtrList<PtrList<CompactIOField<Field<Type>, Type>>>& lagrangianFields
75 IOobjectList lagrangianTypeObjectsA
77 lagrangianObjects.lookupClass(IOField<Field<Type>>::typeName)
80 IOobjectList lagrangianTypeObjectsB
82 lagrangianObjects.lookupClass
84 CompactIOField<Field<Type>,
92 new PtrList<CompactIOField<Field<Type>, Type>>
94 lagrangianTypeObjectsA.size() + lagrangianTypeObjectsB.size()
98 label lagrangianFieldi = 0;
100 forAllIter(IOobjectList, lagrangianTypeObjectsA, iter)
102 lagrangianFields[cloudI].set
105 new CompactIOField<Field<Type>, Type>(*iter())
109 forAllIter(IOobjectList, lagrangianTypeObjectsB, iter)
111 lagrangianFields[cloudI].set
114 new CompactIOField<Field<Type>, Type>(*iter())
124 const word& cloudName,
125 const IOField<Type>& field
129 Field<Type> procField(field, particleIndices_);
132 return tmp<IOField<Type>>
153 Foam::tmp<Foam::CompactIOField<Foam::Field<Type>, Type>>
156 const word& cloudName,
157 const CompactIOField<Field<Type>, Type>& field
161 Field<Field<Type>> procField(field, particleIndices_);
164 return tmp<CompactIOField<Field<Type>, Type>>
166 new CompactIOField<Field<Type>, Type>
184 template<
class GeoField>
187 const word& cloudName,
188 const PtrList<GeoField>& fields
191 const bool write = particleIndices_.
size() > 0;
199 template<
class GeoField>
202 const word& cloudName,
203 const PtrList<GeoField>& fields
206 const bool write = particleIndices_.
size() > 0;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const char *const typeName
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
void size(const label)
Override size to be inconsistent with allocated storage.
void decomposeFieldFields(const word &cloudName, const PtrList< GeoField > &fields) const
tmp< IOField< Type > > decomposeField(const word &cloudName, const IOField< Type > &field) const
Decompose volume field.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
static void readFieldFields(const label cloudI, const IOobjectList &lagrangianObjects, PtrList< PtrList< CompactIOField< Field< Type >, Type >> > &lagrangianFields)
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
const Time & time() const
Return time.
static const word prefix
The prefix to local: lagrangian.
void decomposeFields(const word &cloudName, const PtrList< GeoField > &fields) const
const word cloudName(propsDict.lookup("cloudName"))
A class for managing temporary objects.
static void readFields(const label cloudI, const IOobjectList &lagrangianObjects, PtrList< PtrList< IOField< Type >>> &lagrangianFields)
tmp< CompactIOField< Field< Type >, Type > > decomposeFieldField(const word &cloudName, const CompactIOField< Field< Type >, Type > &field) const