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 on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
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…