CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Heat conduction with non-uniform conductivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2016, 20:00
Default Heat conduction with non-uniform conductivity
  #1
New Member
 
Terry Tensinsky
Join Date: Feb 2010
Posts: 14
Rep Power: 16
hami9293 is on a distinguished road
Send a message via Skype™ to hami9293
I am trying to solve this heat conduction problem :

(K T_x)_x + f =0 where "_" means derivative w.r.t x . K is the conductivity which is a function of x and f is a heat sink. I use the SOR method in solving Poisson equation and write :

T(1) = T(N) =0
for T= 2:N-1
T(j) = omega*(A1* T(j+1) + A2*T(j+2) + A3*f) + (1-omega)*T(j)

where A1 = 0.5 +0.25*K_x*dx/K , A2 = 0.5 -0.25*K_x*dx/K and A3 = -dx^2/2K

This works perfectly fine as long as K is a constant. But when K is not constant, (let's say K(x) =x , -> K_x =1) then it does not work.x

Does anyone have any idea?

Last edited by hami9293; May 20, 2016 at 21:04.
hami9293 is offline   Reply With Quote

Old   May 20, 2016, 22:47
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
Well, your indices are shifted. I doubt that you intended to update T(j) based on a stencil over j, j+1, and j+2. Diffusion should always be treated as symmetrically as possible.

Second, you need to read about harmonic averaging of diffusivities. Section 4 of this paper covers it:

http://web.cecs.pdx.edu/~gerry/class...iffusion2D.pdf
mprinkey is offline   Reply With Quote

Old   May 21, 2016, 20:09
Default
  #3
New Member
 
Terry Tensinsky
Join Date: Feb 2010
Posts: 14
Rep Power: 16
hami9293 is on a distinguished road
Send a message via Skype™ to hami9293
Thanks for your comments.

That was just a typo in my writing. What I actually have is

T(j) = omega*(A1* T(j+1) + A2*T(j-1) + A3*f) + (1-omega)*T(j)

The paper you send me is awesome. and I am looking into implementing it.
But by any chance do you know any similar paper but with FDM?

Thanks,
hami9293 is offline   Reply With Quote

Old   May 22, 2016, 01:13
Default
  #4
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
Most FD schemes are formulated as finite volume schemes (at least for real applications) because FV formulations can guarantee conservation that simple FD formulations do not. These are sometimes called "Conservative Finite Difference" or "Control Volume Finite Difference" methods. By just inserting FD approximations for the derivatives, you cannot know that, say, energy in this system is conserved. Mass, energy, and species conservations are VERY important, especially when dealing with reacting flows. But I digress...

I've verified your FD derivation (central differencing for the dT/dx term and standard 2nd-order differencing for the d^2T/dx*2 term), except I have an opposite sign for the source term coefficient A3...that won't effect stability of the solution, of course. With fixed boundary conditions at zero, it will just flip the sign of the overall solution.

My suspicion is that the matrix loses diagonal dominance as you change the conductivity in space. In the constant K case, the dk/dx terms all vanish and you get the standard {1 -2 1} second derivative FD stencil. That, of course, is diagonally dominate and SOR will work fine.

But if | K_x*dx/K | > 2.0, the off-diagonal coefficients will sum (in magnitude) to a value larger than the center coefficient and SOR is not guaranteed to converge. Even if the matrix is still diagonally dominate, the change in K in space will likely force you to choose a more conservative relaxation factor than you used for the constant K case.

There are implicit under-relaxation techniques that can allow GS or Jacobi iterative schemes to converge even when the underlying system is not diagonally dominate, but for a 1D system like this, you should just use the Thomas Algorithm and solve the system exactly.

Good luck.
mprinkey is offline   Reply With Quote

Old   May 22, 2016, 08:29
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I agree to check for the conditions for the convergence of the SOR matrix...furthermore, what about the value of omega? depending on both k(x) and omega, it could be that the spectral radius of the SOR matrix becomes >1
FMDenaro is offline   Reply With Quote

Reply

Tags
heat conduction, poisson equation


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Strange high velocity in centrifugal pump simulation huangxianbei OpenFOAM Running, Solving & CFD 26 August 15, 2014 03:27
Divergent temperature in chtMultiRegion(Simple)Foam akrasemann OpenFOAM Running, Solving & CFD 13 March 24, 2014 03:54
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
Problems with Turbulence Modeling ezsoal OpenFOAM Running, Solving & CFD 4 November 26, 2009 16:12


All times are GMT -4. The time now is 14:00.