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 个评论
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