• 검색 결과가 없습니다.

Optimal Design of Energy Systems

N/A
N/A
Protected

Academic year: 2022

Share "Optimal Design of Energy Systems"

Copied!
26
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

Optimal Design of Energy Systems

Chapter 4 Equation Fitting

Min Soo KIM

Department of Mechanical and Aerospace Engineering

Seoul National University

(2)

Equation Development

Performance characteristics of equipment

Behavior of processes

Thermodynamic properties of substances

Key elements

To facilitate the process of system simulation

To develop a mathematical statement for optimization

Purposes

Chapter 4. Equation fitting

4.1 Mathematical modeling

(3)

11 12 1

1 2

n

m m mn

a a a

a a a

 

 

 

 

 

 

Order of matrix

m n

  A

T Transpose of a matrix [A] => interchanging rows & columns ex>

 

12 45

3 6 A

 

 

  

 

 

 

1 2 3

4 5 6

A T  

  

 

Chapter 4. Equation fitting

4.2 Matrices

(4)

• Multiplying two matrices

# of columns of the left matrix = # of rows of the right matrix

𝑎

11

⋯ 𝑎

1𝑛

⋮ ⋱ ⋮

𝑎

𝑚1

⋯ 𝑎

𝑚𝑛

×

𝑏

11

⋯ 𝑏

1𝑙

⋮ ⋱ ⋮

𝑏

𝑛1

⋯ 𝑏

𝑛𝑙

⇒ 𝑚 × 𝑙 𝑚𝑎𝑡𝑟𝑖𝑥

Chapter 4. Equation fitting

4.2 Matrices

(5)

• Simultaneous linear equations

1 2 3

1 2

1 2 3

2 3 6

3 1

4 2 0

x x x

x x

x x x

  

 

  

1

2

3

2 1 3 6

1 3 0 1

4 2 1 0

x x x

      

      

     

      

     

Chapter 4. Equation fitting

4.2 Matrices

(6)

• Determinant (scalar)

11 12 13

21 22 23

31 32 33

a a a

D a a a

a a a

 

11 22 33 12 23 31 13 21 32

31 22 13 21 12 33 11 23 32

a a a a a a a a a a a a a a a a a a

  

  

cofactor of

22 33 23 32

a a a a

 

a11 [( 1) ]

i

[ ]

i j ij

submatrix formed by striking out A

th row and j th column of A

  Cofactor of 𝒂𝒊𝒋

Chapter 4. Equation fitting

4.2 Matrices

= 𝑎11𝐴11 + 𝑎21𝐴21 + 𝑎31𝐴31

(7)

Example 4.1 : Matrices

Evaluate

1 0 3 4

2 1

−1 2

−1 2 1 1

0 0 2 5

(Solution)

Find row which has many zeros if possible => second row!

det

Chapter 4. Equation fitting

= 𝑎21𝐴21 + 𝑎22𝐴22 + 𝑎23𝐴23 + 𝑎24𝐴24

= 0 𝐴21 + 1 −1 2+2

1 −1 0

3 1 2

4 1 5

+ 2 −1 2+3

1 2 0

3 −1 2

4 2 5

+ (0)𝐴24

= 0 + 10 + 46 + 0 = 56

(8)

11 12 13 1 1

21 22 23 2 2

31 32 33 3 3

[ ][ ] [ ]

a a a x b

A X a a a x b B

a a a x b

     

     

        

     

     

11 1 12 2 13 3 1

21 1 22 2 23 3 2

31 1 32 2 33 3 3

a x a x a x b a x a x a x b a x a x a x b

  

  

  

 Simultaneous linear equations

 Matrix form

Chapter 4. Equation fitting

4.3 Solution of simultaneous equation

(9)

[ ] [ ] i

i

A matrix with B matrix substituted in th column

xA

• Crammer’s rule

Chapter 4. Equation fitting

4.3 Solution of simultaneous equation

Example 4.2

Using Cramer’s rule, get 𝑥2

2 1 −1

1 −2 2

−1 0 3

𝑥1 𝑥2 𝑥3

= 3 9 0

(Solution)

𝑥2 =

2 3 −1

1 9 2

−1 0 3

2 1 −1

1 −2 2

−1 0 3

= 30

−15 = −2

(10)

Coefficient matrix [A]

 

 

 

 

 

 

 

 

 

 

Triangular matrix

Back substitution

• Gaussian elimination

