Originally authored by Hassanali Akbari as part of his PhD work.
Michael Hirsch converted to Fortran 2008, and works with
flang and other Fortran compilers on any operating system and computer.
The procedure to use this program is as follows:
- Build the Fortran code
- run the simulation
- plot with Matlab
apt install g++ cmake libboost-filesystem-dev libboost-program-options-dev ```sh
brew install gcc boost
cd bin cmake .. cmake --build . ## Run Simulation arguments are: output_directory simulation_end_time electron_beam_env(as many beams as you like): ```sh ./zakhfort /tmp/test 1e-4 300
./zakh --ev 300 -o /tmp/testcxx
-ooutput directory (will be created if it doesn't exist)
From GNU Octave or Matlab: