55 void Foam::graph::readCurves(
Istream& is)
59 x_.setSize(xyData.
size());
142 <<
"y field requested for graph containing " <<
size()
155 <<
"y field requested for graph containing " <<
size()
165 const word& graphFormat
168 if (!wordConstructorTablePtr_)
171 <<
"Graph writer table is empty" 175 wordConstructorTable::iterator cstrIter =
176 wordConstructorTablePtr_->find(graphFormat);
178 if (cstrIter == wordConstructorTablePtr_->end())
181 <<
"Unknown graph format " << graphFormat
183 <<
"Valid graph formats are : " <<
endl 184 << wordConstructorTablePtr_->sortedToc()
210 os <<
setw(10) << x_[xi];
233 if (graphFile.
good())
235 write(graphFile, format);
240 <<
"Could not open graph file " << graphFile.
name()
254 write(path/name, format);
261 os.
check(
"Ostream& operator<<(Ostream&, const graph&)");
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
void write(Ostream &, const word &format) const
Write graph to stream in given format.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const scalarField & y() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeTable(Ostream &) const
Write out graph data as a simple table.
const fileName & name() const
Return the name of the stream.
bool good() const
Return true if next operation might succeed.
label size() const
Return number of elements in table.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
Abstract base class for a graph writer.
Class to create, store and output qgraph files.
graph::writer graphWriter
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from string.
graph(const string &title, const string &xName, const string &yName, const scalarField &x)
Construct from title and labels (no curves)
void writeXY(const scalarField &x, const scalarField &y, Ostream &) const
A single curve in a graph.
iterator begin()
Iterator set to the beginning of the HashTable.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Istream and Ostream manipulators taking arguments.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
string & replace(const string &oldStr, const string &newStr, size_type start=0)
Replace first occurrence of sub-string oldStr with newStr.
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & operator<<(Ostream &, const ensightPart &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Omanip< int > setw(const int i)
const dimensionedVector & g
A class for handling character strings derived from std::string.
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.