Skip to content

Commit

Permalink
Merge pull request #161 from antjost/main
Browse files Browse the repository at this point in the history
[TRANSFORM] Test case for addkplane function
  • Loading branch information
vincentcasseau committed Sep 3, 2024
2 parents b1ccc55 + 0872db2 commit b215503
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 b215503

Please sign in to comment.