Author |
Message |
Matthew Lloyd Davies (mdavies)
Member Username: mdavies
Post Number: 4 Registered: 10-2004
| Posted on Friday, November 05, 2004 - 07:26 pm: | |
Could someone please help to fix this code. I am trying to solve a 3 variable nonlinear ODE problem but I keep getting the message: Duplicate co-ordinate name Code attached. Regards M |
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 249 Registered: 06-2003
| Posted on Friday, November 05, 2004 - 07:45 pm: | |
The default coordinate system is two-dimensional Cartesian with coordinates X and Y. In that system, you cannot redefine X or Y as a variable. You must either use a different name for your variable, or change the coordinate names using the COORDINATES command.
|
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 250 Registered: 06-2003
| Posted on Friday, November 05, 2004 - 08:13 pm: | |
The diagnostic issued for this error is not very helpful. I will try to make it more informative in the next version release. |
Matthew Lloyd Davies (mdavies)
Member Username: mdavies
Post Number: 5 Registered: 10-2004
| Posted on Saturday, November 06, 2004 - 07:23 am: | |
Thanks Robert |
Mohammad Rahmani (mrahmani)
Junior Member Username: mrahmani
Post Number: 3 Registered: 10-2004
| Posted on Sunday, November 07, 2004 - 12:26 am: | |
The derivation seems to be wrong. The precursor concentration should be decreasing. It needs a minus sign in the first equation. Also the set of ODEs are stiff and you need a stiff solver like "ode15s" in Matlab. I am not sure about FlexPDE solver, but if it uses a general solver then you can not obtain the right answer.
|
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 252 Registered: 06-2003
| Posted on Sunday, November 07, 2004 - 02:26 am: | |
FlexPDE uses a stiff solver. See my response to Rahmani's separate posting. |