Solving system of equations

조회 수: 2 (최근 30일)
Nrmn
Nrmn 2020년 2월 25일
댓글: Nrmn 2020년 3월 20일
Hi,
I am trying to solve a system of equations. This system is comprised of 4 first-order differential equations and 4 analytical equations, I have 8 unknown variables. Each equation is dependent on at least 2 different variables. Is there a way to solve such a system of equations? I know of the bvp4c function that I could use for the differential equations because I know the boundary conditions. But in order to solve these, I need to include the analytical equations somehow. Any ideas?
Thanks!
  댓글 수: 12
darova
darova 2020년 3월 2일
I mean values ;)
Is there any data? Or it's function?
Nrmn
Nrmn 2020년 3월 2일
I do not have specific values or data for Y. However, I found an expression in literature for and . Maybe this is helpful.
So
with
with
and
with
I hope this helps. I'm starting to lose track... I really appreciate your help!

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

답변 (1개)

darova
darova 2020년 3월 2일
Here is algorithm i choosed:
  • integrate 3 and 4 equations. Get 2 nonlinear equations
  • having 6 nonlinear equations (red box) use fsolve to calculate unknown u_e u_h T_h T_e n_n n_e
  • calculate M_h and V
I places these equations into ode45 function. I got some results. BUt how to know if they are correct?
I choosed Y_h=1 and Y_e=1 (couldn't handle it)
After constructing system of equations (RED BOX) i put there initial conditions
% u_e u_h T_h T_e n_n n_e
u0 = [18032, 30.0623, 4500, 1.37, 1.6218E+22, 1.4459E+21);
EQNS(u0,1,1)
ans =
1.0e+03 *
0.0016
-0.0008
0.0098
0.0000
-0.0001
-2.6002
% shouldn't all they be zero?
See attached script
  댓글 수: 8
darova
darova 2020년 3월 16일
how is it going
Nrmn
Nrmn 2020년 3월 20일
So I tried to change the system of equation a bit. I now want to solve 4 differential equations:
I also changed the last equation in the analytical system of equations. It is now dependent in .
However, I stil can't get results...

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by