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.
Guys, how to select HEXA elements by face. I can do it by menu, but how can I select these elements and add them to set using tcl script? Thank you!
Hi, Vladimir_Gantovnik,
Currently, we don´t support this selection method via API (python and tcl) for 3D elements, just for 2D
import hm import hm.entities as ent
model = hm.Model()
source_col = hm.CollectionByInteractiveSelection(model, ent.Element)
face_col = hm.CollectionByFace(model, source_col)
print(len(face_col)) Could not be the best approach, but as a workaround, you can request this selection as a *createmarkpanel https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_createmarkpanel2.htm?zoom_highlight=*createmarkpanel
Regards,
Arthur
Thank you, Arthur! Of course, I want to select faces/elements by surfaces, put them in sets and use these sets in CZM contact without manual selection using *createmarkpanel but completely automatically. Thank you for the example script, I will use in some other applications.
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…