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;
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));
236 for (
const IOobject&
io : fieldObjects)
242 Info<<
" Reconstructing lagrangian " 243 << fieldType::typeName <<
"s\n" <<
nl;
252 if (verbose_ && nFields)
Info<<
endl;
void size(const label n)
Older name for setAddressableSize.
label reconstructFieldFields(const word &cloudName, const IOobjectList &objects, const wordRes &selectedFields=wordRes())
Reconstruct multiple field-field for given cloud.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
tmp< CompactIOField< Field< Type >, Type > > reconstructFieldField(const word &cloudName, const word &fieldName)
Reconstruct a single field-field for given cloud.
const word & name() const noexcept
Return the object name.
UPtrList< const IOobject > sorted() const
The sorted list of IOobjects.
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
True if List is empty (ie, size() is zero)
void append(T *ptr)
Append an element to the end of the list.
tmp< IOField< Type > > reconstructField(const word &cloudName, const word &fieldName)
Reconstruct a single field for given cloud.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Ignore writing from objectRegistry::writeObject()
const Time & time() const
Return the top-level database.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
void sort(UList< T > &list)
Sort the list.
A List of wordRe with additional matching capabilities.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
label reconstructFields(const word &cloudName, const UPtrList< const IOobject > &fieldObjects)
Reconstruct multiple fields for given cloud.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
A primitive field of type <T> with automated input and output.
bool isHeaderClass() const
Check if headerClassName() equals Type::typeName.
static const word prefix
The prefix to local: lagrangian.