Go to the documentation of this file.
59 void Foam::graph::readCurves(
Istream& is)
63 x_.setSize(xyData.size());
150 <<
"y field requested for graph containing " << size()
163 <<
"y field requested for graph containing " << size()
176 <<
"When setting limits, x1 must be greater than x0" <<
nl
177 <<
" x0: " << x0 <<
nl
178 <<
" x1: " << x1 <<
nl
197 label nX = i1 - i0 + 1;
212 const word& graphFormat
215 if (!wordConstructorTablePtr_)
218 <<
"Graph writer table is empty"
222 auto cstrIter = wordConstructorTablePtr_->cfind(graphFormat);
224 if (!cstrIter.found())
230 *wordConstructorTablePtr_
256 os <<
setw(10) << x_[xi];
279 if (graphFile.
good())
286 <<
"Could not open graph file " << graphFile.
name()
string & replace(const std::string &s1, const std::string &s2, size_type pos=0)
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Class to create, store and output qgraph files.
const scalarField & y() const
A class for handling words, derived from Foam::string.
constexpr auto begin(C &c) -> decltype(c.begin())
Return iterator to the beginning of the container c.
A class for handling file names.
virtual const fileName & name() const
Read/write access to the name of the stream.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
void setXRange(const scalar x0, const scalar x1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
graph(const string &title, const string &xName, const string &yName, const scalarField &x)
Construct from title and labels (no curves)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling character strings derived from std::string.
Abstract base class for a graph writer.
#define forAll(list, i)
Loop across all elements in list.
graph::writer graphWriter
SubField is a Field obtained as a section of another Field.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
word format(conversionProperties.get< word >("format"))
void writeTable(Ostream &) const
Write out graph data as a simple table.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
Istream and Ostream manipulators taking arguments.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
void write(Ostream &, const word &format) const
Write graph to stream in given format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
const uniformDimensionedVectorField & g
errorManip< error > abort(error &err)
Omanip< int > setw(const int i)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Output to file stream, using an OSstream.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.
forAllConstIters(mixture.phases(), phase)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void writeXY(const scalarField &x, const scalarField &y, Ostream &) const
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const dimensionedScalar c
Speed of light in a vacuum.
A single curve in a graph.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool good() const
Return true if next operation might succeed.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.