Julia implementation of the 2D Random Field Ising Model.
-
Clone the repo.
-
Instantiante the julia-project running
make instantiante
. -
Given
NGRID
: size of the spin lattice,NUM_RUNS
: number of runs andNUM_GENS
: number of generations. Runmake simulate ngrid=NGRID runs=NUM_RUNS gens=NUM_GENS
. -
Run
make plot_trazes assembled_magn=true
. If "true" the plot of the assembled magnetization is saved under graphs/simulations -
Run
make plot_psd
to save all the average PSD by run at each fixed temperature. -
Given
r
: number of realization and an array of patterns (suppose those arepattern1, pattern2, pattern3
). Runmake plot_eigspectra realizations=r patterns="pattern1 pattern2 pattern3"
-
To clean the "workspace" run
make cleanup
. This will delete all the simulations info and graphs persisted under the dirs "simulations" and graphs". If instead you want to just delete all the persisted simulations, run:make cleanup_simulations
else if you want to delete the plots saved in the "graphs" dir runmake cleanup_graphs
.