Model.modent_addrepresentations#
- Model.modent_addrepresentations(entity, representation_key, representation_file, representation_file_format)#
Adds representation information to a modular entity.
- Parameters:
entity (Entity) – The object describing the modular entity to add representation information to. Valid entities are subsystems.
representation_key (hwString) – Key of the representation to add, which is unique per subsystem.
representation_file (hwString) – Full path and file name of the representation.
representation_file_format (hwString) – The representation file format. Valid values are HyperMesh, Nastran, OptiStruct, LS-DYNA, Radioss Block, PAM-CRASH 2G, and Abaqus.
Example#
Add a representation with key “crash5” , file “C:/representations/Subsystem1_Crash5mm.k”, and format LS-DYNA to subsystem with ID 3#import hm import hm.entities as ent model = hm.Model() model.modent_addrepresentations( entity=ent.Subsystem(model, 3), representation_key="crash5", representation_file="C:/representations/Subsystem1_Crash5mm.k", representation_file_format="Ls-Dyna", )