compiletime load "module_ppp.so"; PPP obj = {}; obj.read("density.pos", "n"); obj.read("velocity.pos", "v"); obj.xy_plane(100, 10, "nearest_neighbour"); # Plot density and flux side by side. A coordinate offset allows for # loading both pos files into GMSH and have the cut planes non-overlapping obj.write_pos_scalar_binary_parametric("density-2D.pos", "Density [1/m^3]", x, y, z, n); obj.write_pos_scalar_binary_parametric("flux-2D.pos", "Flux [1/m^3]", x+200, y, z, n*v_z);