Go to the documentation of this file.
38 #ifndef masterOFstream_H
39 #define masterOFstream_H
79 void checkWrite(
const fileName& fName,
const std::string&
s);
95 const bool valid =
true
105 const bool append =
false,
106 const bool valid =
true
A class for handling file names.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
static const versionNumber currentVersion
The current version number (2.0)
Input/output from string buffers.
~masterOFstream()
Destructor - commits buffered information to file.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
Representation of a major/minor version number.
The IOstreamOption is a simple container for options an IOstream can normally have.
masterOFstream(const fileName &pathname, IOstreamOption streamOpt=IOstreamOption(), const bool append=false, const bool valid=true)
Construct from pathname and set stream status.
streamFormat
Data format (ascii | binary)
Foam::string str() const
Get the string - as Foam::string rather than std::string.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
Master-only drop-in replacement for OFstream.