Difference between revisions of "VTKpytools/Bar2vtk"
(Added info to other flags) |
|||
Line 19: | Line 19: | ||
* <code>bar2vtk [vtmfile] [dataPath] 10000-20000 --ts0=0 --velbar /data/path/velbar_first.file /data/path/velbar_second.file --stsbar /data/path/stsbar_first.file /data/path/stsbar_second.file</code> | * <code>bar2vtk [vtmfile] [dataPath] 10000-20000 --ts0=0 --velbar /data/path/velbar_first.file /data/path/velbar_second.file --stsbar /data/path/stsbar_first.file /data/path/stsbar_second.file</code> | ||
** Will create a time step window using the <code>/data/path/*bar_first.file</code> files as timestep 10000 and <code>/data/path/*bar_second.file</code> as timestep 20000 | ** Will create a time step window using the <code>/data/path/*bar_first.file</code> files as timestep 10000 and <code>/data/path/*bar_second.file</code> as timestep 20000 | ||
− | |||
==== <code>--ascii</code> ==== | ==== <code>--ascii</code> ==== | ||
Line 28: | Line 27: | ||
==== <code>--velonly</code> ==== | ==== <code>--velonly</code> ==== | ||
− | + | Will only load the <code>velbar</code> file(s) into the VTM file. | |
==== <code>--vptpath</code> ==== | ==== <code>--vptpath</code> ==== | ||
+ | Path to <code>vtkpytools</code> in case of a desire to do custom testing with a separate module. Not generally recommended to use, mostly for testing/development purposes. | ||
==== <code>--outpath</code> ==== | ==== <code>--outpath</code> ==== | ||
+ | The path that the "loaded" VTM file is output to. | ||
==== <code>-f/--new-file-prefix</code> ==== | ==== <code>-f/--new-file-prefix</code> ==== | ||
+ | Choosing a new file prefix for the "loaded" VTM file. By default, the name of the blank VTM file will be used with <code>_[timestep]</code> being appended to it. If this flag is given, then it's argument will be used as the file prefix. | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | bar2vtk example_blank.vtm data/ 10000 | ||
+ | # output file name is "example_blank_10000.vtm" | ||
+ | |||
+ | bar2vtk example_blank.vtm data/ 10000 -f otherprefix | ||
+ | # output file name is "otherprefix_10000.vtm" | ||
[[Category:VTKpytools]] | [[Category:VTKpytools]] |
Revision as of 08:15, 7 September 2020
bar2vtk is a utility from the vtkpytools project for converting *bar files (velbar
and stsbar
) into appropriate VTK files. In particular, it makes use of the barfiletools module in the vtkpytools
project.
Documentation for bar2vtk
can be found by running the --help
flag, but this will also serve as a more detailed/verbose documentation page as well.
Contents
Functionality
Time Windows
Options
--velbar
and --stsbar
These flags allow for explicit setting the path(s) to the velbar
and stsbar
files. They can take a maximum of two arguments.
When given two paths, it will assume that a time window is to be created, with the first file corresponding to the first timestep in the timestep range.
Examples:
-
bar2vtk [vtmfile] [dataPath] 10000 --velbar /data/path/velbar.file --stsbar /data/path/stsbar.file
- Will use the files given to do a "single timestep" VTM creation
-
bar2vtk [vtmfile] [dataPath] 10000-20000 --ts0=0 --velbar /data/path/velbar_first.file /data/path/velbar_second.file --stsbar /data/path/stsbar_first.file /data/path/stsbar_second.file
- Will create a time step window using the
/data/path/*bar_first.file
files as timestep 10000 and/data/path/*bar_second.file
as timestep 20000
- Will create a time step window using the
--ascii
Ordinarily, the *bar
files are assumed to be Fortran binary array files. Using this flag, the file(s) will instead be assumed to be space-delimited plain-text files (ie. ASCII files).
--debug
This flag will add in the raw values from the stsbar
file, allowing for better debugging of the files if any strange data comes out from them.
--velonly
Will only load the velbar
file(s) into the VTM file.
--vptpath
Path to vtkpytools
in case of a desire to do custom testing with a separate module. Not generally recommended to use, mostly for testing/development purposes.
--outpath
The path that the "loaded" VTM file is output to.
-f/--new-file-prefix
Choosing a new file prefix for the "loaded" VTM file. By default, the name of the blank VTM file will be used with _[timestep]
being appended to it. If this flag is given, then it's argument will be used as the file prefix.
Examples:
bar2vtk example_blank.vtm data/ 10000 # output file name is "example_blank_10000.vtm"
bar2vtk example_blank.vtm data/ 10000 -f otherprefix # output file name is "otherprefix_10000.vtm"