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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

1 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

Top Tags