cfd assignment 1

15
CFD Assignment 1 Problem 1 :- Temperature distribution in one dimensional rod Problem is solved using BTCS scheme by using TDMA algorithm (a) Dirichlet boundary condition on both ends Comment :- (a) As we are increasing number of grid points, error increases at each grid points . This may be due to error accumulation for large grid points. (b) We observe from graph that at N=12 we get minimum error and we are not getting any advantage by increasing number of grid points, so for this problem N=12 is best grid resolution . Nitish Kumar SC08B086

Upload: nitish-kumar

Post on 03-Mar-2015

137 views

Category:

Documents


3 download

DESCRIPTION

Programs made in gcc

TRANSCRIPT

Page 1: CFD Assignment 1

CFD Assignment 1

Problem 1 :- Temperature distribution in one dimensional rod

Problem is solved using BTCS scheme by using TDMA algorithm (a) Dirichlet boundary condition on both ends

Comment :- (a) As we are increasing number of grid points, error increases at each grid points . This may be due to error accumulation for large grid points.

(b) We observe from graph that at N=12 we get minimum error and we are not getting any advantage by increasing number of grid points, so for this problem N=12 is best grid

resolution .

Nitish KumarSC08B086

Page 2: CFD Assignment 1

Analytical and numerical solution are plotted and linear variation of temperature is observed as expected with an error shown above.

Page 3: CFD Assignment 1

(b) Dirichlet and Neumann boundary condition on left and right ends respectively

Comment :- (a) As we are increasing number of grid points, maximum error increases. (b) Error for each N changes randomly.

Page 4: CFD Assignment 1

Analytical and numerical solution are plotted and linear variation of temperature is observed as expected with an error shown above.

(c) Neumann boundary condition on both endsSince only flux value is given at the ends of rod, unique solution will not exists. Our solution will depend on initial value of temperature assumed at one end. If we assume temperature at starting end to be 283K, solution will be same as case(b).

Page 5: CFD Assignment 1

Problem 2 :- Solution of 2nd order ODE

(a) 1st order approximation of fluxWe observe that we get a large error whose variation is linear.

(a) 2nd order approximation of flux

When we use 2nd order approximation, we observe that error reduces drastically and its variation is almost linear. Also analytical and numerical solution are plotted

Page 6: CFD Assignment 1

Problem 3 :- Wall Temperature distribution

(a) Diffusion Number d=0.4(I) FTCS Scheme

At time t=0.1hr to 0.5 hr, analytical and numerical solutions are plotted at an interval of 0.1hr.Also error for each time step is plotted.

Page 7: CFD Assignment 1
Page 8: CFD Assignment 1

(II) BTCS Scheme

Page 9: CFD Assignment 1
Page 10: CFD Assignment 1

(b) Diffusion Number d=0.6(I) FTCS

(II) BTCS

Page 11: CFD Assignment 1
Page 12: CFD Assignment 1

Problem 4 :-Convection of Triangular wave

comment

Page 13: CFD Assignment 1
Page 14: CFD Assignment 1
Page 15: CFD Assignment 1