- E. T. S. Ingeniería de Caminos, Canales y Puertos. Santander
1
Engineering Computation Lecture 1 Presentation E. T. S. Ingeniera - - PowerPoint PPT Presentation
Engineering Computation Lecture 1 Presentation E. T. S. Ingeniera de Caminos, Canales y Puertos. Santander 1 Introduction Objectives 1. Introduction (quite ambitious!) to numerical methods for engineering as a general and fundamental tool
1
2
Introduction
Objectives
engineering as a general and fundamental tool for all engineering disciplines. We plan to review some main topics of Algebra (matrix calculations, equations,…) and Calculus (functions, integration, differential equations,…) with the perspective given by the availability of a computer.
will use commercial software widely used in science and engineering: MATLAB.
used in practice. We will consider examples from Engineering.
3
Introduction
ENGCOMP Course overview
2. Taylor series. Numerical derivatives. 3. Numerical methods for ODE’s. 4. Introduction to numerical solutions of PDE’s. 5. Interpolation, Curve-fitting. 6. Numerical integration. 7. Solution of nonlinear equations and systems. 8. Simultaneous linear equations: Gaussian elimination.
4
Introduction
Why are Numerical Methods so widely used in Engineering?
physical modeling to describe and predict the behavior of systems.
complete for simple problems (geometry, properties, etc.).
cheap.
general purpose).
5
Introduction
A few applications of Numerical Methods in Engineering:
Network simulation Train and traffic networks
Flow circulation Groundwater & pollutant movement Weather prediction
6
Introduction
Why study Numerical Methods? Numerical Analysis is a Discipline:
problems will be troublesome.
working.
arithmetic approximations.
7
Introduction
Why study Numerical Methods? (continued) Use of Numerical Methods is an Art:
the process.
8
Introduction
Instructors:
Dept de Matemática Aplicada y CC. de la Computación E.T.S. de Ingeniería de Caminos (1st floor) Universidad de Cantabria e-mail: amparo.gil@unican.es http://personales.unican.es/gila/UC-Cornell2016.pdf Office Hours: by appointment via e-mail.
Dept de Matemática Aplicada y CC. de la Computación E.T.S. de Ingeniería de Caminos (1st floor) Universidad de Cantabria e-mail: puigpeyj@unican.es Office Hours: by appointment via e-mail and Monday-Thursday (16:30 to 18:30 h)
9
Introduction
Course computing framework: Software environment: MATLAB Electronic Communication by e-mail:
e-mail: amparo.gil@unican.es , puigpeyj@unican.es
10
Introduction ENGCOMP Course Materials
Required Textbook and Notes:
Computer sessions (recommended texts):
Additional material will be available at the course website, e.g.: "Matlab_primer.pdf " , "Matlab_capabilities.pdf “ , …
11
Selected bibliography
. Atkinson, K.E. "An introduction to Numerical Analysis". John Wiley & Sons, New York, 2nd Edition, 1989. . Burden, R. L., Faires J.D. “Numerical Analysis”, 9th ed. 2010, Brooks/Cole Ed. . Fish, J., Belytschko, T. "A First Course in Finite Elements". John Wiley & Sons. 2007 . Gil, A., Segura, J., Temme, NM, “Numerical Methods for Special Functions”, 2007, SIAM. . Gockenbach, M.S. "Partial Differential Equations: Analytical and Numerical Methods". SIAM. 2002. . Lambert, J.D., “Numerical Methods for Ordinary Differential Equations”, 1973, John Wiley & Sons. . Mitchell, A.R., Griffiths, D.F., “The Finite Difference Method in Partial Differential Equations”, 1980, Wiley, London. . Quarteroni A., Saleri F. "Cálculo científico con MATLAB y Octave". Springer Verlag. 2006
12
Introduction
Periodic Assignments
described on the course web page.
13
Introduction
Schedule: Monday: 11:00-13:00 h. Tuesday: 13:00-14:00 h. Thursday: 13:00-14:00 h.
14
Contributions to the final grade:
For 2 Prelims 40% Final Exam 20% Computer Assignments 20% Problem Sets and active participation 20%
15
Prelim 1: To be announced (November) Prelim 2: To be announced.
To be announced
16
Introduction
questions that are strongly related to the use of computers and to applications from Science and Engineering.
large systems of equations, non-linearities, complicated geometries and solving engineering problems which have no analytical solution.
17
Introduction
– We will be interested in methods for solving – These methods are very useful in engineering projects, because in many
to solve the design equations analytically.
. ) x ( f \ x =
18
Introduction
– We will study methods for computing the set of values that simultaneously satisfy a system of algebraic equations. – Applications: calculus of structures, electric circuits, supply networks, fit of curves, etc.
2 2 22 1 21 1 2 12 1 11
b x a x a b x a x a = + = +
19
Introduction
– Determine the value x0 leading to the optimal value of f(x). – These problems can be subject to constraints.
20
Introduction
– Regression. It is used when one has errors in the experimental
– Interpolation. It is used to fit tabulated data and predict intermediate values or extrapolated data.
21
Introduction
a given curve, the volume under a surface.
in engineering. Calculation of centers of gravity, areas, volumes, etc.
solve differential equations.
∫
=
b a
dx ) x ( f I f(x) x Integral a b
∫∫Ω
y)dxdy g(x,
22
Introduction
equations : – ODE’s are very important because many problems can be stated in terms of variations and not in terms
– There are two types of problems: Initial value problems, and boundary value problems.
dy dt = f ( t; y)
23
Introduction
equations: – Used for characterizing engineering problems where the behavior of the physical magnitude can be expressed in terms of speed change with respect to two or more variables. – Approximation by finite differences or the finite element method.
) y , x ( f y u x u
2 2 2 2
= ∂ ∂ + ∂ ∂ y x
24
Mathematical Models
CONSERVATION LAWS -- BALANCE
F
x =
∑ F
y =
∑
At each node, Balance= Force Equilibrium P V1 H1 V2 H2 b1 b2 V1 H1 Fb1
6 equations - 6 unknowns
Flow in = 80 Flow in = 100 Flow out = ? (60) Flow out = 120 Incompressible fluid flow, Each junction: Flow Balance , flow in = flow out Increases = Decreases
Single elements – Systems – Networks
25
Mathematical Models
D
F
U
F
m·a; = F
) s / kgm ( F
2
) kg ( m ) s / m ( a
2
; m F a = ; m F dt dv = ; m (Up) F (Down) F dt dv
U D
+ = ; m cv mg dt dv − = ) s / Kg ( c
) t
) v(t m c
) v(t ) v(t m c·v
dt ) dv(t
i 1 i i i 1 i t t t t i
i i+ + = =
+ = =
26
Mathematical Models
a finite difference, thus transforming the problem into a very simple one containing only simple algebraic operations:
27
Numerical Differentiation
Forward: Centered:
What are the advantages of each?
( ) ( ) ( )
i 1 i i
f x f x f x h
+
− ′ =
( ) ( ) ( )
i 1 i 1 i
f x f x f x 2h
+ −
− ′ =
28
Mathematical Models
Numerical solution, ∆t=1sec Numerical solution, ∆t=2seg T (sec) V (m/sec) Exact solution
Approximate Approximat (∆t=2s.) (∆t=1s.) 2 16,422 19,62 17,819339 4 27,798 32,037357 29,697439 6 35,678 39,896213 37,615198 8 41,137 44,870026 42,893056 10 44,919 48,017917 46,411195 12 47,539 50,010194 48,756333 14 49,353 51,271092 50,319566 16 50,611 52,069105 51,361594 18 51,481 52,574162 52,056193 20 52,085 52,893809 52,519203 Exact t(sec)