]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Updated hexagonal mesh generation
authormichael <michael@localhost.localdomain>
Wed, 16 Dec 2020 11:52:50 +0000 (12:52 +0100)
committermichael <michael@localhost.localdomain>
Wed, 16 Dec 2020 11:52:50 +0000 (12:52 +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
CoreFlows/examples/resources/meshHexagonWithTriangles10.med

index 70fc6e7eaaf735b1268f661cedc28462e8e93472..2bfad32bd89c3c1b158f8ba803feb6f45eef5133 100644 (file)
@@ -21,7 +21,7 @@ def create_group_from(name, mother_shape, list_elem, type="EDGE"):
 \r
 \r
 r = 1.\r
-NumberOfSegments = 200\r
+NumberOfSegments = 10\r
 \r
 points = [geompy.MakeVertex(r * cos(i * pi / 3), r * sin(i * pi / 3), 0) for i in range(7)]\r
 edges = [geompy.MakeEdge(points[i], points[i + 1]) for i in range(6)]\r
@@ -30,7 +30,7 @@ hexa = geompy.MakeFace(wire, True)
 geompy.addToStudy(hexa, "Hexagon")\r
 g = create_group_from("Hexagon_boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)])\r
 \r
-mesh = smesh.Mesh(hexa, "Hexagon_mesh"+str(NumberOfSegments))\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
index c3393b5077c938ca492843e9096409a385400822..19a71f01d178d22714332b620cdceab6ce64982d 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles10.med differ
index 592ae0207421881dbf65a66909d83105cc79d0f2..38154a701eb268d581a3f9ad95d0e320e83ac0ed 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles100.med differ
index fc2a153869c2a167fc3efa1577ca974a2877bff0..a807169a1e4e08c168df8a583ae5793e87216512 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles200.med differ
index 5240614ec30b545b5113bebb1232f40a90bc8ce5..833f8f1f7a703e65db943ccf67e071fb4e37339d 100644 (file)
Binary files a/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med and b/CDMATH/tests/ressources/2DHexagonWithTriangles/meshHexagonWithTriangles50.med differ
index c3393b5077c938ca492843e9096409a385400822..19a71f01d178d22714332b620cdceab6ce64982d 100644 (file)
Binary files a/CoreFlows/examples/resources/meshHexagonWithTriangles10.med and b/CoreFlows/examples/resources/meshHexagonWithTriangles10.med differ