The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hello i wanted to create a script for renumbering the elements and node id in python for hypermesh 2024 .
can i get a script related to that.
import hm
import hm.entities as ent
elems = hm.Collection(model,ent.Element)
model.renumbersolverid(collection=elems,start_id=1,incr_val=1,offset_val=1,offset_flag=0,reserved_1=0,reserved_2=0,reserved_3=0)
nodes = hm.Collection(model,ent.Node)
model.renumbersolverid(collection=nodes,start_id=100,incr_val=1,offset_val=1,offset_flag=0,reserved_1=0,reserved_2=0,reserved_3=0)
Thank you for the reply Shayan Zhang. If i need to renumber the specific collector elements how can i do it.
You are welcome Saravanan.
For that purpose, you just need to change the collection instantiation to collect specific elems.
For how to, you can check out the links below and their contexts:
https://help.altair.com/hwdesktop/pythonapi/hypermesh/hm.html#filterbyenumeration-class
https://help.altair.com/hwdesktop/pythonapi/hypermesh/hm.html#collection-class
Hope you enjoy the Hypermesh Python API learning journey!
Shaoyan
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…
Join us for a community conversation to explore how different modeling approaches in Simcenter PSIM can help engineers simulate power electronics systems while balancing accuracy, simulation speed, and design insight. What you'll learn: Power transistor modeling : Thermal and high fidelity models Protection component…