Output to Tecplot. More...
#include <tecplot.hh>


Public Types | |
| enum | elementTypes { TRIANGLE, QUADRILATERAL, TETRAHEDRON, BRICK, MAX_TYPE } |
Public Member Functions | |
| template<class G > | |
| TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const enum elementTypes type=QUADRILATERAL) | |
| Constructor for output of mesh only. | |
| TecplotGraphics (concepts::Mesh &msh, const std::string filename, const std::string title, const enum elementTypes type=QUADRILATERAL, const uint points=noPoints) | |
| Constructor for output of mesh only. | |
| template<class F > | |
| TecplotGraphics (concepts::Mesh &msh, const std::string filename, const std::string title, const concepts::Formula< F > &frm, const enum elementTypes type=QUADRILATERAL, const uint points=noPoints) | |
| Constructor for output of a scalar formula. | |
| template<class F , class G > | |
| TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const concepts::ElementFormula< F, G > &frm, const enum elementTypes type=QUADRILATERAL) | |
| Constructor for output of a element formula. | |
| template<class F , class G > | |
| TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const concepts::Formula< F > &frm, const enum elementTypes type=QUADRILATERAL) | |
| Constructor for output of a scalar formula. | |
| template<class F , class G > | |
| TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const concepts::Vector< F > &sol, const enum elementTypes type=QUADRILATERAL, const concepts::ElementFunction< F, G > *fun=0, const bool append=false) | |
| Constructor for output of solutions and functions of it. | |
| virtual | ~TecplotGraphics () |
Static Public Attributes | |
| static uint | noPoints |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| std::auto_ptr< std::ofstream > | ofs_ |
| Stream for output file. | |
Private Member Functions | |
| void | closeStreams_ (const std::vector< uint > &cnt) |
| Closes the streams. | |
| void | createStreams_ () |
| Create the streams. | |
| const uint | dim_ () const |
| Spatial dimension of the space. | |
| const std::string | typeStr_ () const |
| Returns a string for the element type. | |
| template<class F , class G > | |
| void | write_ (concepts::GlobalPostprocess< G > &postProcess, BaseOutputCell< G > &tecplot, const F v) |
| Creates standard streams, writes to streams, writes to file and clear and delete all streams. | |
Private Attributes | |
| std::map< std::string, std::ostream * > | s_ptr_ |
| Pointer to the streams, i.e. *(s_ptr_["vtxmsh"]) for FE mesh. | |
| const std::string | title_ |
| File name. | |
| enum elementTypes | type_ |
| Element type. | |
Output to Tecplot.
Definition at line 40 of file tecplot.hh.
Definition at line 42 of file tecplot.hh.
| graphics::TecplotGraphics::TecplotGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const std::string | title, | ||
| const enum elementTypes | type = QUADRILATERAL |
||
| ) |
Constructor for output of mesh only.
| spc | Space which holds the mesh |
| filename | Name base for the files to be written |
| title | Title of the plot |
| type | Type of the elements. |
Definition at line 148 of file tecplot.hh.

| graphics::TecplotGraphics::TecplotGraphics | ( | concepts::Mesh & | msh, |
| const std::string | filename, | ||
| const std::string | title, | ||
| const enum elementTypes | type = QUADRILATERAL, |
||
| const uint | points = noPoints |
||
| ) |
Constructor for output of mesh only.
| msh | Mesh |
| filename | Name base for the files to be written |
| title | Title of the plot |
| type | Type of the elements. |
| graphics::TecplotGraphics::TecplotGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const std::string | title, | ||
| const concepts::Vector< F > & | sol, | ||
| const enum elementTypes | type = QUADRILATERAL, |
||
| const concepts::ElementFunction< F, G > * | fun = 0, |
||
| const bool | append = false |
||
| ) |
Constructor for output of solutions and functions of it.
| spc | Space on which the data should be plotted |
| filename | Name base for the files to be written |
| title | Title of the plot |
| sol | The first solution set which should be plotted |
| type | Type of the elements |
| fun | Function of the FE function, e.g. itself. |
Definition at line 165 of file tecplot.hh.

| graphics::TecplotGraphics::TecplotGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const std::string | title, | ||
| const concepts::Formula< F > & | frm, | ||
| const enum elementTypes | type = QUADRILATERAL |
||
| ) |
Constructor for output of a scalar formula.
| spc | Space on which the data should be plotted |
| filename | Name base for the files to be written |
| title | Title of the plot |
| frm | Formula |
| type | Type of the elements |
Definition at line 187 of file tecplot.hh.

| graphics::TecplotGraphics::TecplotGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const std::string | title, | ||
| const concepts::ElementFormula< F, G > & | frm, | ||
| const enum elementTypes | type = QUADRILATERAL |
||
| ) |
Constructor for output of a element formula.
| spc | Space on which the data should be plotted |
| filename | Name base for the files to be written |
| frm | Element formula |
| type | Type of the elements |
Definition at line 206 of file tecplot.hh.

| graphics::TecplotGraphics::TecplotGraphics | ( | concepts::Mesh & | msh, |
| const std::string | filename, | ||
| const std::string | title, | ||
| const concepts::Formula< F > & | frm, | ||
| const enum elementTypes | type = QUADRILATERAL, |
||
| const uint | points = noPoints |
||
| ) |
Constructor for output of a scalar formula.
| msh | Mesh |
| filename | Name base for the files to be written |
| frm | Formula |
| type | Type of the elements |
| points | Number of points inside the element (in one direction) |
Definition at line 224 of file tecplot.hh.

| virtual graphics::TecplotGraphics::~TecplotGraphics | ( | ) | [inline, virtual] |
Definition at line 118 of file tecplot.hh.
| void graphics::TecplotGraphics::closeStreams_ | ( | const std::vector< uint > & | cnt | ) | [private] |
Closes the streams.
| void graphics::TecplotGraphics::createStreams_ | ( | ) | [private] |
Create the streams.
| const uint graphics::TecplotGraphics::dim_ | ( | ) | const [private] |
Spatial dimension of the space.
| virtual std::ostream& graphics::TecplotGraphics::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from graphics::OutputBase.
| const std::string graphics::TecplotGraphics::typeStr_ | ( | ) | const [private] |
Returns a string for the element type.
| void graphics::TecplotGraphics::write_ | ( | concepts::GlobalPostprocess< G > & | postProcess, |
| BaseOutputCell< G > & | tecplot, | ||
| const F | v | ||
| ) | [private] |
Creates standard streams, writes to streams, writes to file and clear and delete all streams.
Definition at line 244 of file tecplot.hh.

uint graphics::TecplotGraphics::noPoints [static] |
Definition at line 120 of file tecplot.hh.
std::auto_ptr<std::ofstream> graphics::OutputBase::ofs_ [protected, inherited] |
std::map<std::string, std::ostream*> graphics::TecplotGraphics::s_ptr_ [private] |
Pointer to the streams, i.e. *(s_ptr_["vtxmsh"]) for FE mesh.
Definition at line 140 of file tecplot.hh.
const std::string graphics::TecplotGraphics::title_ [private] |
File name.
Definition at line 142 of file tecplot.hh.
enum elementTypes graphics::TecplotGraphics::type_ [private] |
Element type.
Definition at line 144 of file tecplot.hh.