0
|
4372 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
GROUPS:

# NDSolve error

Posted 9 years ago
 Hi, I got an error in my ND solve file.. but I am sure about my parameterizations.. I dint miss anything in my definitions , i checked it several times.. not sure where i am going wrong.. got stuck here for a long time.. The file is lenghty..it would be great if someone could help me with this.. Attachments:
2 Replies
Sort By:
Posted 9 years ago
 You left the function Cs out of the dependent variable list. You also gave Nh[t] == 1, No[t] == 1, Ni[t] == 1 as algebraic equations. Perhaps you meant it to be Nh == 1, No == 1, Ni == 1? You should also give an initial value for Cs. The following works: NDSolve[{Cp'[t] == Gp - Mp, Ch'[t] == Mp + Ms + Mm - Dsh, Co'[t] == Mp + Ms + Mm - Dmo - Dso, Cs'[t] == es Us - Ms, Cm'[t] == em Um - Mm, Np'[t] == Upn - rp Mp + \[Phi]m, Nh'[t] == fhp rp Mp + fhs rs Ms + fhm rm Mm - rh Dsh, No'[t] == fop rp Mp + fos rs Ms + fom rm Mm - ro (Dmo + Dso), Ni'[t] == Datm - L - Umn + \[Phi]s, Cp == 1, Ch == 1, Co == 1, Cm == 1, Np == 1, Nh == 1, No == 1, Ni == 1, Cs == 0}, {Cp, Ch, Co, Cm, Np, Nh, No, Ni, Cs}, {t, 0, 100}] 
Posted 9 years ago
 Thanks! it worked!