Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Chemistry' topicStudent Support Forum > General > "Chemistry"

Next Comment >Help | Reply To Topic
Author Comment/Response
Amandeep Sangha
10/02/06 1:23pm

Hi,

I am trying to solve two coupled differential equations using NDSolve.
FT[x_] := D1 - b (D0 + (x - x0) D1) (x - xe)/s2
Di[x_] := D0 + (x - x0) D1
M2cD[x] = -M2c[x]/x2 + 1
x0 = .18
D0 = 1.5 10^(-5)
D1 = -2 10^(-6)
x2 = .013

fnx = NDSolve[{D[M1[x], x] == -Di[M1[x]] M1[x]/x2 + D1 M2cD[
x], D[M2c[x], x] == 2 Di[M1[x]] M2cD[x] - 2 D1 M2c[x] M1[x] /x2, M1[0] == 0.18, M2c[0] == 0}, {M1, M2c}, {x, 0, 1500}]

The error I encountered is:

NDSolve::ndnum: Encountered non-numerical value for a derivative at x == 0.`

Could anyone please help me out this problem?

regards,
amandeep.

URL: ,

Subject (listing for 'Chemistry')
Author Date Posted
Chemistry Amandeep San... 10/02/06 1:23pm
Re: Chemistry Peter Pein 10/04/06 10:38am
Next Comment >Help | Reply To Topic