Create tables for use with WRITENAS.
table=create_op2table(shp)
table=create_op2table(result,{shp,'BOPHIG'})
CREATE_OP2TABLE creates a structure in the format required by WRITENAS for export to a NASTRAN OP2 file.
Each input can either be an imat_shp or imat_result object. If you pass in the object directly, CREATE_OP2TABLE will select a table name to use. You can force the table name by passing in a 1x2 cell array, where the first cell is the imat_shp or imat_result, and the second cell is a string containing the table name.
TABLE is a structure properly formatted for WRITENAS. Each field is the table name that will be exported, and the contents of each field is a structure containing the table data that will be written.
You can import tables into this format by calling READNAS with the 'asraw' option. This is useful if you just want to make modifications to existing OP2 data.
Supported blocks:
Category | DataLocation | Notes |
OEE | Data On Elements | This includes strain and kinetic energy datablocks (ONRGY1, ONRGY2). NASTRAN writes out datablocks per element type, but Data On Elements do not have an element type component. This function writes the data for all elements to a single record. One way around this is to set the SEID for each element to the element type. |
OES1 | Data At Nodes On Elements |
This includes stress and strain datablocks such as OES1 and OSTR1X. The following element types are supported: 39 (CTETRA) |
OUG1, OQG1 | Data At Nodes | This includes disp/vel/acc datablocks (BOPHIG, OUGV1, BOUGV1, RADCONS, etc.), temperature datablocks (TOUGV1), and SPC/MPC force datablocks (OQG1, OQMG1). |
Notes: