Professional Documents
Culture Documents
NAlecture - 1 (Uyumluluk Modu)
NAlecture - 1 (Uyumluluk Modu)
NAlecture - 1 (Uyumluluk Modu)
Introduction
The solutions of engineering problems can be
obtained using analytical methods or numerical
Lecture 1 methods
Numerical methods can be used where analytical
methods are not capable of or practical for providing
solutions.
Introduction
2 Computer Application In EM
Prof. Dr. Arif N Güllüoğlu
Characteristics of Characteristics of
Numerical Methods Numerical Methods
Numerical methods have most of the following characteristics: Example 1. Square Root
Finding the square root of a number is a frequent task.
The solution procedure is iterative with the accuracy of the we need to develop a method for estimating √x, where x is any positive real
estimated solution improving with each iteration value.
Start by assuming that we have an initial estimate of √x, which we will denote
The solution procedure provides only an approximation to
as xo and xo is in error by an unknown amount ∆x.
the true, but unknown, solution.
If we know ∆x, then we would have the following equality:
An initial estimate of the solution may be required.
The solution procedure is conceptually simple with
algorithms representing the solution procedure that can be If both sides of Eq. are squared and arranged
easily programmed on a digital computer.
The solution procedure may occasionally diverge from
rather than converge to the true solution
The value of ∆x computed with Eq. then added to xo to get a revised estimate
of x. And the new estimate x1 of the true solution is
Characteristics of Characteristics of
Numerical Methods Numerical Methods
Example 1. Square Root Example 1. Square Root
Generalizing the notation
FUNCTION SQRTN(X, X0, T0L)
Where xi and xi+1 are the estimates of x on trials i and (i+1),
c X = VALUE FOR WHICH SQUARE ROOT IS NEEDED
respectively, and
c XO = AN INPUT, INITIAL ESTIMATE OF SQUARE ROOT OF X
c XO = FINAL ESTIMATE OF SQUARE ROOT OF X
Find the root of 150,
First estimate is xo=12, so equation c TOL = MAXIMUM ALLOWABLE (TOLERABLE) ERROR IN
c SQUARE ROOT OF X
Theoretical / Numerical
Formulation of fundamental laws Problem Solving Tools:
Algebraic Analyticsolutions, statistics,
ODE numerical methods, graphics, etc.
Computer Mathematics
PDE
Mathematical Modeling
Approximation & Assumption
Formulation or Governing
Equations
Dependent variable: Characteristic that usually reflects the
state of the system
Analytical & Numerical Methods
Independent variables: Dimensions such as time and space
along which the systems behavior is being determined Solutions
Parameters: reflect the system’s properties or composition
Forcing functions: external influences acting upon the system Applications
Analytical or
exact solution
Dependent variable
Parameters
Forcing function
Equivalent as ∆t 0
t(s) V(m/s)
0 0
2 16.4
4 27.77
6 35.64
8 41.10
10 44.87
Step 1 Step 1
Step 2 Step 2
Step 3
Step 4
t(s) V(m/s)
Step 5 0 0
4 39.24
t(s) V(m/s)
8 49.67
0 0
12 52.40
2 19.62
4 32.04
6 39.89
8 44.86 Computer Application In EM Computer Application In EM
25 26
Prof. Dr. Arif N Güllüoğlu Prof. Dr. Arif N Güllüoğlu
10 48.01
0 0
t(s) V(m/s)
2 16.4
0 0
4 27.77
2 19.62
6 35.64
4 32.04
8 41.10
6 39.89
10 44.87
8 44.86
10 48.01
The solution accuracy depends on time increment 27 Computer Application In EM 28 Computer Application In EM
Prof. Dr. Arif N Güllüoğlu Prof. Dr. Arif N Güllüoğlu
Thank you
Smile!
29 Computer Application In EM
Prof. Dr. Arif N Güllüoğlu