Skip to content
Snippets Groups Projects
Commit b5d0290d authored by Lars Hubatsch's avatar Lars Hubatsch
Browse files

Try jump length distro for D=const.=0.5. Doesn't work. Old case not working.

parent 3348fbab
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,32 @@ cd /Users/hubatsch/Nextcloud/Langevin_vs_MeanField/Data_Figs_FokkPla/jump_length
csvwrite('jump_length_7_7_lb01.csv', ls)
csvwrite('prob_7_7_lb01.csv', p);
%% Now for d = 0.5 across the entire domain
params = {-5, b(7.7/3, 10^-6), 0.5, e(7.7/3), 'const', 0.5, 10, 7, 0,...
'Constituent', 0};
t = [0, 0.05, 0.1, 1];
direc = 1;
x0 = sort(5-direc*(0:0.002:3.02));
%% Run simulations for 'delta' IC across outside
T = {};
parfor i = 1:length(x0)
tic
T{i} = Ternary_model(0, 'Gauss', [params(1:7), {x0(i)}, params(9:end)], t, 0.2);
T{i}.solve_tern_frap();
toc
end
%% Calculate probabilities for each jump length in ls.
l_max = 3;
t_ind = 4;
ls = -direc*(0.000:0.002:l_max);
p = nan(1, length(ls));
tic
parfor i = 1:length(ls)
tic
p(i) = int_prob(ls(i), T, x0, direc, t_ind, 5, 0);
toc
end
toc
%% Mean cross jump length chi 7/3
run_jump_lengths(-5, 1, 7/3, 1, 4, '73_1_01', 10^-6, 3, 0.5);
run_jump_lengths(-5, 1, 7/3, 1, 4, '73_1_10', 10^-6, 4, 0.5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment