Code to generate, plot and fit data used in the paper "Deviations from spectral Dirac comb due to semiperiodic pulses",
To set up the environment to reproduce the figures, clone the repo to your local machine, then install the project and its dependencies with poetry:
git clone https://github.com/uit-cosmo/cosmoplots.git
cd cosmoplots
poetry installThe top-level scripts may be run without any extra preparation.
Time series, power spectral density and conditional averaging of the Rayleigh Bénard data. create_figure.py may be run directly. See the section below for simulation details.
Generates figures 8 and 9 in the manuscript.
Power spectral density and autocorrelation of the stochastic process with exponentially distributed amplitudes and Gamma distributed waiting times.
Generates figure 1 in the manuscript.
Power spectral density and autocorrelation of the stochastic process with asymmetrically Laplace distributed amplitudes.
Generates figure 2 in the manuscript.
Power spectral density and autocorrelation of the stochastic process with periodic arrivals with Gaussian jitter.
Generates figure 3 in the manuscript.
Power spectral density and autocorrelation of the stochastic process with Gaussian waiting times.
Generates figure 4 in the manuscript.
Compares the parts due to renewal waiting times in several different cases.
Run gen_gammainv_cf.py and gen_norm_wait_num_psd.py first, then create_figure_compare_wait.py.
Generates figure 5 in the manuscript.
Run gen_fGn_wait_num_psd.py first, then create_figure_fGn_wait.py.
Generates figure 6 in the manuscript.
Compares the parts due to jittered waiting times in the PSD for normal jitter times using the analytic and numeric solutions.
Run gen_norm_jitter_num_psd.py first, then create_figure.py.
Generates figure 7 in the manuscript.
The raw data of the energy integral 1e-4 and 1.6e-3 refer to the diffusivity
If you prefer to run the RB-model from scratch in BOUT++ you find all necessary files in BOUT_files. The PhysicsModel is defined in rb-model.cxx and the simulation inputs, such as PhysicsModel: https://bout-dev.readthedocs.io/en/stable/
You can calculate xbout package (https://github.com/boutproject/xBOUT) and adjust the path to the BOUT++ output data in line 4.