Finite Difference method to solve diffusion equation

Click For Summary

Discussion Overview

The discussion revolves around the application of the finite difference method to solve the diffusion equation for transient conduction in a cylindrical material. Participants explore the setup of initial and boundary conditions, as well as the appropriate numerical methods for solving the problem.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses uncertainty about using the finite difference equation for solving a partial differential equation (PDE) and seeks guidance on applying initial and boundary conditions.
  • Another participant suggests researching the Crank-Nicholson method as a standard approach for the 1D heat conduction equation.
  • A participant questions the boundary condition regarding the time derivative being constant at a specific time and suggests it implies a steady state, which may not require numerical solutions.
  • A later reply clarifies that the intended meaning was that the system reaches steady state around t = 17, not that the time derivative is constant at that moment.
  • Another participant recommends using the FTCS scheme for an explicit method and notes that the solution will converge to steady state given the constant boundary temperatures, while also pointing out the lack of a specified starting temperature for validation.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to use, with differing opinions on the appropriateness of the Crank-Nicholson method versus the explicit method. There is also uncertainty regarding the implications of the boundary conditions and the initial temperature distribution.

Contextual Notes

Participants highlight limitations in the problem statement, such as the unspecified initial temperature distribution, which affects the ability to validate numerical results.

miniradman
Messages
191
Reaction score
0

Homework Statement


Plot the transient conduction of a material with k = 210 w/m K, Cp = 350 J/kg K, ρ = 6530 kg/m3

Where the material is a cylinder, with constant cross sectional area and is well insulated. The boundary conditions for the cylinder:
T(0,t) = 330K
T(l,t) = 299K
\frac{∂T}{∂t}(x,17)=0

Homework Equations


Diffusion equation:
\frac{∂T}{∂t}=\alpha\frac{∂^{2}T}{∂x^{2}}

rearranged diffusion equation in finite difference form
T(x,t+Δt)=\frac{\alphaΔt}{Δx^{2}}[T(x+Δx, t)-2T(x,t)+T(x-Δx,t)]


The Attempt at a Solution


Hi all

I've never used the finite difference equation before to solve a PDE and I'm unsure how to use it. I know how to find values such as α (thermal diffusivity), but I'm unsure on how to sub in my initial and boundary conditions. And which values would I use for T(x+Δx, t) or T(x-Δx,t)? Since I'm trying to find change in temperature over time at a fixed distance x, I would assume that Δx = 0? (which I know is incorrect).

I've tried looking online for PDE finite analysis techniques, but they're all either ODE examples or mesh analysis (something we haven't covered).
 
Physics news on Phys.org
Try Googling the Crank-Nicholson method for the 1D heat conduction equation (or the diffusion equation). This is a standard example in courses on finite difference, numerical method, and PDEs.

I don't understand your boundary condition ##\frac { \partial T} {\partial t}(x,17) = 0##. Why t= 17? If the time derivative is constant everywhere at one time, isn't it constant everywhere at all times - i.e. the solution is steady state heat conduction along a uniform rod with the end temperatures given, so there is nothing to solve for numerically!
 
Sorry I made a mistake with that, I was meant to say that the system reaches steady state at approximately t = 17.

We haven't yet covered the Crank-Nicholson method, so I have a feeling we may have to stick with the explicit method.
 
If you want an explicit method you could use http://en.wikipedia.org/wiki/FTCS_scheme

With the constant temperatures at T(0,t) and T(l,t) the solution will converge to steady state as t increases for any starting temperature distribution T(x,0). It seems a bit strange that the question doesn't specify the starting temperature, so you can have something to check your results against. Just saying that it approximately converges by t = 17 doesn't tell you much.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
0
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K