Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

SimRes2gb Class Reference

class for exporting simres data to. More...

#include <SimRes2gb.h>

Inheritance diagram for SimRes2gb::

SimResFilter List of all members.

Public Methods

 SimRes2gb ()
 ~SimRes2gb ()
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 drawGrid (const GridFE &grid, GraphBasics &plotter, const int resolution=10)
void drawGrid (const GridFV &grid, GraphBasics &plotter, const int resolution=10)
void drawGrid (const FieldFE &field, GraphBasics &plotter, const int plot_type=COLOR+ELEVATED)
void drawGrid (const FieldFV &field, GraphBasics &plotter, const int plot_type=COLOR+ELEVATED)
void markPoints (const GridWithPts &grid, GraphBasics &plotter, bool with_numbers=false)
void markNodes (const FieldFE &field, GraphBasics &plotter, const int plot_tp)
void markNodes (const FieldFV &field, GraphBasics &plotter, const int plot_tp)
void markElementNo (const GridFE &grid, GraphBasics &plotter)
void markVolumeNo (const GridFV &grid, GraphBasics &plotter)
void drawBoundary (const GridFE &grid, const int indno, GraphBasics &plotter, const int resolution=10)
void drawBoundary (const GridFV &grid, const int indno, GraphBasics &plotter, const int resolution=10)
void drawEdges (const GridFE &grid, const int bind_no1, const int bind_no2, GraphBasics &plotter, const int resolution=10)
void drawEdges (const GridFV &grid, const int bind_no1, const int bind_no2, GraphBasics &plotter, const int resolution=10)
void drawMatrixSparsityPattern (const GridFE &grid, GraphBasics &plotter)
void drawMatrixSparsityPattern (const GridFV &grid, GraphBasics &plotter)
void drawField (const FieldFE &field, const int resolution, const int plot_tp, GraphBasics &plotter, const Vec(real) &values, const VecSimple(int) &bindnos)
void drawField (const FieldFE &field, const int resolution, const int plot_tp, GraphBasics &plotter, const Vec(real) &values)
void drawField (const FieldFE &field, const int resolution, const int plot_tp, GraphBasics &plotter, const VecSimple(int) &bindnos)
void drawField (const FieldFE &field, const int resolution, const int plot_tp, GraphBasics &plotter)

Public Attributes

Simres2gbPlotSpecifications special_plotspec

Detailed Description

class for exporting simres data to.

NAME: SimRes2gb - class for exporting simres data to

DESCRIPTION:

This class filters data in SimRes format to the "GraphBasics" format.


Constructor & Destructor Documentation

SimRes2gb::SimRes2gb ( )
 

See class "SimResFilter".

SimRes2gb::~SimRes2gb ( ) [inline]
 


Member Function Documentation

