[Gmsh] Gmsh OCC class Physical Groups
Rinaldi Polese Petrolli
rinaldi.petrolli at wsdg.com
Thu Feb 20 16:44:48 CET 2020
Already figured it out, all I needed to da was declare the physical groups
again after applying the cut :)
Em qua., 19 de fev. de 2020 às 23:39, Rinaldi Polese Petrolli <
rinaldi.petrolli at wsdg.com> escreveu:
> Hi,
>
> Hope everything is good. I'm working merging two meshes into one via the
> .cut OCC class method, but my output has all the Physical Groups defined as
> 0, even when adding a PhysicalGroup to the model. Here's a quick example.
>
> gmsh.model .occ.addPlaneSurface([-(12 + i)], i + 2 + 100)
> gmsh.model.addPhysicalGroup(2, [i + 2 + 100], i + 2 + 100)
>
> When I open the meshes all of the surfaces have the same PhysicalGorup
> index. Is there a way to use the OCC class and set Physical Groups as it
> can be done using the geo class?
>
> Thanks!
> --
> Rinaldi Petrolli
> Acoustic Engineer
> Walters-Storyk Design Group
> Architectural Acoustic Consulting
> Media Systems Engineering
> 262 Martin Avenue
> <https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305>
> Highland, NY 12528, USA
> <https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305>
> O +1 845 691 9300
> F +1 845 691 9361
> rinaldi.petrolli at wsdg.com <http://goog_1434455421/>
> www.wsdg.com
>
--
Rinaldi Petrolli
Acoustic Engineer
Walters-Storyk Design Group
Architectural Acoustic Consulting
Media Systems Engineering
262 Martin Avenue
<https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305>
Highland, NY 12528, USA
<https://www.google.com/maps/place/WSDG+-+Walters-Storyk+Design+Group/@41.779992,-73.9967305,15z/data=!4m5!3m4!1s0x0:0x5691bbfa0a6698a4!8m2!3d41.779992!4d-73.9967305>
O +1 845 691 9300
F +1 845 691 9361
rinaldi.petrolli at wsdg.com <http://goog_1434455421/>
www.wsdg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200220/8b03b4f5/attachment.html>
More information about the gmsh
mailing list