@writenastranoldcontact()

Returns the contact export option value for Nastran (MSC).

Syntax

@writenastranoldcontact ()

Type

HyperMesh Template Function

Description

Returns the contact export option value for Nastran (MSC).

Before 2017.1 for Nastran (MSC), both the "new" (BCBODY1, BCONECT BCTABL1) and "old" (BCBODY, BCTABLE) contacts were mapped to entities in HyperMesh. As a result, users were allowed to create decks with both the version of the solver cards and exported. That is not valid for the solver. Solver either expects a "new" or "old" deck. With 2017.1, users have the option to create "new" version of the solver cards and yet choose to export them as "old" contact cards. A return of 1 means old, and 0 means new.

Example

*if([@writenastranoldcontact() == 0])
   ...write new contacts...
*else()
   ...write old contacts...
*endif()

Version History

2017.1