Web-Books
im Austria-Forum
Austria-Forum
Web-Books
Informatik
Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Band Second Edition
Seite - 266 -
  • Benutzer
  • Version
    • Vollversion
    • Textversion
  • Sprache
    • Deutsch
    • English - Englisch

Seite - 266 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Band Second Edition

Bild der Seite - 266 -

Bild der Seite - 266 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Band Second Edition

Text der Seite - 266 -

266 8 SolvingOrdinaryDifferentialEquations Fig. 8.34 Effect of nonlinear (left) and linear (right) spring on sliding friction 8.4.12 AFiniteDifferenceMethod;Undamped,LinearCase We shallnowaddressnumericalmethodsfor thesecond-orderODE u′′+ω2u=0, u(0)=U0, u′(0)=0, t∈ (0,T], without rewriting theODEasasystemoffirst-orderODEs.Theprimarymotivation for“yetanothersolutionmethod”is that thediscretizationprinciplesresult inavery good scheme, and more importantly, the thinking around the discretization can be reusedwhensolvingpartialdifferentialequations. The main idea of this numerical method is to approximate the second-order derivative u′′ by a finite difference. While there are several choices of difference approximations to first-order derivatives, there is one dominating formula for the second-orderderivative: u′′(tn)≈ u n+1−2un+un−1 Δt2 . (8.74) The error in this approximation is proportional toΔt2. Letting the ODE be valid at somearbitrary time point tn, u′′(tn)+ω2u(tn)=0, wejust insert theapproximation(8.74) toget un+1 −2un+un−1 Δt2 =−ω2un. (8.75) We nowassumethatun−1 andun arealreadycomputedand thatun+1 is thenew unknown.Solvingwith respect toun+1 gives un+1 =2un−un−1 −Δt2ω2un. (8.76)
zurück zum  Buch Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Band Second Edition"
Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python 3.6, Band Second Edition
Titel
Programming for Computations – Python
Untertitel
A Gentle Introduction to Numerical Simulations with Python 3.6
Band
Second Edition
Autoren
Svein Linge
Hans Petter Langtangen
Verlag
Springer Open
Datum
2020
Sprache
englisch
Lizenz
CC BY 4.0
ISBN
978-3-319-32428-9
Abmessungen
17.8 x 25.4 cm
Seiten
356
Schlagwörter
Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
Kategorie
Informatik
Web-Books
Bibliothek
Datenschutz
Impressum
Austria-Forum
Austria-Forum
Web-Books
Programming for Computations – Python