OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

graph Class Reference

Class to create, store and output qgraph files. More...

Inheritance diagram for graph:
Collaboration diagram for graph:

List of all members.


Classes

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).
 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.
 graph (const string &title, const string &xName, const string &yName, Istream &is)
 Construct from Istream given title and labels.
 graph (Istream &is)
 Construct from Istream.
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.
void write (Ostream &, const word &format) const
 Write graph to stream in given format.
void write (const fileName &fName, const word &format) const
 Write graph to file in given format.

Friends

Ostream & operator<< (Ostream &, const graph &)
 Ostream Operator.

Detailed Description

Class to create, store and output qgraph files.

Source files

Definition at line 54 of file graph.H.


Constructor & Destructor Documentation

graph ( const string &  title,
const string &  xName,
const string &  yName,
const scalarField &  x 
)

Construct from title and labels (no curves).

Definition at line 58 of file graph.C.

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 73 of file graph.C.

graph ( const string &  title,
const string &  xName,
const string &  yName,
Istream &  is 
)

Construct from Istream given title and labels.

Definition at line 91 of file graph.C.

References curveStyle::CONTINUOUS, and insert().

Here is the call graph for this function:

graph ( Istream &  is  ) 

Construct from Istream.

Definition at line 106 of file graph.C.


Member Function Documentation

const string& title (  )  const [inline]

Definition at line 145 of file graph.H.

const string& xName (  )  const [inline]

Definition at line 150 of file graph.H.

const string& yName (  )  const [inline]

Definition at line 155 of file graph.H.

const scalarField& x (  )  const [inline]

Definition at line 161 of file graph.H.

Referenced by Foam::kShellIntegration().

Here is the caller graph for this function:

scalarField& x (  )  [inline]

Definition at line 166 of file graph.H.

const scalarField & y (  )  const

Definition at line 116 of file graph.C.

scalarField & y (  ) 

Definition at line 128 of file graph.C.

void writeTable ( Ostream &  os  )  const

Write out graph data as a simple table.

Definition at line 185 of file graph.C.

References Foam::endl(), forAll, Foam::setw(), and token::SPACE.

Here is the call graph for this function:

void write ( Ostream &  os,
const word &  format 
) const

Write graph to stream in given format.

Definition at line 205 of file graph.C.

References Foam::setw(), and token::SPACE.

Referenced by graph::write().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( const fileName &  fName,
const word &  format 
) const

Write graph to file in given format.

Definition at line 211 of file graph.C.

References writer::New(), and graph::write().

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const graph &   
) [friend]

Ostream Operator.

Definition at line 230 of file graph.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd