『求助』请问dmap可以用来做与其他软件的接口么

浏览:101052 回答:5
请问dmap可以用来做与其他软件的接口么 就像pcl那样? 还是只能修改bdf文件然后手动提交nastran分析
邀请回答 我来回答

全部回答

(5)
默认 最新
fengmu

谢谢你

2007年5月2日
评论 点赞
zhang
DMAP本身就有一个ishell模块,可以进行外部程序的调用,解释如下:
When ISHELL is executed, MSC.Nastran goes into a wait state until the external (user-supplied) program completes
By using ISHELL, anything (which can be programmed) can be made to appear to be a part of your MSC.Nastran run

There is a companion module FORTIO, which will release files from the MSC.Nastran run (for example OUTPUT2 files) and re-attach them when the external program is completed
These files can be used to transfer data from MSC.Nastran to the external program and also to transfer data from the external program to MSC.Nastran
By doing this, it is possible to truly customize your MSC.Nastran run

ishell的应用格式如下:
ISHELL //prgname/s,n,irtn/
noin/noreal/nocmpx/nochar/nounit/
int1/int2/int3/int4/real1/real2/real3/real4/
complex1/complex2/complex3/complex4/
char1/char2/char3/char4/
unit1/unit2/unit3/unit4 $
其中: prgname:被调用的外部函数

给你看一个例子吧,很简单的

Assign output4=‘meff.op4’,unit=11,form=formatted
  .
Compile moders
alter ’RETURN’(,-1) $ before return statement
VECPLOT ,,BGPDTS,EQEXINS,CSTMS,,,,/RBTG1/GRDPNT//4 $
trnsp rbtg1/rbg1 $
UPARTN USET,rbg1/rba,,,/’G’/’A’/’O’/1 $
LAMX, ,LAMA/LAMAMAT/-1 $
smpyad pha,mmaa,rba,,,/partfac/3////1 $
smpyad rba,mmaa,rba,,,/mtot/3////1 $
diagonal partfac/meff/’whole’/2. $
masswt = 1./wtmass $
masswtc = cmplx(masswt,0.) $
add meff,/wteff/masswtc
output4 meff,wteff,mtot,lamamat,//-1/11 $ write bcd
FORTIO //’close’/11/2/s,n,close11 $
if(close11<>0)then $
  message //’error - cannot close unit 11 - ishell not run’ $
  message //’error code returned from FORTio =’/close11 $
else $
ishell //’efm.exe’/s,n,itworked $
  message //’finished with ishell - itworked = ’/itworked $
endif $
输出我就不贴了

2007年4月21日
评论 点赞
fengmu

谢谢 版主的回答 我也觉得比较难 哈哈 好像做这方面的人也很少

2007年3月20日
评论 点赞
tianren

MSC.PATRAN宏命令语言(PCL)MSC.PATRAN提供的综合程序语言和自定义工具,类似于C语言,可用于生成应用程序或特定的用户界面。显示自定义图形,读写MSC.PATRAN数据库,建立新的或增强功能。通过PCL,其它商品化或自编分析程序可被集成到MSC.PATRAN软件系统中。用户可利用MSC.PATRANPCL工具按照任务的要求建立自行的快速建模、分析、和可视化系统,同时也可将自己的应用软件挂靠在MSC.PATRAN环境下与其它分析仿真工具共享资源。利用MSC.PATRAN方便灵活的用户化特点,编写与其他软件的接口,构造专用仿真系统,集成自编软件。

2007年3月17日
评论 点赞
tianren





作为开放式体系结构MSC.NASTRAN的开发工具DMAP语言(Direct Matrix Abstraction Program)有着30多年的应用历史,它不同于其它软件所用的宏命令语言:
1)可深入
MSC.NASTRAN的内核。一个DMAP模块可由成千上万个FORTRAN子程序组成,并采用高效的方法来处理矩阵。实际上MSC.NASTRAN是由一系列DMAP子程序顺序执行来完成的。
2)DMAP能帮助用户改变或直接产生新的求解序列,通过矩阵的合并、分离、增加、删除、或将矩阵输出到有限元后处理、机构分析、测试相关性等一些外部程序中,DMAP还允许在MSC.NASTRAN中直接执行外部程序。
3)用户还可利用
DMAP编写用户化程序,操作数据库流程。例如,通过DMAP语言,可将结构的虚质量加到MSC.NASTRAN中。

因此,DMAP语言主要是用来对Nastran的求解进行操作,如果用来编写与其他软件的接口可能比较难。

2007年3月17日
评论 点赞

没解决?试试专家一对一服务

换一批
    App下载
    技术邻APP
    工程师必备
    • 项目客服
    • 培训客服
    • 平台客服

    TOP