From a085bba765f8df1aa13cf161e4aad7237ccdac64 Mon Sep 17 00:00:00 2001 From: antjost Date: Tue, 3 Sep 2024 15:46:43 +0200 Subject: [PATCH] [TRANSFORM] Test case for addkplane function --- Cassiopee/Transform/test/addkplane_t2.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Cassiopee/Transform/test/addkplane_t2.py diff --git a/Cassiopee/Transform/test/addkplane_t2.py b/Cassiopee/Transform/test/addkplane_t2.py new file mode 100644 index 000000000..1d7970850 --- /dev/null +++ b/Cassiopee/Transform/test/addkplane_t2.py @@ -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') +