FeResPost Web Site                     FeResPost Online User Manual

III.1.1.6 Accessing FEM information or modifying the FEM

The “fillCard” method allows retrieval of an Array corresponding to a Nastran BDF card. The method has two arguments:

1.

A String corresponding to the type of entity whose definition is requested. Possible values of the argument are “CoordSys”, “Element”, “Node”, “RBE”, “MPC”, “Property” and “Material”.

2.

An integer corresponding to the ID of the FEM item whose definition is sought.

The method returns the definition in an Array:

Note that a Nastran model may contain several material cards sharing a common ID, or several MPC cards with the same ID. When this case occurs, an exception is thrown. Therefore, for MPC or material cards, it is advised to use “fillCards” method instead of “fillCard”. An exception is also thrown when no FEM item matching specified ID is found.

The “fillCards” method allows retrieval of an Array containing BDF cards as those returned by “fillCard” method. (This means that “fillCards” method returns an Array of Arrays.) The method has two or three arguments:

1.

A String corresponding to the type of entity whose definition is requested. Possible values of the argument are “CoordSys”, “Element”, “Node”, “RBE”, “MPC”, “Property” and “Material”.

2.

An integer corresponding to the minimum ID of the FEM items whose definitions are sought.

3.

An integer corresponding to the maximum ID of the FEM items whose definitions are sought.

Third argument is optional. When omitted, one considers that maximum ID = minimum ID. In such cases, the method generally returns at most one BDF card. However, for materials and MPCs, a single ID may correspond to several items. The method returns the definition in an Array of Arrays. Each element of the main Array is a Nastran BDF card as those returned by “fillCard” method.

Method “insertCard” performs the reverse operation: it is used to update the “NastranDb” database by insertion of FEM entity (coordinate system, node, element, RBE, material...). The method “insertCard” has one argument: an Array containing the different fields of the card. The conventions for the components of the Array are exactly the same as for the Array returned by method “fillCard” discussed above. (This means that the first element of the Array, of index 0, is a String corresponding to the name of the Nastran card.)

Method “insertCards” corresponds to “insertCard” but allows insertion of several cards with a single call to the method. The argument of the method is then an Array of Arrays.

Remarks about the insertion methods: