SlideShare a Scribd company logo
1 of 5
Download to read offline
www.engineeringwithsandeep.com| Student Assignment
Assignment No. 07
1-D Steady Heat conduction FDM
14.04.2021
Shivam Choubey
Student No: CFDB30321004
www.engineeringwithsandeep.com| Student Assignment
Case1:
T base =100 C and T tip = 30 C
%% 1-D Steady Heat conduction FDM Code
% 1-D steady heat conduction problem
% metal rod which is 20 cm long
%Case1: T base =100 C and T tip = 30 C
clc
clear all;
L=20/100;% length convert into meter
N=80;%N=10 ;N=20;N=40;N=50;N=80;
dx=linspace(0,L,N);
Tb=100;
Tend=30;
T=zeros(N,1);%Initialization
T(1)=Tb;% base temp
T(N)=Tend;%Tip temp
www.engineeringwithsandeep.com| Student Assignment
k=100;% Correction loop
for j=1:k
for i=2:N-1
T(i)=(T(i+1)+T(i-1))/2;
end
T(N)=Tend;%Tip temp
end
plot(dx,T);
hold on
xlabel("Length (m)")
ylabel("Temp")
title("Length Vs Temp")
legend("N=10","N=20","N=40","N=50","N=80")
hold on
www.engineeringwithsandeep.com| Student Assignment
Case 2:
T base =100C and Tip is insulated
%% 1-D Steady Heat conduction FDM Code
% 1-D steady heat conduction problem
% metal rod which is 20 cm long
%Case1: T base =100 C and T tip = 0 C
clc
clear all;
L=20/100;% length convert into meter
N=100;%N=40 N=50 N=80 N=100
dx=linspace(0,L,N);
Tb=100;
Tend=0;
T=zeros(N,1);%Initialization
T(1)=Tb;% base temp
T(N)=Tend;%Tip temp
k=100;% Correction loop
for j=1:k
www.engineeringwithsandeep.com| Student Assignment
for i=2:N-1
T(i)=(T(i+1)+T(i-1))/2;
end
%T(N)=Tend;%Tip temp
T(N)=T(N-1);%condition for insulated tip
end
plot(dx,T);
hold on
xlabel("Length (m)")
ylabel("Temp")
title("Length Vs Temp")
legend("N=10","N=20","N=40","N=50","N=80","N=100")
hold on

More Related Content

What's hot (8)

Chap 1 trigonometry 2 part 1
Chap 1 trigonometry 2 part 1Chap 1 trigonometry 2 part 1
Chap 1 trigonometry 2 part 1
 
Sesión n° 08
Sesión n° 08Sesión n° 08
Sesión n° 08
 
Engineering garphics projection of lines(new)
Engineering garphics   projection of lines(new)Engineering garphics   projection of lines(new)
Engineering garphics projection of lines(new)
 
Plane geometry theorems
Plane geometry theoremsPlane geometry theorems
Plane geometry theorems
 
Trigonometry
TrigonometryTrigonometry
Trigonometry
 
Trig overview
Trig overviewTrig overview
Trig overview
 
Copy of stub setting 3
Copy of stub setting 3Copy of stub setting 3
Copy of stub setting 3
 
Class 10 maths lesson 1 part 8
Class 10 maths lesson 1   part 8Class 10 maths lesson 1   part 8
Class 10 maths lesson 1 part 8
 

Similar to 1-D Steady Heat conduction FDM

Heat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive NetworkHeat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive Networkssurgnier
 
Mit2 092 f09_lec20
Mit2 092 f09_lec20Mit2 092 f09_lec20
Mit2 092 f09_lec20Rahman Hakim
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715HelpWithAssignment.com
 
Applications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeApplications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeDheirya Joshi
 
Free video lecture in india
Free video lecture in indiaFree video lecture in india
Free video lecture in indiaCss Founder
 
Chapter 02
Chapter 02Chapter 02
Chapter 02Tha Mike
 
free Video lecture in india
free Video lecture in indiafree Video lecture in india
free Video lecture in indiaEdhole.com
 
Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...
Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...
Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...RDH Building Science
 
Numerical methods for 2 d heat transfer
Numerical methods for 2 d heat transferNumerical methods for 2 d heat transfer
Numerical methods for 2 d heat transferArun Sarasan
 
unit6 RL-transient.ppt
unit6 RL-transient.pptunit6 RL-transient.ppt
unit6 RL-transient.pptiamultapromax
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715HelpWithAssignment.com
 
bahan ajar kulaih perpindahan panas .ppt
bahan ajar kulaih perpindahan panas .pptbahan ajar kulaih perpindahan panas .ppt
bahan ajar kulaih perpindahan panas .pptZHENAHARYOP
 
