field(1rheolef) | field(1rheolef) |
field - plot a field (rheolef-7.2)
field [options] file[.field[.gz]]
Read and output a finite element field from file.
field square.field field square.field -bw field box.field
filename
-
-name
-Idir
-I dir
-mark string
-catch string
-catchmark string
-field -text
-gmsh
-gmsh-pos
-bamg-bb
-image-format string
-resolution int int
-min
-max
-get-geo
-gnuplot
-paraview
-color
-gray
-black-and-white
-bw
-[no]showlabel
-label *string* <blockquote>‍ Set the label to show for the represented value. This supersedes the default value. </blockquote>-[no]elevation <blockquote>‍ For two dimensional field, represent values as elevation in the third dimension. The default is no elevation. </blockquote>-scale*float* <blockquote>‍ Applies a multiplicative factor to the field. This is useful e.g. in conjunction with theelevationoption. The default value is 1. </blockquote>-[no]stereo <blockquote>‍ Rendering mode suitable for red-blue anaglyph 3D stereoscopic glasses. This option is only available withparaview. </blockquote>-[no]fill <blockquote>‍ Isoline intervals are filled with color. This is the default. When-nofill, draw isolines by using lines. </blockquote>-[no]volume <blockquote>‍ For 3D data, render values using a colored translucid volume. This option requires theparaviewcode. </blockquote>-[no]cut <blockquote>‍ Cut by a specified plane. The cutting plane is specified by its origin point and normal vector. This option requires theparaviewcode. </blockquote>-origin*float* [*float* [*float*]] <blockquote>‍ Set the origin of the cutting plane. Default is (0.5, 0.5, 0.5). </blockquote>-normal*float* [*float* [*float*]] <blockquote>‍ Set the normal of the cutting plane. Default is (1, 0, 0). </blockquote>-isovalue[*float*] \n -iso[*float*] <blockquote>‍ Draw 2d isoline or 3d isosurface. When the optional float is not provided, a median value is used. This option requires theparaviewcode. </blockquote>-noisovalue <blockquote>‍ Do not draw isosurface. This is the default. </blockquote>-n-iso*int* <blockquote>‍ For 2D visualizations, the isovalue table contains regularly spaced values from fmin to fmax, the bounds of the field. </blockquote> @addindex vorticity @addindex stream function -n-iso-negative*int* <blockquote>‍ The isovalue table is split into negatives and positives values. Assume there is n_iso=15 isolines: if 4 is requested by this option, then, there will be 4 negatives isolines, regularly spaced from fmin to 0 and 11=15-4 positive isolines, regularly spaced from 0 to fmax. This option is useful when plotting e.g. vorticity or stream functions, where the sign of the field is representative. </blockquote> @addindex projection @addindex approximation P1 -proj*approx* -proj <blockquote>‍ Convert all selected fields to approximation *approx* by using a L2 projection. When argument is omitted,P1approximation is assumed. </blockquote>-lumped-proj <blockquote>‍ ForceP1approximation for L2 projection and use a lumped mass matrix for it. </blockquote>-round[*float*] <blockquote>‍ Round the input up to the specified precision. This option, combined with-field, leads to a round filter. Useful for non-regression test purpose, in order to compare numerical results between files with a limited precision, since the full double precision is machine-dependent. </blockquote> -subdivide*int* <blockquote>‍ When using a high order geometry, the number of points per edge used to draw a curved element. Default value is the mesh order. </blockquote> -deformation -velocity <blockquote>‍ Render vector-valued fields as deformed mesh usingparavieworgnuplot. This is the default vector field representation. Whenvelocity, render vector-valued fields as arrows usingparaview` instead.
-comp int
-comp string
-domain name
-[no]verbose
`-[no]clean
-[no]execute
It contains a header and a list values at degrees of freedom. The header contains the field keyword followed by a line containing a format version number (presently 1), the number of degrees of freedom (i.e. the number of values listed), the mesh file name without the .geo extension the approximation (e.g. P1, P2, etc), and finally the list of values:
A sample field file write
field 1 4 square P1 0.0 1.0 2.0 3.0
See also geo(1) for the .geo mesh file format.
The following command send to vtk the cuted 2d plane of the 3d field:
field cube.field -cut -normal 0 1 0 -origin 0.5 0.5 0.5 -vtk
Next, let us generate the cuted 2d field and its associated mesh:
field cube.field -cut -normal 0 1 0 -origin 0.5 0.5 0.5 -text > cube-cut.field
For drawing the isosurface:
field cube.field -isovalue 0.5
Finally, let us generate the isosurface as a 3d surface mesh in the .geo
file format:
field cube.field -isovalue 0.5 -text > isosurf.geo
This file is then suitable for others treatments.
This documentation has been generated from file main/bin/field.cc
Pierre Saramito <Pierre.Saramito@imag.fr>
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.
Version 7.2 | rheolef |