]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Updated hexagon meshes
authormichael <michael@localhost.localdomain>
Mon, 18 Jan 2021 15:50:19 +0000 (16:50 +0100)
committermichael <michael@localhost.localdomain>
Mon, 18 Jan 2021 15:50:19 +0000 (16:50 +0100)
CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py
CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med
CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med
CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med
CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med

index 2bfad32bd89c3c1b158f8ba803feb6f45eef5133..1e7925f6db286badc5414a35cf5c023035a16107 100644 (file)
@@ -7,6 +7,7 @@ import sys
 import os\r
 \r
 from math import pi, cos, sin\r
+import SMESH\r
 \r
 geompy = geomBuilder.New()\r
 smesh = smeshBuilder.New()\r
@@ -28,14 +29,15 @@ edges = [geompy.MakeEdge(points[i], points[i + 1]) for i in range(6)]
 wire = geompy.MakeWire(edges)\r
 hexa = geompy.MakeFace(wire, True)\r
 geompy.addToStudy(hexa, "Hexagon")\r
-g = create_group_from("Hexagon_boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)])\r
+g = create_group_from("HexagonBoundary", hexa, [geompy.GetInPlace(hexa, wire, 1)])\r
 \r
 mesh = smesh.Mesh(hexa, "HexagonWith"+str(NumberOfSegments)+"Triangles")\r
 msurf = mesh.Triangle(algo=smeshBuilder.NETGEN_1D2D)\r
 NETGEN_2D_Simple_Parameters_1 = msurf.Parameters(smeshBuilder.SIMPLE)\r
 NETGEN_2D_Simple_Parameters_1.SetNumberOfSegments( NumberOfSegments )\r
 \r
-mesh.Group(g)\r
+HexagonBoundary_1 = mesh.GroupOnGeom(g, 'BoundaryFaces', SMESH.EDGE)\r
+HexagonBoundary_2 = mesh.GroupOnGeom(g, 'BoundaryNodes', SMESH.NODE)\r
 \r
 mesh.Compute()\r
 mesh.ExportMED("meshHexagonWithTriangles"+str(NumberOfSegments)+".med")\r
index 19a71f01d178d22714332b620cdceab6ce64982d..196e65a020c4743c12c8e4a37b2b6acb7486b354 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med differ
index 38154a701eb268d581a3f9ad95d0e320e83ac0ed..e9c0ae4d55a1ab2c82b4bce76084caa6f034db6c 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med differ
index a807169a1e4e08c168df8a583ae5793e87216512..6ff1d102085bc9db69fb9f502aee9580fff700ce 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med differ
index 833f8f1f7a703e65db943ccf67e071fb4e37339d..afcb291a21ac3f106daf32062dccd9e66c0f82b5 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med differ