42 const label timeIndex,
43 const word& cloudName,
50 Info<<
"Converting cloud " << cloudName
51 <<
" field " << fieldObject.
name() <<
endl;
55 Info<<
"Creating empty cloud " << cloudName
56 <<
" field " << fieldObject.
name() <<
endl;
59 word timeFile = prepend +
itoa(timeIndex);
61 const Time& runTime = fieldObject.
time();
66 << pTraits<Type>::typeName <<
" per measured node: 1 ";
67 ensightCaseFile.
width(15);
68 ensightCaseFile.
setf(ios_base::left);
70 << (
"c" + fieldObject.
name()).c_str()
71 << (
' ' + prepend +
"****." + cloudName
72 +
"." + fieldObject.
name()).c_str()
78 timeFile +
"." + cloudName +
"." + fieldObject.
name()
83 postProcPath/ensightFileName,
103 if (
mag(v) < 1.0
e-90)
108 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++)
111 if (++count % 6 == 0)
118 if ((count % 6 != 0) || (count==0))
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
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.
static bool master(const label communicator=0)
Am I the master process.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual int width() const =0
Get width of output field.
Istream and Ostream manipulators taking arguments.
IOstream::streamFormat writeFormat() const
Default write format.
const Time & time() const
Return time.
dimensioned< scalar > mag(const dimensioned< Type > &)
const doubleScalar e
Elementary charge.
Omanip< int > setw(const int i)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A primitive field of type <T> with automated input and output.
void ensightCloudField(const IOobject &fieldObject, const fileName &postProcPath, const word &prepend, const label timeIndex, const word &timeFile, const word &cloudName, Ostream &ensightCaseFile, const bool dataExists)
IOstream & scientific(IOstream &io)