galerkin finite element model for heat...

32
Notation remarks Local differential formulation Global integral formulations Matrix formulations Galerkin Finite Element Model for Heat Transfer Introductory Course on Multiphysics Modelling TOMASZ G. ZIELI ´ NSKI bluebox.ippt.pan.pl/ ˜ tzielins/ Institute of Fundamental Technological Research of the Polish Academy of Sciences Warsaw Poland

Upload: others

Post on 30-Mar-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Galerkin Finite Element Modelfor Heat Transfer

Introductory Course on Multiphysics Modelling

TOMASZ G. ZIELINSKI

bluebox.ippt.pan.pl/˜tzielins/

Institute of Fundamental Technological Researchof the Polish Academy of Sciences

Warsaw • Poland

Page 2: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 3: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 4: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 5: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 6: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 7: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Notation remarks

The index notation is used with summation over the index i.Consequently, the summation rule is also applied for theapproximation expressions, that is, over the indices r, s = 1, . . .N(where N is the number of degrees of freedom).The symbol (. . .)|i means a (generalized) invariant partialdifferentiation over the i-th coordinate:

(. . .)|i =∂(. . .)

∂xi.

The invariance involves the so-called Christoffel symbols (in thecase of curvilinear systems of reference).Symbols dV and dS are completely omitted in all the integralspresented below since it is obvious that one integrates over thespecified domain or boundary. Therefore, one should understandthat: ∫

B

(. . .) =

∫B

(. . .) dV(x) ,∫∂B

(. . .) =

∫∂B

(. . .) dS(x) .

Page 8: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 9: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

PDE for Heat Transfer Problem

B

(%, c, k)

∂B

n

heat sourcef > 0

heat sinkf < 0

∂T∂x · n < 0

(cold)

∂T∂x · n > 0

(warm) Material data:% = %(x) – the density

[ kgm3

]c = c(x) – the thermal capacity

[ Jkg·K

]k = k(x) – the thermal conductivity

[ Wm·K

]Known fields:

f = f (x, t) – the heat production rate[ W

m3

]ui = ui(x, t) – the convective velocity

[ms

]The unknown field:

T = T(x, t) =? – the temperature[K]

Heat transfer equation

% c•T + qi|i − f = 0 where the heat flux vector

[WK

]:

qi = qi(T) =

