Solving system of equations

2 Ansichten (letzte 30 Tage)
Nrmn
Nrmn am 25 Feb. 2020
Kommentiert: Nrmn am 20 Mär. 2020
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 Kommentare
darova
darova am 2 Mär. 2020
I mean values ;)
Is there any data? Or it's function?
Nrmn
Nrmn am 2 Mär. 2020
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!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

darova
darova am 2 Mär. 2020
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 Kommentare
darova
darova am 16 Mär. 2020
how is it going
Nrmn
Nrmn am 20 Mär. 2020
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...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Numerical Integration and Differential Equations 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!

Translated by