# - importVariables (pyTree) - import Converter.PyTree as C import Generator.PyTree as G import Post.PyTree as P z1 = G.cart((0.,0.,0.),(0.1,0.1,0.1),(10,10,10)) z2 = G.cart((0.,0.,0.),(0.1,0.1,0.1),(10,10,10)) t1 = C.newPyTree(['Base', z1]); t2 = C.newPyTree(['Base', z2]) C._initVars(t1,'centers:cellN',1.) C._initVars(t1,'centers:Density',1.) C._initVars(t1,'Pressure',10.) C._initVars(t2,'centers:cellN',0.) t2 = P.importVariables(t1, t2) C.convertPyTree2File(t2, 'out.cgns')