How to solve stream function

I am trying to get stream function which expressed as s(x,y)
ds/dy=u=0.5+1.2.*x;
ds/dx=v=-2-1.2*y;
clc,clear;
syms s(x,y) x y
u=0.5+1.2.*x+y;
v=-2-1.2*y+x;
eqn =[diff(s,y) ==u,diff(s,x)==v]
ySol(x,y) = dsolve(eqn)
It seems wrong. Can you please help me ?

Respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 7 de Sept. de 2020

0 votos

Hi,
dsolve() can't be used here.
You'd need to employ pdepe() to solve this exercise.

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Preguntada:

el 7 de Sept. de 2020

Respondida:

el 7 de Sept. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by