Macro for projecting node on mesh along line
Dear all,
Please help me figure out a tcl/tk code to generate a macro which would make temporary nodes, along the first mesh it encounters along the geometry line. The blue could be thought of as the initial state and orange as the deformed component. There is a requirement to calculate the thickness after deformation, and no fixed nodes could be allotted as component differs.
It is possible to isolate the particular component as the names are known and the remaining could could be masked, and i wanted to know if we could get HM to project a temp node on the first mesh it encounters along the line of the geometry which is fixed for all components. (yellow line)
Looking forward to few solutions of this issue.
Thanks in advance for the help and support,
Arjun Arasan
Answers
-
My strategy is
- isolateonly each comp
- *createmark elems on a plane passed through the line
- *findmark nodes attached to those elems
- *projectmark the nodes on to the line
- from ends of line, hm_getclosestnode, then clear remained nodes
0 -
Dear Tinh,
Altair Forum User said:My strategy is
- isolateonly each comp
- *createmark elems on a plane passed through the line
- *findmark nodes attached to those elems
- *projectmark the nodes on to the line
- from ends of line, hm_getclosestnode, then clear remained nodes
Step 1: isolating each component is not a problem as all names are constant and fixed.
Step 2: i currently have a macro which allows the user to select 3 nodes around the geometry line, 4 different times, hence the above screenshot. But i want the system to identify the plane passing close to the line.
Step 3: Sometimes the line may cross through between 2 elements or so, would it work then?
Step 4: What would the functions be for getting close nodes, clear all but that projected node?
Thanks in advance for the help and support,
Arjun Arasan
0 -
hi,
step 2 is very difficult if you do not provide a particular description (i think your model is particular), need user selection means not a macro, if I have to select something, I will select first encountered nodes instead
if we can detect plane for step2, then step3 is not a problem, same with step4 and 5 - using hm_getclosestnode is simple
0