备注###

通过修改Filetype来改变输出数据的类型。

hdf2tab.sh转换全部数据文件

hdf2tab.sh -m多维数据

WebHome < Visualization < 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:#FFFF66;
}

Jump:

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

Binary VTU is currently the best format to use for Paraview. There is a fifth alternative, though it has not been completely carried out due to a major deficiency. The Paraview PVD format is a collection format which can point to a series of structured blocks, and even append some meta information such as level. However, each of these blocks it points to must be a separate file. So, in order to dump a generally medium size AMR mesh into ![14] PVD it would require hundreds to thousands of files for each structured subblock. This may change in the future.

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

Unfortunatelly these legacy VTK formats cannot store level information, nor do they use the more modern VTK XML formats. Thus the current VTK filters flatten the mesh into an unstructured mesh. Meanwhile, the native LLNL Silo format, dumps all data blocks into a single Silo file. Blocks are then collected in levels, all_levels, and variables. These collections are what are exposed to the user in Visit. To create different collections (for example levels 3 and up), you can do this by manipulating directly the 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 is display_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
DisplayMaxLevel

FileType 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
15) WriteSILOFile Visit Link

Type describes whether to dump cell data (0) or vertex data (6). Notice that even though both Paraview and VisIt can handle cell data, some ghost-cells might dump NANs. The conversion (actual conversion happens in hdf2file) to vertex data will most likely clean this up and make either tool run in a more stable fashion.

After you have your 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 called tec2file 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.vtk

For 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 using mpirun or starting each component manually.

For more details on using either package see the quick tutorials on:

You are here: Visualization > WebHome

to top

Copyright © 1997-2018 California Institute of Technology.

AMROC可视化的更多相关文章

  1. iOS可视化动态绘制连通图

    上篇博客<iOS可视化动态绘制八种排序过程>可视化了一下一些排序的过程,本篇博客就来聊聊图的东西.在之前的博客中详细的讲过图的相关内容,比如<图的物理存储结构与深搜.广搜>.当 ...

  2. 发布:.NET开发人员必备的可视化调试工具(你值的拥有)

    1:如何使用 1:点击下载:.NET可视化调试工具 (更新于2016-12-29 19:11:00) (终于彻底兼容了部分VS环境下无法使用的问题) 2:解压RAR后执行:CYQ.VisualierS ...

  3. Webstorm+Webpack+echarts构建个性化定制的数据可视化图表&&两个echarts详细教程(柱状图,南丁格尔图)

    Webstorm+Webpack+echarts   ECharts 特性介绍 ECharts,一个纯 Javascript 的图表库,可以流畅的运行在 PC 和移动设备上,兼容当前绝大部分浏览器(I ...

  4. iOS可视化动态绘制八种排序过程

    前面几篇博客都是关于排序的,在之前陆陆续续发布的博客中,我们先后介绍了冒泡排序.选择排序.插入排序.希尔排序.堆排序.归并排序以及快速排序.俗话说的好,做事儿要善始善终,本篇博客就算是对之前那几篇博客 ...

  5. 基于fis3的组件可视化道路

    首先说明一下,即使不熟悉fis3,阅读文本应该也会有所收获. 本文以fis-parser-imweb-tplv2插件为模板插件,目的不在于使用哪个模板,而是组件可视化的实现思路,不必担心. 先说说模板 ...

  6. 自定义可视化调试工具(Microsoft.VisualStudio.DebuggerVisualizers)

    前言: 最近飞机失联的太多,明天要飞北京处理服务器双机热备的问题,航空保险已买,单号是:TF10122913. 至于我的银行卡密码,在我枕头下面的字条里,要是我之后没再更新文章,请通知我家人,哈哈哈哈 ...

  7. 开源发布:VS代码段快捷方式及可视化调试快速部署工具

    前言: 很久前,我发过两篇文章,分别介绍自定义代码版和可视化调试: 1:Visual Studio 小技巧:自定义代码片断 2:自定义可视化调试工具(Microsoft.VisualStudio.De ...

  8. 【Win10 应用开发】使用“实时可视化树”工具查看应用界面元素

    记得有朋友问老周,系统中的“计算器”应用的界面菜单是怎么做的.其实,你可以用VS 2015的新工具来查看它的界面结构. 实时可视化树工具只能查看XAML定义的界面,如WPF和Win App.现在,Wi ...

  9. 全球PM25实时可视化

    星期一的早上,我在办公区鸟瞰窗外,目光所到之处,用顾城的那首"你看天时很近,看我时很远"倒是格外的应景.作为一名父亲,看着工位上3M的口罩,想想此刻还在熟睡的孩子,多少有些无奈-- ...

随机推荐

  1. centos 6.9 mysql 安装配置

    1.全新系统,安装mysql yum -y install mysql mysql-server mysql-devel 2.启动mysql service mysqld start 3.修改密码 登 ...

  2. ora600

    4节点RAC:版本oracle11.2.0.4 22:20——23:40发生ora600 alert日志: Errors in file /u01/app/oracle/diag/rdbms/orcl ...

  3. codeforces 657C - Bear and Contribution [想法题]

    题目链接: http://codeforces.com/problemset/problem/657/C ----------------------------------------------- ...

  4. iOS即时通讯之CocoaAsyncSocket源码解析五

    接上篇:iOS即时通讯之CocoaAsyncSocket源码解析四         原文 前言: 本文为CocoaAsyncSocket Read篇终,将重点涉及该框架是如何利用缓冲区对数据进行读取. ...

  5. java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider解决方法

    因为加入了jdk的第三方安全库,需要额外配置 1.下载bcprov-jdkxx-xxx.jar 2.将bcprov-jdkxx-xxx.jar放入$JAVA_HOME/jre/lib/ext下 3.打 ...

  6. Delphi XE2 之 FireMonkey 入门(27) - 数据绑定: TBindingsList: TBindScope

    Delphi XE2 之 FireMonkey 入门(27) - 数据绑定: TBindingsList: TBindScope 如果在编写表达式时, 如果能够随意指认需要的控件就好了(通过 Owne ...

  7. 阶段1 语言基础+高级_1-2 -面向对象和封装_16this关键字的作用

    this主要是在重名的情况下 ,起到区分的效果 新建demo04的包,里面新建类Person 通过this.进行区分 this关键字可以解决重名 分不开的问题 这里的person调用的sayHello ...

  8. truncate()函数

    1 truncate()方法用于截断文件,如果指定了可选参数 size,则表示截断文件为 size 个字符,截断之后 size 后面的所有字符被删除. 参考: https://www.runoob.c ...

  9. linux(centos6.5)常用命令

    前言:由于项目项目使用的是linux服务器,因此会使用到较多linux命令,本文对centos下常用命令进行记录 1.vi的三种模式 2.解压缩相关 3.用户相关 4.文件相关 5.各种查看命令 1. ...

  10. 【转载】研发应该懂的binlog知识(上)

    ---------------------------------------------------------------------------------------------------- ...