Jump to content
ArjunArasan

Macro for projecting node on mesh along line

Recommended Posts

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

requirement.PNG

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Dear Tinh,

 

11 hours ago, tinh 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...