加载中…
个人资料
CAECFD创新工场
CAECFD创新工场
  • 博客等级:
  • 博客积分:0
  • 博客访问:6,842
  • 关注人气:541
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

关于dyna计算中binout文件输出

(2010-11-24 10:40:38)
标签:

杂谈

从970版本开始,有了二进制格式格式的所谓的ASCII output文件(matsum,rcforc,etc.)。

--注单机版和smp版输出的为文本格式的ASCII output文件。

MPP-DYNA 不是直接写出ASCII输出文件,而是输出二进制格式数据。这些数据可以有两种格式:dbout(参见V.970用户手册Appendix L,P.L3)和binout。MPP缺省情况下会输出binout格式的数据。卡片*database_matsum,*database_rcforc,etc的第二个参数控制输出哪一种类型的数据。

1= old format,例如,ASCII文件(SMP) 或者 dbout文件(MPP)
2= new binout格式(对MPP版这是缺省的)
3= both formats都输出

LS-Prepost可以直接读取binout数据而不需要转换,但dbout文件需要用dumpbdb来转换成ASCII格式输出。 在LS-Prepost里,选项页”2〃(启动界面右边的Group按钮下面),在CFD按钮下面有“Binout”按钮。点击之后在左下面出现的子面板中点击“Load”按钮,选择求解器输出的binout文件。之后可以进行相关曲线的绘制。(此处修改原文部分)

作为lsda软件包的一部分,有两个程序可以获得(以用户账号登陆lstc ftp site,在”lsda”目录下)。一个是”l2a”,它可以用来从binout文件中提取不同的ascii文件。另一个是”ioq”,它是让你用来直接读取/浏览binout文件的小工具。

通常一个”l2a”执行块会包含在相应平台的MPP执行块的压缩包里,但你也可以用那个l2a来操作任何ls-dyna执行块(MPP or SMP)产生的binout文件。要从binout文件中提取ASCII输出文件,在命令行执行l2a,后面包含binout文件的名字。例如:”./l2a binout.0000〃

Binout文件是平台无关的,例如,你可以在与输出binout数据的平台同一平台或者任何其它平台下处理binout数据。

当MPP LS-DYNA执行块输出binout数据时,将会有多于一个的文件以”binout”作为根名字。每一个这样的文件需要被独立的打开来得到所有需要的数据。在d3hsp文件里,你可以看到像如下的部分所示的信息告许你每一个binout文件包含哪些数据。

>The following binary output file are being created,
>and contain data equivalent to the indicated ascii output files
     binout0000:(on processor 0)
          nodout
          matsum
          rcforc
          abstat
          rbdout
          sleout
          jntforc (type 0)
     binout0001:(on processor 1)
          jntforc
     binout0003:(on processor 3)
          deforc

程序将像之前一样输出dbout.*文件(没有binout),之后你可以用dumpbdb来提取所有的ASCII文件。

 

 

English Version:

Starting with version 970, a binary format for the so-called ASCII output files (matsum, rcforc, etc.) is available.

MPP-DYNA runs do not write ASCII output files directly but instead write the data to binary database(s).     There are two formats for this data: dbout     (see Appendix L, p. L.3 in the v. 970 User’s Manual) and binout.The default for MPP is to write the binout style of database.
The second input parameter of *database_matsum, *database_rcforc, etc.controls what type of output will be written.

1 = old format, i.e., ASCII files (SMP) or dbout files (MPP)
2 = new binout format (this is the default for MPP)
3 = both formats written

LS-PrePost can read the binout data directly with no conversion by dumpbdb being required.      In LS-PrePost, select the square button labeled “2〃 (directly under the “Group” button.     Next, select “Binout” and then, from the bottom of the window,select “Load”.     From there, it’s pretty self-explanatory.  

There are two programs that are available as part of our lsda package (see the “lsda” directory under the user account of our ftp site).     One is “l2a” which will extract the various ascii files from a binout file. The other is “ioq” which is a small utility that lets you read/explore the binout file directly. An “l2a” executable is generally included in the same tar file that contains the MPP executable for your platform but you can also use that l2a to operate on binout files produced by any LS-DYNA executable, MPP or SMP.     To extract the ASCII files from a binout file, execute l2a and include the name of the binout file on the execution line, e.g., “./l2a binout.0000〃.

Binout files are platform-independent, i.e., you can process binout data written by one platform on that same platform or on any other platform.When a binout database is written by an MPP LS-DYNA executable, there will be more than one file with the “binout” rootname.     Each of these files must be opened individually to access all of the requested data. In the d3hsp file, you’ll see something like the following which tells you what data is contained in each binout file:

> The following binary output files are being created,
> and contain data equivalent to the indicated ascii output files
       binout0000: (on processor       0)
                  nodout                                 
                  glstat                                 
                  matsum                                 
                  rcforc                                 
                  abstat                                 
                  rbdout                                 
                  sleout                                 
                  jntforc (type 0)                       
       binout0001: (on processor       1)
                  jntforc                                
       binout0003: (on processor       3)
                  deforc

Alternative control of output format for MPP (from Jason):
if you put the following line in your pfile

     The program will output dbout.* as before and you can use dumpbdb to extract all the ASCII files.

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有