The Ginzburg-Landau equation for a system of squared superconductor with a slit in presence of a uniform magnetic field can be written as a sort of continuity equation with Neumann boundary conditions (Ref):
$d_a. \frac{\partial \bf{u}}{\partial t} + \nabla. \Gamma = \bf{F}$
$\nabla \begin{pmatrix} u_1 \\ u_2 \end{pmatrix}.\bf{n}= 0$
$\nabla \times \begin{pmatrix} u_3 \\ u_4 \end{pmatrix} = \bf{B_a}$
$\begin{pmatrix} u_3 \\ u_4 \end{pmatrix}. \bf{n} = 0$
The magnetic field is applied along the z-axis so $\bf{B_a} = B_a \hat{k}, \bf{n} = \hat{k}$, and $B_a$ is constant. The result is a set of four coupled pde :
dA = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, sigma, 0}, {0, 0, 0, sigma}};
u[t_?NumericQ, x_?NumericQ, y_?NumericQ, z_?NumericQ] := {u1[t, x, y, z], u2[t, x, y, z], u3[t, x, y, z],
u4[t, x, y, z]}
delgma[t_, x_, y_, z_] = {(-D[u1[t, x, y, z], {x, 2}] -
D[u1[t, x, y, z], {y, 2}])/(kappa^2), (-D[
u2[t, x, y, z], {x, 2}] -
D[u2[t, x, y, z], {y, 2}])/(kappa^2),
D[D[u4[t, x, y, z], x], y] - D[u3[t, x, y, z], {y, 2}] +
D[ba[x, y, z], y],
D[D[u3[t, x, y, z], x], y] - D[u4[t, x, y, z], {x, 2}] +
D[ba[x, y, z], x]};
f1[t_, x_, y_, z_] = -(D[u3[t, x, y, z], x] + D[u4[t, x, y, z], y])*
u1[t, x, y, z]/
kappa - (D[u1[t, x, y, z], x]*u3[t, x, y, z] +
D[u1[t, x, y, z], y]*u4[t, x, y, z])/
kappa - (u3[t, x, y, z]*u3[t, x, y, z] +
u4[t, x, y, z]*u4[t, x, y, z])*u1[t, x, y, z] + (1 - temp)*
u1[t, x, y,
z]*(1 - (u1[t, x, y, z]*u1[t, x, y, z] +
u2[t, x, y, z]*u2[t, x, y, z]));
f2[t_, x_, y_, z_] = -(D[u3[t, x, y, z], x] + D[u4[t, x, y, z], y])*
u2[t, x, y, z]/
kappa - (D[u2[t, x, y, z], x]*u3[t, x, y, z] +
D[u2[t, x, y, z], y]*u4[t, x, y, z])/
kappa - (u3[t, x, y, z]*u3[t, x, y, z] +
u4[t, x, y, z]*u4[t, x, y, z])*u2[t, x, y, z] + (1 - temp)*
u2[t, x, y,
z]*(1 - (u1[t, x, y, z]*u1[t, x, y, z] +
u2[t, x, y, z]*u2[t, x, y, z]));
f3[t_, x_, y_, z_] = (D[u2[t, x, y, z], x]*u1[t, x, y, z] -
D[u1[t, x, y, z], x]*u2[t, x, y, z])/
kappa - (u1[t, x, y, z]*u1[t, x, y, z] +
u2[t, x, y, z]*u2[t, x, y, z])*u3[t, x, y, z];
f4[t_, x_, y_, z_] = (D[u2[t, x, y, z], y]*u1[t, x, y, z] -
D[u1[t, x, y, z], y]*u2[t, x, y, z])/
kappa - (u1[t, x, y, z]*u1[t, x, y, z] +
u2[t, x, y, z]*u2[t, x, y, z])*u3[t, x, y, z];
f[t_, x_, y_, z_] = {f1[t, x, y, z], f2[t, x, y, z], f3[t, x, y, z],
f4[t, x, y, z]};
dudt[t_, x_, y_, z_] = {D[u1[t, x, y, z], t], D[u2[t, x, y, z], t],
D[u3[t, x, y, z], t], D[u4[t, x, y, z], t]};
eqns = dA.dudt[t, x, y, z] + delgma[t, x, y, z] - f[t, x, y, z];
The equations have to be solved over a squared region with a slit which I have tried to model as:
region3d =
ImplicitRegion[-1 <= x <= 1 && -1 <= y <=
1 && ! (0 < x <= 1 && -0.1 < y < 0.1) && 0.45 <= z <= 0.5, {x, y,
z} ];
I am trying to gave a shot at the solution with following parameters
ba[x_, y_, z_] = 1;
kappa = 4;
sigma = 2;
temp = 0.5;
I tried the following method and got the error:
Needs["NDSolve`FEM`"];
sol = NDSolveValue[{eqns[[1]] ==
NeumannValue[0, z == 0.45 || z == 0.5],
eqns[[2]] == NeumannValue[0, z == 0.45 || z == 0.5],
eqns[[3]] == NeumannValue[0, z == 0.45 || z == 0.5],
eqns[[4]] == NeumannValue[0, z == 0.45 || z == 0.5] ,
u3[0, x, y, z] == 0.5*x*ba[ x, y, z],
u4[0, x, y, z] == 0.5*x*ba[x, y, z]}, {u1, u2, u3, u4}, {t, 0,
10}, {x, y, z} \[Element] region3d,
Method -> {"FiniteElement",
"MeshOptions" -> {MaxCellMeasure -> 0.005}}];
NDSolveValue::ivone: Boundary values may only be specified for one independent variable. Initial values may only be specified at one value of the other independent variable. >>
Since I am solving such an equation for the first time, I am not particularly sure that I have used the Neumann boundary conditions correcly.
dudt
is not defined. Typo in boundary conditions: should beNeumannValue[0, z == 0.45 || z == 0.5]
. Use{u1, u2, u3, u4}
instead ofu
inNDSolve[]
. $\endgroup$[t_, x_, y_, z_]
fromu, delgma, f, f1, f2,f3,f4,dudt
,putf={f1,f2,f3,f4}
andeqns = dA.dudt + delgma - f;
. Addu1[0, x, y, z] == 0, u2[0, x, y, z] == 0, DirichletCondition[{u1[t, x, y, z] == 0, u2[t, x, y, z] == 0}, True]
, InNDSolve
puteqns=={0,0,0,0}
. $\endgroup$