Refining interior hexes in a block

General topics about Trelis/Cubit, such as localization, GUI, etc.

Refining interior hexes in a block

Postby jlchan » Mon Dec 02, 2013 11:21 am

I have a code with 2 blocks defined, and would like to refine all hexes in one block, but not have the refinements carry over to the other block. Is there a way to refine all hexes that are interior to a block, such that after refinement, only one block is modified?

Thanks!
jlchan
 
Posts: 2
Joined: Thu Sep 19, 2013 12:18 pm

Re: Refining interior hexes in a block

Postby csimsoft Moderator » Mon Dec 09, 2013 1:22 pm

It's kind of tricky to get at all the interior hexes, but it can be done. Try the following:

reset
create cylinder radius 1 z 1
create cylinder radius 0.5 z 1
subtract 2 from 1
create cylinder radius 0.5 z 1
merge all
mesh volume all
group 'hexes_in_volume_3' add hex in volume 3
group 'outer_hexes' add hex in face in volume 3
group 'hexes_to_refine' subtract outer_hexes from hexes_in_volume_3 #creates the target group of hexes to refine
highlight hexes_to_refine
refine hex in hexes_to_refine

This approach only refines the interior hexes to volume 3, not perturbing the interface between the two volumes.
csimsoft
csimsoft Moderator
 
Posts: 249
Joined: Tue Feb 14, 2012 5:59 pm
Location: American Fork, UT

Re: Refining interior hexes in a block

Postby jlchan » Wed Dec 18, 2013 4:55 pm

Great, thanks!
jlchan
 
Posts: 2
Joined: Thu Sep 19, 2013 12:18 pm


Return to General Topics

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