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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

ODE Temperature profile solution

ptc-3948107
1-Visitor

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