38 const UList<Type>&
field,
43 for (Type val :
field)
50 for (direction d=0; d < pTraits<Type>::nComponents; ++d)
52 const direction cmpt = ensightPTraits<Type>::componentOrder[d];
84 if (Pstream::master())
90 count = ensightOutput::Detail::writeCloudFieldContent
100 for (
const label proci :
procAddr.subProcs())
105 UPstream::commsTypes::scheduled,
111 count = ensightOutput::Detail::writeCloudFieldContent
130 UPstream::commsTypes::scheduled,
131 UPstream::masterNo(),
156 fieldObj.
readOpt(IOobject::READ_IF_PRESENT);
globalIndex procAddr(aMesh.nFaces())
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void resize_nocopy(const label len)
A primitive field of type <T> with automated input and output.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption readOpt() const noexcept
The read option.
char * data_bytes() noexcept
Return pointer to the underlying array serving as data storage,.
std::streamsize size_bytes() const noexcept
Number of contiguous bytes for the List data.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T & ref()
Return reference to the managed object without nullptr checking.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
A collection of functions for writing clouds as ensight file content.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
label writeCloudFieldContent(ensightFile &os, const UList< Type > &fld, label count=0)
Write cloud field data (serial) with rounding and newlines.
bool writeCloudField(const IOField< Type > &field, ensightFile &os)
Write cloud field, returning true if the field is non-empty.
bool exists(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist (as DIRECTORY or FILE) in the file system?
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.