Skip to main content
1-Visitor
April 14, 2023
Solved

odesolve: fewer than 3 arguments

  • April 14, 2023
  • 1 reply
  • 1596 views

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.

 

 

 

Best answer by LucMeekes

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

1 reply

LucMeekes23-Emerald IVAnswer
23-Emerald IV
April 15, 2023

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

25-Diamond I
April 15, 2023

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