Model.exportshapes#

Model.exportshapes(analysiscode, subcode, outputfile)#

Exports shape design variables and shapes in several formats.

Parameters:
  • analysiscode (hwString) – The analysis code for which the output is needed. Valid values are OptiStruct, Nastran, Genesis, HyperStudy, Templex and HyperOpt.

  • subcode (hwString) –

    This indicates the specific format/item to be output.

    Valid subcodes for each analysis code

    OptiStruct, Nastran, Genesis None, long, force, moment, temperature Templex, HyperStudy OptiStruct, HyperForm, Nastran, Dynakey, Radioss, PAM-CRASH, ANSYS, Abaqus, Abaqus2D, HyperOpt, OptiStruct, Nastran, Abaqus

  • outputfile (hwString) – The output file name.

Example#

Create an OptiStruct long format deck shape.dat contain design variables and shapes#
import hm
import hm.entities as ent

model = hm.Model()

model.exportshapes(analysiscode="Optistruct", subcode="long", outputfile="shape.dat" )