field(1rheolef)
β¨ field β bestie edition β¨
okay so this is field from rheolef-7.2, section 1rheolef of the manual, and it's literally the glow-up tool for your finite element data. sit down, grab a strawberry π, we're plotting fields today.
πΈ NAME πΈ
field β plot a field (rheolef-7.2) π
π SYNOPSIS π
field [options] file[.field[.gz]]
π¦ DESCRIPTION π¦
It reads a finite element field from a file and outputs it. That's the whole vibe. Read, output, slay. β¨
π EXAMPLE π
field square.field
field square.field -bw
field box.field
like... three commands, three moods. iconic.
π INPUT FILE SPECIFICATION π
filenameβ this is the name of the file that has your input field in it. that's it, that's the job.-β read the field from standard input instead of from a file. very main character, very mysterious, nobody knows where it came from π-nameβ when your field comes in from standard input, the file base name is lowkey unknowable, so it defaults to'output'. this option lets you change that default. super useful when you're dealing with output formats (graphic stuff, format conversion) that create auxiliary files based on this name. π-Idirand-I dirβ add dir to the Rheolef file search path. this is the one you want when your mesh.geoand your.fieldfiles are living in different directories (long distance relationship π). this mechanism initializes a search path given by the environment variableRHEOPATH. and ifRHEOPATHisn't set? default value is the current directory. periodt.-mark string,-catch string,-catchmark stringβ jump across the file to the specified string. label start at the beginning of a line, preceded by a#mark (seecatchmark(3)). iykyk.
π OUTPUT FILE FORMAT OPTIONS π
-field,-textβ output the field on the standard output stream in Rheolef ascii (field or geo) text file format. plain, honest, reliable.-gmshβ output field on standard output stream in.gmshfile format.-gmsh-posβ output field on standard output stream in.gmsh-posfile format, suitable for mesh adaptation purpose. she adapts. π-bamg-bbβ output field on standard output stream in bamg-bb text file format, suitable for mesh adaptation purpose.-image-format stringβ for image or video capture. the supported argument are.jpg,.png,.tifand.bmp. this option should be combined with the paraview render. the output file isbasename.pngwhere basename is the name of the mesh, or can be set with the-nameoption. πΈ-resolution int intβ for the resolution of an image or a video capture. the argument is a couple of sizes, separated by a white space. this option can be used together with the-image-formatfor any of the bitmap image formats. this option requires the paraview render.
π GETTING INFORMATION π
-min,-maxβ print the min (resp. max) value of the scalar field and then exit. no small talk, just facts.-get-geoβ print the name of the mesh associated to the field and exit.
π RENDER OPTIONS π
-gnuplotβ use the gnuplot tool. this is the default in one dimension. 1D girlies rise up β¨-paraviewβ use the paraview tool. this is the default for two- and tri-dimensional geometries.
π¨ RENDERING OPTIONS π¨
-color,-gray,-black-and-white,-bwβ use (color / gray scale / black and white) rendering. color rendering is the default. π-[no]showlabelβ show or hide title, color bar and various annotations. default is to show labels.-labelstring β set the label to show for the represented value. this supersedes the default value.-[no]elevationβ for two dimensional field, represent values as elevation in the third dimension. the default is no elevation.-scalefloat β applies a multiplicative factor to the field. this is useful e.g. in conjunction with theelevationoption. the default value is1.-[no]stereoβ rendering mode suitable for red-blue anaglyph 3D stereoscopic glasses. this option is only available withparaview. put the glasses on bestie πΆοΈβ¨-[no]fillβ isoline intervals are filled with color. this is the default. when-nofill, draw isolines by using lines.-[no]volumeβ for 3D data, render values using a colored translucid volume. this option requires theparaviewcode.-[no]cutβ cut by a specified plane. the cutting plane is specified by its origin point and normal vector. this option requires theparaviewcode. πͺ (affectionately)-originfloat [float [float]] β set the origin of the cutting plane. default is(0.5, 0.5, 0.5).-normalfloat [float [float]] β set the normal of the cutting plane. default is(1, 0, 0).-isovalue[float] and-iso[float] β draw 2d isoline or 3d isosurface. when the optional float is not provided, a median value is used. this option requires theparaviewcode.-noisovalueβ do not draw isosurface. this is the default.-n-isoint β for 2D visualizations, the isovalue table contains regularly spaced values from fmin to fmax, the bounds of the field.
@addindex vorticity @addindex stream function
-n-iso-negativeint β 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. math but make it aesthetic π
@addindex projection @addindex approximation P1
-projapprox and-projβ convert all selected fields to approximation approx by using a L2 projection. when argument is omitted,P1approximation is assumed.-lumped-projβ forceP1approximation for L2 projection and use a lumped mass matrix for it.-round[float] β 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. she's precise but not that precise π-subdivideint β when using a high order geometry, the number of points per edge used to draw a curved element. default value is the mesh order.-deformation,-velocityβ render vector-valued fields as deformed mesh usingparavieworgnuplot. this is the default vector field representation. whenvelocity, render vector-valued fields as arrows usingparaviewinstead. πΉ
π§ COMPONENT EXTRACTION AND DOMAIN REDUCTION π§
-comp intand-comp stringβ extract the i-th component of a vector-valued field. for a tensor-valued field, indexing components as00,01,11... is supported.-domain nameβ reduce the visualization to the specified domain name. shrink the scope, keep the drama.
π OTHERS OPTIONS π
-[no]verboseβ print messages related to graphic files created and command system calls (this is the default).-[no]cleanβ clear temporary graphic files (this is the default).-[no]executeβ execute graphic command (this is the default). the-noexecutevariant is useful in conjunction with the-verboseand-nocleanoptions in order to modify some render options by hand. DIY era π οΈ
β FIELD FILE FORMAT β
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.
π₯ EXAMPLES π₯
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. handing it off like a baton π«Ά
π οΈ IMPLEMENTATION π οΈ
This documentation has been generated from file main/bin/field.cc
π AUTHOR π
Pierre Saramito <Pierre.Saramito@imag.fr>
π COPYRIGHT π
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.
ok real talk for one sec: there is NO WARRANTY, to the extent permitted by law. not a vibe, just the law. π«‘
rheolef β Version 7.2, and that's the whole field(1rheolef) page bestie. go plot something gorgeous, you ate π
β¨π¦
π¦ where this page comes from
- debian trixie: rheolef 7.2-4 Β· GPL-3.0-or-later
- ubuntu noble: rheolef 7.2-3build5 Β· GPL-3.0-or-later
- ubuntu questing: rheolef 7.2-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms