[Gmsh] Conformal mesh on two parts
Krzysztof Bzowski
kbzowski at agh.edu.pl
Thu Jan 7 09:44:09 CET 2016
Thank you for quick reply.
My example with cubes was very simplified - created to explain the
problem. In practice I have a lot more complicated shapes, but general
idea is the same.
I have attached STL files to this email. They should work now.
Best regards,
Krzysztof
On 2016-01-07 09:33, Johannes Wimmer wrote:
> Hi Krzysztof,
> I am not sure about the stl-files. When I open them in GMSH, nothing
> appears on screen. Cannot be meshed either. If it was geo however, i
> assume that you did not include the facets of your inner cube in the
> surface loop of the outer cube.
>
> I am attaching an example that works. In line 67:
>
> Surface Loop(65) = {53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64};
>
> This should do the trick.
>
> Cheers,
> Johannes
-------------- next part --------------
solid Inside
facet normal -1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 5.000000e+000 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal -1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 5.000000e+000 5.000000e+000
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 5.000000e+000 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 -1.000000e+000 0.000000e+000
outer loop
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 1.500000e+001 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 -1.000000e+000 0.000000e+000
outer loop
vertex 1.500000e+001 5.000000e+000 5.000000e+000
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 5.000000e+000 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal 1.000000e+000 -1.387779e-015 0.000000e+000
outer loop
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 1.500000e+001 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 1.000000e+000 -1.387779e-015 0.000000e+000
outer loop
vertex 1.500000e+001 1.500000e+001 5.000000e+000
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 1.500000e+001 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 1.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 5.000000e+000 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 1.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 1.500000e+001 5.000000e+000
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 1.500000e+001 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 1.000000e+000
outer loop
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 5.000000e+000 5.000000e+000 1.500000e+001
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 1.000000e+000
outer loop
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 5.000000e+000 1.500000e+001 1.500000e+001
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 -1.000000e+000
outer loop
vertex 1.500000e+001 1.500000e+001 5.000000e+000
vertex 1.500000e+001 5.000000e+000 5.000000e+000
vertex 5.000000e+000 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 -1.000000e+000
outer loop
vertex 5.000000e+000 1.500000e+001 5.000000e+000
vertex 1.500000e+001 5.000000e+000 5.000000e+000
vertex 5.000000e+000 5.000000e+000 5.000000e+000
endloop
endfacet
endsolidSurface Loop(2) = {1};
Volume(3) = {2};
Surface Loop(4) = {2};
Volume(5) = {4};
Coherence;
-------------- next part --------------
solid Outside
facet normal -1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 0.000000e+000 0.000000e+000 2.000000e+001
vertex 0.000000e+000 2.000000e+001 2.000000e+001
vertex 0.000000e+000 0.000000e+000 0.000000e+000
endloop
endfacet
facet normal -1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 0.000000e+000 0.000000e+000 0.000000e+000
vertex 0.000000e+000 2.000000e+001 2.000000e+001
vertex 0.000000e+000 2.000000e+001 0.000000e+000
endloop
endfacet
facet normal 0.000000e+000 -1.000000e+000 0.000000e+000
outer loop
vertex 2.000000e+001 0.000000e+000 2.000000e+001
vertex 0.000000e+000 0.000000e+000 2.000000e+001
vertex 2.000000e+001 0.000000e+000 0.000000e+000
endloop
endfacet
facet normal 0.000000e+000 -1.000000e+000 0.000000e+000
outer loop
vertex 2.000000e+001 0.000000e+000 0.000000e+000
vertex 0.000000e+000 0.000000e+000 2.000000e+001
vertex 0.000000e+000 0.000000e+000 0.000000e+000
endloop
endfacet
facet normal 1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 2.000000e+001 2.000000e+001 2.000000e+001
vertex 2.000000e+001 0.000000e+000 2.000000e+001
vertex 2.000000e+001 2.000000e+001 0.000000e+000
endloop
endfacet
facet normal 1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 2.000000e+001 2.000000e+001 0.000000e+000
vertex 2.000000e+001 0.000000e+000 2.000000e+001
vertex 2.000000e+001 0.000000e+000 0.000000e+000
endloop
endfacet
facet normal 0.000000e+000 1.000000e+000 0.000000e+000
outer loop
vertex 0.000000e+000 2.000000e+001 2.000000e+001
vertex 2.000000e+001 2.000000e+001 2.000000e+001
vertex 0.000000e+000 2.000000e+001 0.000000e+000
endloop
endfacet
facet normal 0.000000e+000 1.000000e+000 0.000000e+000
outer loop
vertex 0.000000e+000 2.000000e+001 0.000000e+000
vertex 2.000000e+001 2.000000e+001 2.000000e+001
vertex 2.000000e+001 2.000000e+001 0.000000e+000
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 1.000000e+000
outer loop
vertex 2.000000e+001 0.000000e+000 2.000000e+001
vertex 2.000000e+001 2.000000e+001 2.000000e+001
vertex 0.000000e+000 0.000000e+000 2.000000e+001
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 1.000000e+000
outer loop
vertex 0.000000e+000 0.000000e+000 2.000000e+001
vertex 2.000000e+001 2.000000e+001 2.000000e+001
vertex 0.000000e+000 2.000000e+001 2.000000e+001
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 -1.000000e+000
outer loop
vertex 2.000000e+001 2.000000e+001 0.000000e+000
vertex 2.000000e+001 0.000000e+000 0.000000e+000
vertex 0.000000e+000 2.000000e+001 0.000000e+000
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 -1.000000e+000
outer loop
vertex 0.000000e+000 2.000000e+001 0.000000e+000
vertex 2.000000e+001 0.000000e+000 0.000000e+000
vertex 0.000000e+000 0.000000e+000 0.000000e+000
endloop
endfacet
facet normal 1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 5.000000e+000 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 1.000000e+000 0.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 1.500000e+001 5.000000e+000
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 5.000000e+000 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 1.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 5.000000e+000 1.500000e+001
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 5.000000e+000 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 1.000000e+000 0.000000e+000
outer loop
vertex 5.000000e+000 5.000000e+000 5.000000e+000
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 1.500000e+001 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal -1.000000e+000 1.387779e-015 0.000000e+000
outer loop
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 1.500000e+001 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal -1.000000e+000 1.387779e-015 0.000000e+000
outer loop
vertex 1.500000e+001 5.000000e+000 5.000000e+000
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 1.500000e+001 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 -1.000000e+000 0.000000e+000
outer loop
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 1.500000e+001 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 -1.000000e+000 0.000000e+000
outer loop
vertex 1.500000e+001 1.500000e+001 5.000000e+000
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 5.000000e+000 1.500000e+001 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 -1.000000e+000
outer loop
vertex 1.500000e+001 1.500000e+001 1.500000e+001
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 5.000000e+000 1.500000e+001 1.500000e+001
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 -1.000000e+000
outer loop
vertex 5.000000e+000 1.500000e+001 1.500000e+001
vertex 1.500000e+001 5.000000e+000 1.500000e+001
vertex 5.000000e+000 5.000000e+000 1.500000e+001
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 1.000000e+000
outer loop
vertex 1.500000e+001 5.000000e+000 5.000000e+000
vertex 1.500000e+001 1.500000e+001 5.000000e+000
vertex 5.000000e+000 5.000000e+000 5.000000e+000
endloop
endfacet
facet normal 0.000000e+000 0.000000e+000 1.000000e+000
outer loop
vertex 5.000000e+000 5.000000e+000 5.000000e+000
vertex 1.500000e+001 1.500000e+001 5.000000e+000
vertex 5.000000e+000 1.500000e+001 5.000000e+000
endloop
endfacet
endsolid
More information about the gmsh
mailing list