Zakharov Simulation
Originally authored by Hassanali Akbari as part of his PhD work.
Michael Hirsch converted to Fortran.
-
Linux
apt install g++ cmake libboost-filesystem-dev libboost-program-options-dev
-
Mac
brew install gcc boost
and then
cmake -B build
cmake --build build
ctest --test-dir build
# optional
arguments are: output_directory simulation_end_time electron_beam_env(as many beams as you like):
./zakhfort /tmp/test 1e-4 300
./zakh --ev 300 -o /tmp/testcxx
--ev
beam energy-o
output directory (will be created if it doesn't exist)
From GNU Octave or Matlab (in matlab/ directory):
Sim_v6_3_Linux(0, /tmp/test)