Define an additional variable in ODE solver
Mostra commenti meno recenti
I need to solve a system of ODE's. There are two time dependent concentrations equations
dC1/dt= Const1 + Const2 * P1
dC2/dt= Const3 + Const4 * P2
P1=f(r)
P2=g(r)
r= h(C1,C2)
I need to calculate P1 and P2 with are functions of r. Then calculate r using the solution of the differential equations for the latest time step. For this I would need an initial value for r to be used in first timestep. As equation for r is not an ODE how can I prescribe an initial condition for it?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Ordinary Differential Equations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!