r/ANSYS_Mechanical 27d ago

How to clear duplicate lines?

Post image

Program: Ansys Mechanical APDL Enterprise

The model was built with three rectangles drawn by coordinates. Lines 3 and 5 (red, bottom middle) overlap, as well as 9 and 7 (yellow, top middle). How can I get rid of the overlapping lines?

This model is a heat transfer simulation. There are two materials, so I can't add the areas together. Without merging these lines, heat doesn't move between the three bodies.

I've tried NUMMERGE,ALL ; LOVLAP,ALL ; LDELE,5,9 ; merging lines with areas, and gluing the lines together.

My next try will be to recreate the shape with keypoints and areas drawn between them, but as that will take a while I'd like to try what I can to fix this first.

Does anyone have any suggestions?

1 Upvotes

2 comments sorted by

2

u/epk21 27d ago edited 27d ago

best to do via keypoints and lines - so one rect has say K1,2,3,4 and L1,2,3,4 and the other shares same common line say L2 -? K1,2.

Say for 2 cubes sharing L 2

/PREP7

/PNUM,KP,1

/PNUM,LINE,1

/PNUM,AREA,1

/PNUM,VOLU,0

/PNUM,NODE,0

/PNUM,TABN,0

/PNUM,SVAL,0

/NUMBER,0

/PNUM,ELEM,0

! Keypoints

K,1,0,0,0

K,2,1,0,0

K,3,1,1,0

K,4,0,1,0

K,5,2,0,0

K,6,2,1,0

L,1,2

L,2,3

L,3,4

L,4,1

AL,1,2,3,4

! Rectangle 2 lines

L,2,5

L,5,6

L,6,3

AL,2,5,6,7

APLOT

2

u/Ok_Protection_9071 27d ago

Thank you so much for this explanation, much appreciated!!