Model.convertthickness#
- Model.convertthickness(collection, source_solver_id, target_solver_id)#
Converts the thickness of the specified entities to the target solver.
Currently this is supported only for Nastran to Abaqus conversion. It converts the element thickness to nodal thickness.
- Parameters:
collection (Collection) – The collection containing the entities to update. Valid entities are elements.
source_solver_id (int) – The ID of the source solver for the specified entities. This can be queried using
Model.hm_getsolver().target_solver_id (int) – The ID of the target solver for the specified entities. This can be queried using
Model.hm_getsolver().
Example#
Convert elements with IDs 1-101 from Nastran to Abaqus#import hm import hm.entities as ent model = hm.Model() model.convertthickness( collection=hm.Collection(model, ent.Element, list(range(1, 101))), source_solver_id=1, target_solver_id=2, )