Application of Numerical Methods (Finite Difference) in Heat Transfer
Application of Numerical Methods (Finite Difference) in Heat TransferApplication of Numerical Methods (Finite Difference) in Heat Transfer
Application of Numerical Methods (Finite Difference) in Heat TransferShivshambhu Kumar
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715HelpWithAssignment.com
 
An Inventory Management System for Deteriorating Items with Ramp Type and Qua...
An Inventory Management System for Deteriorating Items with Ramp Type and Qua...An Inventory Management System for Deteriorating Items with Ramp Type and Qua...
An Inventory Management System for Deteriorating Items with Ramp Type and Qua...ijsc
 
Graphical methods for 2 d heat transfer
Graphical methods for 2 d heat transfer Graphical methods for 2 d heat transfer
Graphical methods for 2 d heat transfer Arun Sarasan
 

Similar to 1-D Steady Heat conduction FDM (20)

Heat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive NetworkHeat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive Network
 
Mit2 092 f09_lec20
Mit2 092 f09_lec20Mit2 092 f09_lec20
Mit2 092 f09_lec20
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715
 
Solving heat conduction equation (parabolic pde)
Solving heat conduction equation (parabolic pde)Solving heat conduction equation (parabolic pde)
Solving heat conduction equation (parabolic pde)
 
Applications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeApplications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First Degree
 
Free video lecture in india
Free video lecture in indiaFree video lecture in india
Free video lecture in india
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
free Video lecture in india
free Video lecture in indiafree Video lecture in india
free Video lecture in india
 
Ch2slide (1).pdf
Ch2slide (1).pdfCh2slide (1).pdf
Ch2slide (1).pdf
 
Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...
Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...
Challenges Related to Measuring and Reporting Temperature-Dependent Apparent ...
 
Heatequationincfd
HeatequationincfdHeatequationincfd
Heatequationincfd
 
Numerical methods for 2 d heat transfer
Numerical methods for 2 d heat transferNumerical methods for 2 d heat transfer
Numerical methods for 2 d heat transfer
 
unit6 RL-transient.ppt
unit6 RL-transient.pptunit6 RL-transient.ppt
unit6 RL-transient.ppt
 
UNIT I_4.pdf
UNIT I_4.pdfUNIT I_4.pdf
UNIT I_4.pdf
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715
 
bahan ajar kulaih perpindahan panas .ppt
bahan ajar kulaih perpindahan panas .pptbahan ajar kulaih perpindahan panas .ppt
bahan ajar kulaih perpindahan panas .ppt
 
Application of Numerical Methods (Finite Difference) in Heat Transfer
Application of Numerical Methods (Finite Difference) in Heat TransferApplication of Numerical Methods (Finite Difference) in Heat Transfer
Application of Numerical Methods (Finite Difference) in Heat Transfer
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715
 
An Inventory Management System for Deteriorating Items with Ramp Type and Qua...
An Inventory Management System for Deteriorating Items with Ramp Type and Qua...An Inventory Management System for Deteriorating Items with Ramp Type and Qua...
An Inventory Management System for Deteriorating Items with Ramp Type and Qua...
 
Graphical methods for 2 d heat transfer
Graphical methods for 2 d heat transfer Graphical methods for 2 d heat transfer
Graphical methods for 2 d heat transfer
 

More from shivam choubey

Simulation Investigation of Separated Nozzle Flows
Simulation Investigation of Separated Nozzle FlowsSimulation Investigation of Separated Nozzle Flows
Simulation Investigation of Separated Nozzle Flowsshivam choubey
 
steady state CFD simulation on basic shapes and calculate Cd value
steady state CFD simulation on basic shapes and calculate Cd valuesteady state CFD simulation on basic shapes and calculate Cd value
steady state CFD simulation on basic shapes and calculate Cd valueshivam choubey
 
External Aerodynamics (Ahmed body)
External Aerodynamics (Ahmed body)External Aerodynamics (Ahmed body)
External Aerodynamics (Ahmed body)shivam choubey
 
Airfoil Analysis(NACA 0012 ) Ansys Fluent
Airfoil Analysis(NACA 0012 ) Ansys FluentAirfoil Analysis(NACA 0012 ) Ansys Fluent
Airfoil Analysis(NACA 0012 ) Ansys Fluentshivam choubey
 
Couette flow Ansys simulation
Couette flow Ansys simulationCouette flow Ansys simulation
Couette flow Ansys simulationshivam choubey
 
Mixing elbow simulation Ansys
Mixing elbow simulation AnsysMixing elbow simulation Ansys
Mixing elbow simulation Ansysshivam choubey
 
Solve the set of linear equations
Solve the set of linear equationsSolve the set of linear equations
Solve the set of linear equationsshivam choubey
 
sin cos & tan (Plot using MATLAB)
sin cos  & tan (Plot using MATLAB)sin cos  & tan (Plot using MATLAB)
sin cos & tan (Plot using MATLAB)shivam choubey
 
The Singular Value Decomposition theroy + example
 The Singular Value Decomposition theroy + example  The Singular Value Decomposition theroy + example
