-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmultiphysicsL19.tex
More file actions
211 lines (211 loc) · 6.55 KB
/
multiphysicsL19.tex
File metadata and controls
211 lines (211 loc) · 6.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
%
% Copyright © 2014 Peeter Joot. All Rights Reserved.
% Licenced as described in the file LICENSE under the root directory of this GIT repository.
%
%\input{../blogpost.tex}
%\renewcommand{\basename}{multiphysicsL19}
%\renewcommand{\dirname}{notes/ece1254/}
%\newcommand{\keywords}{ECE1254H}
%\input{../peeter_prologue_print2.tex}
%
%\usepackage{algorithmic}
%
%\beginArtNoToc
%\generatetitle{ECE1254H Modeling of Multiphysics Systems. Lecture 19: Model order reduction (cont).. Taught by Prof.\ Piero Triverio}
%%\chapter{Model order reduction (cont).}
%\label{chap:multiphysicsL19}
%
%\section{Disclaimer}
%
%Peeter's lecture notes from class. These may be incoherent and rough.
%
\section{Model order reduction (cont).}
\index{model order reduction}
%
An approximation of the following system is sought
%
\begin{subequations}
\begin{equation}\label{eqn:multiphysicsL19:20}
\BG \Bx(t) + C \dot{\Bx}(t) = B \Bu(t)
\end{equation}
\begin{equation}\label{eqn:multiphysicsL19:40}
\By(t) = \BL^\T \Bx(t).
\end{equation}
\end{subequations}
%
The strategy is to attempt to find a \( N \times q \) projector \( \BV \) of the form
%
\begin{equation}\label{eqn:multiphysicsL19:60}
\BV =
\begin{bmatrix}
\Bv_1 & \Bv_2 & \cdots & \Bv_q
\end{bmatrix}
\end{equation}
%
so that the solution of the constrained q-variable state vector \( \Bx_q \) is sought after letting
%
\begin{equation}\label{eqn:multiphysicsL19:80}
\Bx(t) = \BV \Bx_q(t).
\end{equation}
%
\section{Moment matching.}
\index{moment matching}
%
\begin{equation}\label{eqn:multiphysicsL19:100}
\BF(s)
= \lr{ \BG + s \BC }^{-1} \BB
= \BM_0 + \BM_1 s + \BM_2 s^2 + \cdots + \BM_{q-1} s^{q-1} + M_q s^q + \cdots
\end{equation}
%
The reduced model is created such that
%
\begin{equation}\label{eqn:multiphysicsL19:120}
\BF_q(s)
=
\BM_0 + \BM_1 s + \BM_2 s^2 + \cdots + \BM_{q-1} s^{q-1} + \tilde{\BM}_q s^q.
\end{equation}
%
Form an \( N \times q \) projection matrix
%
\begin{equation}\label{eqn:multiphysicsL19:140}
\BV_q \equiv
\begin{bmatrix}
\BM_0 & \BM_1 & \cdots & \BM_{q-1}
\end{bmatrix}
\end{equation}
%
With the substitution of \cref{eqn:multiphysicsL19:80} the system equations in the time domain, illustrated graphically in \cref{fig:lecture19:lecture19Fig1}, becomes
%
\imageFigure{../figures/ece1254-multiphysics/lecture19Fig1}{Projected system.}{fig:lecture19:lecture19Fig1}{0.2}
%
%
This is a system of \( N \) equations, in \( q \) unknowns. A set of moments from the frequency domain have been used to project the time domain system. This relies on the following unproved theorem (references to come)
%
\index{moments!reduced}{thm:multiphysicsL19:280}{
\maketheorem{Reduced model moments.}{thm:multiphysicsL19:280}{
If \( \Span\{ \Bv_q \} = \Span \{ \BM_0, \BM_1, \cdots, \BM_{q-1} \} \), then the reduced model will match the first \( q \) moments.
}
%
Left multiplication by \( \BV_q^\T \) yields \cref{fig:lecture19:lecture19Fig2}.
%
\imageFigure{../figures/ece1254-multiphysics/lecture19Fig2}{Reduced projected system.}{fig:lecture19:lecture19Fig2}{0.3}
%
This is now a system of \( q \) equations in \( q \) unknowns.
%
With
%
\begin{subequations}
\begin{equation}\label{eqn:multiphysicsL19:160}
\BG_q = \BV_q^\T \BG \BV_q
\end{equation}
\begin{equation}\label{eqn:multiphysicsL19:180}
\BC_q = \BV_q^\T \BC \BV_q
\end{equation}
\begin{equation}\label{eqn:multiphysicsL19:200}
\BB_q = \BV_q^\T \BB
\end{equation}
\begin{equation}\label{eqn:multiphysicsL19:220}
\BL_q^\T = \BL^\T \BV_q
\end{equation}
\end{subequations}
%
the system is reduced to
%
\begin{subequations}
\begin{equation}\label{eqn:multiphysicsL19:240}
\BG_q \Bx_q(t) + \BC_q \dot{\Bx}_q(t) = \BB_q \Bu(t).
\end{equation}
\begin{equation}\label{eqn:multiphysicsL19:260}
\By(t) \approx \BL_q^\T \Bx_q(t)
\end{equation}
\end{subequations}
%
\paragraph{Moments calculation}
\index{model order reduction!moments}
%
Using
\begin{equation}\label{eqn:multiphysicsL19:300}
\lr{ \BG + s \BC }^{-1} \BB = \BM_0 + \BM_1 s + \BM_2 s^2 + \cdots
\end{equation}
%
thus
\begin{equation}\label{eqn:multiphysicsL19:320}
\begin{aligned}
\BB &=
\lr{ \BG + s \BC }
\BM_0 +
\lr{ \BG + s \BC }
\BM_1 s +
\lr{ \BG + s \BC }
\BM_2 s^2 + \cdots
\\ &=
\BG \BM_0
+ s \lr{ C \BM_0 + \BG \BM_1 }
+ s^2 \lr{ C \BM_1 + \BG \BM_2 }
+ \cdots
\end{aligned}
\end{equation}
%
Since \( \BB \) is a zeroth order matrix, setting all the coefficients of \( s \) equal to zero provides a method to solve for the moments
%
\begin{equation}\label{eqn:multiphysicsL19:340}
\begin{aligned}
\BB &= \BG \BM_0 \\
-\BC \BM_0 &= \BG \BM_1 \\
-\BC \BM_1 &= \BG \BM_2 \\
\end{aligned}
\end{equation}
%
The moment \( \BM_0 \) can be found with LU of \( \BG \), plus the forward and backward substitutions. Proceeding recursively, using the already computed LU factorization, each subsequent moment calculation requires only one pair of forward and backward substitutions.
%
Numerically, each moment has the exact value
%
\begin{equation}\label{eqn:multiphysicsL19:360}
\BM_q = \lr{- \BG^{-1} \BC }^q \BM_0.
\end{equation}
%
As \( q \rightarrow \infty \), this goes to some limit, say \( \Bw \). The value \( \Bw \) is related to the largest eigenvalue of \( -\BG^{-1} \BC \). Incidentally, this can be used to find the largest eigenvalue of \( -\BG^{-1} \BC \).
%
The largest eigenvalue of this matrix will dominate these factors, and can cause some numerical trouble. For this reason it is desirable to avoid such explicit moment determination, instead using implicit methods.
%
The key is to utilize \cref{thm:multiphysicsL19:280}, and look instead for an alternate basis \( \{ \Bv_q \} \) that also spans \( \{ \BM_0, \BM_1, \cdots, \BM_q \} \).
%
\paragraph{ Space generated by the moments }
%
Write
%
\begin{equation}\label{eqn:multiphysicsL19:380}
\BM_q = \BA^q \BR,
\end{equation}
%
where in this case
%
\begin{equation}\label{eqn:multiphysicsL19:400}
\begin{aligned}
\BA &= - \BG^{-1} \BC \\
\BR &= \BM_0 = -\BG \BB
\end{aligned}
\end{equation}
%
The span of interest is
%
\begin{equation}\label{eqn:multiphysicsL19:420}
\Span \{ \BR, \BA \BR, \BA^2 \BR, \cdots, \BA^{q-1} \BR \}.
\end{equation}
%
Such a sequence is called a \textAndIndex{Krylov subspace}. One method to compute such a basis, the \textAndIndex{Arnoldi process}, relies on \textAndIndex{Gram-Schmidt} orthonormalization methods:
%
\makealgorithm{Arnoldi process.}{alg:multiphysicsL19:420}{
\STATE \( \BV_0 = \BR/\Norm{\BR} \)
\FORALL{ \( i \in [0, q-2] \) }
\STATE \( \BV_{i+1} = \BA \BV_i \)
\FORALL{ \( j \in [0, i] \) }
\STATE \( \BV_{i+1} = \BV_{i+1} - \lr{ \BV_{i+1}^\T \BV_j } \BV_j \)
\ENDFOR
\STATE \( \BV_{i+1} = \BV_{i+1}/\Norm{\BV_{i+1}} \)
\ENDFOR
}
%
Some numerical examples and plots on the class slides.
%
%\EndNoBibArticle