{−k T|i – for conduction (only),−k T|i + % c ui T – for conduction and convection,

and•T = ∂T

∂t is the time rate of change of temperature[K

s

].

Page 10: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

PDE for Heat Transfer Problem

B

(%, c, k)

∂B

n

heat sourcef > 0

heat sinkf < 0

∂T∂x · n < 0

(cold)

∂T∂x · n > 0

(warm) Material data:% = %(x) – the density

[ kgm3

]c = c(x) – the thermal capacity

[ Jkg·K

]k = k(x) – the thermal conductivity

[ Wm·K

]Known fields:

f = f (x, t) – the heat production rate[ W

m3

]ui = ui(x, t) – the convective velocity

[ms

]The unknown field:

T = T(x, t) =? – the temperature[K]

Heat transfer equation

% c•T + qi|i − f = 0 where the heat flux vector

[WK

]:

qi = qi(T) =

{−k T|i – for conduction (only),−k T|i + % c ui T – for conduction and convection,

and•T = ∂T

∂t is the time rate of change of temperature[K

s

].

Page 11: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Initial and boundary conditions

The initial condition (at t = t0)

T(x, t0) = T0(x) in B

Prescribed field:

T0 = T0(x) – the initial temperature[K]

The boundary conditions (on ∂B)

the Dirichlet type:T(x, t) = T(x, t) on ∂BT

the Neumann type:−qi(T(x, t)

)ni = q(x, t) on ∂Bq

Prescribed fields:

T = T(x, t) – the temperature[K]

q = q(x, t) – the inward heat flux[ W

m2

]

B

(%, c, k)

∂B

n

heat sourcef > 0

heat sinkf < 0

∂T∂x · n < 0

(cold)

∂T∂x · n > 0

(warm)

Page 12: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Initial and boundary conditions

The initial condition (at t = t0)

T(x, t0) = T0(x) in B

Prescribed field:

T0 = T0(x) – the initial temperature[K]

The boundary conditions (on ∂B)

the Dirichlet type:T(x, t) = T(x, t) on ∂BT

the Neumann type:−qi(T(x, t)

)ni = q(x, t) on ∂Bq

Prescribed fields:

T = T(x, t) – the temperature[K]

q = q(x, t) – the inward heat flux[ W

m2

]

B

(%, c, k)

∂B

n

heat sourcef > 0

heat sinkf < 0

∂T∂x · n < 0

(cold)

∂T∂x · n > 0

(warm)

Page 13: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Initial-Boundary-Value Problem

IBVP of the heat transferFind T = T(x, t) for x ∈ B and t ∈ [t0, t1] satisfying the equation ofheat transfer by conduction (a), or by conduction and convection (b):

% c•T + qi|i − f = 0 where qi = qi(T) =

{−k T|i ← (a)−k T|i + % c ui T ← (b)

with the initial condition (at t = t0):

T(x, t0) = T0(x) in B ,

and subject to the boundary conditions:

T(x, t) = T(x, t) on ∂BT , −qi(T(x, t)

)ni = q(x, t) on ∂Bq ,

where ∂BT ∪ ∂Bq = ∂B and ∂BT ∩ ∂Bq = ∅.

Page 14: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 15: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Test functions

T(x, t), δT(x)

x∂BT

Dirichlet b.c.

T = T, δT = 0

∂Bq

Neumann b.c.

T

solution and trial functions, T

test functions, δT

Test function δT(x) is an arbitrary (but sufficiently regular)function defined in B, which meets the admissibility condition:

δT = 0 on ∂BT .

Notice that test functions are always time-independent.

Page 16: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Weighted formulation and weak variational form

Weighted integral formulation��

∫B

(% c

•T + qi|i − f

)δT = 0 (for every δT)

The term qi|i introduces the second derivative of T: qi|i = −k T|ii + . . . .However, the heat PDE needs to be satisfied in the integral sense.Therefore, the requirements for T can be weaken as follows.

Weak variational form��

∫B

% c•T δT−

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 (for every δT)

Now, only the first order spatial-differentiability of T is required.

In this formulation the Neumann boundary condition is already met (it hasbeen used in a natural way). Therefore, the only additional requirements arethe Dirichlet boundary condition and the initial condition.

Page 17: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Weighted formulation and weak variational form

Weighted integral formulation��

∫B

% c•T δT +

∫B

qi|i δT −∫B

f δT = 0 (for every δT)

The term qi|i introduces the second derivative of T: qi|i = −k T|ii + . . . .However, the heat PDE needs to be satisfied in the integral sense.Therefore, the requirements for T can be weaken as follows.

Weak variational form��

∫B

% c•T δT−

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 (for every δT)

Now, only the first order spatial-differentiability of T is required.

In this formulation the Neumann boundary condition is already met (it hasbeen used in a natural way). Therefore, the only additional requirements arethe Dirichlet boundary condition and the initial condition.

Page 18: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Weighted formulation and weak variational form

Weighted integral formulation��

∫B

% c•T δT +

∫B

qi|i δT −∫B

f δT = 0 (for every δT)

The term qi|i introduces the second derivative of T: qi|i = −k T|ii + . . . .However, the heat PDE needs to be satisfied in the integral sense.Therefore, the requirements for T can be weaken as follows.

Integrating by parts (using the divergence theorem)∫B

qi|i δT =

∫B

(qi δT)|i −∫B

qi δT|i =∫∂B

qi δT ni −∫B

qi δT|i

Using the Neumann b.c and the property of test function∫∂B

qi ni δT =

∫∂Bq

qi ni︸︷︷︸−q

δT +

∫∂BT

qi ni δT︸︷︷︸0

= −∫

∂Bq

q δT

Weak variational form��

∫B

% c•T δT−

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 (for every δT)

Now, only the first order spatial-differentiability of T is required.

In this formulation the Neumann boundary condition is already met (it hasbeen used in a natural way). Therefore, the only additional requirements arethe Dirichlet boundary condition and the initial condition.

Page 19: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Weighted formulation and weak variational form

Weighted integral formulation��

∫B

% c•T δT +

∫B

qi|i δT −∫B

f δT = 0 (for every δT)

The term qi|i introduces the second derivative of T: qi|i = −k T|ii + . . . .However, the heat PDE needs to be satisfied in the integral sense.Therefore, the requirements for T can be weaken as follows.

Integrating by parts (using the divergence theorem)∫B

qi|i δT =

∫B

(qi δT)|i −∫B

qi δT|i =∫∂B

qi δT ni −∫B

qi δT|i

Using the Neumann b.c and the property of test function∫∂B

qi ni δT =

∫∂Bq

qi ni︸︷︷︸−q

δT +

∫∂BT

qi ni δT︸︷︷︸0

= −∫

∂Bq

q δT

Weak variational form��

∫B

% c•T δT−

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 (for every δT)

Now, only the first order spatial-differentiability of T is required.

In this formulation the Neumann boundary condition is already met (it hasbeen used in a natural way). Therefore, the only additional requirements arethe Dirichlet boundary condition and the initial condition.

Page 20: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Weighted formulation and weak variational form

Weighted integral formulation��

∫B

% c•T δT +

∫B

qi|i δT −∫B

f δT = 0 (for every δT)

The term qi|i introduces the second derivative of T: qi|i = −k T|ii + . . . .However, the heat PDE needs to be satisfied in the integral sense.Therefore, the requirements for T can be weaken as follows.

After integrating by parts and using the Neumann boundary condition∫B

qi|i δT = −∫

∂Bq

q δT −∫B

qi δT|i

Weak variational form��

∫B

% c•T δT−

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 (for every δT)

Now, only the first order spatial-differentiability of T is required.

In this formulation the Neumann boundary condition is already met (it hasbeen used in a natural way). Therefore, the only additional requirements arethe Dirichlet boundary condition and the initial condition.

Page 21: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Weighted formulation and weak variational form

Weighted integral formulation��

∫B

% c•T δT +

∫B

qi|i δT −∫B

f δT = 0 (for every δT)

The term qi|i introduces the second derivative of T: qi|i = −k T|ii + . . . .However, the heat PDE needs to be satisfied in the integral sense.Therefore, the requirements for T can be weaken as follows.

Weak variational form��

∫B

% c•T δT−

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 (for every δT)

Now, only the first order spatial-differentiability of T is required.

In this formulation the Neumann boundary condition is already met (it hasbeen used in a natural way). Therefore, the only additional requirements arethe Dirichlet boundary condition and the initial condition.

Page 22: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Outline

1 Notation remarks

2 Local differential formulationPartial Differential EquationInitial and boundary conditionsInitial-Boundary-Value Problem

3 Global integral formulationsTest functionsWeighted formulation and weak variational form

4 Matrix formulationsApproximationTransient heat transfer (ordinary differential equations)Stationary heat transfer (algebraic equations)

Page 23: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Approximation functions and space

The spatial approximation of solution in the domain B isaccomplished by a linear combination of (global) shape functions,φs = φs(x),

T(x, t) = θs(t)φs(x) (s = 1, . . .N; summation over s)

where θs(t)[K]

are (time-dependent) coefficients – the degrees offreedom (N is the total number of degrees of freedom). Consistentresult is obtained now for the time rate of temperature

•T(x, t) =

•θs(t)φs(x) where

•θs(t) =

dθs(t)dt

[Ks

].

Distinctive feature of the Galerkin method:The same shape functions are used to approximate the solutionas well as the test function, namely

δT(x) = δθr φr(x) (r = 1, . . .N; summation over r) .

Page 24: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Approximation functions and space

The spatial approximation of solution in the domain B isaccomplished by a linear combination of (global) shape functions,φs = φs(x),

T(x, t) = θs(t)φs(x) (s = 1, . . .N; summation over s)

where θs(t)[K]

are (time-dependent) coefficients – the degrees offreedom (N is the total number of degrees of freedom). Consistentresult is obtained now for the time rate of temperature

•T(x, t) =

•θs(t)φs(x) where

•θs(t) =

dθs(t)dt

[Ks

].

Distinctive feature of the Galerkin method:The same shape functions are used to approximate the solutionas well as the test function, namely

δT(x) = δθr φr(x) (r = 1, . . .N; summation over r) .

Page 25: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)To reduce the “regularity” requirements for solution the approximations

T = θs φs

(•T =

•θs φs

), δT = δθr φr

are used for the weak variational form of the heat transfer problem∫B

% c•T δT −

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 .

1

∫B

% c•T δT =

•θs δθr

∫B

% cφs φr =•θs δθr Mrs

2

∫B

qi δT|i =∫B

(−k T|i + % c ui T

)δT|i = θs δθr

∫B

(−k φs|i + % c ui φs

)φr|i

= θs δθr Krs

3

∫∂Bq

q δT = δθr

∫∂Bq

qφr = δθr Qr

4

∫B

f δT = δθr

∫B

f φr = δθr Fr

Page 26: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)To reduce the “regularity” requirements for solution the approximations

T = θs φs

(•T =

•θs φs

), δT = δθr φr

are used for the weak variational form of the heat transfer problem∫B

% c•T δT −

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 .

1

∫B

% c•T δT =

•θs δθr

∫B

% cφs φr =•θs δθr Mrs

2

∫B

qi δT|i =∫B

(−k T|i + % c ui T

)δT|i = θs δθr

∫B

(−k φs|i + % c ui φs

)φr|i

= θs δθr Krs

3

∫∂Bq

q δT = δθr

∫∂Bq

qφr = δθr Qr

4

∫B

f δT = δθr

∫B

f φr = δθr Fr

Page 27: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)To reduce the “regularity” requirements for solution the approximations

