Hi,
in a simple testcase (see file “testcase_small_gap.jou”), I wanted to mesh four bricks. Two bricks are surrounded by one larger brick, and the last brick is at the bottom of the large brick. The two inner bricks and the bottom brick should have a hex mesh, and the larger one should have a tet mesh.
When I tried to mesh this example, the two inner bricks as well as the bottom brick had the desired hex mesh, but the larger outer one wasn’t meshed.
I tried a second testcase where the gap between the two inner bricks is larger (see file “testcase_large_gap.jou”). In this case, everything worked perfectly.
I can’t explain why the first case failed. Does anyone have an idea?
Best regards,
Andreas
testcase_small_gap.jou (548 Bytes)
testcase_large_gap.jou (544 Bytes)
Hello Andreas,
the gap between the inner bricks measures only 0.1, you would need to set the size for the inner bricks smaller, otherwise no fitting pyramids will be generated and the mesher fails.
Just changing
volume 1 2 size 0.05
and the pyramids have enough space.
Hello Norbert,
thanks for your answer.
Are there any other options, for example changing some default parameters for generating pyramids?
The reason I ask is that testcase_small_gap is an abstract example of a real problem I am currently working on. Therefore, changing the volume size or the distance between them isn’t possible, because it represents the sensitive volume of a Hall sensor and its position. Furthermore, using a tet mesh for these inner bricks isn’t an option, because the total number of elements increases rapidly and will significantly slow down my simulation. Having a single hex element for each brick would therefore be preferable.
Hi Andreas,
i don’t know of any. You could create them manually, but that’s bothersome.
How about lofting a volume between the inner bricks? As you can mix tets, pyramids and hex in your solver this shouldn’t be an issue.
reset
brick x 5 y 5 z 5
brick x 0.5 y 0.5 z 0.5
move volume 2 x -0.3
brick x 0.5 y 0.5 z 0.5
move volume 3 x 0.3
subtract volume 2 3 from volume 1 keep_tool
compress
brick x 5 y 1 z 5
move volume 4 y -3
create volume loft surface 16 12
subtract volume 5 from volume 3 keep_tool
compress
imprint volume all
merge volume all
volume 1 2 4 scheme map
volume 1 2 4 size 0.5
mesh volume 1 2 4
volume 3 scheme map
volume 3 size 0.5
mesh volume 3
volume 5 scheme tetmesh
volume 5 size 2
mesh volume 5
block 1 add volume 1 2
block 1 name "V_inner"
block 2 add volume 4 5
block 2 name "V_outer"
block 3 add volume 3
block 3 name "V_lower"

Hi Norbert,
thanks for the hint. This should work. 