iorheo8rheolef
Input and output functions and manipulation
Small pieces of code
input geo in standard file format:
cin >> g;
output geo in standard file format:
cout << g;
output geo in gnuplot format:
cout << gnuplot << g;
Overview
output manipulators enable the selection of some pretty graphic options, in an elegant fashion.
Boolean manipulators
The boolean manipulators set an internal optional flag. Each option has its negative counterpart, as verbose and noverbose, by adding the no prefix.
cout << noverbose << a;
verbose-
trace some details, such as loading, storing or unix command operations on
cerr. Default is on.
clean-
delete temporary files during graphic outputs. Default is on.
execute-
run unix operations, such as
gnuplotorplotmtvorvtk. Note that the corresponding files are created. Default is on.
transpose-
perform transposition when loading/soring a
csrmatrix from Harwell-Boeing file. This feature is available, since the file format store matrix in transposed format. Default is off.
logscale-
when using matrix sparse postscript plot manipulator
psandcolor. The color scale is related to a logarithmic scale.
fill
grid
shrink
tube
ball
full
stereo
cut
iso
split-
when using the
vtkormayavimanipulators for a mesh or a field.
volume-
volume rendering by using ray cast functions.
velocity
deformation-
Vector-valued fields are rendered by using arrows (
velocity) or deformed meshes (deformation). Forvtkorplotmtvrendering.
elevation-
Scalar valued fields in two dimension are rendered by using a tridimensionnal surface elevation. For
vtkorplotmtvrendering.
fastfieldload-
try to reuse the supplied space. Default is on.
File format manipulators
The format manipulator group applies for streams. Its value is an enumerated type, containing the following possibilities:
rheo-
use the default textual input/output file format. For instance, this is `
.geo'for meshes, `.field'for discretized functions. This default format is specified in the corresponding class documentation (see also geo(2) and field(2)). This is the default.
bamg-
uses `
.bamg'Frederic Hecht's bidimensional anisotropic mesh generator file format for geo input/output operation.
tetgen-
uses `
.node'`.ele'and.faceHang Si's tridimensional mesh generator file format for geo input/output operation.
mmg3d-
uses `
.mmg3d'Cecile Dobrzynski's tridimensional anisotropic mesh generator file format for geo input/output operation.
gmsh-
uses `
.gmsh'gmsh Christophe Geuzaine and Jean-Francois Remacle mesh generator file format for geo input/output operation.
gmsh_pos-
uses `
.gmsh_pos'gmsh Christophe Geuzaine and Jean-Francois Remacle mesh metric file format for geo adapt input/output operation.
grummp-
uses `
.m'(bidimensional) or `.v'(tridimensionnal) Carl Ollivier-Gooch 's mesh generator file format for geo input/output operation.
qmg-
uses `
.qmg'Stephen A. Vavasis's mesh generator file format for geo input/output operation.
vtkdata-
uses `
.vtk'mesh file format for geo input/output operations. This file format is suitable for graphic treatment.
vtkpolydata-
uses `
.vtk'polydata (specific for polygonal boundaries) mesh file format for geo input/output operations. This file format is suitable for graphic treatment.
cemagref-
uses `
.cemagref'surface mesh (topography, with azcote). This file format is used at Cemagref (french research center for mountains,http://www.cemagref.fr).
dump-
output an extensive listing of the class data structure. This option is used for debugging purpose.
hb-
uses `
.hb'Harwell-Boeing file format for sparse matrix input/output operation. This is the default.
matrix_market-
uses `
.mm'Matrix-Market file format for sparse matrix input/output operation.
ml
matlab-
uses `
.m'Matlab file format for sparse matrix output operation.
sparse_matlab-
uses `
.m'Matlab sparse file format for sparse matrix output operation.
ps-
uses `
.ps'postscript for sparse matrix output operation.
vtk-
for mesh and field outputs. Generate `
.vtk'data file and the `.tcl'command script file and run thevtkcommand on the `.tcl'.
mayavi-
for field outputs. Generate `
.vtk'data file and the `.py'command script file and run thepythoncommand on the `.py'associated to themayavi/vtklibrary.
geomview-
for boundary cad outputs. Generate `
.off'data file and run thegeomviewcommand.
gnuplot-
for mesh and field outputs. Generate `
.gdat'data file and the `.plot'command script file and run thegnuplotcommand on the `.plot'.
plotmtv-
for mesh and field outputs. Generate `
.mtv'data file and run theplotmtvcommand.
x3d-
for mesh output. Generate `
.x3d'data file and run thex3dcommand. This tool has fast rotation rendering.
atom-
for mesh output. Generate `
.atom'data file and run thePlotMcommand. Tridimensional mesh rendering is performed as a chemical molecule: nodes as balls and edges as tubes. ThePlotMtool is developed at Cornell University Laboratory of Atomic and Solid State Physics (LASSP) in a Joint Study with IBM, with support by the Materials Science Center and Corning Glassworks.
Color manipulators
The color manipulator group acts for sparse matrix postscript output. Its value is an enumerated type, containing three possibilities:
cout << color << a;
cout << gray << b;
cout << black_and_white << c;
The default is to generate a color postcript file. Conversely, its act for field rendering, via mayavi.
Valuated manipulators
Some manipulators takes an argument that specifies a value.
cout << geomview << bezieradapt << subdivide(5) << my_cad_boundary;
cout << vtk << iso << isovalue(2.5) << my_mesh;
cout << velocity << plotmtv << vectorscale(0.1) << uh;
See also catchmark(4) for input-output of vector-valued fields.
- isovalue float
- n_isovalue int
- n_isovalue_negative int
- vectorscale float
- subdivide float
- rounding_precision float
-
This manipulator set a rounding precision that could be used by some output functions, e.g. by the
geoclass. By default, the rounding value is zero and there is no rounding.
- image_format string
-
The argument is any valid image format, such as
png,jpgorpdf, that could be handled by the corresponding graphic render.
Releases
4 releases since Debian 7 (Wheezy); the text changed 3 times.