Skip to content

Commit

Permalink
[TRANSFORM] Test case for addkplane function
Browse files Browse the repository at this point in the history
  • Loading branch information
antjost committed Sep 3, 2024
1 parent f2cb1e3 commit a085bba
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Cassiopee/Transform/test/addkplane_t2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# - addkplane w/ Flowfield values -
import Transform.PyTree as T
import KCore.test as test
import Converter.PyTree as C
import Generator.PyTree as G

a = G.cart((0.,0.,0.), (0.1,0.1,1), (10,10,2))
t = C.newPyTree(['CARTESIAN', a])
C._initVars(t,'{RandomVal}={CoordinateY}')
t = C.node2Center(t, 'RandomVal')
T._addkplane(t, 9)
T._contract(t, (0,0,0), (1,0,0), (0,1,0), 0.1)

test.testT(t ,1)

#C.convertPyTree2File(t,'t_check.cgns')

0 comments on commit a085bba

Please sign in to comment.