field(1rheolef)

πŸ“¦
version 7.2 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

✨ 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. πŸŽ€
  • -Idir and -I dir β€” add dir to the Rheolef file search path. this is the one you want when your mesh .geo and your .field files are living in different directories (long distance relationship 😭). this mechanism initializes a search path given by the environment variable RHEOPATH. and if RHEOPATH isn'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 (see catchmark(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 .gmsh file format.
  • -gmsh-pos β€” output field on standard output stream in .gmsh-pos file 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, .tif and .bmp. this option should be combined with the paraview render. the output file is basename.png where basename is the name of the mesh, or can be set with the -name option. πŸ“Έ
  • -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-format for 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.
  • -label string β€” 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.
  • -scale float β€” applies a multiplicative factor to the field. this is useful e.g. in conjunction with the elevation option. the default value is 1.
  • -[no]stereo β€” rendering mode suitable for red-blue anaglyph 3D stereoscopic glasses. this option is only available with paraview. 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 the paraview code.
  • -[no]cut β€” cut by a specified plane. the cutting plane is specified by its origin point and normal vector. this option requires the paraview code. πŸ”ͺ (affectionately)
  • -origin float [float [float]] β€” set the origin of the cutting plane. default is (0.5, 0.5, 0.5).
  • -normal float [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 the paraview code.
  • -noisovalue β€” do not draw isosurface. this is the default.
  • -n-iso int β€” 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-negative int β€” 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

  • -proj approx and -proj β€” convert all selected fields to approximation approx by using a L2 projection. when argument is omitted, P1 approximation is assumed.
  • -lumped-proj β€” force P1 approximation 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 πŸŽ€
  • -subdivide int β€” 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 using paraview or gnuplot. this is the default vector field representation. when velocity, render vector-valued fields as arrows using paraview instead. 🏹

🧚 COMPONENT EXTRACTION AND DOMAIN REDUCTION 🧚

  • -comp int and -comp string β€” extract the i-th component of a vector-valued field. for a tensor-valued field, indexing components as 00, 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 -noexecute variant is useful in conjunction with the -verbose and -noclean options 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 (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