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

Enabling Stefanos mobility scaling. Not tested in Matlab.

parent 788bf597
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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];
......
......@@ -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;
......
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