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()
Istream and Ostream manipulators taking arguments.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
const uniformDimensionedVectorField & g
bool set(const word &key, curve *ptr)
Assign a new entry, overwriting existing entries.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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, using an OSstream.
virtual const fileName & name() const
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....
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
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.
virtual bool write()
Write the output fields.
Abstract base class for a graph writer.
void writeXY(const scalarField &x, const scalarField &y, Ostream &) const
Class to create, store and output qgraph files.
const string & yName() const
const scalarField & y() const
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)
A class for handling character strings derived from std::string.
string & replace(const std::string &s1, const std::string &s2, size_type pos=0)
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.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
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)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for 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.