Chapter 4. Equation fitting

4.3 Solution of simultaneous equation

(11)

2

0 1 2

n

yaa xa x   a x

n

• degree of the eq = highest exponent of x

• # of data point = degree + 1 → exact expression

> → best fit

Chapter 4. Equation fitting

4.4 Polynomial representations

(12)

 Points are equally spaced

 Derive 4th degree polynomial

 n=4

2

0 1 0 2 0

3 4

3 0 4 0

( ) ( )

( ) ( )

n n

y y a x x a x x

R R

n n

a x x a x x

R R

1 0 n n 1

x x x x x

   

2

0 1 2

n

y a a x a x a xn

(next page) Eq. (4.16)

4

x

Chapter 4. Equation fitting

4.6

Simplifications when the independent variable is uniformly spaced

(13)

2 3 4

1 0 1 0 1 0 1 0

1 1 2 3 4

1 2 3 4

4(x x ) 4(x x ) 4(x x ) 4(x x )

y a a a a

R R R R

a a a a

 

 

0 0

1 1 1 2 3 4

2 2 1 2 3 4

3 3 1 2 3 4

4 4 1 2 3 4

, ,

, 2 4 8 16

, 3 9 27 64

, 4 16 64 256

x x y y

x x y y a a a a

x x y a a a a

x x y a a a a

x x y a a a a

 

 if substitute (x1,y1)

 Substitute all the points to Equation (4.16)

Chapter 4. Equation fitting

4.6

Simplifications when the independent variable is uniformly spaced

(14)

Chapter 4. Equation fitting

4.6

Simplifications when the independent variable is uniformly spaced

(15)

2

0 1 2

yaa xa x

1( 2)( 3) 2( 1)( 3) 3( 1)( 2)

yc xx xxc xx xxc xx xx

1, 1 1( 1 2)( 1 3)

x x y c x x x x

2, 2 2( 2 1)( 2 3)

x x y c x x x x

3, 3 3( 3 1)( 3 2)

x x y c x x x x

1 1

( ) ( )

( ) ( )

n n

j i

i

i j i j i i

x x ommiting x x

y y

x x ommiting x x

 

Chapter 4. Equation fitting

4.7 Lagrange interpolation

(16)

2

1 : 1 1 1 1

S  P ab Qc Q

2

2 : 2 2 2 2

S  P ab Qc Q

2

3 : 3 3 3 3

S  P ab Qc Q

2

0 1 2

2

0 1 2

2

0 1 2

( ) ( ) ( )

a S A A S A S b S B B S B S c S C C S C S

( ) ( ) ( ) 2

P a S b S Q c S Q

   

Chapter 4. Equation fitting

4.8 Function of two variables

(17)

Example 4.3 : Function of two variables

The range is the difference between the inlet and outlet temperatures of the water. In table below, for example, when the wet-bulb temperature is 20℃

and the range is 10℃, inlet and outlet temperature are 35.9℃ and 25.9℃

each. Express the outlet temperature 𝒕 in Table below as a function of the wet-bulb temperature (WBT) and the range R

Chapter 4. Equation fitting

Wet-bulb temperature, ℃

Range, ℃ 20 23 26

10 25.9 27.5 29.4

16 27.0 28.4 30.2

22 28.4 29.6 31.3

(Solution)

For 3 WBTs, get parabola that represents (R,t) i) For WBT = 20℃

(R,t) : (10,25.9), (16,27.0), (22,28.4)

⇒ 𝑡 = 24.733 + 0.075006𝑅 + 0.004146𝑅2 ii) For WBT = 23℃

⇒ 𝑡 = 26.667 + 0.041659𝑅 + 0.0041469𝑅2 iii) For WBT = 26℃

⇒ 𝑡 = 28.733 + 0.024999𝑅 + 0.0041467𝑅2

(18)

Example 4.3 : Function of two variables

Chapter 4. Equation fitting

(Solution)

Set 2nd degree equation (constant terms(C) , WBT) ∶ 24.733,20 , 26.667,23 , 28.733,26

⇒ 𝐶 = 15.247 + 0.32637𝑊𝐵𝑇 + 0.007380𝑊𝐵𝑇2

Set 2nd degree equation (coefficient of 𝑅 , WBT) and (coefficient of 𝑅2 , WBT) as well

