How to find P(x,y) with diff

조회 수: 1 (최근 30일)
esat gulhan
esat gulhan 2020년 9월 9일
댓글: Alan Stevens 2020년 9월 9일
I am trying to solve this diff equation
u=a*x+b
v=-a*y+c*x
p=1
-dP/dy=(u*dv/dx+v*dv/dy)*p
-dP/dx=(u*du/dx+v*du/dy)*p
I want to find P(x,y) but i can not find
My code is below and i think it is absolutely wrong
syms a b c u v w x y z p Py(y) Px(x)
u=a*x+b
v=-a*y+c*x
eq=p*(u*diff(v,x)+v*diff(v,y))==-diff(Py,y)
Py(y)=dsolve(eq)
eq2=p*(u*diff(u,x)+v*diff(u,y))==-diff(Px,x)
Px(x)=dsolve(eq2)
  댓글 수: 6
Ameer Hamza
Ameer Hamza 2020년 9월 9일
You need to use a numerical solver, for example: https://www.mathworks.com/help/matlab/math/partial-differential-equations.
Alan Stevens
Alan Stevens 2020년 9월 9일
To find P(x,y) without an arbitrary constant you need a boundary/initial condition e.g. P(0,0) = something.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by