Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frap Theory
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hubatsch
Frap Theory
Commits
b8721728
Commit
b8721728
authored
3 years ago
by
Lars Hubatsch
Browse files
Options
Downloads
Patches
Plain Diff
Test jump length with tanh mobility. Slightly off.
parent
63b319b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
@Ternary_model/calc_real_params.m
+5
-0
5 additions, 0 deletions
@Ternary_model/calc_real_params.m
prob_laplace.m
+48
-24
48 additions, 24 deletions
prob_laplace.m
run_jump_lengths.m
+4
-3
4 additions, 3 deletions
run_jump_lengths.m
with
57 additions
and
27 deletions
@Ternary_model/calc_real_params.m
+
5
−
0
View file @
b8721728
...
...
@@ -18,5 +18,10 @@ elseif strcmp(T.mode, 'Const_mob')
T
.
e_g0
*
T
.
real_params
.
phi_in
^
2
);
T
.
real_params
.
D_out
=
(
1
-
T
.
real_params
.
phi_out
+
...
T
.
e_g0
*
T
.
real_params
.
phi_out
^
2
);
elseif
strcmp
(
T
.
mode
,
'Mobility_ratio'
)
% e_g0 and u_g0 in this case have nothing to do with tanh. See
% flory_hugg_pde
T
.
real_params
.
D_in
=
T
.
u_g0
.*
(
1
-
T
.
e_g0
*
T
.
real_params
.
phi_in
);
T
.
real_params
.
D_out
=
T
.
u_g0
.*
(
1
-
T
.
e_g0
*
T
.
real_params
.
phi_out
);
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
prob_laplace.m
+
48
−
24
View file @
b8721728
...
...
@@ -309,31 +309,55 @@ for j = 1:length(bp)
csvwrite
([
pa
,
'prob_7_7_lb002_bp'
,
num2str
(
bp
(
j
)),
'.csv'
],
p
);
end
%% 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
);
run_jump_lengths
(
-
5
,
0
,
7
/
3
,
1
,
4
,
'73_6_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0
,
7
/
3
,
1
,
4
,
'73_6_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.08410041
,
7
/
3
,
1
,
4
,
'73_10_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.08410041
,
7
/
3
,
1
,
4
,
'73_10_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.12314694
,
7
/
3
,
1
,
4
,
'73_15_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.12314694
,
7
/
3
,
1
,
4
,
'73_15_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.14264143
,
7
/
3
,
1
,
4
,
'73_20_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.14264143
,
7
/
3
,
1
,
4
,
'73_20_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.15432893
,
7
/
3
,
1
,
4
,
'73_25_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.15432893
,
7
/
3
,
1
,
4
,
'73_25_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.16211677
,
7
/
3
,
1
,
4
,
'73_30_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.16211677
,
7
/
3
,
1
,
4
,
'73_30_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0
,
7
/
3
,
1
,
4
,
'73_1_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1
,
7
/
3
,
1
,
4
,
'73_6_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1.10612003
,
7
/
3
,
1
,
4
,
'73_15_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1.13188434
,
7
/
3
,
1
,
4
,
'73_25_10_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
0
,
7
/
3
,
1
,
4
,
'73_1_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1
,
7
/
3
,
1
,
4
,
'73_5_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1.10612003
,
7
/
3
,
1
,
4
,
'73_15_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1.13188434
,
7
/
3
,
1
,
4
,
'73_25_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
%%
strings
=
{
'73_1_01_m'
,
'73_6_01_m'
,
'73_15_01_m'
,
'73_25_10_m'
,
...
'73_1_1_m'
,
'73_5_1_m'
,
'73_15_1_m'
,
'73_25_1_m'
};
for
i
=
1
:
length
(
strings
)
load
(
strings
{
i
});
disp
([
D_ratio
,
m
]);
end
%%
run_jump_lengths
(
-
5
,
-
0.08410041
,
7
/
3
,
1
,
4
,
'73_10_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.08410041
,
7
/
3
,
1
,
4
,
'73_10_10_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.12314694
,
7
/
3
,
1
,
4
,
'73_15_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.12314694
,
7
/
3
,
1
,
4
,
'73_15_10_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.14264143
,
7
/
3
,
1
,
4
,
'73_20_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.14264143
,
7
/
3
,
1
,
4
,
'73_20_10_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.15432893
,
7
/
3
,
1
,
4
,
'73_25_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.15432893
,
7
/
3
,
1
,
4
,
'73_25_10_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.16211677
,
7
/
3
,
1
,
4
,
'73_30_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
-
0.16211677
,
7
/
3
,
1
,
4
,
'73_30_10_m'
,
10
^-
6
,
4
,
0.5
,
1
);
%% chi 7.7/3
run_jump_lengths
(
-
5
,
1
,
7.7
/
3
,
1
,
4
,
'773_1_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
1
,
7.7
/
3
,
1
,
4
,
'773_1_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0.136322219
,
7.7
/
3
,
1
,
4
,
'773_6_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.136322219
,
7.7
/
3
,
1
,
4
,
'773_6_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0.0618145816
,
7.7
/
3
,
1
,
4
,
'773_10_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.0618145816
,
7.7
/
3
,
1
,
4
,
'773_10_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0.027120457
,
7.7
/
3
,
1
,
4
,
'773_15_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.027120457
,
7.7
/
3
,
1
,
4
,
'773_15_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0.00977482501
,
7.7
/
3
,
1
,
4
,
'773_20_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.00977482501
,
7.7
/
3
,
1
,
4
,
'773_20_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0
,
7.7
/
3
,
1
,
4
,
'773_1_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
0.86811566
,
7.7
/
3
,
1
,
4
,
'773_6_10_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
0.97386999
,
7.7
/
3
,
1
,
4
,
'773_15_01_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1
,
7.7
/
3
,
1
,
4
,
'773_25_10_m'
,
10
^-
6
,
3
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
0
,
7.7
/
3
,
1
,
4
,
'773_1_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
0.86811566
,
7.7
/
3
,
1
,
4
,
'773_6_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
0.97386999
,
7.7
/
3
,
1
,
4
,
'773_15_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
run_jump_lengths
(
-
5
,
1
,
7.7
/
3
,
1
,
4
,
'773_25_1_m'
,
10
^-
6
,
4
,
0.5
,
1
);
%%
strings
=
{
'773_1_01_m'
,
'773_6_10_m'
,
'773_15_01_m'
,
'773_25_10_m'
,
...
'773_1_1_m'
,
'773_6_1_m'
,
'773_15_1_m'
,
'773_25_1_m'
};
for
i
=
1
:
length
(
strings
)
load
(
strings
{
i
});
disp
([
D_ratio
,
m
]);
end
%%
run_jump_lengths
(
-
5
,
0.0618145816
,
7.7
/
3
,
1
,
4
,
'773_10_01_m'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.0618145816
,
7.7
/
3
,
1
,
4
,
'773_10_10_m'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0.027120457
,
7.7
/
3
,
1
,
4
,
'773_15_01_m'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.027120457
,
7.7
/
3
,
1
,
4
,
'773_15_10_m'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0.00977482501
,
7.7
/
3
,
1
,
4
,
'773_20_01_m'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0.00977482501
,
7.7
/
3
,
1
,
4
,
'773_20_10_m'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
0
,
7.7
/
3
,
1
,
4
,
'773_25_01'
,
10
^-
6
,
3
,
0.5
);
run_jump_lengths
(
-
5
,
0
,
7.7
/
3
,
1
,
4
,
'773_25_10'
,
10
^-
6
,
4
,
0.5
);
run_jump_lengths
(
-
5
,
-
0.00756985349
,
7.7
/
3
,
1
,
4
,
'773_30_01'
,
10
^-
6
,
3
,
0.5
);
...
...
This diff is collapsed.
Click to expand it.
run_jump_lengths.m
+
4
−
3
View file @
b8721728
function
run_jump_lengths
(
a
,
ad
,
chi
,
direc
,
l_max
,
name
,
nu
,
t_ind
,
u0
)
function
run_jump_lengths
(
a
,
ad
,
chi
,
direc
,
l_max
,
name
,
nu
,
t_ind
,
u0
,
u_g0
)
% Calculate jump length distribution for given parameter set.
% ad ... prefactor of quadratic term in Stefano's mobility ansatz
% ad ... prefactor of quadratic term in Stefano's mobility ansatz or e_g0
% if mode is 'Mobility ratio'
b
=
@
(
chi
,
nu
)
nu
^
(
1
/
3
)
*
sqrt
(
chi
/(
chi
-
2
));
e
=
@
(
chi
)
sqrt
(
3
/
8
*
(
chi
-
2
));
params
=
{
a
,
b
(
chi
,
nu
),
u0
,
e
(
chi
),
ad
,
0
,
10
,
7
,
0
,
0
,
'
Const_mob
'
,
0
};
params
=
{
a
,
b
(
chi
,
nu
),
u0
,
e
(
chi
),
ad
,
u_g
0
,
10
,
7
,
0
,
0
,
'
Mobility_ratio
'
,
0
};
t
=
[
0
,
0.05
,
0.1
,
1
];
x0
=
sort
(
5
-
direc
*
(
0
:
0.001
:
4.01
));
%% Run simulations for 'delta' IC across outside
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment