43 const word& cloudName,
49 Info<<
"Converting cloud " << cloudName <<
" positions" <<
endl;
53 Info<<
"Creating empty cloud " << cloudName <<
" positions" <<
endl;
58 fileName ensightFileName(timeFile +
"." + cloudName);
61 postProcPath/ensightFileName,
69 << cloudName.c_str() << nl
70 <<
"particle coordinates" <<
nl;
87 const vector& p = elmnt().position();
90 <<
setw(8) << ++nParcels
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
virtual int precision() const
Get precision of output field.
ios_base::fmtflags setf(const ios_base::fmtflags f)
Set flags of stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void ensightParticlePositions(const polyMesh &mesh, const fileName &dataDir, const fileName &subDir, const word &cloudName, IOstream::streamFormat format)
const Time & time() const
Return the top-level database.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
IOstream::versionNumber writeVersion() const
Default write version number.
A class for handling words, derived from string.
IOstream::compressionType writeCompression() const
Default write compression.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Istream and Ostream manipulators taking arguments.
IOstream::streamFormat writeFormat() const
Default write format.
Mesh data needed to do the Finite Volume discretisation.
Omanip< int > setw(const int i)
IOstream & scientific(IOstream &io)