34 #ifndef ensightAsciiStream_H 35 #define ensightAsciiStream_H 70 runTime.writeFormat(),
71 runTime.writeVersion(),
91 virtual bool ascii()
const 96 virtual void write(
const char*
c)
101 virtual void write(
const int v)
103 str_ <<
setw(10) << v <<
nl;
112 str_ <<
setw(12) << sf[i] <<
nl;
116 str_ <<
setw(12) << scalar(0) <<
nl;
125 str_ <<
setw(10) << sf[i];
133 <<
setw(10) << partI <<
nl;
#define forAll(list, i)
Loop across all elements in list.
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.
static const floatScalar floatScalarVSmall
Abstract base class for writing Ensight data.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const dimensionedScalar c
Speed of light in a vacuum.
ensightAsciiStream(const fileName &f, const Time &runTime)
Construct from components.
void operator=(const ensightAsciiStream &)=delete
Disallow default bitwise assignment.
volScalarField sf(fieldObject, mesh)
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
virtual void writePartHeader(const label partI)
dimensioned< scalar > mag(const dimensioned< Type > &)
Omanip< int > setw(const int i)
virtual ~ensightAsciiStream()
Destructor.
virtual bool ascii() const
IOstream & scientific(IOstream &io)
virtual void write(const char *c)