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
f433ed84
Commit
f433ed84
authored
4 years ago
by
Lars Hubatsch
Browse files
Options
Downloads
Patches
Plain Diff
Enabling Stefanos mobility scaling. Not tested in Matlab.
parent
788bf597
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/Ternary_model.m
+1
-1
1 addition, 1 deletion
@Ternary_model/Ternary_model.m
@Ternary_model/create_mesh.m
+1
-1
1 addition, 1 deletion
@Ternary_model/create_mesh.m
flory_hugg_pde.m
+4
-0
4 additions, 0 deletions
flory_hugg_pde.m
with
6 additions
and
2 deletions
@Ternary_model/Ternary_model.m
+
1
−
1
View file @
f433ed84
...
...
@@ -21,7 +21,7 @@ classdef Ternary_model < handle
b
=
0.025
;
u0
=
0.05
;
e
=
0.4
;
e_g0
=
0.16
;
e_g0
=
0.16
;
% mobility spread. Also used in square mobility ansatz.
ic_c
=
0
;
% initial concentration inside droplet
u_g0
=
0.2
;
system_size
=
300
;
...
...
This diff is collapsed.
Click to expand it.
@Ternary_model/create_mesh.m
+
1
−
1
View file @
f433ed84
...
...
@@ -2,7 +2,7 @@ function create_mesh(T)
%CREATE_MESH creates mesh for solving Ternary_model.
% Mesh density larger for steeper gradients.
if
strcmp
(
T
.
mode
,
'Constituent'
)
|
T
.
v
==
0
if
strcmp
(
T
.
mode
,
'Constituent'
)
|
|
strcmp
(
T
.
mode
,
'Const_mob'
)
||
T
.
v
==
0
% Start with left side of mesh, at r=0/x=0, with a given step size
x
=
linspace
(
0
,
-
0.75
*
T
.
a
,
40
);
x
=
[
x
,
x
(
end
)
+
0.001
/
T
.
precision
];
...
...
This diff is collapsed.
Click to expand it.
flory_hugg_pde.m
+
4
−
0
View file @
f433ed84
...
...
@@ -11,6 +11,10 @@ c = 1;
if
strcmp
(
mode
,
'Constituent'
)
g0
=
Ternary_model
.
gamma0
(
x
,
a
+
t
*
v
,
b
,
e_g0
,
u_g0
,
v
*
t
);
f
=
g0
.*
(
1
-
pt
)
.
/
pt
.*
(
pt
.*
dudx
-
u
.*
gra_a
);
elseif
strcmp
(
mode
,
'Const_mob'
)
% Using Stefano's mobility ansatz (1-phi_tot+a*phi_tot^2) to obtain a
% certain ratio of D_in/D_out.
f
=
(
1
-
pt
+
e_g0
*
pt
^
2
)
.
/
pt
.*
(
pt
.*
dudx
-
u
.*
gra_a
);
elseif
strcmp
(
mode
,
'Client'
)
g0
=
0.5
;
chi_phi
=
-
4.530864768482371
;
...
...
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