Class to create, store and output qgraph files. More...
Data Structures | |
class | writer |
Abstract base class for a graph writer. More... | |
struct | xy |
Public Member Functions | |
graph (const string &title, const string &xName, const string &yName, const scalarField &x) | |
Construct from title and labels (no curves) More... | |
graph (const string &title, const string &xName, const string &yName, const scalarField &x, const scalarField &y) | |
Construct from title, labels and y data for 1 curve. More... | |
graph (const string &title, const string &xName, const string &yName, Istream &is) | |
Construct from Istream given title and labels. More... | |
graph (Istream &is) | |
Construct from Istream. More... | |
const string & | title () const |
const string & | xName () const |
const string & | yName () const |
const scalarField & | x () const |
scalarField & | x () |
const scalarField & | y () const |
scalarField & | y () |
void | writeTable (Ostream &) const |
Write out graph data as a simple table. More... | |
void | write (Ostream &, const word &format) const |
Write graph to stream in given format. More... | |
void | write (const fileName &pName, const word &format) const |
Write graph to file in given path-name and format. More... | |
void | write (const fileName &path, const word &name, const word &format) const |
Write graph to file in given path, name and format. More... | |
![]() | |
HashPtrTable (const label size=128) | |
Construct given initial table size. More... | |
HashPtrTable (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. More... | |
HashPtrTable (Istream &) | |
Construct from Istream using default Istream constructor class. More... | |
HashPtrTable (const dictionary &) | |
Construct from dictionary using default dictionary constructor. More... | |
HashPtrTable (const HashPtrTable< T, Key, Hash > &) | |
Construct as copy. More... | |
~HashPtrTable () | |
Destructor. More... | |
T * | remove (iterator &) |
Remove and return the pointer specified by given iterator. More... | |
bool | erase (iterator &) |
Erase an hashedEntry specified by given iterator. More... | |
void | clear () |
Clear all entries from table. More... | |
void | write (Ostream &os) const |
Write. More... | |
void | operator= (const HashPtrTable< T, Key, Hash > &) |
Static Public Member Functions | |
static word | wordify (const string &sname) |
Helper function to convert string name into appropriate word. More... | |
Private Member Functions | |
void | readCurves (Istream &) |
Private Attributes | |
string | title_ |
string | xName_ |
string | yName_ |
scalarField | x_ |
Friends | |
Ostream & | operator<< (Ostream &, const graph &) |
Ostream Operator. More... | |
Additional Inherited Members | |
![]() | |
typedef HashTable< T *, Key, Hash >::iterator | iterator |
typedef HashTable< T *, Key, Hash >::const_iterator | const_iterator |
Class to create, store and output qgraph files.
graph | ( | const string & | title, |
const string & | xName, | ||
const string & | yName, | ||
const scalarField & | x | ||
) |
graph | ( | const string & | title, |
const string & | xName, | ||
const string & | yName, | ||
const scalarField & | x, | ||
const scalarField & | y | ||
) |
Construct from title, labels and y data for 1 curve.
Definition at line 94 of file graph.C.
References curve::curveStyle::CONTINUOUS, insert(), and y.
Construct from Istream.
Definition at line 127 of file graph.C.
References graph::readCurves().
|
private |
Definition at line 55 of file graph.C.
References curve::curveStyle::CONTINUOUS, forAll, insert(), List::size(), and y.
Referenced by graph::graph().
|
inline |
Definition at line 149 of file graph.H.
References graph::title_.
|
inline |
Definition at line 154 of file graph.H.
References graph::xName_.
|
inline |
Definition at line 159 of file graph.H.
References graph::yName_.
|
inline |
Definition at line 165 of file graph.H.
References graph::x_.
Referenced by Foam::kShellIntegration(), noiseFFT::Ldelta(), noiseFFT::Lf(), and noiseFFT::Pdelta().
|
inline |
Foam::scalarField & y | ( | ) | const |
Definition at line 137 of file graph.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Referenced by noiseFFT::Ldelta(), noiseFFT::Lf(), noiseFFT::Lsum(), and noiseFFT::Pdelta().
scalarField& y | ( | ) |
void writeTable | ( | Ostream & | os | ) | const |
Write out graph data as a simple table.
Definition at line 206 of file graph.C.
References Foam::endl(), forAll, forAllConstIter(), Foam::setw(), and token::SPACE.
Write graph to stream in given format.
Definition at line 221 of file graph.C.
References format(), writer< Type >::New(), and write().
Referenced by main(), Foam::makeGraph(), Foam::writeCellGraph(), and Foam::writePatchGraph().
Write graph to file in given path-name and format.
Definition at line 227 of file graph.C.
References Foam::endl(), format(), IOstream::good(), OFstream::name(), writer< Type >::New(), WarningInFunction, and write().
Write graph to file in given path, name and format.
Definition at line 247 of file graph.C.
References format(), Foam::mkDir(), Foam::name(), path(), and write().
|
static |
Helper function to convert string name into appropriate word.
Definition at line 44 of file graph.C.
References string::replace().
|
private |
Definition at line 64 of file graph.H.
Referenced by graph::title().
|
private |
Definition at line 65 of file graph.H.
Referenced by graph::xName().
|
private |
Definition at line 66 of file graph.H.
Referenced by graph::yName().
|
private |
Definition at line 68 of file graph.H.
Referenced by graph::x().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.