[Gmsh] Ensuring conformal meshing when using geomtry from Freecad

Benedikt Oswald benedikt.oswald at lspr.swiss
Mon Apr 9 10:32:04 CEST 2018


Dear Christophe, thanks very much!

In fact gmsh has made great progress, also w.r.t. periodic

boundary meshes which we need a lot! Greetings, Benedikt



Am 07.04.18 um 12:21 schrieb Christophe Geuzaine:
> Dear Benedikt,
>
> As others have pointed out, the simplest solution is to add "Coherence;" after "Merge" - provided that you add "SetFactory("OpenCASCADE");" before, i.e.
>
> SetFactory("OpenCASCADE");
> Merge "nanopore-rev-600.brep";
> Coherence;
>
> This is a new feature of the upcoming Gmsh 4.0 release, and is available in the automated snapshots. With the OpenCASCADE kernel, Coherence is actually a synonym for BooleanFragments. The above code is thus equivalent to:
>
> SetFactory("OpenCASCADE");
> vol() = ShapeFromFile("nanopore-rev-600.brep");
> BooleanFragments{ Volume{vol()}; Delete }{}
>
> Christophe
>
>
>> On 5 Apr 2018, at 12:53, Benedikt Oswald <benedikt.oswald at lspr.swiss> wrote:
>>
>> Dear gmsh developers
>>
>> I recently tried to mesh a geometry (made in Freecad) which consists of
>> two volumes where a smaller volume was
>>
>> subtracted in Freecad from the larger one. When I mesh the two volumes I
>> would need tetrahedra
>>
>> and that are conformal between the two volumes. Would you have a
>> suggestion on how
>>
>> to achieve this ? At the moment, gmsh does not really produce a
>> conformal mesh.
>>
>> I attach the files in question.
>>
>> Thanks a lot in advance and greetings, Benedikt
>>
>>
>>
>> ----------------------------------------------------------------------------------------------------------------------
>> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74
>> Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald at lspr.swiss
>> ----------------------------------------------------------------------------------------------------------------------
>>
>> <nanopore-rev-600-aux-via-brep.geo><nanopore-rev-600.brep><nanopore-rev-600.FCStd>_______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info
>> http://onelab.info/mailman/listinfo/gmsh

-- 
----------------------------------------------------------------------------------------------------------------------
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74
Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald at lspr.swiss
----------------------------------------------------------------------------------------------------------------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <http://onelab.info/pipermail/gmsh/attachments/20180409/ae36e3d4/attachment.asc>


More information about the gmsh mailing list