Guidance sought with numerical ODE solution

In summary, the conversation discussed a heat transfer problem in which a liquid is being added to a container at a constant rate. The simplified equation for this problem is K = -m\dot{T_{1}}. However, when the value for m becomes too small, it can result in an impossible temperature difference between T1 and T2. A suggested solution was to set a minimum value for m, but it was also recommended to consider the physical implications of this limitation. Other possible solutions included adjusting the time step in the numerical integrator or using a different integration method that is more stable for small time steps.
  • #1
groston
4
0
The following image is from an old heat transfer book - my problem is quite similar. Note that for this discussion, only equation 4-6 need be considered.
[PLAIN]http://www.pairofdocs.net/images/eq.jpg

Consider the case when the liquid is being added to the tank at a constant rate, and without loss of generality, assume that the temperature of the liquid is higher than that of the container.

Equation 4.6 can be simplified for the purpose of my question to this:

[tex]K = -m\dot{T_{1}}[/tex]

We know from physics that the temperature of the liquid will never be lower than the temperature of the container. However, if the value for m is sufficiently small, then [tex]\dot{T_{1}}[/tex] times the time step for the numerical integrator (dt) will yield a result such that:

[tex]T_{1}-\dot{T_{1}}dt<T_{2}[/tex]

and this is clearly not possible. How can this happen? Quite simply by using a RK routine which automatically adjusts the step size. (And, needless to say, when this happens, the routine blows up.)

It occurred to me that one work-around is to not allow the value of m be reduced to less than some value, perhaps

[tex]m=\frac{K dt}{T_{1}-T_{2}}[/tex]

Does this seem reasonable? Can you suggest another approach to solving this problem?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2

Thank you for sharing your problem with us. It seems to me that your proposed work-around of setting a minimum value for m could be a valid solution. However, I would also suggest considering the physical implications of such a limitation. It is important to ensure that the chosen value for m still accurately reflects the heat transfer process in the system.

Another approach that you could consider is adjusting the time step (dt) in your numerical integrator. By decreasing the time step, you can ensure that the temperature difference between T1 and T2 remains within a reasonable range. This may be a more flexible solution as it allows for smaller changes in m, rather than imposing a fixed limitation.

Additionally, you could also explore using a different numerical integration method that is more stable for small time steps. This could help to prevent the routine from blowing up.

I hope these suggestions are helpful in solving your problem. Good luck with your research!
Scientist
 

Related to Guidance sought with numerical ODE solution

What is a numerical ODE solution?

A numerical ODE (ordinary differential equation) solution is a method used to approximate the solution to a differential equation, which is a mathematical equation that relates a function with its derivatives.

Why is guidance sought with numerical ODE solution?

Guidance is sought with numerical ODE solution because it can be a complex process, and having guidance from an experienced scientist can help ensure accurate and efficient results.

What are some common challenges in numerical ODE solution?

Some common challenges in numerical ODE solution include selecting an appropriate numerical method, choosing appropriate initial conditions, and dealing with round-off errors.

What factors should be considered when selecting a numerical method for ODE solution?

Factors to consider when selecting a numerical method for ODE solution include the type of differential equation (e.g. linear or nonlinear), the accuracy and stability of the method, and the computational cost.

How can one improve the accuracy of a numerical ODE solution?

To improve the accuracy of a numerical ODE solution, one can decrease the step size used in the numerical method, use a higher order method, or use adaptive step size methods that adjust the step size based on the error of the solution.

Similar threads

  • Differential Equations
Replies
1
Views
810
  • Classical Physics
Replies
27
Views
1K
  • Differential Equations
Replies
8
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Differential Equations
Replies
3
Views
2K
  • Differential Equations
Replies
8
Views
3K
Replies
7
Views
1K
  • Biology and Chemistry Homework Help
Replies
2
Views
3K
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
Back
Top