Go to the documentation of this file.
46 if (Pstream::master())
52 for (Type val :
field)
59 for (
direction d=0; d < pTraits<Type>::nComponents; ++d)
74 for (
int slave=1; slave<Pstream::nProcs(); ++slave)
86 for (
direction d=0; d < pTraits<Type>::nComponents; ++d)
109 OPstream toMaster(comm, Pstream::masterNo());
133 fieldObj.
readOpt() = IOobject::READ_IF_PRESENT;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
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?
A primitive field of type <T> with automated input and output.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
static constexpr const zero Zero
Global zero (0)
Output inter-processor communications stream.
Conversion of OpenFOAM pTraits into the Ensight equivalent.
Generic templated field type.
void newline()
Add carriage return to ascii stream.
virtual bool write(const token &)
Writing token does not make sense.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
commsTypes
Types of communications.
T & ref()
Return reference to the managed object without nullptr checking.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
readOption readOpt() const
The read option.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar e
Elementary charge.
A collection of functions for writing clouds as ensight file content.
Input inter-processor communications stream.
bool writeCloudField(const IOField< Type > &field, ensightFile &os, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
Write cloud field, returning true if the field is non-empty.