Web-Books
in the Austria-Forum
Austria-Forum
Web-Books
Informatik
Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python
Page - 163 -
  • User
  • Version
    • full version
    • text only version
  • Language
    • Deutsch - German
    • English

Page - 163 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python

Image of the Page - 163 -

Image of the Page - 163 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python

Text of the Page - 163 -

5.1 FiniteDifferenceMethods 163 What about the source termg in our examplewith temperature distribution in a rod? g.x;t/models heat generation inside the rod. Onecould thinkof chemical reactions at amicroscopic level in somematerials as a reason to includeg. How- ever, inmostapplicationswith temperatureevolution,g is zeroandheatgeneration usually takesplaceat theboundary(as inourexamplewithu.0;t/D s.t/). Before continuing,wemayconsider an exampleof how the temperature distri- butionevolves in the rod. At time t D 0,weassume that the temperature is10Δ±C. Thenwe suddenly apply a device atx D 0 that keeps the temperature at50Δ± Cat this end. What happens inside the rod? Intuitively, you think that the heat genera- tionat theendwillwarmup thematerial in thevicinityofxD0, andas timegoes by,moreandmoreof therodwill beheated,before theentire rodhasa temperature of50Δ±C(recall thatnoheat escapes fromthesurfaceof the rod). Mathematically, (with the temperature inKelvin) this examplehasI.x/D 283 K, except at the end point: I.0/ D 323K, s.t/ D 323K, andg D 0. Thefigure belowshowssnapshotsfromfourdifferenttimesintheevolutionofthetemperature. 5.1 FiniteDifferenceMethods Weshall nowconstruct a numericalmethod for the diffusion equation. We know how to solve ordinary differential equations, so in awaywe are able to dealwith the time derivative. Very often inmathematics, a new problem can be solved by reducing it to a series of problems we know how to solve. In the present case, it means that we must do something with the spatial derivative @2=@x2 in order
back to the  book Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python"
Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python
Title
Programming for Computations – Python
Subtitle
A Gentle Introduction to Numerical Simulations with Python
Authors
Svein Linge
Hans Petter Langtangen
Publisher
Springer Open
Date
2016
Language
English
License
CC BY-NC 4.0
ISBN
978-3-319-32428-9
Size
17.8 x 25.4 cm
Pages
248
Keywords
Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
Category
Informatik
Web-Books
Library
Privacy
Imprint
Austria-Forum
Austria-Forum
Web-Books
Programming for Computations – Python