salome.salome_init()
import GEOM
from salome.geom import geomBuilder
-geompy = geomBuilder.New(salome.myStudy)
+geompy = geomBuilder.New()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(salome.myStudy)
+smesh = smeshBuilder.New()
+
+import time
+t1= time.time()
# Geometry
# ========
-# grid compound of 17 x 17 elements
+# grid compound of 3 x 3 elements
# an element is compound of 3 concentric cylinders
# an element is centered in a square of the grid
g_rayon2 = 30
g_rayon3 = 40
-g_grid = 17
+g_grid = 3
g_trim = 1000
piece_id = geompy.addToStudy(piece, "ex12_grid17partition")
+t2= time.time()
+
# Meshing
# =======
hexa.Compute()
+t3= time.time()
+
+print ("time geom",t2-t1)
+print ("time mesh",t3-t2 )
+
# Update object browser
# ---------------------
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser()