Approximation of boundary value problem using finite differences

In summary, the problem involves a hot fluid flowing through a thick-walled cylindrical metal tube at a constant temperature of 450C, with a temperature distribution defined by a differential equation. The boundary conditions are given, and the problem can be solved using the finite difference method by creating a matrix problem with the given values. The problem involves solving for the values of u at all N iteration points, and the boundary conditions may require some correction and adjustment in the matrix problem.
  • #1
ataylor
1
0

Homework Statement


A hot fluid is flowing through a thick-walled cylindrical metal tube at a constant temperature of 450C. The cylinder wall has an inner radius of 1 cm and an outer radius of 2 cm and the surrounding temperature is 20C. The temperature distribution u(r) in the metal is defined by the differential equation:

[tex]r\frac{d^2 u}{dr^2} + \frac{du}{dr} = 0 [/tex]

With the boundary conditions:

[tex]u\left(1\right) = 450 [/tex]

[tex]\frac{du}{dr}\left(2\right) = -K\left(u-20\right)[/tex]

where K=1.

Approximate the boundary value problem by creating a matrix problem using the finite difference method.

Homework Equations





The Attempt at a Solution


First, the interval [tex]1\leq r \leq 2[/tex] is divided by the number of iterations, N, to give the step length, h.

The derivatives of all the values inbetween the boundaries can be approximated by using finite differences as follows:

[tex]r\frac{u_{N-1}-2u_{N}+u_{N+1}}{h^2} + \frac{u_{N+1}-u_{N-1}}{2h} = 0[/tex]

Which after rearrangement gives:

[tex]r\frac{u_{N-1}-2u_{N}+u_{N+1}}{h^2} = -\frac{u_{N+1}-u_{N-1}}{2h}[/tex]

This can be represented as a linear matrix problem Ax = B by using the left-hand coefficients to create a tridiagonal N-by-N matrix (A), the coefficients being:

[tex]1\frac{r_{N}}{h^2}, -2\frac{r_{N}}{h^2}, 1\frac{r_{N}}{h^2}[/tex]


and by using the right-hand values to create a n-by-1 column matrix (B). This problem should be solveable using gaussian elimination to give the matrix X, which contains the values of u at all N iteration points.

The first and last value of the B matrix also have to be corrected due to the boundary values, which themselves are outside the range of the matrix.

When solving similar problems in the past, the boundary conditions have always been given as two function values at different points i.e u(1) and u(2) and usually there has been some way of calculating values for the B matrix. The problem I'm having here is finding a way to use the second boundary value, since it is given as -(u-20), with u presumably being u(2) which is unknown and finding a way to generate the matrix B, i.e the values of du/dr.
 
Physics news on Phys.org
  • #2
I'm guessing it may be possible to use the values of u from the matrix X, but I'm not sure how.Any advice would be appreciated. Thank you.
 

1. What is the purpose of approximating boundary value problems using finite differences?

The purpose of approximating boundary value problems using finite differences is to solve complex mathematical equations that describe physical phenomena or engineering systems. By breaking down the problem into smaller, discrete parts, finite difference methods provide a numerical solution that can be used to understand and predict the behavior of these systems.

2. How does the finite difference method work?

The finite difference method works by approximating the derivatives of a function using a finite set of sample points. These sample points are then used to construct a system of linear equations, which can be solved to obtain a numerical solution to the original boundary value problem.

3. What are the advantages of using the finite difference method?

The finite difference method is relatively easy to implement and does not require advanced mathematical knowledge. It also allows for the solution of complex problems that may not have an analytical solution. Additionally, the finite difference method can handle a wide range of boundary conditions and is flexible in terms of the types of equations it can solve.

4. What are the limitations of the finite difference method?

One limitation of the finite difference method is that it can be computationally expensive, especially for problems with a large number of variables or a high degree of accuracy required. Additionally, the method may not always provide an accurate solution, as it relies on approximations and can introduce errors in the numerical solution.

5. Are there other methods for solving boundary value problems?

Yes, there are other methods for solving boundary value problems, such as finite element methods and spectral methods. These methods may be more accurate or efficient for certain types of problems, but they also have their own limitations and require more advanced mathematical knowledge to implement.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
383
  • Calculus and Beyond Homework Help
Replies
6
Views
931
  • Calculus and Beyond Homework Help
Replies
3
Views
567
  • Calculus and Beyond Homework Help
Replies
14
Views
235
  • Calculus and Beyond Homework Help
Replies
8
Views
760
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
Back
Top