## Meshing a brick with an embedded sphere

3 posts
• Page

**1**of**1**### Meshing a brick with an embedded sphere

Hello,

the subject sounds similar to the previous topic "How to mesh a brick chopped with a partail sphere" but the answer there didn't help me.

I want to mesh a brick with an embedded sphere. The geometry can be this

brick x 10 y 10 z 10

create sphere radius 4

subtract volume 2 from volume 1 imprint

create sphere radius 4

I tried a lot of things already like webcutting it into smaller and smaller pieces but non of them worked. I would be very thankful for help.

It is important that the mesh on the outer surfaces is regular and composed from equally sized rectangles because it part of a larger setup and the mesh has to match the other parts.

Best regards,

Sascha

the subject sounds similar to the previous topic "How to mesh a brick chopped with a partail sphere" but the answer there didn't help me.

I want to mesh a brick with an embedded sphere. The geometry can be this

brick x 10 y 10 z 10

create sphere radius 4

subtract volume 2 from volume 1 imprint

create sphere radius 4

I tried a lot of things already like webcutting it into smaller and smaller pieces but non of them worked. I would be very thankful for help.

It is important that the mesh on the outer surfaces is regular and composed from equally sized rectangles because it part of a larger setup and the mesh has to match the other parts.

Best regards,

Sascha

- SMS
**Posts:**3**Joined:**Tue Aug 06, 2013 12:10 pm

### Re: Meshing a brick with an embedded sphere

You could try meshcutting capability. It is still under development but it works for your case. Use it with caution though.

reset

brick x 10 y 10 z 10

create sphere radius 4

subtract volume 2 from volume 1 imprint

create sphere radius 4

webcut volume all plane xplane

webcut volume all plane yplane

webcut volume all plane zplane

delete volume all except 7 8

remove surf 107

mesh vol 7

set developer commands on

meshcut volume 7 sheet surface 117

del vol 8

body all copy reflect x

body all copy reflect y

body all copy reflect z

merge all

Let me know if this works for you.

reset

brick x 10 y 10 z 10

create sphere radius 4

subtract volume 2 from volume 1 imprint

create sphere radius 4

webcut volume all plane xplane

webcut volume all plane yplane

webcut volume all plane zplane

delete volume all except 7 8

remove surf 107

mesh vol 7

set developer commands on

meshcut volume 7 sheet surface 117

del vol 8

body all copy reflect x

body all copy reflect y

body all copy reflect z

merge all

Let me know if this works for you.

csimsoft

- csimsoft Moderator
**Posts:**292**Joined:**Tue Feb 14, 2012 5:59 pm**Location:**American Fork, UT

### Re: Meshing a brick with an embedded sphere

Here is another way to mesh this problem:

reset

brick x 10 y 10 z 10

create sphere radius 4

# note that I used the keep option so I only delete 1 body (this is a personal choice)

subtr vol 2 from 1 keep

del vol 1

# core the model so that the central core can be swept down and the

# the rest of the volumes can be radially swept

webcut volume all with cylinder radius 1 axis y

# Now cut on the symmetry planes. At least 1 symmetry plane is required

# for the radial sweep. We need to know where to begin and end.

webcut volume all with plane xplane offset 0

webcut volume all with plane zplane offset 0

# I think at this point it is easier to use the symmetry of the model and only work on a quarter of it

del vol 7 to 21

imprint all

merge all

# The exterior brick needs a little help to create the mesh

volume 3 scheme sweep source surface 40 target surface 87

mesh vol all

# Now reflect the quarter model to create the complete model

volume all copy reflect x

volume all copy reflect z

# Finally make sure the reflected interfaces are merged

merge vol all

reset

brick x 10 y 10 z 10

create sphere radius 4

# note that I used the keep option so I only delete 1 body (this is a personal choice)

subtr vol 2 from 1 keep

del vol 1

# core the model so that the central core can be swept down and the

# the rest of the volumes can be radially swept

webcut volume all with cylinder radius 1 axis y

# Now cut on the symmetry planes. At least 1 symmetry plane is required

# for the radial sweep. We need to know where to begin and end.

webcut volume all with plane xplane offset 0

webcut volume all with plane zplane offset 0

# I think at this point it is easier to use the symmetry of the model and only work on a quarter of it

del vol 7 to 21

imprint all

merge all

# The exterior brick needs a little help to create the mesh

volume 3 scheme sweep source surface 40 target surface 87

mesh vol all

# Now reflect the quarter model to create the complete model

volume all copy reflect x

volume all copy reflect z

# Finally make sure the reflected interfaces are merged

merge vol all

csimsoft

- csimsoft Moderator
**Posts:**292**Joined:**Tue Feb 14, 2012 5:59 pm**Location:**American Fork, UT

3 posts
• Page

**1**of**1**### Who is online

Users browsing this forum: No registered users and 2 guests