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,
Is there any command or method to measure distance between nodes and comps.
I tried command: hm_measureshortestdistance but it said that, enity type comp is not supported.
Hi Toan,
Did you try with hm_getdistance
The format is hm_getdistance entity_type id1 id2 syst_id
You cannot measure distance to a comp, because comp is a combination of nodes, elems, surfs, lines, points... you have to indicate which primary entity is, example
hm_measureshortestdistance nodes .... surfs ....
in that, surfs are pre-selected by *createmark surfs 1 'by comp' $the_comp_you_want_to_measure
hi,
@George P Johnson that command is used only for node-node or point-point. But thanks anyway\
@tinh well, my model contains only temp node and comp with element, there is no such thing like surface or line. That why I have to come here, looking for a solution.
ok simply replace surfs by 'nodes'
hm_measureshortestdistance nodes 1 .... nodes 2 ....
with node 2 is marked by *createmark nodes 1 'by comp id' $your_comp_id
I thought about that too,
But it's not the distance between node and comp, it is the distance between node and nearest comp node.
It will be wrong if the line between two nodes is not Perpendicular to comp.
Did you try with nodes->elems?
I tried, but no use,
The valid entities are nodes, lines, surfaces, solids and points.
May be there is no direct way to do that.
Hi
You can first search nodes-nodes
Then use hwat::utils::GetClosestElement
Then measure distance to that element
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…