parallel Julia implementation of the 2D 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 andNTHREADS: the number of threads. Runmake simulate ngrid=NGRID runs=NUM_RUNS gens=NUM_GENS nthreads=NTHREADS. -
Run
make plot_traces assembled_magn=true. If "true" the plot of the assembled magnetization is saved under graphs/simulations -
Run
make plot_psdto save all the average PSD by run at each fixed temperature. -
Given
r: number of realization,TRANSIENT: transient length and an array of patterns (suppose those arepattern1, pattern2, pattern3). Runmake plot_eigspectra realizations=r transient_length=TRANSIENT 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_simulationselse if you want to delete the plots saved in the "graphs" dir runmake cleanup_graphs.
-
Given
NGRID: size of the spin lattice,TRANSIENT: transient length,SUBLATTICE_NGRID:size of the sublattices,NUM_RUNS: number of runs (realizations),NUM_GENS: number of generations andNTHREADS: the number of threads. Runmake simulate_partitioned ngrid=NGRID sublattice_ngrid=SUBLATTICE_NGRID runs=NUM_RUNS gens=NUM_GENS nthreads=NTHREADS. Make sure the value ofsublattice_griddividesngridotherwise an error will be thrown. -
Given
TRANSIENT: transient length and array of patterns (suppose those arepattern1, pattern2, pattern3). Runmake plot_eigspectra_partitioned transient_length=TRANSIENT patterns="pattern1 pattern2 pattern3" -
To clean the "workspace" run
make cleanup_partitioned. 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_partitionedelse if you want to delete the plots saved in the "graphs" dir runmake cleanup_graphs_partitoned.