𝑡 = 15.247 + 0.32637𝑊𝐵𝑇 + 0.007380𝑊𝐵𝑇2 + 0.72375 − 0.050978𝑊𝐵𝑇 + 0.000927𝑊𝐵𝑇2 𝑅 +

(0.004147 + 0𝑊𝐵𝑇 + 0𝑊𝐵𝑇2)𝑅2

(19)

Chapter 4. Equation fitting

4.9 Exponential forms

ln ln ln

y bxm

y b m x

 

Log-log plot (y=bxm)

(20)

If y approaches some value b, as orx   x  

Estimate b

Calculate m with log-log plot (y-b vs. x) Fitting (y vs. xm)

Correct value of b

Curve y=b+axm

y  b axm

Chapter 4. Equation fitting

4.9 Exponential forms

(21)

Misuse of least square method Example of least square method

 Misuses of least square method (a) Questionable correlation

(b) Applying too low degree

Chapter 4. Equation fitting

4.10 Best fit : Method of least squares

The sum of the squares of the deviation is a minimum

(22)

y  a bx

2( i i) 0

z a bx y

a

    

2 1

( ) min

m

i i

i

z a bx y

  

2( i i) i 0

z a bx y x

b

    

i i

mabx   y

2

i i i i

axbx   x y

Chapter 4. Equation fitting

4.10 Best fit : Method of least squares

• Method of least square for

(23)

Example 4.4 : Best fit : Method of least squares

Determine 𝑎0 and 𝑎1 in the equation 𝑦 = 𝑎0 + 𝑎1𝑥 to provide a best fit in the sense of least-squares deviation to the data points (1, 4.9), (3, 11.2), (4, 13.7), and (6, 20.1)

(Solution)

Chapter 4. Equation fitting

𝑥𝑖 𝑦𝑖 𝑥𝑖2 𝑥𝑖𝑦𝑖

1 4.9 1 4.9

3 11.2 9 33.6

4 13.7 16 54.8

6 20.1 36 120.6

14 49.9 62 213.9

𝑚 = 4

4𝑎0 + 14𝑎1 = 49.9 14𝑎0 + 62𝑎1 = 213.9

i i

mab

x

y

2

i i i i

a

x b

x

x y

𝑦 = 1.908 + 3.019𝑥

(24)

4.10 Best fit : Method of Least Squares

• Method of least squares for y  a bxcx2

2

2 3

2 3 4 2

1 i i i

i i i i i

i i i i i

a b x c x y

a x b x c x y x

a x b x c x y x

  

  

  

   

   

   

𝑖=1 𝑚

(𝑎 + 𝑏𝑥𝑖 + 𝑐𝑥12 − 𝑦𝑖)2 → 𝑚𝑖𝑛

Chapter 4. Equation fitting

(25)

4.11 Method of Least Squares Applied to Nonpolynomial Forms

• Method of least squares

→ apply to equation with constant coefficients cf)

y  sin 2 axbx

c

Chapter 4. Equation fitting

(26)

4.12 The art of equation fitting

• Choice of the form of the equation

Polynomials with negative exponent(1) Exponential eq.(2)

Gompertz eq(3) combination

, 1

cx

yab where b c

(1) (2) (3)

Chapter 4. Equation fitting

참조

관련 문서

 Manipulation of protein’s amino acid sequence to change its function or properties.

~ a volume which is fixed in space and through whose boundary matter, mass, momentum, energy can flow. ~ The boundary of control volume is

- Apply the concept of the control volume to derive equations for the conservation of mass for steady one- and two-dimensional flows.. - Derive the Reynolds transport

The present model estimated the experimental data of COP(coefficient of performance), heating capacity, and the hot water outlet temperature within the range

Chapter 4: Basic Nodal and Mesh analysis Chapter 5: Handy circuit analysis techniques Chapter 6: The Operational Amplifier.. Chapter 7: Capacitors and Inductors Chapter 8: Basic

심폐지구력/근력운동프로그램의 실제와 적용 Chapter 4. 유연성/이완 운동프로그램의 실제와 적용 Chapter 5. 영양과 체중조절 프로그램의 실제와 적용 Chapter

Even though the uniformity of FMHA outlet hole flow increases the thermal mixing, the temperature deviation at the core inlet is within an acceptable range.. We

4.1 Control Volume 4.2 The Continuity Equation for One-Dimensional Steady Flow 4.3 The Continuity Equation for Two-Dimensional Steady Flow 4.4 The Reynolds Transport Theorem