This code is developed to process ORBIT-RF output, which is object oriented based on FORTRAN 2003+. PERSONAL USE ONLY !!!
The code has two classes in gerneral: Data classes & Data processing classes.
Data class:
- geometry : collection of equilibrium variables and related functions
- trajectory : collection of test particle history and related functions
- momenta : collection of statistical data and related functions
- distribution : collection of particle distribution and related functions
- aux_distribution : derived class of distribution to collect particle across spiecies
Data processing class:
- statistics : collection of functions to make statistics on distribution object based on linear schedule
- aux_statistics : derived class of statistics, linear schedule replaced by exponential weight assignment
Taking geometry class as an example:
- first declare a pointer: class(geometry), pointer :: gg
- then allocation: allocate(geometry :: gg)
- then constructor: call gg % init(nsp, nst)
- then load data: call gg % ld_data(fid)
- then wrt output optionally, write out what you need: call gg % wrt('psip')
- finally deallocation, very important and never forget it: deallocate(gg) Note: classes have different ways to initialize and subroutines to write output, you need to know these by consulting the type definition in source code.
The default tool is Gnuplot.
basic plotting commands:
- 1d : plot 'filename' u 1:2 w l plot 'filename' u 1:2 w p plot 'filename' u 1:2 w lp plot 'filename' u 1:2 w boxes
- 2d map : splot 'filename' u 1:2:3 w pm3d plot 'filename' u 1:2:3 w image