Professional Documents
Culture Documents
Lecture Rbobm Beamer
Lecture Rbobm Beamer
Lecture Rbobm Beamer
CeMosis - http://www.cemosis.fr
IRMA
Université de Strasbourg
8 avril 2014
6 Applications
HiFiMagnet project
High Field Magnet Modeling
Challenges
Objectives
Where to get it ?
Feel++
Features
• Galerkin methods (fem,sem, cG, dG) in 1D, 2D and 3D on simplices and
hypercubes
• Interfaces to PETSc/SLEPc
• Language embedded in C++ close to variational formulation language
that shortens tremendously the “time to results”
// Th = {elements}
auto mesh = loadMesh ( new Mesh < Simplex <3 > > );
// Xh = {v ∈ C 0 (Ω)|vK ∈ P2 (K ), ∀K ∈ Th }
auto Xh = Pch <2 >( mesh );
auto u = Xh - > element () , v = Xh - > element ();
auto a = form2
R ( _test = Xh , _trial = Xh , );
// a(u, v ) = Ω ∇u · ∇v
a = integrate ( elements ( mesh ) , gradt ( u )* trans ( grad ( v )));
auto b = form2
R ( _test = Xh , _trial = Xh );
// a(u, v ) = Ω u v
b = integrate ( elements ( mesh ) , idt ( u )* id ( v ) );
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Motivations
Linear Elliptic Problems
Introduction
Non Compliant/Non Symmetric
Feel++
Non-Affine and/or Non-Linear Problems
Features
Linear Parabolic Problems
User Point of View
Applications
Wrappers
References
Wrappers : Python/OpenTURNS
Wrapper : Octave
Octave code
# kIC : thermal conductivity ( default : 2)
inP (1) = 1.0 e +1;
# D : fluid flow rate ( default : 5e -3)
inP (2) = 7.0 e -3;
# Q : heat flux ( default : 1 e6 )
inP (3) = 1.0 e +6;
# r : conductance ( default : 100)
inP (4) = 1.0 e +2;
# ea : length air flow channel ( default : 4e -3)
inP (5) = 4.0 e -3;
for i =1: N
inP (1)= 0.2+( i -1)*(150 -0.2)/ N ; D =[ D inP (1)];
s = [ s opuseadscrb ( inP )];
end
Notations Definitions
N • Ω ⊂ Rd spatial domain
• (·) finite element
approximation • µ P-uplet
• (·)N reduced basis • D µ ⊂ RP parameter space
approximation
• s output, ℓ, f functionals
• µ input parameter (physical,
• u field variable
geometrical,...)
• X function space
• s(t; µ) ≈ s N (t; µ) ≈ sN (t; µ)
H01 (Ω)ν ⊂ X ⊂ H 1 (Ω)ν (ν = 1
output approximations
for simplicity)
• µ → s(t; µ) input-output (·, ·)X scalar product and k · kX
relationship norm associated to X
Problem Statement
s(µ) = ℓ(u(µ); µ)
a(u(µ), v ; µ) = f (v ; µ), ∀v ∈ X
Remark
We consider first the case of linear affine compliant elliptic problem and
then complexify
a(u, v ; µ) = ao (uo ◦ Tµ , vo ◦ Tµ ; µ)
a(·, ·; µ) bilinear
symmetric
continuous
coercive (∀µ ∈ Dµ )
Remark
• similar decomposition is required for ℓ(v ; µ) and f (v ; µ), and denote
Qℓ and Qf the corresponding number of terms
• applicable to a large class of problems including geometric variations
• can be relaxed (see non affine/non linear problems)
Recall that
• coercivity constant
a(v , v ; µ)
(0 <)α(µ) ≡ inf
v ∈X ||v ||2X
• Continuity constant
a(w , v ; µ)
γ(µ) ≡ sup sup (< ∞)
w ∈X v ∈X kw kX kv kX
s(µ) = f (u(µ))
where u(µ) ∈ X ≡ {v ∈ H 1 (Ω), v |Γtop = 0} satisfies
a(u(µ), v ; µ) = f (v ; µ) ∀v ∈ X
and
P
X Z Z
a(u, v ; µ) = µi ∇u · ∇v + 1 ∇u · ∇v ∀u, v ∈ X
i=1 Ωi ΩP+1
P+1
where Ω = ∪i=1 Ωi .
1
0 < √ ≤ min(µ1 /µ̄1 , . . . , µP /µ̄P , 1) ≤ α(µ)
µr
• and continuous
√
γ(µ) ≤ max(µ1 /µ̄1 , . . . , µP /µ̄P , 1) ≤ µr < ∞
with
Z
1 1
Θ (µ) = µ1 a (u, v ) = ∇u · ∇v
Ω1
..
.
Z
ΘP (µ) = µP aP (u, v ) = ∇u · ∇v
ΩP
Z
ΘP+1 (µ) = 1 aP+1 (u, v ) = ∇u · ∇v
ΩP+1
• Heterogeneous parameters
Let µ ∈ Dµ , evaluate
s N (µ) = ℓ(u N (µ)) ,
where u N (µ) ∈ X N satisfies
a(u N (µ), v ; µ) = f (v ), ∀ v ∈ XN .
ℓ(v )
ℓ ∈ X ′, ||ℓ||X ′ ≡ supv ∈X
||v ||X
.
Purpose
Independent of N as N → ∞
where tcomp is the time to perform the input-output relationship
∆N (µ)
1≤ ≤ E
ku N (µ) − uN (µ)kX
and
∆sN (µ)
1≤ N
≤ E
|s (µ) − sN (µ)|
for all N = 1 . . . Nmax and µ ∈ Dµ .
Remark
N may/should be chosen conservatively
W = {u(µ) ∈ Y ; µ ∈ Dµ }
To approximate u(µ), and thus s(µ),
we need only approximate functions
in low-dimensional manifold
W = {u(µ) ∈ Y ;
Y ≡ H 1 (Ω ⊂ Rd )
µ ∈ Dµ }
WN = {u(µi ) ∈ Y ; µi ∈ Dµ }
Spaces
Parameter Samples :
Sample : SN = {µ1 ∈ Dµ , . . . , µN ∈ Dµ } 1 ≤ N ≤ Nmax ,
with
S1 ⊂ S2 . . . SNmax −1 ⊂ SNmax ⊂ Dµ
Lagrangian Hierarchical Space
WN = span {ζn ≡ u(µn ) , n = 1, . . . , N}.
| {z }
u N (µn )
with
W1 ⊂ W2 . . . ⊂ WNmax ⊂ X N ⊂ X
Sampling strategies ?
Spaces : Remarks
Remark
We could include µ-derivatives (evaluation of the derivatives at given
parameters) into WN to obtain Hermite-like spaces (not covered here).
Remark
The basis functions ζn = u(µn ), n = 1...Nmax of WN are orthonormalized
via a Gram-Schmidt process. We then denote XN = Gram-Schmidt(WN )
Galerkin Projection
Given µ ∈ Dµ evaluate
and
s(µ) − sN (µ) = |||u(µ) − uN (µ)|||2µ ,
= inf |||u(µ) − vN (µ)|||2µ ,
vN ∈XN
and finally
0 ≤ s(µ) − sN (µ) ≤ γ(µ) inf ||u(µ) − vN (µ)||2X
vN ∈XN
Express sN (µ)
N XQf
X
sN (µ) = uN j (µ) Θqf (µ) f q (ζj ) (3)
j=1 q=1
1≤i ≤N (4)
(5)
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric RB Approx.
Non-Affine and/or Non-Linear Problems A Posteriori Error
Linear Parabolic Problems Sampling
Applications Inf-sup lower bound
References
Solve
AN (µ) u N (µ) = F N
where
Qa
X
(AN )i j (µ) = Θqa (µ) aq (ζi , ζj ),
q=1
Qf
X
FN i = Θqf (µ)f q (ζi ) .
q=1
1 ≤ i, j ≤ N, 1≤i ≤N
Online : independent of N
• Given a new µ ∈ D µ
• Form and solve AN (µ) : O(QN 2 ) and O(N 3 )
• Compute sN (µ)
Online : N << N
Online we realize often orders of magnitude computational economies
relative to FEM in the context of many µ-queries
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric RB Approx.
Non-Affine and/or Non-Linear Problems A Posteriori Error
Linear Parabolic Problems Sampling
Applications Inf-sup lower bound
References
vNT AN (µ)vN
, ∀vN ∈ RN
vNT vN
• Express
N
X
vN = vNn ζ n
n=1
Questions
We shall develop the following error bounds ∆N (µ) and ∆sN (µ) with the
following properties
• rigorous 1 ≤ N ≤ Nmax
that satisfies
Proposition
Given µ ∈ Dµ , the dual norm of r (uN (µ), ·; µ) is defined as follows
r (uN (µ), v ; µ)
||r (uN (µ), ·; µ)||X ′ ≡ sup
v ∈X ||v ||X
= ||ê(µ)||X
a(e(µ), v ; µ) = (ê(µ), v )X , ∀v ∈ X
εN (µ)
∆N (µ) ≡ p (7)
αLB (µ)
Definition : Effectivity
∆N (µ)
ηN (µ) ≡ (8)
|||e(µ)|||µ
Remarks
• Rigorous : Left inequality ensures rigorous upper bound measured in
|| · ||X , i.e. ||e(µ)||X ≤ ∆N (µ), ∀µ ∈ Dµ
• Sharp : Right inequality states that ∆N (µ) overestimates the “true”
error by at most γ(µ)/αLB (µ)
where
∆N (µ)2
∆sN (µ) = (11)
αLB (µ)
Offline-Online decomposition
Denote ê(µ) ∈ X
such that
(ê(µ), v )X = −r (uN (µ), v ; µ), ∀v ∈ X
And recall that
Q X
X N
− r (uN (µ), v ; µ) = f (v ) − Θq (µ) uN n (µ) aq (ζn , v ), ∀v ∈ X
q=1 n=1
Offline-Online decomposition
• It follows next that ê(µ) ∈ X satisfies
Q X
X N
(ê(µ), v )X = f (v ) − Θq (µ) uN n (µ) aq (ζn , v ), ∀v ∈ X
q=1 n=1
where
• C ∈ X satisfies
(C, v ) = f (v ), ∀v ∈ X
• L ∈ X satisfies
Remark
In (12), ||ê(µ)||2X is the sum of products of
• parameter dependent (simple/known) functions and
• parameter independent inner-product,
the offline-online for the error bounds is now clear.
Offline :
• Solve for C and Lqn , 1 ≤ n ≤ N, 1 ≤ q ≤ Q
′
• Form and save (C, C)X , (C, Lqn )X and (Lqn , Lqn′ )X ,
1 ≤ n, n′ ≤ N, 1 ≤ q, q ′ ≤ Q
Online
• Given a new µ ∈ D µ
• Evaluate the sum ||ê(µ)||2X (12) in terms of Θq (µ) and uN n (µ)
• Complexity in O(Q 2 N 2 ) independent of N
Offline-Online Scenarii
Offline
Given a tolerance τ , build SN and WN s.t.
∀ µ ∈ P ≡ Dµ , ∆N (µ) < τ
Online
Given µ and a tolerance τ , find N ∗ and thus sN ∗ (µ) s.t.
or given µ and a max execution time T , find N ∗ and thus sN ∗ (µ) s.t.
Condition number
recall that the ζn are orthonormalized, this ensures that the condition
number will stay bounded by γ(µ)/α(µ)
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric RB Approx.
Non-Affine and/or Non-Linear Problems A Posteriori Error
Linear Parabolic Problems Sampling
Applications Inf-sup lower bound
References
Online Algorithm I
µ adaptive online
Online Algorithm II
Offline
• While i <= Imax >> 1
• Pick log-randomly µ ∈ D µ
• Store in table T , ∆N (µ) if worst case for N = 1, ..., N max
• i = i + 1 ; End While
Online Algorithm II
Offline
• While i <= Imax >> 1
• Pick log-randomly µ ∈ D µ
• Store in table T , ∆N (µ) if worst case for N = 1, ..., N max
• i = i + 1 ; End While
Online Algorithm II
Offline
• While i <= Imax >> 1
• Pick log-randomly µ ∈ D µ
• Store in table T , ∆N (µ) if worst case for N = 1, ..., N max
• i = i + 1 ; End While
Θq (µ)
∞ > Θmax,
a
µ̄
(µ) = max ≥ γ(µ)
q=1...Q Θq (µ̄)
Remark
γUB (µ) is actually not required in practice but relevant in the theory.
Remark
• Online cost to evaluate αLB (µ) : O(Qa )
• Choice of inner product important (u, v )X = a(u, v ; µ̄) (see multiple
inner products approach)
• Extends to non-symmetric problems by considering the symmetric
part
1
as (u, v ; µ) = (a(u, v ; µ) + a(v , u; µ))
2
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric RB Approx.
Non-Affine and/or Non-Linear Problems A Posteriori Error
Linear Parabolic Problems Sampling
Applications Inf-sup lower bound
References
Stability estimates
We wish to compute αLB : D → R such that
a(w , w ; µ)
αN (µ) = inf w ∈X N (14)
kw k2X
Computation of αN (µ)
αN (µ) is the minimum eigenvalue of the following generalized eigenvalue
problem
a(w , v ; µ) = λ(µ) m(w , v ; µ), (Aw = λBw ) (15)
where m(·, ·) is the bi-linear form associated with k · kX and B is the
associated matrix.
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric RB Approx.
Non-Affine and/or Non-Linear Problems A Posteriori Error
Linear Parabolic Problems Sampling
Applications Inf-sup lower bound
References
Reformulation
Hence we have
X aq (w , w )
αN (µ) = inf w ∈X N Q
a θq (µ)
q=1
kw k2X
and we note
Qa
X aq (w , w )
J obj (w ; µ) = θq (µ)
q=1
kw k2X
Reformulation
We have the following optimisation problem
where
Qa
X
obj
J (µ; y ) ≡ θq (µ)yq
q=1
and
n aq (w , w ) o
Y = y ∈ RQa | ∃w ∈ X N s.t. yq = , 1 ≤ q ≤ Qa
kw k2X N
First we set the design space for the minimisation problem (69). We
introduce
Qa h
Y aq (w , w ) aq (w , w ) i
B= inf w ∈X N ; sup w ∈X N
q=1
kw k2X kw k2X
n o
Ξ = µi ∈ D; i = 1, ..., J
and n o
CK = µi ∈ Ξ; i = 1, ..., K ⊂ Ξ
We now set
αLB (µ; CK ) = inf y ∈YLB(µ;CK ) J obj (µ; y )
Let n o
YUB (CK ) = y ∗ (µk ), 1 ≤ k ≤ K
with
y ∗ (µ) = argminy ∈Y J obj (µ; y )
We set
αUB (µ; CK ) = inf y ∈YUB (CK ) J obj (µ; y )
[CKmax ] = Greedy(Ξ, ǫ)
Given Ξ and ǫ ∈ [0; 1]
αUB (µ;CK )−αLB (µ;CK )
• While maxµ∈Ξ αUB (µ;CK ) >ǫ
• µK +1 = argmaxµ∈Ξ αUB (µ;C K )−αLB (µ;CK )
αUB (µ;CK )
• CK +1 = CK ∪ {µK +1 }
• K ←K +1
• set Kmax = K
Offline-Online
Offline
• 2Qa + Mα + M+ eigensolves αN (µ), y ∗ (µk )
• nΞ Kmax LP(Q, Mα , M+ ) to build CKmax
• Kmax Q inner products over X N ⇒ YUB
Let µ ∈ Dµ , evaluate
s N (µ) = ℓ(u N (µ)) ,
where u N (µ) ∈ X N ⊂ X satisfies
a(u N (µ), v ; µ) = f (v ), ∀ v ∈ XN .
We assume that a : X N × X N → R is
• coercive
a(v , v ; µ)
(0 <)α(µ) ≡ inf
v ∈X ||v ||2X
• Continuous
a(w , v ; µ)
γ(µ) ≡ sup sup (< ∞)
w ∈X v ∈X kw kX kv kX
• and enjoys affine parametric dependence
Qa
X
a(u, v ; µ) = Θqa (µ) aq (u, v ), ∀u, v ∈ X
q=1
Spaces
Parameter Samples :
with
S1 ⊂ S2 . . . SNmax ⊂ Dµ
Lagrangian Hierarchical Space
with
W1 ⊂ W2 . . . WNmax ⊂ X N ⊂ X
Galerkin Projection
Given µ ∈ Dµ evaluate
• RB Space XN = GramSchmidt(WN )
• Well posed problem (there exists a unique solution : coercivity,
continuity, linear independence)
and
|s(µ) − sN (µ)| ≤ C ||u(µ) − vN (µ)||X
Remember that q
γ(µ) γ(µ)
• symmetry : 1+ α(µ) ⇒ α(µ) ;
where
1
as (u, v ; µ) = (a(u, v ; µ) + a(v , u; µ))
2
We then apply either
• the “min Θ” approach if as is parametrically coercive
Θqas (µ)
αLB (µ) ≡ Θmin, µ̄
= min
as
q∈{1...Qas Θqas (µ̄)
that satisfies
Proposition
Given µ ∈ Dµ , the dual norm of r (uN (µ), ·; µ) is defined as follows
r (uN (µ), v ; µ)
||r (uN (µ), ·; µ)||X ′ ≡ sup
v ∈X ||v ||X
= ||ê(µ)||X
a(e(µ), v ; µ) = (ê(µ), v )X , ∀v ∈ X
kê(µ)kX
∆N (µ) ≡
αLB (µ)
Definition : Effectivity
∆N (µ)
ηN (µ) ≡
||e(µ)||X
Proposition
for N = 1...Nmax , the effectivity ηN (µ) verifies
γUB (µ)
1 ≤ ηN (µ) ≤ , ∀µ ∈ Dµ .
αLB (µ)
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems
Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric
RB Primal Only
Non-Affine and/or Non-Linear Problems
RB Primal-Dual
Linear Parabolic Problems
Inf-sup lower bound
Applications
References
s ∆sN (µ)
ηN (µ) ≡
|s(µ) − sN (µ)|
Proposition
for N = 1...Nmax , the error |s(µ) − sN (µ)| verifies
s kℓ(·, µ)kX ′
ηN (µ) ≥
γ(µ)ku(µ) − uN (µ)kX
from output error bound (taking ℓ = f ) and energy error bound.
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems
Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric
RB Primal Only
Non-Affine and/or Non-Linear Problems
RB Primal-Dual
Linear Parabolic Problems
Inf-sup lower bound
Applications
References
Sample : SN = {µ1 ∈ Dµ , . . . , µN ∈ Dµ } .
Sample : SNdudu = {µdu ∈ Dµ , . . . , µdu µ
N du ∈ D } .
Sampling strategies ?
Galerkin Projection
Given µ ∈ Dµ evaluate
a(uN (µ), v ; µ) = f (v ), ∀ v ∈ XN .
and
a(v , ΨN du (µ) ; µ) = −ℓ(v ; µ), ∀ v ∈ XNdudu .
Compliant case
Proposition
For any µ ∈ Dµ , we have
|s(µ) − sN (µ)| ≤ C inf ||u(µ) − vN (µ)||X ×
vN ∈XN
!
du
inf ||ψ(µ) − ψN (µ)||X
du ∈X du
vN N
Express sN (µ)
du
N
X N
X
sN (µ) = uN j (µ) ℓ(ζj ) − ΨN j (µ) f (ζjdu )
j=1 j=1
N du
N X
X Q
X
+ uN j (µ) ΨN j ′ (µ) Θq (µ) aq (ζj , ζjdu
′ )
j=1 j ′ =1 q=1
1 ≤ i ≤ N du
Adu
N du (µ) ΨN du (µ) = −LN
where
PQ
(AN )i j (µ) = q=1 Θq (µ) aq (ζi , ζj ), FN i = f (ζi ) .
1 ≤ i, j ≤ N 1≤i ≤N
and
PQ q q du du
(Adu
N du )i j (µ) = q=1 Θ (µ) a (ζi , ζj ), LN i = ℓ(ζidu ) .
1 ≤ i, j ≤ N du 1 ≤ i ≤ N du
Online : independent of N
• Given a new µ ∈ D µ
• Form and solve AN (µ) : O(QN 2 ) and O(N 3 )
2 3
• Form and solve AN du du (µ) : O(QN du ) and O(N du )
• Compute sN (µ)
Online : N, N du << N
Online we realize often orders of magnitude computational economies
relative to FEM in the context of manyReduced
C. Prud’homme µ-queries
Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems
Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric
RB Primal Only
Non-Affine and/or Non-Linear Problems
RB Primal-Dual
Linear Parabolic Problems
Inf-sup lower bound
Applications
References
that satisfies
εN (µ)
∆N (µ) ≡
αLB (µ)
Definition : Effectivity
∆N (µ)
ηN (µ) ≡
||e(µ)||X
γ(µ)
1 ≤ ηN (µ) ≤ , 1 ≤ N ≤ Nmax , ∀µ ∈ Dµ
αLB (µ)
Remarks
• Rigorous : Left inequality ensures rigorous upper bound measured in
|| · ||X , i.e. ||e(µ)||X ≤ ∆N (µ), ∀µ ∈ Dµ
• Sharp : Right inequality states that ∆N (µ) overestimates the “true”
error by at most γ(µ)/αLB (µ)
where
εdu
N (µ) || − ℓ(·) − a(·, ΨN du (µ); µ)||X ′
∆du
N (µ) ≡ ≡
αLB (µ) αLB (µ)
εdu
N (µ) is the dual norm of the residual.
such that
Recall that
Q X
X N
−g (uN (µ), v ; µ) = f (v )− Θq (µ) uN n (µ) aq (ζn , v ), ∀v ∈ X
q=1 n=1
(18)
• C ∈ Y satisfies
(C, v ) = f (v ), ∀v ∈ Y (21)
• L ∈ Y satisfies
(Lqn , v )Y = −aq (ζn , v ), ∀v ∈ Y , 1 ≤ n ≤ N, 1 ≤ q ≤ Q (22)
(22) are parameter independentReduced
C. Prud’homme Poisson problems
Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems
Notations, Definitions, Problem Statement, Example
Non Compliant/Non Symmetric
RB Primal Only
Non-Affine and/or Non-Linear Problems
RB Primal-Dual
Linear Parabolic Problems
Inf-sup lower bound
Applications
References
Remark
In (23), ||ê(µ)||2Y is the sum of products of
• parameter dependent (simple/known) functions and
• parameter independent inner-product,
the offline-online for the error bounds is now clear.
Offline :
• Solve for C and Lqn , 1 ≤ n ≤ N, 1 ≤ q ≤ Q
′
• Form and save (C, C)Y , (C, Lqn )Y and (Lqn , Lqn′ )Y ,
1 ≤ n, n′ ≤ N, 1 ≤ q, q ′ ≤ Q
Online
• Given a new µ ∈ D µ
• Evaluate the sum (23) in terms of Θq (µ) and uN n (µ)
• Complexity in O(Q 2 N 2 ) independent of N
Notations
• Set of parameters : µ ∈ D µ ⊂ Rp ,
• Solution of the nonlinear µ-PDE : u(µ) ∈ X ≡ H 1 (Ω ⊂ Rd ),
• PDE weak formulation : We look for u(µ) ∈ X such that
g (u(µ), v ; µ) = 0, ∀ v ∈ X .
Truth approximation
"Truth" FEM approximation
where
δ k u N (µ) = k+1 u N (µ) − k u N (µ).
We recover the linear case.
• Equate u(µ) and u N (µ), i.e.
Qg q Mg
X X
g (u(µ), v ; µ) ≈ gAD (u(µ), v ; µ) = βgqm (µ; u(µ)) g qm (v ) ,
q=1 m=1
σ(x; µ)
σ(u(µ); x; µ)
EIM : build σM ≈ σ
We wish to build the expansion
M
X
σM (u(µ); x; µ) = βm (µ) qm (x) ≈ σ(u(µ); x; µ)
m=1
R
The last term Ω β(µ)) qm (x) (independent of µ) can be
precomputed and hence it provides a very efficient method
• recover affine decomposition for bilinear/linear forms
Z Z
σ(x; µ)∇u · ∇v ≈ σM (x; µ)∇u · ∇v =
Ω Ω
M
X Z
βm (µ) qm (x)∇u · ∇v
m=1 Ω
a(u(µ), v ; µ) = f (v ; µ)∀v ∈ X
• Training set Ξµ
train ⊂ D
µ
• Offline step
• Sample SM = {µ1 ∈ Ξµ
train , ..., µM ∈ Ξtrain }, Interpolation points
µ
t1 , . . . , t M ∈ Ω
• Approximation space WM = span{q1 (x), . . . , qM (x)}
• Residual rm (x) = σ(u N (µm ), x, µm ) − σm (u N (µm ), x, µm )
• qm+1 (x) = rrm(t(x)) (matrix (Bi ,j ) = qj (ti ) lower triangular)
m m
M
X
σM (u N |N (µ); ti ; µ) = βm (u N |N (µ); µ) qm (ti ) = σ(u N |N (µ); ti ; µ)
m=1
∀i = 1, . . . , M
Qg q Mg
X X
k
gAD u(µ), v ; µ = βgqm (µ; k u(µ)) g qm (v ) ,
q=1 m=1
Qj q Mj
X X
k
jAD u(µ), v ; µ; u(µ) = βjqm (µ; k u(µ)) j qm (u(µ), v ) ,
q=1 m=1
and
Qℓ Xq Mℓ
X
ℓAD (v ; µ) = βℓqm (µ) ℓqm (v ) .
q=1 m=1
• a(·, ·; µ) and m(·, ·; µ) are bilinear, f (·; µ) and ℓ(·; µ) are linear
• f and ℓ are bounded
k
X ′ ′
w (t k ), v (t k ) = m(w (t k ), v (t k ); µ)+ aS (w (t k ), v (t k ); µ)∆t
µ
k ′ =1
q
v (t k ) = m(v (t k ), v (t k ); µ) + aS (v (t k ′ ), v (t k ′ ); µ)∆t
µ
v (t k ) = v (t k ) ∀v ∈ X , 1 ≤ k ≤ K
X µ̄
Spaces
Parameter Samples :
with
S1 ⊂ S2 . . . SNmax ⊂ Dµ
n o
Let Snap(µ) = u N (t k , µ), 1 ≤ k ≤ K a snapshot set with µ ∈ SN
n K
1 X o
2
WN = span ζn ≡ arg inf u N (t k , µ)−v X
, n = 1, . . . , N .
v ∈Snap(µ) K
k=1
with
W1 ⊂ W2 . . . WNmax ⊂ X N ⊂ X
Given µ ∈ Dµ we define
εN (t k ; µ) = r (uN (t k ; µ), v ; µ) X′
, 1 ≤ k ≤ K.
Let e(t k , µ) = u N (t k , µ) − uN (t k , µ) X
, we can write
v
u k
k k
u ∆t X
e(t , µ) ≤ ∆N (t , µ) ≡ t εN (t k ′ ; µ)2 , 1 ≤ k ≤ K .
αLB (µ) ′
k =1
s N (t k , µ) − sN (t k , µ) ≤ ∆sN (t k , µ) ≡ ∆N (t k , µ) ∆du k
N (t , µ).
HiFiMagnet project
High Field Magnet Modeling
Challenges
Electro-thermal model
• V : electrical potential • T : temperature
−∇ · (σ(T )∇V ) = 0 on Ω
−∇ · (k(T )∇T ) = σ(T )∇V · ∇V on Ω
Boundary conditions Non-linearity
• Applied potential Electrical conductivity
σ0
• V = 0 on Bottom σ(T ) =
• V = VTop on Top
1 + α(T − T0 )
• Water / Glue electrically isolant • σ0 = σ(ref = 20◦ C )
• −σ(T )∇V · n = 0 • T0 = 20◦ C
• No thermic exchange with air • α = temperature coeff.
• −k(T )∇T · n = 0
Thermal conductivity
• Thermic exchange (h) with
k(T ) = LT σ(T )
cooling water (Tw )
• −k(T )∇T · n = h(T − Tw ) • L = Lorentz number
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems
Non Compliant/Non Symmetric
Non-Affine and/or Non-Linear Problems HiFiMagnet
Linear Parabolic Problems
Applications
References
Outputs
s(µ) = ℓ(V (µ), T (µ))
Possibilities for ℓ :
• Mean temperature in the domain
• Magnetic field on specific point (Biot & Savart’s law)
• Power of the magnet
C. Prud’homme Reduced Basis methods: an introduction
Motivations and Framework
Linear Elliptic Problems
Non Compliant/Non Symmetric
Non-Affine and/or Non-Linear Problems HiFiMagnet
Linear Parabolic Problems
Applications
References
Variationnal formulation
∇ · (σ(T )∇V ) = 0 on ΩV
∇ · (k(T )∇T ) = σ(T )∇V · ∇V on ΩT
V = VD on DV −σ(T )∇T · n = 0 on NT
−σ(T )∇V · n = VN on NV −σ(T )∇T · n = TR1 T + TR2 on RT
Electrical Potential
Find V ∈ X ⊂ H1 (Ω) such that ∀ φV ∈ X :
γ
Z Z Z
σ(T )∇V · ∇φV − σ(T )(∇V · n)φV + σ(T )( V φV − (∇φV · n)V )
Ω DV DV hs
γ
Z
− σ(T )( VD φV − (∇φV · n)VD ) = 0
DV hs
Temperature
Find T ∈ X ⊂ H1 (Ω) such that ∀ φT ∈ X :
Z Z Z Z
k(T )∇T · ∇φT + TR1 T φT = σ(T )∇V · ∇V φT − TR2 φT
Ω RT Ω RT
Temperature
Z Z Z Z
k(T )∇T · ∇φT + TR1 T φT = σ(T )∇V · ∇V φT − TR2 φT
Ω RT Ω RT
Mk
X
k(T ) = σ(T )LT −→ k aff (T ) = βmk (µ)qmk (T )
mk =0
MJ
X
J(V , T ) = σ(T )∇V · ∇V −→ J aff (V , T ) = βmJ (µ)qmJ (V , T )
mJ =0
Affine decomposition
Qa Qf
X X
Θqa (µ)aq ((V , T ), (φV , φT )) = Θqf (µ)f q ((φV , φT ))
qa =1 qf =1
Mσ
X Z
βmσ (µ) qmσ (T )∇V · ∇φV
mσ =1 Ω
#
γ
Z
− qmσ (T ) (∇V · n)φV + V φV − (∇φV · n)V
DV hs
Mσ
γ
X Z
− βmσ (µ)VD qmσ (T ) φV − (∇φV · n)
mσ =1 DV hs
M
Xk Z Z
+ βm (µ) qm (T )∇T · ∇φT + TR1 T φT
k k
m =1 Ω RT
k
MJ Z Z
X
= βmJ (µ) qmJ (V , T )φT − TR2 φT
mJ =1 Ω RT
Performances
Simulation characteristics
• Number of dofs : ≈ 106
• 15 processors
• Number of dofs / proc : ≈ 67000
• Number of inputs : 6
• σ0 , α, L, U, h, Tw
• Non-Linear model (20 Picard iter.)
• Number od Reduced Basis : 10
• Error FEM / RB :
Perspectives
References