Go to the documentation of this file.
59 x_.setSize(xyData.
size());
142 <<
"y field requested for graph containing " << size()
155 <<
"y field requested for graph containing " << size()
168 if (!wordConstructorTablePtr_)
171 <<
"Graph writer table is empty"
175 wordConstructorTable::iterator cstrIter =
178 if (cstrIter == wordConstructorTablePtr_->end())
183 <<
"Valid graph formats are : " <<
endl
184 << wordConstructorTablePtr_->sortedToc()
210 os <<
setw(10) << x_[xi];
233 if (graphFile.
good())
240 <<
"Could not open graph file " << graphFile.
name()
261 os.
check(
"Ostream& operator<<(Ostream&, const graph&)");
word format(conversionProperties.lookup("format"))
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.
A class for handling words, derived from string.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
graph(const string &title, const string &xName, const string &yName, const scalarField &x)
Construct from title and labels (no curves)
const scalarField & y() const
const dimensionedVector & g
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.
void readCurves(Istream &)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
graph::writer graphWriter
void writeTable(Ostream &) const
Write out graph data as a simple table.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Istream and Ostream manipulators taking arguments.
Ostream & operator<<(Ostream &, const edgeMesh &)
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.
Omanip< int > setw(const int i)
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
string & replace(const string &oldStr, const string &newStr, size_type start=0)
Replace first occurence of sub-string oldStr with newStr.
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.
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())
A single curve in a graph.
const fileName & name() const
Return the name of the stream.
void size(const label)
Override size to be inconsistent with allocated storage.
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 &, mode_t=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.
word name(const complex &)
Return a string representation of a complex.
timeIndices insert(timeIndex, timeDirs[timeI].value())
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.