compiletime load "module_ppp.so"; compiletime load "module_system_linux.so"; # defining parameters case = "sample2"; start = 100; end = 200; dtime = 20; unit = "us"; z = 0; folder = "density"; files = "density_e"; # create ppp subfolder if it does not exist System FS = { rootpath = "$case"; }; if (FS.folder_exists("ppp") == 0) then { out "Creating folder $case/ppp\n"; FS.create_folder("ppp", 493) }; # applying a cut plane to each time step for (time=$start; time<=$end+0.001; time=time+dtime) { PPP obj1 = {}; obj1.read("$case/$folder/$(files)_$(time% 4,2f)$(unit).pos", "X"); obj1.xy_plane($z, 10, "nearest_neighbour"); obj1.write_pos_scalar_binary("$case/ppp/cut_$(files)_$(time% 4,2f)$(unit).pos", "$files", X); } # appending the cut planes to each other PPP obj2 = {}; for (time=$start; time<=$end+0.001; time=time+dtime) { obj2.append("$case/ppp/cut_$(files)_$(time% 4,2f)$(unit).pos", "Y"); } obj2.write_pos_time_steps_scalar_binary("$case/timestep_cut_$(z)mm_$(files)_$(start)-$(end)$(unit).pos", "$files", "Y");