hexagon logo

How to read matrix data from bulk data section by using DMIIN module?

redd
I writed a small example to read and output data from bulk data section, upper capture is my code. However it doesn't output the matrix and the value is got1 is FALSE.
Can someone help me check it?
the .bdf file is attached.
Parents
  • OK- I had a chance to look at your actual sample... the only issue was the preface file... it needs to match whatever version of Nastran you are running. You should be able to find it in a location like this:
     
    'C:\MSC.Software\MSC_Nastran\20190\msc20190\nast\del\preface.dmap'
     
    Do not use this file exactly as is... pull out of it what you need:
     
    TYPE PARM,nddl,LOGICAL,N,GOODVER $
    TYPE PARM,,I,N,GNMAX,PVALID,FLUIDSE0,openfsi $
    TYPE PARM,,LOGICAL,N,RESTART,PEXIST,BEGSUP,NOGO0 $
    TYPE PARM,,CHAR8,N,dball0 $
     
    CALL IFPL /GEOM1,GEOM1Q,EPT,MPT,EDT,DIT,DYNAMIC,GEOM2,GEOM3,
          GEOM4,GEOM5,FORCE,MATPOOL,AXIC,DEFUSET,DMI,DMINDX,DTI,
          DTINDX,PVT,CASECC,PCDB,XYCDB,POSTCDB,BULK,HIST,TIMSIZ,
          EDOM,DEQATN,DEQIND,CONTACT,OINT,,MEDGE,MFACE,GDNTAB,
          PVAL,MBODY,selist,ibulk,epta,geom2a,eht,ehta,,,,,pcompt,
          pvt0,,mmcdb,,toptab,topele,extdb,pbrms,ifexpnt,vefs,
          afpmlist,actnod,tomtab,hrmsp,casesprd,ofcon3d0,fsi,fatigue,
          harmelpt,emap,rot3elpt, ,,,, , ,semap0,,,/
          S,RESTART/GOODVER/S,DBALL0/FALSE/S,PEXIST/S,GNMAX/
          S,PVALID/'   '/s,begsup/s,nogo0/0/false/false/'   '/
          false/false/false/s,openfsi/0 $
     
     
    Using this preface, I was able to get your sample to run in v2019.

    Attached Files (1)
Reply
  • OK- I had a chance to look at your actual sample... the only issue was the preface file... it needs to match whatever version of Nastran you are running. You should be able to find it in a location like this:
     
    'C:\MSC.Software\MSC_Nastran\20190\msc20190\nast\del\preface.dmap'
     
    Do not use this file exactly as is... pull out of it what you need:
     
    TYPE PARM,nddl,LOGICAL,N,GOODVER $
    TYPE PARM,,I,N,GNMAX,PVALID,FLUIDSE0,openfsi $
    TYPE PARM,,LOGICAL,N,RESTART,PEXIST,BEGSUP,NOGO0 $
    TYPE PARM,,CHAR8,N,dball0 $
     
    CALL IFPL /GEOM1,GEOM1Q,EPT,MPT,EDT,DIT,DYNAMIC,GEOM2,GEOM3,
          GEOM4,GEOM5,FORCE,MATPOOL,AXIC,DEFUSET,DMI,DMINDX,DTI,
          DTINDX,PVT,CASECC,PCDB,XYCDB,POSTCDB,BULK,HIST,TIMSIZ,
          EDOM,DEQATN,DEQIND,CONTACT,OINT,,MEDGE,MFACE,GDNTAB,
          PVAL,MBODY,selist,ibulk,epta,geom2a,eht,ehta,,,,,pcompt,
          pvt0,,mmcdb,,toptab,topele,extdb,pbrms,ifexpnt,vefs,
          afpmlist,actnod,tomtab,hrmsp,casesprd,ofcon3d0,fsi,fatigue,
          harmelpt,emap,rot3elpt, ,,,, , ,semap0,,,/
          S,RESTART/GOODVER/S,DBALL0/FALSE/S,PEXIST/S,GNMAX/
          S,PVALID/'   '/s,begsup/s,nogo0/0/false/false/'   '/
          false/false/false/s,openfsi/0 $
     
     
    Using this preface, I was able to get your sample to run in v2019.

    Attached Files (1)
Children
No Data