Meshing a brick with an embedded sphere

Discussion about meshing issues.

Meshing a brick with an embedded sphere

Postby SMS » Tue Aug 06, 2013 12:46 pm

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
SMS
 
Posts: 3
Joined: Tue Aug 06, 2013 12:10 pm

Re: Meshing a brick with an embedded sphere

Postby csimsoft Moderator » Mon Aug 12, 2013 9:43 am

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.
csimsoft
csimsoft Moderator
 
Posts: 239
Joined: Tue Feb 14, 2012 5:59 pm
Location: American Fork, UT

Re: Meshing a brick with an embedded sphere

Postby csimsoft Moderator » Mon Aug 12, 2013 9:55 am

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
csimsoft
csimsoft Moderator
 
Posts: 239
Joined: Tue Feb 14, 2012 5:59 pm
Location: American Fork, UT


Return to Meshing

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Search / Mark

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 58 on Mon Jun 26, 2017 4:19 pm

Users browsing this forum: No registered users and 1 guest