From: michael Date: Wed, 16 Dec 2020 11:52:50 +0000 (+0100) Subject: Updated hexagonal mesh generation X-Git-Tag: V9_7_0~88 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a1f6d196a15e46fbb0ea799cd501bdd6991015d5;p=tools%2Fsolverlab.git Updated hexagonal mesh generation --- diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py b/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py index 70fc6e7..2bfad32 100644 --- a/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py +++ b/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py @@ -21,7 +21,7 @@ def create_group_from(name, mother_shape, list_elem, type="EDGE"): r = 1. -NumberOfSegments = 200 +NumberOfSegments = 10 points = [geompy.MakeVertex(r * cos(i * pi / 3), r * sin(i * pi / 3), 0) for i in range(7)] edges = [geompy.MakeEdge(points[i], points[i + 1]) for i in range(6)] @@ -30,7 +30,7 @@ hexa = geompy.MakeFace(wire, True) geompy.addToStudy(hexa, "Hexagon") g = create_group_from("Hexagon_boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)]) -mesh = smesh.Mesh(hexa, "Hexagon_mesh"+str(NumberOfSegments)) +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 ) diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med index c3393b5..19a71f0 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 592ae02..38154a7 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 fc2a153..a807169 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 5240614..833f8f1 100644 Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med differ diff --git a/CoreFlows/examples/resources/meshHexagonWithTriangles10.med b/CoreFlows/examples/resources/meshHexagonWithTriangles10.med index c3393b5..19a71f0 100644 Binary files a/CoreFlows/examples/resources/meshHexagonWithTriangles10.med and b/CoreFlows/examples/resources/meshHexagonWithTriangles10.med differ