The Singular Value Decomposition theroy + example shivam choubey
 
The finite volume method for diffusion problems
The finite volume method for diffusion problemsThe finite volume method for diffusion problems
The finite volume method for diffusion problemsshivam choubey
 

More from shivam choubey (10)

Simulation Investigation of Separated Nozzle Flows
Simulation Investigation of Separated Nozzle FlowsSimulation Investigation of Separated Nozzle Flows
Simulation Investigation of Separated Nozzle Flows
 
steady state CFD simulation on basic shapes and calculate Cd value
steady state CFD simulation on basic shapes and calculate Cd valuesteady state CFD simulation on basic shapes and calculate Cd value
steady state CFD simulation on basic shapes and calculate Cd value
 
External Aerodynamics (Ahmed body)
External Aerodynamics (Ahmed body)External Aerodynamics (Ahmed body)
External Aerodynamics (Ahmed body)
 
Airfoil Analysis(NACA 0012 ) Ansys Fluent
Airfoil Analysis(NACA 0012 ) Ansys FluentAirfoil Analysis(NACA 0012 ) Ansys Fluent
Airfoil Analysis(NACA 0012 ) Ansys Fluent
 
Couette flow Ansys simulation
Couette flow Ansys simulationCouette flow Ansys simulation
Couette flow Ansys simulation
 
Mixing elbow simulation Ansys
Mixing elbow simulation AnsysMixing elbow simulation Ansys
Mixing elbow simulation Ansys
 
Solve the set of linear equations
Solve the set of linear equationsSolve the set of linear equations
Solve the set of linear equations
 
sin cos & tan (Plot using MATLAB)
sin cos  & tan (Plot using MATLAB)sin cos  & tan (Plot using MATLAB)
sin cos & tan (Plot using MATLAB)
 
The Singular Value Decomposition theroy + example
 The Singular Value Decomposition theroy + example  The Singular Value Decomposition theroy + example
The Singular Value Decomposition theroy + example
 
The finite volume method for diffusion problems
The finite volume method for diffusion problemsThe finite volume method for diffusion problems
The finite volume method for diffusion problems
 

Recently uploaded

Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and ClassificationsAreesha Ahmad
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxFarihaAbdulRasheed
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑Damini Dixit
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)AkefAfaneh2
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Monika Rani
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)Areesha Ahmad
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Joonhun Lee
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learninglevieagacer
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Silpa
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPirithiRaju
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxSuji236384
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICEayushi9330
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...chandars293
 
Unit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 oUnit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 oManavSingh202607
 

Recently uploaded (20)

Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Unit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 oUnit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 o
 

1-D Steady Heat conduction FDM

  • 1. www.engineeringwithsandeep.com| Student Assignment Assignment No. 07 1-D Steady Heat conduction FDM 14.04.2021 Shivam Choubey Student No: CFDB30321004
  • 2. www.engineeringwithsandeep.com| Student Assignment Case1: T base =100 C and T tip = 30 C %% 1-D Steady Heat conduction FDM Code % 1-D steady heat conduction problem % metal rod which is 20 cm long %Case1: T base =100 C and T tip = 30 C clc clear all; L=20/100;% length convert into meter N=80;%N=10 ;N=20;N=40;N=50;N=80; dx=linspace(0,L,N); Tb=100; Tend=30; T=zeros(N,1);%Initialization T(1)=Tb;% base temp T(N)=Tend;%Tip temp
  • 3. www.engineeringwithsandeep.com| Student Assignment k=100;% Correction loop for j=1:k for i=2:N-1 T(i)=(T(i+1)+T(i-1))/2; end T(N)=Tend;%Tip temp end plot(dx,T); hold on xlabel("Length (m)") ylabel("Temp") title("Length Vs Temp") legend("N=10","N=20","N=40","N=50","N=80") hold on
  • 4. www.engineeringwithsandeep.com| Student Assignment Case 2: T base =100C and Tip is insulated %% 1-D Steady Heat conduction FDM Code % 1-D steady heat conduction problem % metal rod which is 20 cm long %Case1: T base =100 C and T tip = 0 C clc clear all; L=20/100;% length convert into meter N=100;%N=40 N=50 N=80 N=100 dx=linspace(0,L,N); Tb=100; Tend=0; T=zeros(N,1);%Initialization T(1)=Tb;% base temp T(N)=Tend;%Tip temp k=100;% Correction loop for j=1:k
  • 5. www.engineeringwithsandeep.com| Student Assignment for i=2:N-1 T(i)=(T(i+1)+T(i-1))/2; end %T(N)=Tend;%Tip temp T(N)=T(N-1);%condition for insulated tip end plot(dx,T); hold on xlabel("Length (m)") ylabel("Temp") title("Length Vs Temp") legend("N=10","N=20","N=40","N=50","N=80","N=100") hold on