# - deform (pyTree) -
import Converter.PyTree as C
import Generator.PyTree as G
import Transform.PyTree as T

a = G.cart((0.,0.,0.),(1.,1.,1.),(10,10,10))
C._initVars(a,'dx', 10.)
C._initVars(a,'dy', 0)
C._initVars(a,'dz', 0)
b = T.deform(a)
C.convertPyTree2File(b, 'out.cgns')
Beispiel #2
0
import Converter.PyTree as C
import Generator.PyTree as G
import Transform.PyTree as T
import KCore.test as test

# Zone structuree
a = G.cart((0., 0., 0.), (1., 1., 1.), (10, 10, 2))
a = C.addBC2Zone(a, 'wall1', 'BCWall', 'imin')
a = C.addBC2Zone(a, 'overlap1', 'BCOverlap', 'jmin')
a = C.addBC2Zone(a, 'match1', 'BCMatch', 'imax', a, 'imin', [1, 2, 3])
C._addVars(a, 'F')
C._addVars(a, 'centers:G')
vect = ['hx', 'hy', 'hz']
C._addVars(a, vect)
C._initVars(a, 'hx', 10.)
a = T.deform(a, vect)
test.testT(a, 1)

# Zone non structuree
a = G.cartTetra((0., 0., 0.), (1., 1., 1.), (10, 10, 2))
C._addVars(a, 'F')
C._addVars(a, 'centers:G')
vect = ['hx', 'hy', 'hz']
C._addVars(a, vect)
C._initVars(a, 'hx', 10.)
a = T.deform(a, vect)
test.testT(a, 2)

# Arbre
a = G.cart((0., 0., 0.), (1., 1., 1.), (10, 10, 1))
a = C.addBC2Zone(a, 'wall1', 'BCWall', 'imin')
Beispiel #3
0
# - deform (pyTree) -
import Converter.PyTree as C
import Generator.PyTree as G
import Geom.PyTree as D
import Transform.PyTree as T

a = G.cart((0.,0.,0.),(1.,1.,1.),(10,10,10))
vect = ['hx','hy','hz']; a = C.addVars(a, vect) 
a = C.initVars(a, 'hx', 10.)
b = T.deform(a, vect)
C.convertPyTree2File(a, 'out.cgns')