Model.attributeupdatedoublearray2d#
- Model.attributeupdatedoublearray2d(entity, identifier, solver, status, behavior)#
Updates an attribute of type 2D double array (list of
hwDoubleList()).- Parameters:
entity (Entity) – The object describing the entity that owns the attribute.
identifier (int) – The identifier of the attribute.
solver (int) – The solver number of the attribute.
status (int) – The status of the attribute.
behavior (int) – The behavior of the attribute.
data (hwDoubleList2) – The list of list of double of the attributes.
Example#
Update the load colletor with ID 71 in * FREQ5_FR_ARRAY2D * dataname (identifier=7710) in Optistruct profile#import hm import hm.entities as ent model = hm.Model() # Finding the FREQ5_FR_ARRAY2D identifier using the hm_attributeidentifier function _, r = model.hm_attributeidentifier( entity_type=ent.Loadcol, entity_id=71, attribute_name_or_id="FREQ5_FR_ARRAY2D" ) # Setting the dataname model.attributeupdatedoublearray2d( entity=ent.Loadcol(model, 71), identifier=r.id, solver=1, status=2, behavior=0, data=[[1.0, 10**5, 3.14, 5.1], [2.0, 10**6, 6.14, 2.1]], )