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.
Hi,I would like to create a macro which check quality of elements.
I didn't find how to check an element for some specific values as aspect ratio, skew angle, or warpage.
Do you have any ideas to do that ?Thanks in advance.Regards,
Cya.
Hi,
by following these steps:
delete documents/command.cmf file
press F10 /press 'aspect'
open command.cmf file and you will see how to check aspect
if you want to get aspect value of an elem, using hm_getentityvalue elems ID aspect 0 -byid
Thanks for your help !
Ok for the value, but how can I get the ID of incorrect elements ?
Because using 'save failed', and 'retrieve mark', I'm not able to get them.
if you want to get correct id, using hm_getsolverid
I use hm_createmark instead of hm_getentityvalue. If you review the documentation for hm_createmark you will find that there are some options to create the mark by a Data Name value, these options are:
Here is an example:
hm_createmark elems 1 'less than value' 'jacobian 0.5'; set elemList [ hm_getmark elems 1 ];
which get all of the elements with jacobian value less than 0.5.
For more information, read the hm_createmark and DataName documentation:
DataNames: http://www.altairhyperworks.com/hwhelp/Altair/hw11.0/help/hwdref/data_names.htm
hm_createmark http://www.altairhyperworks.com/hwhelp/Altair/hw11.0/help/hwdref/hm_createmark.htm
Edit: The ids of the elements obtained from the hm_getmark commands are the internal hypermesh id of the elements not the element number for the solver. In case you need also the solver element id use the command hm_getsolverid entity id, where entity is any hm entity in this case elements.
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…