备注
通过修改Filetype
来改变输出数据的类型。hdf2tab.sh
转换全部数据文件hdf2tab.sh -m
多维数据
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
WebHome < Visualization < Virtual Test Facility
-
Validation Simulations
- Detonation-driven fracture
- Converging shock waves
-
Documentation
- AMROC fluid solvers
- SFC shell solver
- Visualization tools
- Source code
-
Links
- VTF Wiki
-
-
Start of topic |
Skip to actions
Visualization
FAQ | SW: Handling AMR | SW: Handling trig and tet meshes | SW: Tools: VisIt Tutorial | SW: Tools: VisIt Scripting | SW: Tools: Paraview Tutorial Currently the VTF project at Caltech endorses only two off-the-shelf packages: VisIt and Paraview. The goal is to use these packages for interactive visualization and analisys of data resulting from VTF coupled simulations. This mostly means AMR meshes as well as unstructured triangle and tetrahedronal meshes.AMR
AMR visualization is focused on data resulting from AMROC simulations. Data resulting from AMROC is by default written in HDF4 format. In order to be able to be fed into either Paraview or VisIt it needs to be first preprocesses.AMROC HDF4 to Paraview
The main tool for data conversion in AMROC is called hdf2file. hdf2file currently has four filters which result in the flattening of the level data into a single unstructured mesh. These for formats are:- [10] legacy VTK ascii
- [11] legacy VTK binary
- [12] VTU (VTK XML) ascii
- [13] VTU (VTK XML) binary
AMROC HDF4 to VisIt
The main tool for data conversion in AMROC is called hdf2file. hdf2file currently has two filters which result in the flattening of the level data into a single unstructured mesh. These for formats are:- [10] legacy VTK ascii
- [11] legacy VTK binary
- [15] legacy SILO binary (structured hierarchical) data
display_file.in
directly. See below, or the official Amroc page, for more info.
Using hdf2file
Using hdf2file after running your VTF (Amroc) simulation is quite simple. All it requires isdisplay_file.in
which describes what variables you will be dumping, and what format. Here is a sample
display_file.in used along with the 3D/Spheres AMROC demo.
# # sample display_file.in Type 1 FileType 13 Keys d,u,v,p,i,s DisplayMinLevel 0 DisplayMaxLevelFileType describes the output file format. The different available formats are:
hdf2file cheat sheet |
0 ) WriteASCIITabular |
1 ) WriteASCIITabular |
2 ) WriteRegularTabular |
3 ) WriteDXFile OpenDX Link |
4 ) WriteDXASCIIFile |
5 ) WriteDXExternalFilter |
6 ) WriteHDFConvert |
7 ) WriteHDFConvertReduced |
8 ) WriteTecplotASCII Tecplot Link |
10) WriteVTKASCIIFile |
11) WriteVTKFile Visit Link |
12) WriteVTUASCIIFile VTK Link |
13) WriteVTUFile Paraview Link |
14) WritePVTFile Paraview Link |
display_file.in
setup, then you can run hdf2file. A sample execution of hdf2file:
hdf2file -m -f display_file.in -fs solver.in > spheres.01.vtu
UNSTRUCTURED MESHES (i.e. ADLIB/SFC MESHES)
Thin shells modeled as 3d triangle meshes, as well as more complex polycrystal models made up as tetrahedronal meshes have a simple direct conversion into VTK formats. There are a couple of VTU filters for these meshes written by Santiago Lombeyda within the VTF repository. One single filter calledtec2file
is now available, which can convert a series of ASCII Tecplot files into a single VTU (ascii or binary vtk xml) or legacy VTK (ascii or binary). Notice the legacy binary format is the most compact and most compatible across different visualization software.
Its use is fairly simple. For instance, on asap, for a collection of
triangle mesh pieces for one frame (triangles versus tetrahedra need to be flagged explicitly), you would do:
tec2file -tectrigs -readsequence /home/ralf/TubeThin/result-\*-06000.tec -vtk > TubeThin.06000.vtkFor more info see the FAQ. There is also a quick explanation on some of the OtherVizFilters.
THE TOOLS
Both VisIt and Paraview were designed to work in parallel. Visit runs in parallel through the use of profiles. Paraview gets executed in parallel from the command line usingmpirun
or starting each component manually.
For more details on using either package see the quick tutorials on:
Copyright © 1997-2018 California Institute of Technology.