58void Foam::graph::readCurves(Istream& is)
62 x_.setSize(xyData.size());
149 <<
"y field requested for graph containing " << size()
162 <<
"y field requested for graph containing " << size()
175 <<
"When setting limits, x1 must be greater than x0" <<
nl
176 <<
" x0: " << x0 <<
nl
177 <<
" x1: " << x1 <<
nl
196 label nX = i1 - i0 + 1;
211 const word& graphFormat
214 if (!wordConstructorTablePtr_)
217 <<
"Graph writer table is empty"
221 auto* ctorPtr = wordConstructorTable(graphFormat);
229 *wordConstructorTablePtr_
278 if (graphFile.good())
285 <<
"Could not open graph file " << graphFile.name()
293 const fileName&
path,
Istream and Ostream manipulators taking arguments.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
const uniformDimensionedVectorField & g
bool set(const word &key, curve *ptr)
iterator begin()
iterator set to the beginning of the HashTable
label size() const noexcept
The number of elements in table.
bool good() const noexcept
True if next operation might succeed.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
virtual const fileName & name() const override
Read/write access to the name of the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
SubField is a Field obtained as a section of another Field, without its own allocation....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A single curve in a graph.
A class for handling file names.
Abstract base class for a graph writer.
void writeXY(const scalarField &x, const scalarField &y, Ostream &) const
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.
Class to create, store and output qgraph files.
const string & yName() const
const string & xName() const
const scalarField & y() const
const string & title() const
void write(Ostream &, const word &format) const
Write graph to stream in given format.
void writeTable(Ostream &) const
Write out graph data as a simple table.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
void setXRange(const scalar x0, const scalar x1)
graph(const string &title, const string &xName, const string &yName, const scalarField &x)
Construct from title and labels (no curves).
const scalarField & x() const
A class for handling character strings derived from std::string.
string & replace(const std::string &s1, const std::string &s2, size_type pos=0)
Replace first occurrence of sub-string s1 with s2, beginning at pos.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define WarningInFunction
Report a warning using Foam::Warning.
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
graph::writer graphWriter
Omanip< int > setw(const int i)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
word format(conversionProperties.get< word >("format"))
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.