Re: [Gmsh] Selecting faces after boolean operation

2020-02-26 Thread Christophe Geuzaine
> On 27 Feb 2020, at 00:02, Francis Giraldeau > wrote: > > It is necessary to define physical groups for surfaces in order to apply > boundary conditions. The Boundary function returns the surfaces for a given > geometry, but after a boolean operation, the surface entities change and the >

Re: [Gmsh] gmsh python module

2020-02-26 Thread Christophe Geuzaine
Dear Francis, Setting ENABLE_WRAP_PYTHON=ON will build the Python wrappers of the *private* Gmsh API using swig, i.e. wrap all the development C++ headers. This is for Gmsh developers. What you want is the stable public Python API. This doesn't require swig: just build the dynamic Gmsh librar

[Gmsh] Selecting faces after boolean operation

2020-02-26 Thread Francis Giraldeau
It is necessary to define physical groups for surfaces in order to apply boundary conditions. The Boundary function returns the surfaces for a given geometry, but after a boolean operation, the surface entities change and the surface is lost. Here is an example: SetFactory("OpenCASCADE"); box1 =

[Gmsh] gmsh python module

2020-02-26 Thread Francis Giraldeau
Hello! I just compiled gmsh with ENABLE_WRAP_PYTHON=ON. This seems to install the module gmshpy. However, the Python demos are importing the gmsh module, which is not installed, so I'm a bit confused. How do we install the actual Python gmsh module? Thanks! -- Francis _

Re: [Gmsh] geo script - how to get a mesh after plugin(triangulate) ?

2020-02-26 Thread Don Van Kerkhoven
Thanks again Christophe. That does what I need. I ended up importing back for further processing. >> Save View[1] "mesh.msh"; >> Merge "Mesh.msh"; br Don -Original Message- From: Christophe Geuzaine [mailto:cgeuza...@uliege.be] Sent: February-26-20 1:18 AM To: Don Van Kerkhoven Cc: Gm