40
40
INPUT FILE SPECIFICATION:
44
44
specifies the name of the file containing
48
48
read field on standard input instead on a file.
50
50
@cindex RHEOPATH environment variable
52
52
@itemx -I @var{dir}
53
53
Add @var{dir} to the rheolef file search path.
54
54
This option is usefull e.g. when the mesh .geo and the .field fikes are in
66
66
OUTPUT FILE FORMAT OPTIONS:
69
69
output field on standard output stream in field text file format.
70
70
@toindex @code{gmsh}
71
71
@fiindex @file{.gmsh} mesh file
72
72
@fiindex @file{.gmsh_pos} data file
74
74
output field on standard output stream in gmsh text file format.
76
76
output field on standard output stream in gmsh-pos text file format,
77
77
suitable for mesh adaptation purpose.
78
78
@toindex @code{bamg}
79
79
@fiindex @file{.bamg} mesh file
80
80
@fiindex @file{.bamg_bb} data file
82
82
output field on standard output stream in bamg-bb text file format,
83
83
suitable for mesh adaptation purpose.
84
84
@cindex graphic render
89
89
@fiindex @file{.jpg} image
90
90
@fiindex @file{.ps} image
91
91
@fiindex @file{.pdf} image
92
@itemx -image-format @code{string}
92
@item -image-format @code{string}
93
93
The argument is any valid image format, such as
94
94
bitmap @code{png}, @code{jpg}, @code{gif} or vectorial @code{ps} or @code{pdf}
95
95
image file formats, and that could be handled by the corresponding render.
111
111
@toindex @code{gnuplot}
113
113
use @code{gnuplot} tool.
114
114
This is the default in one and two dimension.
115
115
@toindex @code{mayavi}
117
117
use @code{mayavi} tool.
118
118
This is the default for tridimensional geometries.
121
121
RENDERING OPTIONS:
125
125
@itemx -black-and-white
127
127
Use (color/gray scale/black and white) rendering.
128
128
Color rendering is the default.
130
130
@itemx -noelevation
131
131
For two dimensional field, represent values as elevation
132
132
in the third dimension.
133
133
The default is no evelation.
134
@itemx -scale @var{float}
134
@item -scale @var{float}
135
135
applies a multiplicative factor to the field.
136
136
This is useful e.g. in conjonction with the @code{elevation} option.
137
137
The default value is 1.
140
140
Rendering mode suitable for red-blue anaglyph 3D stereoscopic glasses.
141
141
This option is only available with @code{mayavi}.
143
143
isoline intervals are filled with color.
144
144
This is the default.
146
146
draw isolines by using lines.
149
149
Cut by a specified plane.
150
150
The cutting plane is specified by its origin point and normal vector.
151
151
This option requires the @code{mayavi} code.
152
@itemx -origin @var{float} [@var{float} [@var{float}]]
152
@item -origin @var{float} [@var{float} [@var{float}]]
153
153
set the origin of the cutting plane.
154
154
Default is (0.5, 0.5, 0.5).
155
@itemx -normal @var{float} [@var{float} [@var{float}]]
155
@item -normal @var{float} [@var{float} [@var{float}]]
156
156
set the normal of the cutting plane.
157
157
Default is (1, 0, 0).
158
@itemx -iso [@var{float}]
158
@item -iso [@var{float}]
159
159
do draw 3d isosurface. When the optional float is not provided,
160
160
a median value is used.
161
161
This option requires the @code{mayavi} code.
163
163
do not draw isosurface.
164
@itemx -n-iso @var{int}
164
@item -n-iso @var{int}
165
165
For 2D visualizations, the isovalue table contains
166
166
regularly spaced values from fmin to fmax, the bounds
168
168
@cindex projection
170
170
Convert all selected fields to Pk-continuous approximation by using a L2 projection.
171
@itemx -round [@var{float}]
171
@item -round [@var{float}]
172
172
Round the input up to the specifiexd precision.
173
173
This option, combined with @code{-field}, leads to a round filter.
174
174
Usefull for non-regression test purpose, in order
178
178
@cindex vorticity
179
179
@cindex stream function
180
@itemx -n-iso-negative @var{int}
180
@item -n-iso-negative @var{int}
181
181
The isovalue table is splitted into negatives and positives values.
182
182
Assume there is n_iso=15 isolines: if 4 is requested by this option,
183
183
then, there will be 4 negatives isolines, regularly spaced
186
186
This option is usefull when plotting e.g. vorticity or stream
187
187
functions, where the sign of the field is representative.
188
@itemx -subdivide int
189
189
When using a high order geometry, the number of points per edge used to draw
190
190
a curved element. Default value is the mesh order.
193
193
Render vector-valued fields as deformed mesh
194
194
using @code{mayavi} or @code{gnuplot}.
195
195
This is the default vector field representation.
198
198
Render vector-valued fields as arrows using @code{mayavi}.
201
COMPONENT EXTRACTION:
201
COMPONENT EXTRACTION AND DOMAIN REDUCTION:
203
@itemx -comp @var{int}
204
Extract a component of a vector-valued field.
203
@item -comp @var{int}
204
@itemx -comp @var{string}
205
Extract the i-th component of a vector-valued field.
206
For a tensor-valued field, indexing components as "00", "01", "11"... is supported.
207
@item -domain @var{name}
208
Reduce the visualization to the specified domain.
210
214
print messages related to graphic files created and
211
215
command system calls (this is the default).
214
218
does not print previous messages.
217
221
clear temporary graphic files (this is the default).
220
224
does not clear temporary graphic files.
223
227
execute graphic command (this is the default).
226
230
does not execute graphic command. Generates only
227
231
graphic files. This is usefull in conjuction with the
228
232
@code{-noclean} command.
475
481
if (i+1 == argc || !isdigit(argv[i+1][0])) usage();
476
482
i_comp_name = argv[++i];
484
else if (strcmp (argv[i], "-domain") == 0) {
486
if (i+1 == argc) usage();
487
reduce_to_domain = argv[++i];
478
489
else if (strcmp (argv[i], "-round") == 0) {
579
590
field_basic<Float,sequential> vh = uh[i_comp];
593
if (reduce_to_domain != "") {
594
field_basic<Float,sequential> vh = uh[reduce_to_domain];
582
597
if (! do_proj && render == mayavi_render && uh.valued() != "scalar"
583
&& ! uh.get_space().get_numbering().is_continuous()) {
598
&& uh.get_space().get_numbering().has_compact_support_inside_element()) {
584
599
// non-scalar vector & tensor mayavi visualization may be continuous
585
600
warning_macro ("mayavi: perform L2-projection to continuous space");
588
if (do_proj && ! uh.get_space().get_numbering().is_continuous()) {
603
if (do_proj && uh.get_space().get_numbering().has_compact_support_inside_element()) {
589
604
const space_basic<Float,sequential>& Uh = uh.get_space();
590
605
size_t k = Uh.degree();
621
636
<< uh.max() << endl;
639
// generates label (mayavi support it now):
641
string root_filename = iorheo::getbasename(dout.os());
642
string label = (root_filename == "output") ? "" : root_filename;
644
// label = (label == "") ? mark : label + "." + mark;
647
if (i_comp_name != "") {
648
label = (label == "") ? "value" : label;
649
label = label + "[" + i_comp_name + "]";
651
if (reduce_to_domain != "") {
652
label = (label == "") ? "value" : label;
653
label = label + "[" + reduce_to_domain + "]";
655
dout.os() << setmark (label);