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 everybody,
I have a question regarding how to find the closest node to a specific temp node and than paste to this specific node by usage of a tcl script?
Which command do I need to use?
thanks in advance
<?xml version="1.0" encoding="UTF-8"?>
Hi,
you can use hm_getclosestnode
Hi tinh,
thanks for your Support.
I tried to use the command hm_getclosestnode:
Temp Node Id = 97 (x=0; y=10; z=12.913)
I tried to find the closest node like this:
hm_getclosestnode 0 10 12.913 0 0
Is this correct? If yes, what am I doing wrong, because HM said the closest node is the node with ID 97...
But this is my temp node...
In my opinion HM should have Show node ID 34 as closest node (see Picture attached)...
Of course, hm is correct because your temp node (97) is closer to (0,10,12.9) than 34
to find out the node #34 you have to ignore #97:
*createmark nodes 1 97
set node34 [hm_getclosestnode 0 10 12.9 0 1]
yes that's true!
Actually I tried without the temp node, because I dont need the temp node at all. All I need are the coordinates and those I have.
Thank you very much for your support - greetings from Germany!
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…