Presentation is loading. Please wait.

Presentation is loading. Please wait.

With Derivation Heat balance on arbitrary FIXED area in domain Net rate of heat in = rate of increase in area  density c specific heat divergence = Fixed.

Similar presentations


Presentation on theme: "With Derivation Heat balance on arbitrary FIXED area in domain Net rate of heat in = rate of increase in area  density c specific heat divergence = Fixed."— Presentation transcript:

1 With Derivation Heat balance on arbitrary FIXED area in domain Net rate of heat in = rate of increase in area  density c specific heat divergence = Fixed area A transient problem With scaling And noting arbitrary nature of area

2 Control Volume Solution—Start from the balance on area A Associate A with a control volume USE scalings A Mid point Rule (Area A =  2 ) Approximate with finite difference 3 possibilities are Backward in time (explicit) Forward in time (implicit) Central difference in time Crank Nicolson Where “new” indicates evaluation at time t = current +  t Node i

3 Consider implicit scheme Data structure + physics (same as steady state problem) Or rearranging in a form suitable for an iterative solution Old time OR So with previous steady state code on modifying the a i coeff and source b i We can arrive at a solution fro the value of the nodal T’s at time t+  t based on the known T’s at time t MATLAB CODE data coefficient—modified fro tran terms and new boundary conditions (Set  t And nodal T’s=0) for jtim=1:100 solve (For Tnew initial setting Tnew=T) (store Thist(itim) at 61) (set T=Tnew) end plot Thist HOMEWORK BY NEXT CLASS Do this I just need the plot handed in

4 Now Consider the Explicit Case Or rearranging in a form suitable for an iterative solution NO EQUATION TO SOLVE--EXPLICIT But must choose Such that Solution strategy **Calculate the coefficients using the steady state code ** choose time step and calculate **Set T = 0 for i = 1:500 for i = 1:n %nodes % solve Eq(1)—essentially similar code to one it of solve code T=Tnew store Thist end Code this also And compare Temp hist at Mid point With imp sol


Download ppt "With Derivation Heat balance on arbitrary FIXED area in domain Net rate of heat in = rate of increase in area  density c specific heat divergence = Fixed."

Similar presentations


Ads by Google