Skip to content

Commit

Permalink
5-8 molecules dohne
Browse files Browse the repository at this point in the history
  • Loading branch information
PratipRana committed Jul 10, 2019
1 parent ee577f5 commit 78f30ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions code/Simulation/plot_phase.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%plot the phase diagram

T = readtable('dataSimulation8.csv')
res = table2array(T(:,6:end))

[argvalue, argmax] = max(res');

res2 = reshape(argmax,[20,18])
imagesc([0.5:0.2:4],[0.1:0.2:4], res2)
xlabel('\tau')
ylabel('T')
saveas(gcf,'phase8.png')
4 changes: 2 additions & 2 deletions code/Simulation/sim_model_prl.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def main_prl(N):
# run for different parameter combination

d=1; v=1; sigma=1
t_range = np.arange(0.1,4,0.1)
tau_range = np.arange(0.5,4,0.1)
t_range = np.arange(0.1,4.01,0.2)
tau_range = np.arange(0.5,4.01,0.2)
Data = np.zeros((len(t_range)*len(tau_range),5+N-1),dtype=float)
res = Parallel(n_jobs=16)(delayed(sim)(N,d,v,sigma,i,j) for j in tau_range for i in t_range)
res = np.array(res)
Expand Down

0 comments on commit 78f30ac

Please sign in to comment.