#include <SimRes2gnuplot.h>
Inheritance diagram for SimRes2gnuplot::

Public Methods | |
| SimRes2gnuplot () | |
| ~SimRes2gnuplot () | |
| virtual void | usage () |
| virtual void | simresHeader (PlotSpecifications &plotspec) |
| virtual void | simresFooter (PlotSpecifications &plotspec) |
| virtual void | processFormatSpecificOptions (VecSimple(String) &arguments, PlotSpecifications &plotspec) |
| virtual void | exportScalarField (Field &scalarfield, FieldInformation &fieldinfo, PlotSpecifications &plotspec) |
| virtual void | exportVectorField (Fields &vectorfield, FieldInformation &fieldinfo, PlotSpecifications &plotspec) |
Static Public Methods | |
| void | gnuplot (const FieldLattice &field, const String &filename) |
| void | gnuplot (const FieldFE &field, const String &filename) |
| String | makeCurvePlot (const FieldLattice &field, CurvePlotFile &file, const String &plot_title, const String &name_of_field, const String &comment, bool staggered_grid=false, const Ptv(int) *end_offset=NULL) |
| String | makeCurvePlot (const FieldFE &field, CurvePlotFile &file, const String &plot_title, const String &fieldname, const String &comment) |
| String | makeCurvePlot (const FieldPiWisConst &field, CurvePlotFile &file, const String &plot_title, const String &fieldname, const String &comment) |
NAME: SimRes2gnuplot - class for exporting simres data to gnuplot
DESCRIPTION:
This class filters data in SimRes format to the format used by the visualization program "gnuplot".
|
|
See class "SimResFilter". |
|
|
|
|
|
export a scalar field to a file format that can be read by a specific visualization program. Reimplemented from SimResFilter. |
|
|
as "exportScalarField", but handles vector fields instead. Reimplemented from SimResFilter. |
|
|
See documentation of one of the overloaded functions. |
|
|
dumps a "FieldLattice" object in "gnuplot" readable format on file. Can be applied only to 1D and 2D fields. The "makeCurvePlot" function performs a similar task, but writes the data in the Diffpack plotting program independent curve plot format. To use "makeCurvePlot" and "gnuplot", one applies the script "Gnuplot". |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
the field can be plotted in two ways: 1D fiels are plotted as ordinary (x,y) data points while 2D and 3D fields are dumped as lattice plots, where the grid data appear in the plot file. The "staggered_grid" variable can be set to "true" if all indices are to be interpreted as being located one half spaceing to the ""right"". The final argument, the "end_offset" contains the numbers 0 or -1 for each space dimension which is the reduction of the largest index in each dimension. For example, if a variable in a staggered grid is defined from 1/2 to "n"-1/2, but the array is of length "n", the last index should not be plotted and, if this situation occurs in the y direction, the "end_offset(2)" value should equal -1. The function returns a string containing information about the file with the data for the plot. This can be used in the calling code for run-time visualization (and communication via files). See the man page for the "initPair" function class "CurvePlot" for detailed explanation of the syntax of this return string. |
|
|
process remaining command line arguments in derived classes (after "SimResFilter driver" has processed the arguments that are common to all filters). Reimplemented from SimResFilter. |
|
|
task to be done just before exiting the filter. Reimplemented from SimResFilter. |
|
|
task to be done once initially, after processing of command line args (in "driver"). Reimplemented from SimResFilter. |
|
|
description of various command line arguments. The command line arguments that are common to all filters are explained in "SimResFilter usage" and processed in "SimResFilter driver". Additional command line arguments can be explained in the "usage" function in derived classes and processed in the "processFormatSpecificOptions" function in the derived class. Reimplemented from SimResFilter. |