Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

space-physics/zakharov

Langmuir-1D Simulation

image ci_cmake

Zakharov Simulation

Originally authored by Hassanali Akbari as part of his PhD work.

Michael Hirsch converted to Fortran.

Build

  • 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

Run Simulation

arguments are: output_directory simulation_end_time electron_beam_env(as many beams as you like):

./zakhfort /tmp/test 1e-4 300

C++

./zakh --ev 300 -o /tmp/testcxx
  • --ev beam energy
  • -o output directory (will be created if it doesn't exist)

Plot Results

From GNU Octave or Matlab (in matlab/ directory):

Sim_v6_3_Linux(0, /tmp/test)