[Gmsh] Save .geo file from python API

Роман Бутов romanbutov637 at gmail.com
Mon Jul 16 15:23:18 CEST 2018


It works, thank you!
Note: I used gmsh.model.occ.importShapes() function for read back.

On Thu, Jul 12, 2018 at 1:50 PM, Jeremy Theler <jeremy at seamplex.com> wrote:

> After the boolean operations, save the current model to a BREP with
>
> gmsh.write("model.brep")
> Then read back the BREP from the .geo with ShapeFromFile()
>
> Regards
> --
> jeremy theler
> www.seamplex.com
>
>
> On Wed, 2018-07-11 at 17:04 +0300, Роман Бутов wrote:
>
> Is there a way to save geometry at python API after boolean operations,
> with physical zones etc, and then do meshing from the saved file?
> It is because boolean operations take a long time and it would be
> convenient to make them once. And then use the same geometry to generate
> different meshes.
>
> Best regards,
> Roman
>
> _______________________________________________
>
> gmsh mailing list
>
> gmsh at onelab.info
>
> http://onelab.info/mailman/listinfo/gmsh
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180716/e4597702/attachment.html>


More information about the gmsh mailing list