I am trying to solve the coupled Ekman layer solutions numerically, but I am not sure how to enter the boundary conditions or begin to define the equations and write my code. These are my equations and boundary conditions:
$ u''(z) + c [ v(z) - v_g ] = 0 $,
$ v''(z) + c [ u(z) - u_g ] = 0 $,
$ u = 0, \, v = 0 $ at $ z = 0 $,
$ u\to u_g, v\to v_g\ {\rm as}\ z\to\infty $.
This is the code I am using:
vg = 0;
ug = 5;
k = 0.1;
f = 0.006;
e =
NDSolve[
{u''[z] == -(f/k)*(v[z] - vg]),
v''[z] == (f/k)*(u[z] - ug),
u[0] == 0, v[0] == 0,
u[Infinity] -> ug, v[Infinity] -> vg},
{u, v}, {z, 0, 1000}]
I am getting errors because of the boundary/limit at infinity, but I am not sure how to address this.
I have values for k, f, ug and vg that I define earlier in the code.
The specific error is
Equation or list of equations expected instead of u[[Infinity]]->10 in the first argument
u[z]andv[z]need to be expressed as functions ofzjust like on the left. We cannot test your code numerically without knowingf,k,ugandvg`. The equations can be solved analytically, but it is tough satisfying infinite boundary conditions. – Bill Watts Oct 23 '18 at 22:08