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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

MathCAD ODE Problem

DaleLabitzke-di
1-Newbie

MathCAD ODE Problem

I'm working on what I though to be an easy problem to predict temperature of a tank as a function of time. The tank contains water and some solid pellets, each containing solvent. The tank is heated with a steady source of energy. The solvent is boiled off. The solvent fraction of the liquid, pellets, and evolving vapor are all known and are each a function of temperature.

Odesolve seems to work but when I attempt to get an answer from the generated function or generate a graph, an error "This value must be a scalar" is reported.

It really has me confused. Obviously I don't use Odesolve often enough. Any help would be appreciated.

Best regards,

ACCEPTED SOLUTION

Accepted Solutions

See attached.

Alan

View solution in original post

4 REPLIES 4

See attached.

Alan

Ever so clever. Wish my brain worked like that.

Thanks so much!

Dale,

The first odesolve parameter (tau) should be the function name alone without the parameters. (a little detail hidden in the help file)

Then let Alan's solution speak for itself....

Philip

Philip Oakley wrote:

Dale,

The first odesolve parameter (tau) should be the function name alone without the parameters. (a little detail hidden in the help file)

Philip

Note that this is only needed when solving a system of ODEs. For a single ODE it isn't used.

Alan

Announcements

Top Tags