SlideShare a Scribd company logo
1 of 1
PROGRAMEHEAT
C TITLE:DEMO PROGRAMFOR EXPLICIT METHOD
C FOR HEAT EQUATION,UT = KAPPA*UXX
C INRUT:N, NUMBER OF X-SUBINTERVAL
C K, TIME STEP
C TMAX, MAXIMUM COMPUTATION TIME
C KAPPA, DIFFUSIVITY VALUE
C (X1,X2), X-INTERVAL
C P(T), LEFT BOUNDARY CONDITION
C Q(T), RIGHT BOUNDARY CONDITION
C F(X), INITIAL CONDITION
C E(X,T), EXACT SOLUTION
C OUTPUT: NUMERICAL AND EXACT SOLUTION AT T=TMAX
COMMON U(0:51), V(0:51)
REAL K,KAPPA
DATA T,X1,X2,KAPPA/0,0,1,1/
P(T) = 0
Q(T) = 0
F(X) = 100*SIN(PI*X)
E(X,T) = 100*EXP(-PI*PI*T)*SIN(PI*X)
PRINT*,'ENTER TMAX,NUMBEROF X-SUBINTERVALS AND TIME STEP'
READ*,TMAX,N,K
H = (X2-X1)/N
R = KAPPA*K/H/H
PI = 4*ATAN(1.)
C SET INITIAL CONDITION
DO 10 I = 0,N
X = X1 + I*H
V(I) = F(X)
10 CONTINUE
15 DO 20 I = 1,N-1
U(I) = V(I) + R*(V(I+1) -2*V(I) + V(I-1))
20 CONTINUE
T = T+K
U(0) = P(T)
U(N) = Q(T)
C WRITE U OVER V TO PREPARE FOR NEXT TIME STEP
DO 30 I = 0,N
V(I) = U(I)
30 CONTINUE
C IF T IS LESS THAN TMAX, TAKE A TIME STEP
IF(ABS(TMAX-T).GT.K/2) GOTO 15
C OTHERWISE, PRINT RESULT
WRITE(6,100)
WRITE(6,110) N,K,TMAX
WRITE(6,120) T
DO 40 I = 0,N
X = X1 + I*H
EXACT = E(X,T)
WRITE(6,130) X,U(I),EXACT
40 CONTINUE
100 FORMAT(///,T9,'RESULTSFROMPROGRAMEHEAT',/)
110 FORMAT('N =',I4,T15,' K= ',F8.6,T30,'TMAX=',F5.2,/)
120 FORMAT('T = ',F5.2,T18,'NUMERICAL',T35,'EXACT',/)
130 FORMAT( 'X = ',F4.1,T13,F13.6,T30,F13.6)
END

More Related Content

What's hot

Graphing day 2 worked
Graphing day 2 workedGraphing day 2 worked
Graphing day 2 workedJonna Ramsey
 
Jillians Potw
Jillians PotwJillians Potw
Jillians Potwsabsma
 
Jillian Fluet’S Potw Solution
Jillian Fluet’S Potw SolutionJillian Fluet’S Potw Solution
Jillian Fluet’S Potw Solutionjillianfluet
 
Analisis Númerico
Analisis NúmericoAnalisis Númerico
Analisis NúmericoSadNavas
 
Quadratic Functions
Quadratic FunctionsQuadratic Functions
Quadratic Functionsingroy
 
Lsn 11-4 Area of a Triangle Formula
Lsn 11-4 Area of a Triangle FormulaLsn 11-4 Area of a Triangle Formula
Lsn 11-4 Area of a Triangle FormulaKate Nowak
 
Trapezoidal log log
Trapezoidal log logTrapezoidal log log
Trapezoidal log logPatrick Hui
 
Project filter matlab
Project  filter matlabProject  filter matlab
Project filter matlabgirma disasa
 
Project on CFD using MATLAB
Project on CFD using MATLABProject on CFD using MATLAB
Project on CFD using MATLABRohit Avadhani
 
Lesson 2 Oct 28
Lesson 2 Oct 28Lesson 2 Oct 28
Lesson 2 Oct 28ingroy
 
Transformations: Slots
Transformations: SlotsTransformations: Slots
Transformations: Slotsjl_03
 

What's hot (20)

Graphing day 2 worked
Graphing day 2 workedGraphing day 2 worked
Graphing day 2 worked
 
Jillians Potw
Jillians PotwJillians Potw
Jillians Potw
 
Jillian Fluet’S Potw Solution
Jillian Fluet’S Potw SolutionJillian Fluet’S Potw Solution
Jillian Fluet’S Potw Solution
 
Analisis Númerico
Analisis NúmericoAnalisis Númerico
Analisis Númerico
 
Roberth tampoa
Roberth tampoaRoberth tampoa
Roberth tampoa
 
Unicamp 2016 - aberta
Unicamp 2016 - abertaUnicamp 2016 - aberta
Unicamp 2016 - aberta
 
Quadratic Functions
Quadratic FunctionsQuadratic Functions
Quadratic Functions
 
Matex
MatexMatex
Matex
 
Lsn 11-4 Area of a Triangle Formula
Lsn 11-4 Area of a Triangle FormulaLsn 11-4 Area of a Triangle Formula
Lsn 11-4 Area of a Triangle Formula
 
Metnum
MetnumMetnum
Metnum
 
Pre-Calc 30S May 7
Pre-Calc 30S May 7Pre-Calc 30S May 7
Pre-Calc 30S May 7
 
Trapezoidal log log
Trapezoidal log logTrapezoidal log log
Trapezoidal log log
 
C file
C fileC file
C file
 
Project filter matlab
Project  filter matlabProject  filter matlab
Project filter matlab
 
Conformal mapping
Conformal mappingConformal mapping
Conformal mapping
 
Project on CFD using MATLAB
Project on CFD using MATLABProject on CFD using MATLAB
Project on CFD using MATLAB
 
Sam maths pres
Sam maths presSam maths pres
Sam maths pres
 
конденсатори
конденсаториконденсатори
конденсатори
 
Lesson 2 Oct 28
Lesson 2 Oct 28Lesson 2 Oct 28
Lesson 2 Oct 28
 
Transformations: Slots
Transformations: SlotsTransformations: Slots
Transformations: Slots
 

Viewers also liked

Analiza blogului blogpentrusuflet.ro
Analiza blogului blogpentrusuflet.roAnaliza blogului blogpentrusuflet.ro
Analiza blogului blogpentrusuflet.roVeronica Vacari
 
Ask.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvatting
Ask.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvattingAsk.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvatting
Ask.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvattingGepkeH
 
Analysis of cd digipack rihanna
Analysis of cd digipack rihannaAnalysis of cd digipack rihanna
Analysis of cd digipack rihannaabbeycoleman12
 
8th pre alg -l27
8th pre alg -l278th pre alg -l27
8th pre alg -l27jdurst65
 
Релігія та міфологія древнього Єгипту
Релігія та міфологія древнього ЄгиптуРелігія та міфологія древнього Єгипту
Релігія та міфологія древнього ЄгиптуKravchukRoman
 
презентация ларин 7
презентация ларин 7презентация ларин 7
презентация ларин 7Tothemoon2015
 
Research publishing houses court
Research publishing houses courtResearch publishing houses court
Research publishing houses courtwhslaura
 
Värdet av öppna data
Värdet av öppna dataVärdet av öppna data
Värdet av öppna dataErik Borälv
 
New Jersey State Bridge Profile 2014
New Jersey State Bridge Profile 2014New Jersey State Bridge Profile 2014
New Jersey State Bridge Profile 2014artba
 
Explication de decider des criteres pendant des vacances bon marche au Maroc ...
Explication de decider des criteres pendant des vacances bon marche au Maroc ...Explication de decider des criteres pendant des vacances bon marche au Maroc ...
Explication de decider des criteres pendant des vacances bon marche au Maroc ...riadmarrakech6638
 
State Bridge Profile Nevada 2014
State Bridge Profile Nevada 2014State Bridge Profile Nevada 2014
State Bridge Profile Nevada 2014artba
 
ASL Identity Development Parents and Guardians
ASL Identity Development Parents and GuardiansASL Identity Development Parents and Guardians
ASL Identity Development Parents and GuardiansRosetta Eun Ryong Lee
 

Viewers also liked (15)

Analiza blogului blogpentrusuflet.ro
Analiza blogului blogpentrusuflet.roAnaliza blogului blogpentrusuflet.ro
Analiza blogului blogpentrusuflet.ro
 
PACS
PACSPACS
PACS
 
Ask.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvatting
Ask.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvattingAsk.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvatting
Ask.kgb iv.les 4.neoclassicisme en romantiek, sk + bk.samenvatting
 
Analysis of cd digipack rihanna
Analysis of cd digipack rihannaAnalysis of cd digipack rihanna
Analysis of cd digipack rihanna
 
8th pre alg -l27
8th pre alg -l278th pre alg -l27
8th pre alg -l27
 
Релігія та міфологія древнього Єгипту
Релігія та міфологія древнього ЄгиптуРелігія та міфологія древнього Єгипту
Релігія та міфологія древнього Єгипту
 
презентация ларин 7
презентация ларин 7презентация ларин 7
презентация ларин 7
 
Tema 8 cancer de tiroides
Tema 8 cancer de tiroidesTema 8 cancer de tiroides
Tema 8 cancer de tiroides
 
Research publishing houses court
Research publishing houses courtResearch publishing houses court
Research publishing houses court
 
Värdet av öppna data
Värdet av öppna dataVärdet av öppna data
Värdet av öppna data
 
New Jersey State Bridge Profile 2014
New Jersey State Bridge Profile 2014New Jersey State Bridge Profile 2014
New Jersey State Bridge Profile 2014
 
Gestão de Risco de Desastres Relacionados à Seca no Estado do Ceará
Gestão de Risco de Desastres Relacionados à Seca no Estado do CearáGestão de Risco de Desastres Relacionados à Seca no Estado do Ceará
Gestão de Risco de Desastres Relacionados à Seca no Estado do Ceará
 
Explication de decider des criteres pendant des vacances bon marche au Maroc ...
Explication de decider des criteres pendant des vacances bon marche au Maroc ...Explication de decider des criteres pendant des vacances bon marche au Maroc ...
Explication de decider des criteres pendant des vacances bon marche au Maroc ...
 
State Bridge Profile Nevada 2014
State Bridge Profile Nevada 2014State Bridge Profile Nevada 2014
State Bridge Profile Nevada 2014
 
ASL Identity Development Parents and Guardians
ASL Identity Development Parents and GuardiansASL Identity Development Parents and Guardians
ASL Identity Development Parents and Guardians
 

Similar to Program eheat

Introduction to CFD FORTRAN code
Introduction to CFD FORTRAN codeIntroduction to CFD FORTRAN code
Introduction to CFD FORTRAN codeBehnam Bozorgmehr
 
EES Functions and Procedures for Forced convection heat transfer
EES Functions and Procedures for Forced convection heat transferEES Functions and Procedures for Forced convection heat transfer
EES Functions and Procedures for Forced convection heat transfertmuliya
 
Performing Iterations in EES
Performing Iterations in EESPerforming Iterations in EES
Performing Iterations in EESNaveed Rehman
 
Heat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive NetworkHeat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive Networkssurgnier
 
EES Functions and Procedures for Natural convection heat transfer
EES Functions and Procedures for Natural convection heat transferEES Functions and Procedures for Natural convection heat transfer
EES Functions and Procedures for Natural convection heat transfertmuliya
 
Ray : modeling dynamic systems
Ray : modeling dynamic systemsRay : modeling dynamic systems
Ray : modeling dynamic systemsHouw Liong The
 
Btech admission in india
Btech admission in indiaBtech admission in india
Btech admission in indiaEdhole.com
 
Replica exchange MCMC
Replica exchange MCMCReplica exchange MCMC
Replica exchange MCMC. .
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical MethodsTeja Ande
 
Btech admission in india
Btech admission in indiaBtech admission in india
Btech admission in indiaEdhole.com
 
On problem-of-parameters-identification-of-dynamic-object
On problem-of-parameters-identification-of-dynamic-objectOn problem-of-parameters-identification-of-dynamic-object
On problem-of-parameters-identification-of-dynamic-objectCemal Ardil
 
Resolución del-examen-de-la-práctica-de-métodos-numéricos
Resolución del-examen-de-la-práctica-de-métodos-numéricosResolución del-examen-de-la-práctica-de-métodos-numéricos
Resolución del-examen-de-la-práctica-de-métodos-numéricosCarlos Cosi Mamani
 
My pricing of american options
My pricing of american optionsMy pricing of american options
My pricing of american optionsIlya Gikhman
 
Aircraft Propulsion - Ideal Turbojet Performance
Aircraft Propulsion - Ideal Turbojet PerformanceAircraft Propulsion - Ideal Turbojet Performance
Aircraft Propulsion - Ideal Turbojet PerformanceAnurak Atthasit
 

Similar to Program eheat (20)

Introduction to CFD FORTRAN code
Introduction to CFD FORTRAN codeIntroduction to CFD FORTRAN code
Introduction to CFD FORTRAN code
 
EES Functions and Procedures for Forced convection heat transfer
EES Functions and Procedures for Forced convection heat transferEES Functions and Procedures for Forced convection heat transfer
EES Functions and Procedures for Forced convection heat transfer
 
American option
American optionAmerican option
American option
 
Performing Iterations in EES
Performing Iterations in EESPerforming Iterations in EES
Performing Iterations in EES
 
Heat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive NetworkHeat Map Modeling Using Resistive Network
Heat Map Modeling Using Resistive Network
 
EES Functions and Procedures for Natural convection heat transfer
EES Functions and Procedures for Natural convection heat transferEES Functions and Procedures for Natural convection heat transfer
EES Functions and Procedures for Natural convection heat transfer
 
Ray : modeling dynamic systems
Ray : modeling dynamic systemsRay : modeling dynamic systems
Ray : modeling dynamic systems
 
002 ray modeling dynamic systems
002 ray modeling dynamic systems002 ray modeling dynamic systems
002 ray modeling dynamic systems
 
002 ray modeling dynamic systems
002 ray modeling dynamic systems002 ray modeling dynamic systems
002 ray modeling dynamic systems
 
Btech admission in india
Btech admission in indiaBtech admission in india
Btech admission in india
 
Replica exchange MCMC
Replica exchange MCMCReplica exchange MCMC
Replica exchange MCMC
 
Statistical Physics Assignment Help
Statistical Physics Assignment Help Statistical Physics Assignment Help
Statistical Physics Assignment Help
 
residue
residueresidue
residue
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
Btech admission in india
Btech admission in indiaBtech admission in india
Btech admission in india
 
On problem-of-parameters-identification-of-dynamic-object
On problem-of-parameters-identification-of-dynamic-objectOn problem-of-parameters-identification-of-dynamic-object
On problem-of-parameters-identification-of-dynamic-object
 
Resolución del-examen-de-la-práctica-de-métodos-numéricos
Resolución del-examen-de-la-práctica-de-métodos-numéricosResolución del-examen-de-la-práctica-de-métodos-numéricos
Resolución del-examen-de-la-práctica-de-métodos-numéricos
 
My pricing of american options
My pricing of american optionsMy pricing of american options
My pricing of american options
 
Aircraft Propulsion - Ideal Turbojet Performance
Aircraft Propulsion - Ideal Turbojet PerformanceAircraft Propulsion - Ideal Turbojet Performance
Aircraft Propulsion - Ideal Turbojet Performance
 
restore.pdf
restore.pdfrestore.pdf
restore.pdf
 

Recently uploaded

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

Program eheat

  • 1. PROGRAMEHEAT C TITLE:DEMO PROGRAMFOR EXPLICIT METHOD C FOR HEAT EQUATION,UT = KAPPA*UXX C INRUT:N, NUMBER OF X-SUBINTERVAL C K, TIME STEP C TMAX, MAXIMUM COMPUTATION TIME C KAPPA, DIFFUSIVITY VALUE C (X1,X2), X-INTERVAL C P(T), LEFT BOUNDARY CONDITION C Q(T), RIGHT BOUNDARY CONDITION C F(X), INITIAL CONDITION C E(X,T), EXACT SOLUTION C OUTPUT: NUMERICAL AND EXACT SOLUTION AT T=TMAX COMMON U(0:51), V(0:51) REAL K,KAPPA DATA T,X1,X2,KAPPA/0,0,1,1/ P(T) = 0 Q(T) = 0 F(X) = 100*SIN(PI*X) E(X,T) = 100*EXP(-PI*PI*T)*SIN(PI*X) PRINT*,'ENTER TMAX,NUMBEROF X-SUBINTERVALS AND TIME STEP' READ*,TMAX,N,K H = (X2-X1)/N R = KAPPA*K/H/H PI = 4*ATAN(1.) C SET INITIAL CONDITION DO 10 I = 0,N X = X1 + I*H V(I) = F(X) 10 CONTINUE 15 DO 20 I = 1,N-1 U(I) = V(I) + R*(V(I+1) -2*V(I) + V(I-1)) 20 CONTINUE T = T+K U(0) = P(T) U(N) = Q(T) C WRITE U OVER V TO PREPARE FOR NEXT TIME STEP DO 30 I = 0,N V(I) = U(I) 30 CONTINUE C IF T IS LESS THAN TMAX, TAKE A TIME STEP IF(ABS(TMAX-T).GT.K/2) GOTO 15 C OTHERWISE, PRINT RESULT WRITE(6,100) WRITE(6,110) N,K,TMAX WRITE(6,120) T DO 40 I = 0,N X = X1 + I*H EXACT = E(X,T) WRITE(6,130) X,U(I),EXACT 40 CONTINUE 100 FORMAT(///,T9,'RESULTSFROMPROGRAMEHEAT',/) 110 FORMAT('N =',I4,T15,' K= ',F8.6,T30,'TMAX=',F5.2,/) 120 FORMAT('T = ',F5.2,T18,'NUMERICAL',T35,'EXACT',/) 130 FORMAT( 'X = ',F4.1,T13,F13.6,T30,F13.6) END