Salome HOME
Modifs cas-tests + evols ihm
[modules/hexablock.git] / src / TEST_PY / test_v6 / makeSphere.py
1
2 import hexablock
3
4 doc = hexablock.addDocument ("model")
5
6 center = doc.addVertex (0,0,0)
7 vx     = doc.addVector (1,0,0)
8 vz     = doc.addVector (0,0,1)
9
10 rhole  = 1.0
11 rext   = 4.0
12 angle  = 260.0
13
14 trayons = [ 1, 2, 3 , 4 ]
15 tangles = [ 0, 30, 60, 90, 120, 150, 180]
16 tphi    = [ -30, -10, 0, 10, 30, 45, 60, 75, 80 ]
17
18 doc.makeSphere (center,vx,vz, trayons, tangles, tphi)
19
20 doc.saveVtk ("model1.vtk")
21 doc.addLaws (0.5, True)
22 mesh_hexas = hexablock.mesh(doc)