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.

ODE Temperature profile solution

ptc-3948107
1-Newbie

ODE Temperature profile solution

I've having a bit of a problem using the rkfixed function (have tried Rkadapt and Odesolve and results in the same problem).

The ODE describes the temperature profile in a length of pipe cooling from the feed temperature to an ambient temperature. However, the rkfixed solution results in an unexpected exponential growth curve.

Luckily the function can actually be integrated by hand, plotting this gives the expected exponential decay.

Graph in the attached file shows the rkfixed result as T and the analytical solution as Tb.

Thanks

Cameron

ACCEPTED SOLUTION

Accepted Solutions

You've got your subtraction backwards.

View solution in original post

2 REPLIES 2

You've got your subtraction backwards.

Now that was kinda obvious. Although it does now raise more questions and doubt about the accuracy of the equation's source (published article).

Thanks

Cameron

Announcements

Top Tags