static void SimRes2gb::drawBoundary ( const GridFV & grid,
const int indno,
GraphBasics & plotter,
const int resolution = 10 ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawBoundary ( const GridFE & grid,
const int indno,
GraphBasics & plotter,
const int resolution = 10 ) [static]
 

draws a boundary indicator. See "drawGrid" for potential problems with incomplete output files.

static void SimRes2gb::drawEdges ( const GridFV & grid,
const int bind_no1,
const int bind_no2,
GraphBasics & plotter,
const int resolution = 10 ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawEdges ( const GridFE & grid,
const int bind_no1,
const int bind_no2,
GraphBasics & plotter,
const int resolution = 10 ) [static]
 

draws lines along the element edges in 3D. The edge lines are defined as the lines where two given boundary indicators intersect. See "drawGrid" for potential problems with incomplete output files.

static void SimRes2gb::drawField ( const FieldFE & field,
const int resolution,
const int plot_tp,
GraphBasics & plotter ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawField ( const FieldFE & field,
const int resolution,
const int plot_tp,
GraphBasics & plotter,
const VecSimple(int) & bindnos ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawField ( const FieldFE & field,
const int resolution,
const int plot_tp,
GraphBasics & plotter,
const Vec(real) & values ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawField ( const FieldFE & field,
const int resolution,
const int plot_tp,
GraphBasics & plotter,
const Vec(real) & values,
const VecSimple(int) & bindnos ) [static]
 

draws a finite element field in "GraphBasics" format. The drawing consists of contour lines, filled colored contours, or colored contour lines. where the values of the contours are specified by an argument to the function. There are several overloaded versions. See "drawGrid" for potential problems with incomplete output files.

static void SimRes2gb::drawGrid ( const FieldFV & field,
GraphBasics & plotter,
const int plot_type = COLOR + ELEVATED ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawGrid ( const FieldFE & field,
GraphBasics & plotter,
const int plot_type = COLOR + ELEVATED ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawGrid ( const GridFV & grid,
GraphBasics & plotter,
const int resolution = 10 ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawGrid ( const GridFE & grid,
GraphBasics & plotter,
const int resolution = 10 ) [static]
 

draws the grid. The drawing is stored in a "GrahBasics" object, that is, geometric primitives are stored on a file in a general plotting program independent format. One can then apply export programs like "gb2mtv" for filtering the general format to lines and text that "plotmtv" can understand. There is an overloaded versions that assigns a color to the grid lines in accordance with a finite element scalar field over the grid. Note that this function does not flush or close the "GraphBasics" file so the physical file may be incomplete after a call to this function. An explicit call to "GraphBasics close" will complete the file and make it ready for reading. Here is an example:

static void SimRes2gb::drawMatrixSparsityPattern ( const GridFV & grid,
GraphBasics & plotter ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::drawMatrixSparsityPattern ( const GridFE & grid,
GraphBasics & plotter ) [static]
 

draws crosses for each entry in a matrix. Such drawings are Useful when investigating the structure of sparse matrices. See "drawGrid" for potential problems with incomplete output files.

void SimRes2gb::exportScalarField ( Field & scalarfield,
FieldInformation & fieldinfo,
PlotSpecifications & plotspec ) [virtual]
 

export a scalar field to a file format that can be read by a specific visualization program.

Reimplemented from SimResFilter.

void SimRes2gb::exportVectorField ( Fields & vectorfield,
FieldInformation & fieldinfo,
PlotSpecifications & plotspec ) [virtual]
 

as "exportScalarField", but handles vector fields instead.

Reimplemented from SimResFilter.

static void SimRes2gb::markElementNo ( const GridFE & grid,
GraphBasics & plotter ) [static]
 

as "markPoints", but this function writes the element number at the centroid of the element.

static void SimRes2gb::markNodes ( const FieldFV & field,
GraphBasics & plotter,
const int plot_tp ) [static]
 

See documentation of one of the overloaded functions.

static void SimRes2gb::markNodes ( const FieldFE & field,
GraphBasics & plotter,
const int plot_tp ) [static]
 

as "markPoints", but this function applies colors to each nodal mark in accordance with a finite element field defined on the grid. See "drawGrid" for potential problems with incomplete output files.

static void SimRes2gb::markPoints ( const GridWithPts & grid,
GraphBasics & plotter,
bool with_numbers = false ) [static]
 

marks the nodes in "GraphBasics" format. An optional parmeter is used for indicating that the node numbers should be stored as text for each node. See "drawGrid" for potential problems with incomplete output files.

void SimRes2gb::markVolumeNo ( const GridFV & grid,
GraphBasics & plotter ) [static]
 

void SimRes2gb::processFormatSpecificOptions ( VecSimple(String) & arguments,
PlotSpecifications & plotspec ) [virtual]
 

process remaining command line arguments in derived classes (after "SimResFilter driver" has processed the arguments that are common to all filters).

Reimplemented from SimResFilter.

void SimRes2gb::simresFooter ( PlotSpecifications & plotspec ) [virtual]
 

task to be done just before exiting the filter.

Reimplemented from SimResFilter.

void SimRes2gb::simresHeader ( PlotSpecifications & plotspec ) [virtual]
 

task to be done once initially, after processing of command line args (in "driver").

Reimplemented from SimResFilter.

void SimRes2gb::usage ( ) [virtual]
 

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.


Member Data Documentation

Simres2gbPlotSpecifications SimRes2gb::special_plotspec
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.