Usage of hdf2v3 and hdf2file
备注
修改Filetype,再执行hdf2file或hdf2tab,可以输出不同类型的数据。把Filetype设置成8,就是 Tecplot 格式的数据。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
UsageHdf < Amroc < Virtual Test Facility
/* Default TWiki layout /
@import url("http://www.vtf.website/asc/wiki/pub/TWiki/VTFSkin/layout.css");
/ Default TWiki style /
@import url("http://www.vtf.website/asc/wiki/pub/TWiki/VTFSkin/style.css");
/ Custom overriding layout per web or per topic /
@import url("%USERLAYOUTURL%");
/ Custom overriding style per web or per topic */
@import url("%USERSTYLEURL%");
.twikiToc li {
list-style-image:url(http://www.vtf.website/asc/wiki/pub/TWiki/VTFSkin/i_arrow_down.gif);
}
.twikiWebIndicator {
background-color:#f8f8f8;
}
| Jump: |
- Validation Simulations
- Detonation-driven fracture
- Converging shock waves
- Documentation
- AMROC fluid solvers
- SFC shell solver
- Visualization tools
- Source code
- Links
- VTF Wiki
Usage of hdf2v3 and hdf2file
| hdf2v3/hdf2file [-f display_file] [-fs solver_file] [-s basic_filename ׀ -m] time-step_number |
chem.dat.
'Keys' select possible quantities. Hit the 'key' in the 3D-window in case of hdf2v3 or select multiple 'keys' in display_file in case of hdf2file.
Before using hdf2v3 you should go over the installation notes for Visual3 below.
| The following keys are supported in the standard mode for a single ideal gas: | |||
| i - Distribution | s - Levels | ||
| d - Density | u - Velocity u | ||
| v - Velocity v | w - Velocity w | ||
| e - Total Energy | l - ׀Velocity׀ | ||
| f - Flow Vectors | D - Schl.-Plot Density | ||
| U - Schl.-Plot Velocity u | V - Schl.-Plot Velocity v | ||
| W - Schl.-Plot Velocity w | E - Schl.-Plot Total Energy | ||
| L - Schl.-Plot ׀Velocity׀ | x - Vorticity of w and v | ||
| y - Vorticity of u and w | z - Vorticity of v and u | ||
| t - Temperature | p - Pressure | ||
| n - Entropy | c - Speed of Sound | ||
| m - Machnumber | T - Schl.-Plot Temperature | ||
| P - Schl.-Plot Pressure | N - Schl.-Plot Entropy | ||
| C - Schl.-Plot Sound-Speed | M - Schl.-Plot Machnumber | ||
| -f Name of parameter file for visualizer. Default values are display.in for hdf2v3 and display_file.in for hdf2file | |||
| -fs Name of parameter file that contains the topological data and the basic filenames of the HDF-files to be read in. Default is solver.in. |
| -s basic_filename A single HDF-file with a given basic filename is displayed. The following keys are supported in the scalar mode: | |
| i - Distribution s - Levels | |
| f - Function F - Schl.-Plot Function | |
-m Multi-component Euler equations for arbitrary thermally perfect gases are choosen. Physical values for the different gases are read from the file chem.dat. The following keys are supported in this mode: |
||
| i - Distribution | s - Levels | |
| d - Density | u - Velocity u | |
| v - Velocity v | w - Velocity w | |
| e - Total Energy | l - ׀Velocity׀ | |
| f - Flow Vectors | D - Schl.-Plot Density | |
| U - Schl.-Plot Velocity u | V - Schl.-Plot Velocity v | |
| W - Schl.-Plot Velocity w | E - Schl.-Plot Total Energy | |
| L - Schl.-Plot ׀Velocity׀ | x - Vorticity of w and v | |
| y - Vorticity of u and w | z - Vorticity of v and u | |
| t - Temperature | p - Pressure | |
| g - Gamma | c - Speed of Sound | |
| T - Schl.-Plot Temperature | P - Schl.-Plot Pressure | |
| G - Schl.-Plot Gamma | C - Schl.-Plot Sound-Speed | |
| 0 - Mass fraction Gas 1 | 1 - Mass fraction Gas 2 | |
| 2 - Mass fraction Gas 3 | 3 - Mass fraction Gas 4 | |
| 4 - Mass fraction Gas 5 | 5 - Mass fraction Gas 6 | |
| 6 - Mass fraction Gas 7 | 7 - Mass fraction Gas 8 | |
| 8 - Mass fraction Gas 9 | 9 - Mass fraction Gas 10 | |
| time-step_number | During computation a unique integer-valued number is assigned to each time-step. The format for HDF-files is [basic_filename]_[time-step_number].hdf. |
Parameters in display_file of hdf2v3 [display.in]
Possible parameters and default values (in brackets [ ]):| Type[1] | = 1 Vertex-centered display mode. The originally cell-centered data is interpolated onto the neighboring vertices. Various Visual3-options, e.g. isosurfaces, require vertex-centered data. |
| = 6 Cell-centered display mode. Optimal for debugging and faster than vertex-centered. |
| UseEquiv[0] | = 1 Vertex equivalencies between vertices of the geometric grid are calculated |
| and are handed over to Visual3. If this option is not used and Edgeoutlineon is in the script section is in effect white lines will be drawn at the borders of each subgrid. The drawing of these lines can be suppressed completely by adding Edgeoutlineoff to the script section. | |
| = 0 Don't find vertex equivalencies. |
| DisplayMinLevel[0] | = l Min. level to be displayed. | |
| DisplayMaxLevel[0] | = l Max. level to be displayed. |
| PlotGrid(1...l)[0] | = 0 Do not plot the subgrids on a particular level. | |
| = 1 Plot the subgrids on a particular level. |
| ShowMin(1/2/3)[geometric min. from solver_file] ShowMax(1/2/3)[geometric max. from solver_file] |
A restricted rectangular area may be choosen in geometric coordinates from the computational domain. This option is useful to speed up the visualizer in case of large simulations. | |
| ShowCut(1/2/3)[Not set] | Calculate a lower-dimensional cutting plane that is orthogonal to x(=1)-, y(=2)- or z(=3)-axis. |
| Symmetry(1/2/3)[0] | = 0 Do not use symmetry in x(=1)-, y(=2)- or z(=3)-direction. | |
| = 1 Doubles domain by assuming symmetry at the upper bound. | ||
| = -1 Doubles domain by assuming symmetry at the lower bound. | ||
| Symmetry in multiple directions can be selected. | ||
| Periodic(1/2/3)[0] | = 0 Do not use periodicity in x(=1)-, y(=2)- or z(=3)-direction. | |
| = 1 Doubles domain by assuming periodicity at the upper bound. | ||
| = -1 Doubles domain by assuming periodicity at the lower bound. | ||
| Periodicity in multiple directions can be selected. |
| ScriptBegin { | ||
Commands... |
||
| } |
visualizer/include/HDFToV3/FileEventhandler.h. In visualizer/include/HDFToV3/Eventhandler.h a queue is set up that in principle does nothing else than passing parameters to V3_SETSTATE() whenever Visual3 calls this function during its X-event-loop. See the Visual3 Advanced Programmer's Guide for further details and possible parameters, if you want to use this functionality of hdf2v3 extensively.
Parameters in display_file of hdf2file [display_file.in]
Possible parameters and default values (in brackets [ ]):| Type[6] | = 1 Vertex-centered display mode. The originally cell-centered data is interpolated onto the neighboring vertices. Like Visual3, IBM's Data explorer can calculate for instance isosurfaces only in this mode. |
| = 6 Cell-centered display mode. Optimal for debugging and faster than vertex-centered. |
| FileName[None] | Basic filename for generated files. If no name is selected the ouput goes to standard output. |
| FileType[0] | = 0 Browse through all cells and write an ASCII-tabular with highest level data. This type is intended to create one-dimensional output. With LinePoint(1/2/3) and LineVector(1/2/3) it can used to create plotting line-lots through higher dimensional data (set Type=1 for this option). The cells are not ordered and the tabular may not be appropriate for some plotting tools.The format is: |
x_1 [y_1] [z_1] key_1 ... key_n |
|
| = 1 Same as FileType=0, but the cells are ordered by the coordinates. This format should be appropriate for most plotting tools. | |
| = 2 Browse through all cells and create a regular ASCII-tabular with extends determined RegularData(1/2/3). Data from finer levels is assigned to the nearest cells. This type is intended to be used to create three-dimensional plots from two-dimensional with simple plotting tools, e.g. Gnuplot. | |
| = 3 Creates unstructured binary data for IBM Data Explorer. | |
| = 4 Creates unstructured ASCII data for IBM Data Explorer. | |
| = 5 Creates unstructured binary data for IBM Data Explorer that can be read into Data Explorer via an external filter. | |
| = 6 Creates HDF data. If a cut through the data is selected the dimension of the output is NOT reduced. | |
| = 7 Creates HDF data. If a cut through the data is selected, the output is of lower dimension than the input data. | |
| = 8 Creates structured Tecplot data in ASCII format. Use PointOutput = 1 to switch from output type f=block to f=point. | |
| = 9 Reserved for structured Tecplot data in binary format. Not implemented yet. | |
| = 10 Creates unstructured VTK ASCII format suitable for Visit. Ending .vtk | |
| = 11 Creates unstructured VTK binary format suitable for Visit. Ending .vtk. | |
| = 12 Creates unstructured VTK ASCII format suitable for Paraview. Ending .vtu | |
| = 13 Creates unstructured VTK binary format suitable for Paraview. Ending .vtu | |
= 15 Creates structured SILO binary format suitable for Visit. Ending .silo. Requires parameter SILO_DIR for vtf/configure. |
| Keys | A list of 'keys' (seperated by commas or white-spaces) defining the quantities that have to be calculated. FileTypes 3-5 only use the first key, if a list supplied. All other FileTypes allow multiple keys during a single run of the converter. |
| DisplayMinLevel[0] | = l Min. level to be used. | |
| DisplayMaxLevel[0] | = l Max. level to be used. |
| ShowMin(1/2/3)[geometric min. from solver_file] ShowMax(1/2/3)[geometric max. from solver_file] |
A restricted rectangular area may be choosen in geometric coordinates from the computational domain. This option is useful to speed up the visualizer in case of large simulations. | |
| ShowCut(1/2/3)[Not set] | Calculate a lower-dimensional cutting plane that is orthogonal to x(=1)-, y(=2)- or z(=3)-axis. |
| Symmetry(1/2/3)[0] | = 0 Do not use symmetry in x(=1)-, y(=2)- or z(=3)-direction. | |
| = 1 Doubles domain by assuming symmetry at the upper bound. | ||
| = -1 Doubles domain by assuming symmetry at the lower bound. | ||
| Symmetry in multiple directions can be selected. | ||
| Periodic(1/2/3)[0] | = 0 Do not use periodicity in x(=1)-, y(=2)- or z(=3)-direction. | |
| = 1 Doubles domain by assuming periodicity at the upper bound. | ||
| = -1 Doubles domain by assuming periodicity at the lower bound. | ||
| Periodicity in multiple directions can be selected. |
| LinePoint(1/2/3) LineVector(1/2/3) |
For FileType=0/1. Defines a straight line. Only vertices that are hit by this line will be plotted (set Type=1 for this option). |
| RegularData(1/2/3) | For FileType=2. |
Installation of Visual3 for hdf2v3
The Visual3-library has a minor flaw! Visual3 is aborted with a core-dump without any warning during startup, if no own valid definitions for its X-Window-fonts are supplied. This usually happens when the program tries to open its first window. The following definitions should be added permanently to .Xresources or .Xdefaults:
Visual*small: 6x10 |
Visual*medium: 8x13 |
Visual*med2: -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1 |
Visual*large: -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso8859-1 |
xfontsel to ensure that fonts defined in Visual*med2 and Visual*large are really available on your local system.
If you are using a Linux system with an 8-bit color depth Xserver you must set the environment variable MESA_RGB_VISUAL to PseudoColor 8 before running Visual3. But the display will look much better, if 12 or more bits/pixel are used in a TrueColor mode so that no dithering is required. If you have a graphics card with enough VRAM it is recommended to start the Xserver in 12, 15 or 24 bits TrueColor mode. Note that Visual3 does NOT support 16 bit.
-- RalfDeiterding - 12 Dec 2004
Usage of hdf2v3 and hdf2file的更多相关文章
- intellij IDEA 出现“Usage of API documented as @since 1.6+”的解决办法
问题 在导入java.io.console的时候出现"Usage of API documented as @since 1.6+"
- Disk Space Usage 术语理解:unallocated, unused and reserved
通过standard reports查看Disk Usage,选中Database,右击,选择Reports->Standard Reports->Disk Space Usage,截图如 ...
- OpenCascade MeshVS Usage
OpenCascade MeshVS Usage eryar@163.com Abstract. MeshVS means Mesh Visualization Service. It can be ...
- Usage: AddDimensionedImage imageFile outputFile eclipse 运行程序出错
关于这个在eclipse中运行java程序的错,首先确认你的jdk,jre是否完整,并且与你的eclipse的位数相同,当然我相信这个错误大家应该都会去检查到. 第二个关于addDimensioned ...
- Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance(info)
本文转载自:http://blog.csdn.net/myfxx/article/details/21096949 今天在用eclipse启动项目的时候发现了一个问题,就是每次启动项目的时候,ecli ...
- [转]Dynamic SQL & Stored Procedure Usage in T-SQL
转自:http://www.sqlusa.com/bestpractices/training/scripts/dynamicsql/ Dynamic SQL & Stored Procedu ...
- 处理Linux下subversion尝试连接自建的VisualSVN server报“Key usage violation in certificate has been detected”错误的问题
在Linux下使用subversion尝试链接VisualSVN server搭建的svn库,可能会报下面错误, svn: OPTIONS of 'https://server.domain.loca ...
- 应用alter index ××× monitoring usage;语句监控索引使用与否
随着时间的累积,在没有很好的规划的情况下,数据库中也许会存在大量长期不被使用的索引,如果快速的定位这些索引以便清理便摆在案头.我们可以使用"alter index ××× monitorin ...
- hadoop 2.5 hdfs namenode –format 出错Usage: java NameNode [-backup] |
在 cd /home/hadoop/hadoop-2.5.2/bin 下 执行的./hdfs namenode -format 报错[hadoop@node1 bin]$ ./hdfs nameno ...
随机推荐
- webstorm tools window
webstorm左侧的文件列表不见了, 通过菜单,view-->tools window-->project window就可以找到
- Linux内核调试方法总结之backtrace
backtrace [用途]用户态或者内核态程序异常退出时回溯堆栈信息 [原理]通过对当前堆栈的分析,回溯上层函数在当前栈中的帧地址,直至顶层函数.帧地址是指在栈中存在局部变量.上一级函数返回地址.寄 ...
- PJSIP Socket 模型
前些日子为解决项目中问题调试到PJSIP Socket收发数据部分 ,好记性不如烂笔头,记录下 PJSIP 使用的Socket 模型 ,以备后用. 不同平台下PJSIP采用不同的 Socket模型,W ...
- 阶段1 语言基础+高级_1-3-Java语言高级_1-常用API_1_第6节 static静态_14_静态static的内存图
输出room的时候,推荐用类名称点的形式 方法区内有,有个独立的空间叫做静态区,专门用来存储静态static的数据 下图红色箭头的部分,全程和对象没有关系.
- VUe.js 父组件向子组件中传值及方法
父组件向子组件中传值 1. Vue实例可以看做是大的组件,那么在其内部定义的私有组件与这个实例之间就出现了父子组件的对应关系. 2. 父子组件在默认的情况下,子组件是无妨访问到父组件中的数据的,所以 ...
- MySQL练习与小结
当你专注一件事的时候,时间总是过得很快! foreign key 练习 -- 切换数据库 use stumgr -- 删除班级表 drop table t_class1 -- 创建一个班级表 crea ...
- [Python3] 007 列表的遍历,你是 for 联盟还是 while 部落
目录 少废话,直接上例子 for 联盟 for 与 list 的简单合作 for 的老搭档 range() for 与嵌套列表(双层列表) for 从 if 那儿认识的 else 循环"三杰 ...
- 监听器 ServletRequestAttributeListener&ServletRequestListener详解
在web开发中,监听器不仅可以对Application监听,同时还可以对seesion和request对象进行监听: 该文章主要演示的是对request对象的创建和request属性的监听. 项目结构 ...
- webpack4 es6转换
在webpack里用es6语法, ie浏览器不识别,为了让浏览器识别,需要用到bebal转换; bebal,英文是通天塔 的意思, 我们常说的巴比伦也是这个词;我估计是当初设计者是想用它作为一个沟通e ...
- IIS是怎么处理多个请求的?
一,假设有一台服务器,它的IIS上部署有一个Web应用程序-S,可以通过浏览器或其他方式进行访问. 假设有A.B.C三台电脑同时访问网站S,IIS接收到3个HTTP请求,然后分别为三个请求 ...