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
b047d291
Commit
b047d291
authored
3 years ago
by
Lars Hubatsch
Browse files
Options
Downloads
Patches
Plain Diff
Start working on Hammerhead/Ribozyme reaction. Seems to work in principle.
parent
6680ed59
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
@Ternary_model/solve_tern_frap.m
+14
-0
14 additions, 0 deletions
@Ternary_model/solve_tern_frap.m
flory_hugg_pde.m
+10
-0
10 additions, 0 deletions
flory_hugg_pde.m
with
24 additions
and
0 deletions
@Ternary_model/solve_tern_frap.m
+
14
−
0
View file @
b047d291
...
...
@@ -50,6 +50,14 @@ elseif strcmp(ic, 'phi_tot')
A
=
(
P
-
1
)
*
off
/(
exp_tern
(
-
200
)
-
exp_tern
(
200
));
B
=
off
-
A
*
exp_tern
(
200
);
u
=
A
*
exp_tern
(
x
)
+
B
;
elseif
strcmp
(
ic
,
'Substrate'
)
u
=
zeros
(
2
,
1
);
if
x
<
-
a
u
(
1
)
=
0
;
else
u
(
1
)
=
1
;
end
u
(
2
)
=
0
;
elseif
isnumeric
(
ic
)
% use ic as initial condition by interpolating the given values between
% 0 and a
...
...
@@ -73,6 +81,12 @@ function [pl,ql,pr,qr] = flory_bc(xl, ul, xr, ur, t, u0, e, j)
% Dirichlet BC
% pr = ur-u0+e;
% qr = 0;
elseif
j
==
-
1
%% For now this means we're looking at Hammerhead/Ribo
pl
=
[
0
;
0
];
ql
=
[
1
;
1
];
% No flux
pr
=
[
0
;
0
];
%ur - 0.01;
qr
=
[
1
;
1
];
% Dirichlet BC constant flux case
else
pr
=
ur
;
...
...
This diff is collapsed.
Click to expand it.
flory_hugg_pde.m
+
10
−
0
View file @
b047d291
...
...
@@ -24,5 +24,15 @@ elseif strcmp(mode, 'Const_flux')
f
=
g0
.*
(
1
-
pt
)
.
/
pt
.*
(
pt
.*
dudx
-
u
.*
gra_a
)
-
j
*
u
/
pt
;
elseif
strcmp
(
mode
,
'Mobility_ratio'
)
f
=
u_g0
.*
(
1
-
e_g0
*
pt
)
.*
(
dudx
-
u
.*
gra_a
.
/
pt
);
elseif
strcmp
(
mode
,
'Hammer_Ribo'
)
% Use code from client (flux) and constituent (mobility)
c
=
[
1
;
1
];
g0
=
Ternary_model
.
gamma0
(
x
,
a
+
t
*
v
,
b
,
e_g0
,
u_g0
,
v
*
t
,
e
,
u0
);
chi_phi
=
-
4
;
chi_phi1
=
-
10
;
k_H
=
0.2
;
f
=
[
1
;
1
]
.*
g0
.*
(
dudx
+
[
chi_phi
;
chi_phi1
]
.*
u
*
gra_a
);
F
=
k_H
*
pt
*
u
(
1
);
s
=
[
-
F
;
F
];
end
end
\ No newline at end of file
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