Duplicate co-ordinate name error in O... Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Duplicate co-ordinate name error in ODE problem « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this 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
application/octet-streamDouble salnikov
Double Salnikov.pde (1.4 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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.
Top of pagePrevious messageNext messageBottom of page Link to this message

Matthew Lloyd Davies (mdavies)
Member
Username: mdavies

Post Number: 5
Registered: 10-2004
Posted on Saturday, November 06, 2004 - 07:23 am:   

Thanks Robert :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration