How to solve stream function
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 ?
0 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 7 Sep. 2020
Hi,
dsolve() can't be used here.
Here is the good explantion how to solve your exercise: https://www.mathworks.com/matlabcentral/answers/362434-stream-function-from-velocity-vector-map
You'd need to employ pdepe() to solve this exercise.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!