cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

odesolve: fewer than 3 arguments

ND_10647734
2-Guest

odesolve: fewer than 3 arguments

Hello,

 

I have been trying to solve this DAE system using MathCad Express Prime 9.0, but I have tried several things and I won't run. Can someone please take it a look and let me know why it does not work?

 

Thank you very much.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:ND_10647734)

Welcome to this forum, Nathan.

This calculation:

LucMeekes_0-1681573214697.png

Should not be in the Constraints section of the solve block. It doesn't contain any of the functions for the set of ODE:

LucMeekes_1-1681573363080.png

The five remaining equations leave

LucMeekes_2-1681573453148.png

as only implicitly defined.

Not that it helps. I still get the error message that "odesolve has fewer than 3 arguments" which is weird because the third argument of odesolve is optional, and adding a third argument doesn't change the error message.

Continuing...

 

Luc

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:ND_10647734)

Welcome to this forum, Nathan.

This calculation:

LucMeekes_0-1681573214697.png

Should not be in the Constraints section of the solve block. It doesn't contain any of the functions for the set of ODE:

LucMeekes_1-1681573363080.png

The five remaining equations leave

LucMeekes_2-1681573453148.png

as only implicitly defined.

Not that it helps. I still get the error message that "odesolve has fewer than 3 arguments" which is weird because the third argument of odesolve is optional, and adding a third argument doesn't change the error message.

Continuing...

 

Luc

I still get the error message that "odesolve has fewer than 3 arguments" which is weird because the third argument of odesolve is optional, and adding a third argument doesn't change the error message.

 


You get a different error message if you put the assignments at the top of the solve outside and in front of the block (where they belong to).
Only five equations for six functions and no derivatives for three of those functions, so no ODE.

We may also eliminate all three "r" functions leaving a system in x1, x2 and T, but now it can be clearly seen that one equation is missing - only two equations for three function.

Werner_E_0-1681577383162.png

 

Top Tags