T = θs φs

(•T =

•θs φs

), δT = δθr φr

are used for the weak variational form of the heat transfer problem∫B

% c•T δT −

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 .

1

∫B

% c•T δT =

•θs δθr

∫B

% cφs φr =•θs δθr Mrs

2

∫B

qi δT|i =∫B

(−k T|i + % c ui T

)δT|i = θs δθr

∫B

(−k φs|i + % c ui φs

)φr|i

= θs δθr Krs

3

∫∂Bq

q δT = δθr

∫∂Bq

qφr = δθr Qr

4

∫B

f δT = δθr

∫B

f φr = δθr Fr

Page 28: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)To reduce the “regularity” requirements for solution the approximations

T = θs φs

(•T =

•θs φs

), δT = δθr φr

are used for the weak variational form of the heat transfer problem∫B

% c•T δT −

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 .

1

∫B

% c•T δT =

•θs δθr

∫B

% cφs φr =•θs δθr Mrs

2

∫B

qi δT|i =∫B

(−k T|i + % c ui T

)δT|i = θs δθr

∫B

(−k φs|i + % c ui φs

)φr|i

= θs δθr Krs

3

∫∂Bq

q δT = δθr

∫∂Bq

qφr = δθr Qr

4

∫B

f δT = δθr

∫B

