branch(1rheolef)
β¨ NAME β¨
branch β handle a family of fields π (this one lives in the rheolef manual, version 7.2, bestie π)
π SYNOPSIS π
branch [options] file[.branch[.gz]]
π EXAMPLES π
Okay so first up, run an animation:
branch file.branch
It uses either gnuplot, for 1d geometries, or paraview, otherwise. Pick your fighter π
Next, let us extract the 17-th indexed and save it in .field file format. Indexes started at 0:
branch file.branch -extract 17 -branch > file-17.field
π DESCRIPTION π
Read and visualize or output a branch of finite element fields from file. That's the whole vibe, no cap.
π¦ INPUT FILE SPECIFICATION π¦
- filename β Specifies the name of the file containing the input field.
-β Read field on standard input instead on a file. Yes, a whole dash. It's giving minimalism.-Idir\-I dirβ Add dir to the Rheolef file search path. This option is useful e.g. when the mesh.geoand the.fieldfiles are in different directories. This mechanism initializes a search path given by the environment variableRHEOPATH. If the environment variableRHEOPATHis not set, the default value is the current directory.-nameβ When the field comes from standard input, the file base name is not known and is set to'output'by default. This option allows one to change this default. Useful when dealing with output formats (graphic, format conversion) that creates auxiliary files, based on this name.
πΈ INPUT FORMAT OPTIONS πΈ
-ifformat,-input-formatformat β Load a mesh in the prescribed file format. Supported input file formats are:.branchand.vtk.
π RENDER SPECIFICATION π
-gnuplotβ Run a 1d animation usinggnuplot.-paraviewβ Run 2d and 3d animations usingparaview. Generate a collections of.vtkfiles and a main.pypython one, then execute the python file.
π«Ά RENDERING OPTIONS π«Ά
-skipvtkβ Do not regenerate the collection of.vtkfiles when using theparaviewrender. Only generate the main.pypython file and execute it. Assume that all the.vtkfiles was already created with the-vtkoption or with-paraviewone combined with-noclean.-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 a two dimensional field, represent values as elevation in the third dimension. The default is no elevation.-[no]fillβ Isoline intervals are filled with color. This is the default.-[no]volumeβ For 3D data, render values using a colored translucid volume. This option requires theparaviewcode.-scalefloat β Applies a multiplicative factor to the field. This is useful e.g. in conjunction with the-elevationoption. The default value is1.-[no]stereoβ Rendering mode suitable for red-blue anaglyph 3D stereoscopic glasses. This option is only available withparaview. π-[no]cutβ Cut by a specified plane. The cutting plane is specified by its origin point and normal vector. This option requiresparaview.-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],-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.-n-iso-negativeint β The isovalue table is split into negatives and positives values. Assume there isn_iso=15isolines: if4is requested by this option, then, there will be 4 negatives isolines, regularly spaced from fmin to0and11=15-4positive isolines, regularly spaced from0to fmax. This option is useful when plotting e.g. vorticity or stream functions, where the sign of the field is representative.
π OUTPUT FILE SPECIFICATION π
-vtkβ Generate a collection of.vtkfiles forparaview.-branchβ Output on stdout in.branchformat.-extractint,-indexint β Extract the i-th record in the file. The output is a field or multi-field file format. Indexes started at 0.-tocβ Print the table of contents (toc) to standard output and exit. Each index value is followed by the associated value (e.g. the time or a physical parameter).-ndigitint β Number of digits used to print floating point values when using the-branchoption. Note that the default value depends upon the machine precision associated to theFloattype, as defined by theconfigurescript during the installation of the library (seeconfiguration). WhenFloatisdouble, then 16 digits are used by default. This default value can be changed by this option, e.g. for the portability of non-regression tests.-image-formatstring β For image or video capture. The supported argument are.avi,.jpg,.png,.tifand.bmp. This option should be combined with theparaviewrender. The output file isbasename.aviwherebasenameis the name of the mesh, or can be set with the-nameoption. π₯-resolutionint 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 theparaviewrender.
π OTHERS OPTIONS π
-uminfloat,-umaxfloat β Set the solution range for thegnuplotdriver. By default this range is computed from the first field of the branch, and this could be problematic when this field is initialy zero.-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.-topographyfilename[.field[.gz]] β Performs a tridimensional elevation view based on the topographic data. ποΈ-projapprox,-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.-[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.
Okay bestie real talk: those -no... variants aren't decor, they actually flip the behaviour. Use them on purpose, k? π
π§ EXAMPLE OF FILE FORMAT CONVERSION π§
For conversion from the .vtk legacy ascii file format to the .branch one, simply writes:
branch -if vtk -branch - < input.vtk > output.branch
π THE BRANCH FILE FORMAT π
The .branch file format bases on the .field one (see field(1)):
example | general format
-------------------------------------------------
#!branch | #!branch
branch | branch
1 1 11 | <version> <nfield=1> <nvalue=N>
time u | <key> <field name>
|
#time 3.14 | #<key> <key value 1>
#u | #<field name>
field | <field 1>
..... | ....
|
..... | ....
#time 6.28 | #<key> <key value N>
#u | #<field name>
field | <field N>
..... | ....
The key is here time, but could be any string without spaces, such as t or lambda. Labels appears all along the file to facilitate direct jumps and field and step skips.
The previous example contained one field at each time step. The format supports several fields, such as (t,u(t),p(t)), where u could be a multi-component field (e.g. a vector):
#!branch
branch
1 2 11
time u p
#time 3.14
#u
...
#p
...
#time 6.28
...
π IMPLEMENTATION π
This documentation has been generated from file main/bin/branch.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.
and that's the whole page, bestie β this came out of the rheolef manual, Version 7.2, and it's literally all yours to remix (the code itself is free software, GPLv3+ style π«Ά). go run some animations, 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