How to solve stream function

조회 수: 22 (최근 30일)
esat gulhan
esat gulhan 2020년 9월 7일
답변: Sulaymon Eshkabilov 2020년 9월 7일
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 ?

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 9월 7일
Hi,
dsolve() can't be used here.
You'd need to employ pdepe() to solve this exercise.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by