- #1
motorhue
- 1
- 0
Hello.
I have a fluid in a rectangular basin, driven by stokes drift at the southern wall. The problem is formulated as follows:
[tex]\begin{align*}
-U_y+V_x &= g_1(x,y) \\
U_x+V_y &= g_2(x,y) \\
U(x=0)=U(x=M)&=V(y=0)=V(y=N) = 0
\end{align*}[/tex]
Here, g_1 and g_2 are known functions of the horisontal coordinates x and y. M and N are east and north boundary, subscript denotes derivatives.
My question is how can I implement this numerically? If I reduce to one variable I get a problem implementing the boundary conditions on the other variable. I believe it should be doable with a rather straightforward MATLAB routine?
I have a fluid in a rectangular basin, driven by stokes drift at the southern wall. The problem is formulated as follows:
[tex]\begin{align*}
-U_y+V_x &= g_1(x,y) \\
U_x+V_y &= g_2(x,y) \\
U(x=0)=U(x=M)&=V(y=0)=V(y=N) = 0
\end{align*}[/tex]
Here, g_1 and g_2 are known functions of the horisontal coordinates x and y. M and N are east and north boundary, subscript denotes derivatives.
My question is how can I implement this numerically? If I reduce to one variable I get a problem implementing the boundary conditions on the other variable. I believe it should be doable with a rather straightforward MATLAB routine?