From: michael Date: Mon, 18 Jan 2021 15:50:19 +0000 (+0100) Subject: Updated hexagon meshes X-Git-Tag: V9_7_0~76^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f89560f3b73a9a511b6170fca3a5f8c741a726ff;p=tools%2Fsolverlab.git Updated hexagon meshes --- diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py b/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py index 2bfad32..1e7925f 100644 --- a/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py +++ b/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py @@ -7,6 +7,7 @@ import sys import os from math import pi, cos, sin +import SMESH geompy = geomBuilder.New() smesh = smeshBuilder.New() @@ -28,14 +29,15 @@ edges = [geompy.MakeEdge(points[i], points[i + 1]) for i in range(6)] wire = geompy.MakeWire(edges) hexa = geompy.MakeFace(wire, True) geompy.addToStudy(hexa, "Hexagon") -g = create_group_from("Hexagon_boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)]) +g = create_group_from("HexagonBoundary", hexa, [geompy.GetInPlace(hexa, wire, 1)]) mesh = smesh.Mesh(hexa, "HexagonWith"+str(NumberOfSegments)+"Triangles") msurf = mesh.Triangle(algo=smeshBuilder.NETGEN_1D2D) NETGEN_2D_Simple_Parameters_1 = msurf.Parameters(smeshBuilder.SIMPLE) NETGEN_2D_Simple_Parameters_1.SetNumberOfSegments( NumberOfSegments ) -mesh.Group(g) +HexagonBoundary_1 = mesh.GroupOnGeom(g, 'BoundaryFaces', SMESH.EDGE) +HexagonBoundary_2 = mesh.GroupOnGeom(g, 'BoundaryNodes', SMESH.NODE) mesh.Compute() mesh.ExportMED("meshHexagonWithTriangles"+str(NumberOfSegments)+".med") diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med index 19a71f0..196e65a 100644 Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med differ diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med index 38154a7..e9c0ae4 100644 Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med differ diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med index a807169..6ff1d10 100644 Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med differ diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med index 833f8f1..afcb291 100644 Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med differ