57 auto&
field = tfield.ref();
59 for (
const fvMesh& localMesh : procMeshes_)
65 localMesh.time().timeName(),
76 const label offset =
field.size();
77 field.setSize(offset + localField.
size());
81 field[offset + j] = localField[j];
104 mesh_.time().timeName(),
112 auto&
field = tfield.ref();
114 for (
const fvMesh& localMesh : procMeshes_)
120 localMesh.time().timeName(),
138 const label offset =
field.size();
139 field.setSize(offset + localField.
size());
143 field[offset + j] = localField[j];
171 Info<<
" Reconstructing lagrangian "
172 << fieldType::typeName <<
"s\n" <<
nl;
182 if (verbose_ && nFields)
Info<<
endl;
197 return reconstructFields<Type>
201 selectedFields.
empty()
202 ? objects.
sorted<fieldType>()
203 : objects.
sorted<fieldType>(selectedFields)
222 if (selectedFields.
empty())
229 fieldObjects.
append(objects.
sorted<fieldType>(selectedFields));
230 fieldObjects.
append(objects.
sorted<fieldTypeB>(selectedFields));
242 Info<<
" Reconstructing lagrangian "
243 << fieldType::typeName <<
"s\n" <<
nl;
252 if (verbose_ && nFields)
Info<<
endl;
A Field of objects of type <T> with automated input and output using a compact storage....
Generic templated field type.
A primitive field of type <T> with automated input and output.
List of IOobjects with searching and retrieving facilities.
UPtrList< const IOobject > sorted() const
The sorted list of IOobjects.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool isHeaderClass() const
Check if headerClassName() equals Type::typeName.
const word & name() const noexcept
Return the object name.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static word timeName(const scalar t, const int precision=precision_)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
void append(T *ptr)
Append an element to the end of the list.
static const word prefix
The prefix to local: lagrangian.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
label reconstructFields(const word &cloudName, const UPtrList< const IOobject > &fieldObjects)
Reconstruct multiple fields for given cloud.
tmp< IOField< Type > > reconstructField(const word &cloudName, const word &fieldName)
Reconstruct a single field for given cloud.
label reconstructFieldFields(const word &cloudName, const IOobjectList &objects, const wordRes &selectedFields=wordRes())
Reconstruct multiple field-field for given cloud.
tmp< CompactIOField< Field< Type >, Type > > reconstructFieldField(const word &cloudName, const word &fieldName)
Reconstruct a single field-field for given cloud.
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void sort(UList< T > &list)
Sort the list.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
Extract name (as a word) from an object, typically using its name() method.
const word cloudName(propsDict.get< word >("cloud"))