Package: GrAL GMV I/O        GrAL: Packages | Concepts | Homepage

GrAL::OstreamGMV3DFmt Class Reference

Output adapter for the GMV format. More...

#include </home/guntram/tmp/GrAL/gral/gmv-io/include/Gral/IO/gmv-format-output3d.h>

Inheritance diagram for GrAL::OstreamGMV3DFmt:

Inheritance graph
[legend]
Collaboration diagram for GrAL::OstreamGMV3DFmt:

Collaboration graph
[legend]

List of all members.

Public Types

typedef Complex2D archetype_type
typedef
StaticData::archetype_table::const_iterator 
archetype_iterator

Public Member Functions

 OstreamGMV3DFmt (std::ostream &ot)
 OstreamGMV3DFmt (std::string const &nm)
 OstreamGMV3DFmt (self const &rhs)
self & operator= (self const &rhs)
std::string const & name (int a) const
archetype_iterator BeginArchetype () const
archetype_iterator EndArchetype () const

Protected Member Functions

virtual void begin_variable ()
virtual void end_variable ()

Related Functions

(Note that these are not member functions.)

template<class GRID , class GEOM >
void ConstructGrid (OstreamGMV3DFmt &Out, GRID const &G, GEOM const &GEO)
 ConstructGrid overload for OstreamGMV3DFmt.
template<class GRID , class GEOM , class GF , class MOREGFS >
void ConstructGrid_GF (OstreamGMV3DFmt &Out, GRID const &G, GEOM const &GEO, heterogeneous_list::List< GF, MOREGFS > GFS)
 ConstructGrid overload for OstreamGMV2DFmt.


Detailed Description

Output adapter for the GMV format.

See also:
outputadapter
The General Mesh Viewer (GMV) is a versatile tool for viewing 3D (and 2D) meshes and fields defined on them.

Usage:

    OstreamGMV3DFmt Out("grid.gmv");
    ConstructGrid(Out,MyGrid, MyGeom); 
If you want to output also grid functions, use the following extended form:
    grid_function<MyVertex, double> gf1(MyGrid);
    grid_function<MyCell,   int>    gf2(MyGrid);
    // ...

    OstreamGMV3DFmt Out("grid.gmv");
    ConstructGrid_GF(Out,MyGrid,MyGeom,
                     (Out.BeginGF(), Out.pair("gf1",gf1), Out.pair("gf2",gf2)));

See also:
Test in test-gmv-output.C
Todo:
support GMV's general cell type (currently only tet, hex, prism and pyramid)

Support output of vector variables. Currently, all variables are assumed scalar. As GMV supports only one vector field (velocity), other fields (forces) will have to be written as set of scalar fields (force-x etc). Perhaps the branch could be made depending on point_traits<>?

Definition at line 74 of file gmv-format-output3d.h.


Friends And Related Function Documentation

template<class GRID , class GEOM >
void ConstructGrid ( OstreamGMV3DFmt &  Out,
GRID const &  G,
GEOM const &  GEO 
) [related]

ConstructGrid overload for OstreamGMV3DFmt.

See also:
Gral base module Generic grid copy operations

test-gmv-output.C for an example

Definition at line 21 of file gmv-format-output.tt.C.

References ConstructGrid().

template<class GRID , class GEOM , class GF , class MOREGFS >
void ConstructGrid_GF ( OstreamGMV3DFmt &  Out,
GRID const &  G,
GEOM const &  GEO,
heterogeneous_list::List< GF, MOREGFS >  GFS 
) [related]

ConstructGrid overload for OstreamGMV2DFmt.

This takes an additional list of arbitrary grid functions to be written to the GMV file.

See also:
Gral base module Generic grid copy operations

test-gmv-output.C for an example


The documentation for this class was generated from the following files:

©  Guntram Berti 1997-2009. See the GrAL Homepage for up-to-date information.

Generated on Tue Mar 31 19:13:18 2009 for GrAL GMV I/O by doxygen 1.5.8