Brep shape and structured 3d hex mesh
Hello,
I am trying to figure out how to control the structure of 3d hex meshed brep shapes using gmsh, and I have not found exactly what I am looking for in the documentation nor in the issues\emailing threads.
I have created 2 test cases I wanted to try out first; A simple cube and a rod (typically used for material tensile tests).
My mesh goals are:
Attached brep box and rod shapes box.brep rod.brep
With the following input (for the rod mesh both "CharacteristicLengthMin\Max" options are enabled).
SetFactory("OpenCASCADE");
a() = ShapeFromFile("box.brep");
Mesh.Algorithm3D=4; // (1: Delaunay, 4: Frontal, 7: MMG3D, 9: R-tree, 10: HXT)
Mesh.SubdivisionAlgorithm = 2; // Mesh subdivision algorithm (0=none, 1=all quadrangles, 2=all hexahedra)
Mesh.ElementOrder = 2; // 2 = QUADRATIC / 1 = Linear
Mesh.SecondOrderIncomplete = 1; // Example: 0: C3D27, 1: C3D20
//Mesh.CharacteristicLengthMin = 0.003;
//Mesh.CharacteristicLengthMax = 0.005;
Transfinite Surface "*";
Transfinite Line "*";
That input produces these meshes:
Ultimately, I was hoping to provide even more structure to my HEX mesh by subdividing the mesh into more cubical shaped elements (something closer to what is shown in the "mesh goals" figures). For example if it was possible to subdivide the brep shape into multiple flat cubes, or provide a direction for it to attempt to structure mesh it?
If anyone have any tips on this or if what I am hoping to achieve is not possible, I would really appreciate the help!
If you need more info in order to provide an answer, please do not hesitate to ask!
Best Regards Kristoffer