FeResPost Web Site                     FeResPost Online User Manual

III.1.1.1 Reading a BDF

The finite element model can be imported from a Nastran Bulk Data File with method “readBdf”. The method has up to six arguments.

1.
A String containing the name of the main Nastran Bulk Data File.
2.
An Array of Strings containing the list of directories in which files specified by “include” statements shall be searched. Its default value is a void Array.
3.
The name of an extension that may be added to the file names specified in include statements. Its default value is a void String. (This argument corresponds to the jidtype in Nastran.)
4.
A Hash with String keys and values corresponding to the list of “symbols” that can be used in “include” statements in the Bulk Data Files. The default value is a void Hash.
5.
A Logical that specifies verbosity for the reading of the Nastran Bulk Data File. Its default value is “false”. This parameter is redundant with “setVerbosityLevel” of “Post” Module: to set the parameter to “true” is equivalent to set “Post” verbosity level to 1.
6.
A Logical that specifies whether the file contains only Bulk Data Section lines. Its default value is “false”. If the parameter is “true”, the “BEGIN BULK” and “ENDDATA” lines are ignored, and all the input lines, except comments, are interpreted. (See also the remarks below.)

Only the first argument of the method is mandatory. More information about the method is given in section III.1.1.1. Examples of valid “readBdf” statements follow:

    db.readBdf("../../MODEL/MAINS/unit_xyz.bdf",  
                  [],"",{},true)  
    db.readBdf("Z:/RD/ALCAS/TESTSAT/MODEL/MAINS/unit_xyz.bdf",  
                  [],"",{},true)  
    db.readBdf("//CALC01/TESTSAT/MODEL/MAINS/unit_xyz.bdf",  
                  [],"",{},true)  
    db.readBdf("//CALC01/TESTSAT/MODEL/MAINS/unit_xyz.bdf",  
                  [],"",{},true,true)

The format of Nastran cards defined in a bulk data file is described in [Sof04b]. The user must take the following limitations of the interface into account:

At the end of reading, the method issues an information message with a list of cards that have been skipped.

The correct working of method “readBdf” has not been tested for many of the Nastran cards listed above. So, bugs are possible when testing FeResPost for new finite element models. In order to reduce the severity of such bugs, Four singleton methods defined in NastranDb class to disable or (re-)enable some of the Nastran cards. See section III.1.1.8 for the use of that method. Note that the disabling of Nastran cards also influences the “readOp2” method when model entities are read.