Hello Madeleine,
thank you for you thank you. That is kind.
Concerning the diffusion in two phases : Long time ago I wrote a code dealing with that problem. Perhaps it is helpful.
a = 2.; b = 6; du = .1; dv = .8; u0 = 5.; v0 = 1.5;ux = 1/a; vx = 1/(a - b);
Clear[sol]
sol[t1_] := Module[{},
{g, h} /. NDSolve[
{
D[ g[x, t], t] == ux^2 du D[g[x, t], x, x],
D[ h[x, t], t] == vx^2 dv D[ h[x, t], x, x],
g[x, 0] == u0,
h[x, 0] == v0,
(D[ g[x, t], x] == 0) /. x -> 0,
(D[ h[x, t], x] == 0) /. x -> 0,
( ux du D[ g[x, t], x] == vx dv D[h[x, t], x]) /. x -> 1,
h[1, t] == g[1, t] (1 - Exp[-30 t]) + v0 Exp[-30 t]
},
{g, h},
{x, 0, 1}, {t, 0, t1}][[1]]
]
lsg = sol[20];
f1 = lsg[[1]];
f2 = lsg[[2]];
fp[x_, t_] := If[x < a, f1[x/a, t], f2[(x - b)/(a - b), t]]
Manipulate[
Plot[fp[x, tt], {x, 0, b}, PlotRange -> {0, 6}],
{tt, 0, 20}]
And good luck for your thesis.