Chapter 4 - Equation Fitting
Chapter 4 - Equation Fitting
Systems
Instructor
Prof. Dr. Lütfullah Kuddusi
1
DESIGN OF THERMAL SYSTEMS, Third Edition, W. F. Stoecker
Chapter 4
Equation Fitting
4.1 MATHEMATICAL MODELING
• This chapter and the next, present procedures for developing
equations that represent the performance characteristics of
equipment, the behavior of processes, and thermodynamic
properties of substances.
• Engineers may have variety of reasons for wanting to develop
equations,
but
the crucial ones in the design of thermal systems are
(1) to facilitate the process of system simulation and
(2) to develop a mathematical statement for optimization.
• Most large, realistic simulation and optimization problems must be executed
on the computer, and it is usually more expedient to operate with
equations than with tabular data.
3
Equation development will be divided into two different categories;
- This chapter treats equation fitting and
- Chapter 5 concentrates on modeling thermal equipment.
Equation Fitting is composed of two steps;
1- Mathematical form of equation should be determined.
This is in fact an art.
2- Once mathematical form of equation is determined,
constants and coefficients
of equation should be determined.
4.2 MATRICES
• Use of matrices provides several conveniences and insights.
• In particular, the application of matrix terminology is applicable
to the solution of sets of simultaneous equations.
4
A matrix is a rectangular array of numbers, for example,
5
Multiplication of two matrices
6
| |
𝑎11 𝑎12 𝑎13
𝑎21 𝑎22 𝑎23 =¿+𝑎11
𝑎31 𝑎32 𝑎33
| | | | | |
𝑎22 𝑎23
𝑎32 𝑎33
−𝑎21
𝑎12 𝑎13
𝑎32 𝑎33
+𝑎31
𝑎12 𝑎13
𝑎22 𝑎23
7
8
Example:
9
10
Equation Fitting
11
12
For a polynomial of degree n, n+1 data is needed to determine the
coefficients in the polynomial.
If more than n+1 data is available, a polynomial of degree n will be
searched for which best fits to the available data.
13
14
15
16
17
4.10 BEST FIT: METHOD OF LEAST SQUARES
In another type of best fit slightly different from the one just mentioned
the sum of the squares of the deviation is a minimum.
The procedure in establishing the coefficients in such an equation is
called the method of least squares.
18
The procedure for using the least-squares method for first- and second
degree polynomials will be explained here.
19
¿ 20
21
¿ 22
The error is not using of least squares
but
The error is in applying a curve of too low degree.
23
DESIGN OF THERMAL SYSTEMS, Third Edition, W. F. Stoecker
END
Chapter 4
Equation Fitting