Meshing error-problems trying to make compatible meshes to have the same number of elements

DVAP45-W20-U-Y-16Mar2026.gid.zip (3.4 MB)

Dear Escolano,

I hope this message finds you well.
I am trying to mesh a 3D-printed cube with inclined interfaces but in a semi-structured way but I get the message “problems trying to make compatible meshes to have the same number of elements”. How can I get around this issue. Attached, you can find my model.
Many thanks in advance for your time and support.

Best regards,

Hamed

I assume that you want to mesh it with hexahedra. If you mesh with prisms or tetrahedra then it is easier.

To be meshed with hexahedra, the tops must be meshed with unstructured quadrilaterals, and this lead to restrictions on the amount of divisions (e.g. the sum of edges on the perimeter of a quadrilateral is always even)

And do you have also some contact-volumes linking pairs of surfaces, that complicate more the dependencies of the mesh.

I am able to mesh it assigning to all lines a number of structured divisions=2 (this ensure that the sum is even for the contour of each surface)

I attach my model

DVAP45-W20-U-Y-16Mar2026_semistructured_2_div.gid.zip (239.9 KB)

this is the mesh of hexahedra

But I am having troubles trying other amount of divisions, like 4 to all lines (probably related with the existence of contact volumes), we must study it in more detail…