Jump to content
Pandurang

creating mesh between 2 mesh components using tcl script

Recommended Posts

Altair_forum.jpg.c2c4d1e8559c794f77306ebd30821a24.jpg

 

Hi all,

 

I have 2 mesh components..yellow and green

considering yellow comp size...giving some tolerance of at least 2 elements size of green one...want to delete some portion from green as shown...

then create mesh between these two comp...shape can be tri or quad or mixed.

This is shell mesh...

element size of both are different...

no surface available for this 2

 

I want to automate these things...

1 .  Delete some portion from green...considering size of yellow

 2.  Create mesh between yellow and green keeping connectivity in mind..

 

please help me out...

if any one have any idea...

 

 

Thanks & Regards,

PD

 

 

Share this post


Link to post
Share on other sites

Hi,

 

Actually i am writing script to create weld between 2 comps. so as per requirement there should be quad elements around weld...so here i m creating weld with quad around it.

now i want to connect these quad with green comp mesh( this mesh could  be tri or quad or mixed) by deleting some portion from it..

 

how can i do that manually.

Please can u give me steps for this...

i will get some idea...

 

 

Thanks 

PD

 

 

  

Share this post


Link to post
Share on other sites
57 minutes ago, Pandurang said:

Hi,

 

how can i do that manually.

Please can u give me steps for this...

i will get some idea...

 

 

 

In general, if you don't know how to do that manually, you CAN not write your script.

 

Share this post


Link to post
Share on other sites
On 16/2/2018 at 9:17 PM, Pandurang said:

Hi,

 

Actually i am writing script to create weld between 2 comps. so as per requirement there should be quad elements around weld...so here i m creating weld with quad around it.

now i want to connect these quad with green comp mesh( this mesh could  be tri or quad or mixed) by deleting some portion from it..

 

how can i do that manually.

Please can u give me steps for this...

i will get some idea...

 

 

Thanks 

PD

 

 

  

 

Many types of weld can be done by hm connector. Don't you use it instead of writing it your self?

Share this post


Link to post
Share on other sites
5 minutes ago, tinh said:

 

Many types of weld can be done by hm connector. Don't you use it instead of writing it your self?

 

Hi Tinh,

 

want to connect tetra meshed and shell meshed(could be tri or quad) comps with quad mesh.

 if tri on shell meshed comps ..i have to delete them at vicinity of weld...create quad at deleted portion....then have to renumber these one near by layer of quad at weld in series...and also nodes on weld....

 

things i automated till now as per my logic:

1. projected duplicate nodes from tetra meshed comp on shell meshed...perpendecular

2. then by drag->nodes planer to shell meshed comps... consider i created yellow meshed(ref attachment)

 

now i want to delete some portion of shell meshed comps( green in attachment)

then connect yellow with green......

 

manually this takes much time to work out...

so want to automate this...

 

Regards,

PD

 

Share this post


Link to post
Share on other sites
On 2/18/2018 at 3:08 AM, Q.Nguyen-Dai said:

 

Hi,

 

I went through that link but i have query....

1. no lines in model so how can i create surface by Lines as shown in model...

2. do i have to create lines as well for this or any other option??

3. how to ensure same node on existing meshes

all other things i understood......

 

 

Regards,

PD

Share this post


Link to post
Share on other sites

Hi, try this work

1) select elems on the yellow patch

2) find free edges (or loop) of (1)

3) get nodes list of loop (2) with order , we will use 2d>ruled command to create mesh, so nodes must be input with correct order

4) get loops of green comp

5) search for the closest loop in (4), means the inside loop closed to yellow patch

6) get nodes list of loop (5) with order

7) first node of nodes list (3) must be closed to first node of nodes list (6), if not -> ruled mesh may be failed

8) search the closest node in nodes list (6) to the first node of (3), turn around order of nodes in list (6) to obey (7)

9) make ruled mesh

10) equivalence the created mesh

Share this post


Link to post
Share on other sites
2 hours ago, tinh said:

Hi, try this work

1) select elems on the yellow patch

2) find free edges (or loop) of (1)

3) get nodes list of loop (2) with order , we will use 2d>ruled command to create mesh, so nodes must be input with correct order

4) get loops of green comp

5) search for the closest loop in (4), means the inside loop closed to yellow patch

6) get nodes list of loop (5) with order

7) first node of nodes list (3) must be closed to first node of nodes list (6), if not -> ruled mesh may be failed

8) search the closest node in nodes list (6) to the first node of (3), turn around order of nodes in list (6) to obey (7)

9) make ruled mesh

10) equivalence the created mesh

thanks for reply.

3.  how to get nodelist in order?

8. ??

also please suggest some API...

 

Regards,

PD

Share this post


Link to post
Share on other sites
On 3/2/2018 at 12:29 PM, tinh said:

Hi Tinh,

 

it worked....but still getting some gap...

 

see attachment...

any workaround.

 

regards,

PD

testhm.png

 

 

tinh likes this

Share this post


Link to post
Share on other sites
2 hours ago, tinh said:

Please make ruled mesh for remained gap, 2 node lists include first and end nodes of (3) and (6)

 

Yes I have done that...

I have one query ...

When i find loops...I get ordered list

But if I find edges...I didn't get same

Why so?

 

Thanks once again..

 

Regards

PD

Share this post


Link to post
Share on other sites

@tinh @Pandurang How to search closet node ?

Hi, try this work

1) select elems on the yellow patch

2) find free edges (or loop) of (1)

3) get nodes list of loop (2) with order , we will use 2d>ruled command to create mesh, so nodes must be input with correct order

4) get loops of green comp

5) search for the closest loop in (4), means the inside loop closed to yellow patch

6) get nodes list of loop (5) with order

7) first node of nodes list (3) must be closed to first node of nodes list (6), if not -> ruled mesh may be failed

8) search the closest node in nodes list (6) to the first node of (3), turn around order of nodes in list (6) to obey (7)

9) make ruled mesh

10) equivalence the created mesh

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...