Solving system of equations

2 vues (au cours des 30 derniers jours)
Nrmn
Nrmn le 25 Fév 2020
Commenté : Nrmn le 20 Mar 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 commentaires
darova
darova le 2 Mar 2020
I mean values ;)
Is there any data? Or it's function?
Nrmn
Nrmn le 2 Mar 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!

Connectez-vous pour commenter.

Réponses (1)

darova
darova le 2 Mar 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 commentaires
darova
darova le 16 Mar 2020
how is it going
Nrmn
Nrmn le 20 Mar 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...

Connectez-vous pour commenter.

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by