DOKK / manpages / debian 10 / librheolef-dev / iorheo.8rheolef.en
iorheo(8rheolef) rheolef-7.0 iorheo(8rheolef)

iorheo - input and output functions and manipulation

input geo in standard file format:


cin >> g;
output geo in standard file format:


cout << g;
output geo in gnuplot format:


cout << gnuplot << g;

output manipulators enable the selection of some pretty graphic options, in an elegant fashion.

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;
trace some details, such as loading, storing or unix command operations on cerr. Default is on.
delete temporary files during graphic outputs. Default is on.
run unix operations, such as gnuplot or plotmtv or vtk. Note that the corresponding files are created. Default is on.
perform transposition when loading/soring a csr matrix from Harwell-Boeing file. This feature is available, since the file format store matrix in transposed format. Default is off.
when using matrix sparse postscript plot manipulator ps and color. The color scale is related to a logarithmic scale.
when using the vtk or mayavi manipulators for a mesh or a field.

volume rendering by using ray cast functions.

Vector-valued fields are rendered by using arrows (velocity) or deformed meshes (deformation). For vtk or plotmtv rendering.

Scalar valued fields in two dimension are rendered by using a tridimensionnal surface elevation. For vtk or plotmtv rendering.

try to reuse the supplied space. Default is on.

The format manipulator group applies for streams. Its value is an enumerated type, containing the following possibilities:

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.
uses `.bamg' Frederic Hecht's bidimensional anisotropic mesh generator file format for geo input/output operation.
uses `.node' `.ele' and .face Hang Si's tridimensional mesh generator file format for geo input/output operation.
uses `.mmg3d' Cecile Dobrzynski's tridimensional anisotropic mesh generator file format for geo input/output operation.
uses `.gmsh' gmsh Christophe Geuzaine and Jean-Francois Remacle mesh generator file format for geo input/output operation.
uses `.gmsh_pos' gmsh Christophe Geuzaine and Jean-Francois Remacle mesh metric file format for geo adapt input/output operation.
uses `.m' (bidimensional) or `.v' (tridimensionnal) Carl Ollivier-Gooch 's mesh generator file format for geo input/output operation.
uses `.qmg' Stephen A. Vavasis's mesh generator file format for geo input/output operation.
uses `.vtk' mesh file format for geo input/output operations. This file format is suitable for graphic treatment.
uses `.vtk' polydata (specific for polygonal boundaries) mesh file format for geo input/output operations. This file format is suitable for graphic treatment.

uses `.cemagref' surface mesh (topography, with a z cote). This file format is used at Cemagref (french research center for mountains, http://www.cemagref.fr).
output an extensive listing of the class data structure. This option is used for debugging purpose.
uses `.hb' Harwell-Boeing file format for sparse matrix input/output operation. This is the default.
uses `.mm' Matrix-Market file format for sparse matrix input/output operation.
uses `.m' Matlab file format for sparse matrix output operation.
uses `.m' Matlab sparse file format for sparse matrix output operation.
uses `.ps' postscript for sparse matrix output operation.
for mesh and field outputs. Generate `.vtk' data file and the `.tcl' command script file and run the vtk command on the `.tcl'.
for field outputs. Generate `.vtk' data file and the `.py' command script file and run the python command on the `.py' associated to the mayavi/vtk library.
for boundary cad outputs. Generate `.off' data file and run the geomview command.
for mesh and field outputs. Generate `.gdat' data file and the `.plot' command script file and run the gnuplot command on the `.plot'.
for mesh and field outputs. Generate `.mtv' data file and run the plotmtv command.
for mesh output. Generate `.x3d' data file and run the x3d command. This tool has fast rotation rendering.
for mesh output. Generate `.atom' data file and run the PlotM command. Tridimensional mesh rendering is performed as a chemical molecule: nodes as balls and edges as tubes. The PlotM tool 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.

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.

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.
This manipulator set a rounding precision that could be used by some output functions, e.g. by the geo class. By default, the rounding value is zero and there is no rounding.
The argument is any valid image format, such as png, jpg or pdf, that could be handled by the corresponding graphic render.

geo(2), field(2), catchmark(4)

Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr> GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

rheolef-7.0 rheolef-7.0