f φr = δθr Fr

Page 29: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)To reduce the “regularity” requirements for solution the approximations

T = θs φs

(•T =

•θs φs

), δT = δθr φr

are used for the weak variational form of the heat transfer problem∫B

% c•T δT −

∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 .

1

∫B

% c•T δT =

•θs δθr

∫B

% cφs φr =•θs δθr Mrs

2

∫B

qi δT|i =∫B

(−k T|i + % c ui T

)δT|i = θs δθr

∫B

(−k φs|i + % c ui φs

)φr|i

= θs δθr Krs

3

∫∂Bq

q δT = δθr

∫∂Bq

qφr = δθr Qr

4

∫B

f δT = δθr

∫B

f φr = δθr Fr

Page 30: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)

Matrix formulation of the heat transfer problem[Mrs

•θs − Krs θs − (Qr + Fr)

]δθr = 0 for every δθr.

This produces the following system of first-order ordinarydifferential equations (for θs = θs(t) =?):�� ��Mrs

•θs − Krs θs = (Qr + Fr) (r, s = 1, . . .N).

Mrs =

∫B

% cφs φr – the thermal capacity matrix[ J

K

],

Krs =

∫B

(−k φs|i + % c ui φs

)φr|i – the heat transfer matrix

[WK

],

Qr =

∫∂Bq

qφr – the inward heat flow vector[W],

Fr =

∫B

f φr – the heat production vector[W].

Page 31: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Transient heat transfer (system of ODEs)

Matrix formulation of the heat transfer problem[Mrs

•θs − Krs θs − (Qr + Fr)

]δθr = 0 for every δθr.

This produces the following system of first-order ordinarydifferential equations (for θs = θs(t) =?):�� ��Mrs

•θs − Krs θs = (Qr + Fr) (r, s = 1, . . .N).

Mrs =

∫B

% cφs φr – the thermal capacity matrix[ J

K

],

Krs =

∫B

(−k φs|i + % c ui φs

)φr|i – the heat transfer matrix

[WK

],

Qr =

∫∂Bq

qφr – the inward heat flow vector[W],

Fr =

∫B

f φr – the heat production vector[W].

Page 32: Galerkin Finite Element Model for Heat Transferbluebox.ippt.pan.pl/~tzielins/doc/ICMM_TGZielinski_Heat... · 2017. 11. 7. · IBVP of the heat transfer Find T = T(x;t) for x 2B and

Notation remarks Local differential formulation Global integral formulations Matrix formulations

Stationary heat transfer (algebraic equations)T = T(x) , f = f (x) , ui = ui(x) (for x ∈ B) .

BVP of stationary heat flow: Find T = T(x) satisfying (in B)

qi|i − f = 0 where:

qi = qi(T) =

{−k T|i (no convection),−k T|i + % c ui T (with convection),

with boundary conditions:

T = T on ∂BT (Dirichlet), − qi(T) ni = q on ∂Bq (Neumann).

The weak variational form lacks the rate integrand

−∫B

qi δT|i −∫

∂Bq

q δT −∫B

f δT = 0 .

The approximations T(x) = θs φs(x), δT(x) = δθr φr(x) lead to thefollowing system of linear algebraic equations (for θs =?):�� ��−Krs θs = (Qr + Fr) (r, s = 1, . . .N).