Optimal Control of Two-Phase Flow
Harald Garcke, Michael Hinze, Christian Kahle
RICAM special semester on Optimization WS1: New trends in PDE constrained optimization
14.10. – 18.10.2019
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 1/32
Optimal control of two-phase flow
Figure:without control
Figure:with control
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 2/32
Optimal control of two-phase flow
Figure:without control
Figure:with control
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 2/32
Outline
Setting
The time discrete setting The fully discrete setting Numerical examples
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 3/32
Outline
Setting
The time discrete setting The fully discrete setting Numerical examples
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 3/32
Diffuse interface approach
Setting: Two subdomainsΩ1andΩ2separated by unknown Γ. Assumption: Γof small thicknessO() >0and components are mixed
inside.
Representation: Continuous order parameterϕforΩ1andΩ2.
Ω1
Ω2 1
−1 ϕ
Γ
ϕ(x) =1⇔x∈Ω1
ϕ(x) = −1⇔x∈Ω2
−1<ϕ(x) <1⇔x∈Γ
−1 0
˜1 ρ2
˜ ρ1
Γ,O()
Ω2 Ω1
ϕ ρ2(x)
ρ1(x)
ϕ(x) =ρ1(x)
˜
ρ1 −ρ2(x)
˜ ρ2
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 4/32
Diffuse interface approach
Setting: Two subdomainsΩ1andΩ2separated by unknown Γ. Assumption: Γof small thicknessO() >0and components are mixed
inside.
Representation: Continuous order parameterϕforΩ1andΩ2.
Ω1
Ω2 1
−1 ϕ
Γ
ϕ(x) =1⇔x∈Ω1
ϕ(x) = −1⇔x∈Ω2
−1<ϕ(x) <1⇔x∈Γ
−1 0
˜1 ρ2
˜ ρ1
Γ,O()
Ω2 Ω1
ϕ ρ2(x)
ρ1(x)
ϕ(x) =ρ1(x)
˜
ρ1 −ρ2(x)
˜ ρ2
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 4/32
Diffuse interface approach
Setting: Two subdomainsΩ1andΩ2separated by unknown Γ. Assumption: Γof small thicknessO() >0and components are mixed
inside.
Representation: Continuous order parameterϕforΩ1andΩ2.
Ω1
Ω2 1
−1 ϕ
Γ
ϕ(x) =1⇔x∈Ω1
ϕ(x) = −1⇔x∈Ω2
−1<ϕ(x) <1⇔x∈Γ
−1 0
˜1 ρ2
˜ ρ1
Γ,O()
Ω2 Ω1
ϕ ρ2(x)
ρ1(x)
ϕ(x) =ρ1(x)
˜
ρ1 −ρ2(x)
˜ ρ2
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 4/32
The two-phase flow model
[Abels, Garcke, Grün, 2012]v velocity, ppressure,
ϕphase field variable,µchemical potential
ρ∂tv+ ((ρv+J) ⋅ ∇)v− div(2ηDv) + ∇p= −ϕ∇µ+ρg, divv=0,
∂tϕ+v⋅ ∇ϕ−div(m∇µ) =0,
−σ∆ϕ+σ−1W′(ϕ) =µ, where2Dv= ∇v+ (∇v)t, J= −ρ′(ϕ)m(ϕ)∇µ.
g gravity,
interfacial width, σ surface tension,
σ=cWσphy s,
ρ(ϕ) density, η(ϕ) viscosity, m(ϕ) mobility.
ϕ 1
−1 1
Ws
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 5/32
The free energy density W
logarithmic:
Wlog(ϕ) = θ2((1+ϕ)log(1+ϕ) + (1−ϕ)log(1−ϕ)) +θ2ϕ(1−ϕ2), polynomial: Wpoly(ϕ) = 14(1−ϕ2)2,
double-obstacle: W∞(ϕ) = 12(1−ϕ2)iff∣ϕ∣ ≤1, ∞else, relaxed double-obstacle:
Ws(ϕ) = 12(1− (ξϕ)2) +s2(max(0, ξϕ−1)2+min(0, ξϕ+1)2) +θ.
ϕ 1
−1 1
Wlog
ϕ 1
−1 1
Wpoly
ϕ 1
−1 1
W∞
∞
ϕ 1
−1 1
Ws
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 6/32
Functions depending on ϕ
ϕ ρ(ϕ) =
ρ1+ρ2
2 +ρ2−ρ2 1ϕ
η(ϕ) =
η1+η2
2 +η2−η2 1ϕ
W(ϕ)
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 7/32
The formal energy inequality
Theorem
Letv , ϕ, µdenote a sufficiently smooth solution (if exists) and let E(t) = ∫Ω1
2ρ(t)∣v(t)∣2dx+σ∫Ω
2∣∇ϕ(t)∣2+1
W(ϕ(t))dx denote the energy of the system. Letv∣∂Ω=0hold.
Then it holds d
dtE(t) = − ∫Ω2η(ϕ)∣Dv∣2dx− ∫Ωm(ϕ)∣∇µ∣2dx+ ∫Ωgv dx,
E(t2) + ∫t1t2∫Ωm(ϕ(s))∣∇µ(s)∣2dxds+ ∫t1t2∫Ω2η(ϕ(s))∣Dv(s)∣2dxds
=E(t1) + ∫t1t2∫Ωgv(s)dxds
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 8/32
Applied Controls
BuV =
∑si=V1fi(x)uV[i], fi∈L2(Ω)n
BuB=
∑si=B1gi(x)uB[i], gi∈H1/2(∂Ω)n
ϕ0= BuI=uI
uV ∈L2(0, T;RsV) =UV, uB∈L2(0, T;RsB) =UB,
uI∈ K ∶= {v∈H1(Ω) ∩L∞(Ω) ∣ ∣v∣ ≤1,(v ,1) =const} =UI, u= (uV, uB, uI) ∈U=UV ×UB×UI.
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 9/32
The two-phase flow model with controls
v velocity, ppressure,
ϕphase field variable,µchemical potential
ρ∂tv+ ((ρv+J) ⋅ ∇)v−div(2ηDv) + ∇p= −ϕ∇µ+ρg+BuV, divv=0,
∂tϕ+v⋅ ∇ϕ−div(m∇µ) =0,
−σ∆ϕ+σ−1W′(ϕ) =µ, where2Dv= ∇v+ (∇v)t,J= −ρ′(ϕ)m(ϕ)∇µ, v∣∂Ω=BuB,ϕ(0) =uI.
g gravity,
interfacial width, σ surface tension,
σ=cWσphy s,
ρ(ϕ) density, η(ϕ) viscosity, m(ϕ) mobility.
ϕ 1
−1 1
Ws
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 10/32
The optimal control problem
The optimal control problem ϕd: desired distribution, αV +αB+αI=1
minJ(uI, uV, uB, ϕ) ∶=1
2∥ϕ(T) −ϕd∥2 +α
2(αI∫Ω
2∣∇uI∣2+−1Wu(uI)dx αV∥uV∥2L2(0,T;RsV)+αB∥uB∥2L2(0,T;RsB)) s.t. two-phase fluid dynamics,
i.e. ϕ≡ϕ(uV, uB, uI)
(P)
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 11/32
Outline
Setting
The time discrete setting The fully discrete setting Numerical examples
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 11/32
A weak formulation
Abbreviate
a(u, v , w) ∶=1
2((u⋅ ∇)v , w) −1
2((u⋅ ∇)w , v) The model satisfies
∂tρ(ϕ) +div(ρ(ϕ)v+J) = −∇µ⋅ ∇ρ′(ϕ) Ifρ(ϕ)is linear (mass conservation)
ρ∂tv+ ((ρv+J) ⋅ ∇)v−div(2ηDv) =µ∇ϕ,
∂t(ρv) +div(ρv⊗v) +div(v⊗J) −div(2ηDv) =µ∇ϕ.
Then a weak formulation is 1
2(ρ∂tv+∂t(ρv), w) +a(ρv+J, v , w) +2(ηDv , Dw) = (µ∇ϕ, w) ∀w ∈Hσ
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 12/32
An energy stable time discretization
[Garcke, Hinze, K. 2016]u⋆k ∶= 1τ∫ttk−1k u⋆(t)dt,vk∣∂Ω= BuBk, ϕ0=uI
1
τ ∫Ω(ρk−1+ρk−2
2 vk−ρk−2vk−1)w dx +a(ρk−1vk−1+Jk−1, vk, w) + ∫Ω2ηk−1Dvk ∶Dwdx
+ ∫Ωϕk−1∇µk⋅w dx− ∫Ωρk−1g⋅w dx− ∫ΩBuVkw dx=0∀w ∈Hσ(Ω), 1
τ ∫Ω(ϕk−ϕk−1)Ψ dx− ∫Ωϕk−1vk⋅ ∇Ψdx
+ ∫Ωm∇µk⋅ ∇Ψdx=0∀Ψ∈H1(Ω), σ∫Ω∇ϕk⋅ ∇Φdx− ∫ΩµkΦdx
+σ
∫Ω((W+)′(ϕk) + (W−)′(ϕk−1))Φdx=0∀Φ∈H1(Ω). (CHNSτ)
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 13/32
Energy inequality
Theorem
Letk≥2,ϕk, µk, vk be a solution to (CHNSτ), anduB≡0.
Then the following energy inequality holds
1
2∫Ωρk−1∣vk∣2dx+σ∫Ω
2∣∇ϕk∣2+1
W(ϕk)dx +1
2∫Ωρk−2∣vk−vk−1∣2dx+σ
2 ∫Ω∣∇ϕk− ∇ϕk−1∣2dx +τ∫Ω2ηk−1∣Dvk∣2dx+τ∫Ωm∣∇µk∣2dx
≤ 1
2∫Ωρk−2∣vk−1∣2dx+σ∫Ω
2∣∇ϕk−1∣2+1
W(ϕk−1)dx + ∫Ωρk−1gvk dx+ ∫Ω(BuVk)vk dx
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 14/32
Existence of a unique solution
Theorem
LetΩdenote a polygonally / polyhedrally bounded Lipschitz domain.
Letvk−1∈Hσ(Ω), ϕk−2∈H1(Ω) ∩L∞(Ω), ϕk−1∈H1(Ω) ∩L∞(Ω), andµk−1∈W1,3(Ω)be given data. Further letBuVk ∈L2(Ω)n, BukB∈H12(∂Ω), BuI∈H1(Ω) ∩L∞(Ω)be given data.
Then there exists a weak solutionϕk∈H1(Ω) ∩C(Ω),µk ∈W1,3(Ω), vk ∈Hσ(Ω)to(CHNSτ).
Furthermore, it can be found by Newton’s method.
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 15/32
Initialization step
Fork=1we solve: v1∣∂Ω= Bu1B,ϕ0=uI
1
τ∫Ω(ρ1+ρ0
2 v1−ρ0v0)w dx+a(ρ1v0+J1, v1, w)
+ ∫Ω2η1Dv1∶Dwdx− ∫Ωµ1∇ϕ0w dx− ∫ΩBu1Vw dx− ∫Ωρ0g⋅w =0∀w ∈Hσ(Ω), 1
τ ∫Ω(ϕ1−ϕ0)Ψdx− ∫Ωϕ0v0⋅ ∇Ψdx
+ ∫Ωm∇µ1⋅ ∇Ψdx=0∀Ψ∈H1(Ω), σ∫Ω∇ϕ1⋅ ∇Φdx− ∫Ωµ1Φdx
+σ
∫Ω((W+)′(ϕ1) + (W−)′(ϕ0))Φdx=0∀Φ∈H1(Ω). (CHNSIτ)
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 16/32
Stability
Theorem
LetΩdenote a polygonally / polyhedrally boundedLipschitzdomain.
Letv0∈Hσ(Ω),(uI, uV, uB) ∈U be given. Then there exist sequences (vk)Kk=1∈Hσ(Ω)K,(ϕk)Kk=1∈ (H1(Ω) ∩C(Ω))K,(µk)Kk=1∈W1,3(Ω)K such that(vk, ϕk, µk)is the unique solution to (CHNSIτ)for k=1and to(CHNSτ)for k=2, . . . , K. Moreover there holds
∥(vk)Kk=1∥`∞(H1(Ω))≤C(v0, uI, uV, uB),
∥(ϕk)Kk=1∥`∞(H1(Ω)∩C(Ω))≤C(v0, uI, uV, uB),
∥(µk)Kk=1∥`∞(W1,3(Ω))≤C(v0, uI, uV, uB).
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 17/32
Stability in stronger norms
Theorem
LetΩbe polygonally / polyhedrally bounded andconvex or of classC1,1. Letv0∈Hσ(Ω) ∩L∞(Ω)n,(uI, uV, uB) ∈Ube given. Then there exist sequences(vk)Kk=1∈Hσ(Ω)K,(ϕk)Kk=1∈H2(Ω)K,(µk)Kk=1∈H2(Ω)K such that(vk, ϕk, µk)is the unique solution to (CHNSIτ)for k=1and to(CHNSτ)for k=2, . . . , K. Moreover there holds
∥(vk)Kk=1∥`∞(H1(Ω))≤C(v0, uI, uV, uB),
∥(ϕk)Kk=1∥`∞(H2(Ω))≤C(v0, uI, uV, uB),
∥(µk)Kk=1∥`∞(H2(Ω))≤C(v0, uI, uV, uB).
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 18/32
The optimal control problem
Theorem
LetΩbe polygonally / polyhedrally bounded andconvex or of classC1,1. The optimization problem
minJ(uI, uV, uB,(ϕk)Kk=1) ∶=1
2∥ϕK−ϕd∥2 +α
2(αI∫Ω
2∣∇uI∣2+−1Wu(uI)dx αV∥uV∥2L2(0,T;RsV)+αB∥uB∥2L2(0,T;RsB)) s.t. (CHNSIτ)and(CHNSτ)
(Pτ) has at least one solution and first order optimality conditions can be derived by Lagrangian calculus.
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 19/32
Outline
Setting
The time discrete setting The fully discrete setting Numerical examples
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 19/32
Finite element approximation
Thk triangulation ofΩat time instancetk,
V1k∶= {v∈C(Ω) ∣v∣T∈P1∀T ∈ Thk},
V2k∶= {v∈C(Ω)n∣v∣T ∈ (P2)n∀T ∈ Thk,(di v(v), q) =0∀q∈V1k},
Pk∶H1(Ω) →V1k prolongation, e.g. H1-prolongation.
ϕkh, µkh∈V1k, vhk ∈V2k
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 20/32
The fully discrete setting
u⋆k ∶= ⨏ttk−1k u⋆(t)dt,vhk∣∂Ω=Πh(BuBk), ϕ0h=uI
1
τ ∫Ω(ρkh−1+ρkh−2
2 vhk−ρkh−2vhk−1)w dx +a(ρkh−1vhk−1+Jhk−1, vhk, w) + ∫Ω2ηkh−1Dvhk ∶Dw dx
− ∫Ωµkh∇ϕkh−1w dx− ∫Ωρkh−1g⋅w dx− ∫Ω(BuVk)w dx=0∀w ∈V2k, 1
τ ∫Ω(ϕkh−Pkϕk−1h )Ψ dx+ ∫Ω(vhk⋅ ∇ϕkh−1)Ψ dx
+ ∫Ωm∇µkh⋅ ∇Ψ dx=0∀Ψ∈V1k, σ∫Ω∇ϕkh⋅ ∇Φdx− ∫ΩµkhΦdx
+σ
∫Ω((W+)′(ϕkh) + (W−)′(Pkϕk−h 1))Φdx=0∀Φ∈V1k. (CHNSh)
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 21/32
Energy inequality in the fully discrete setting
Theorem
Letk≥2,ϕkh, µkh, vhk be a solution to (CHNSh), anduB≡0.
Then the following energy inequality holds
1
2∫Ωρkh−1∣vhk∣2dx+σ∫Ω
2∣∇ϕkh∣2+1
W(ϕkh)dx +1
2∫Ωρkh−2∣vhk−vhk−1∣2dx+σ
2 ∫Ω∣∇ϕkh− ∇Pkϕk−1h∣2dx +τ∫Ω2ηhk−1∣Dvhk∣2dx+τ∫Ωm∣∇µkh∣2dx
≤ 1
2∫Ωρkh−2∣vhk−1∣2dx+σ∫Ω
2∣∇Pkϕkh−1∣2+1
W(Pkϕkh−1)dx + ∫Ωρkh−1gvhk dx+ ∫Ω(BuVk)vhk dx
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 22/32
Stability in the fully discrete setting
Theorem
LetΩbe polygonally / polyhedrally bounded andconvex.
Letv0∈Hσ(Ω) ∩L∞(Ω),u∈U be given. Then there exist sequences (vhk)Kk=1∈ (V2k)Kk=1,(ϕkh)Kk=1,(µkh)Kk=1∈ (V1k)Kk=1, such that(vhk, ϕkh, µkh)is the unique solution to(CHNSh)fork =1, . . . , K. Moreover it holds
∥(vhk)Kk=1∥`∞(H1(Ω))≤C(v0, uI, uV, uB),
∥(ϕkh)Kk=1∥`∞(W1,4(Ω))≤C(v0, uI, uV, uB),
∥(µkh)Kk=1∥`∞(W1,3(Ω))≤C(v0, uI, uV, uB).
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 23/32
The optimal control problem in the fully discrete setting
Theorem
The optimization problem minJ(uI, uV, uB,(ϕkh)Kk=1) ∶=1
2∥ϕKh −ϕd∥2 +α
2(αI∫Ω
2∣∇uI∣2+−1Wu(uI)dx αV∥uV∥2L2(0,T;RsV)+αB∥uB∥2L2(0,T;RsB)) s.t. (CHNSh)
(Ph) has at least one solution and first order optimality conditions can be derived by Lagrangian calculus.
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 24/32
The limit h → 0
Theorem
Let(uh⋆, vh⋆, ϕ⋆h, µ⋆h)denote a stationary point of (Ph). Then there exists a stationary point(u⋆, v⋆, ϕ⋆, µ⋆)of (Pτ), such that
u⋆V,h⇀uV⋆ ∈UV, uB,h⋆ ⇀uB⋆ ∈UB, ϕk,h⋆⇀ϕk,⋆∈W1,4(Ω),
uI,h⋆ →uI⋆∈H1(Ω), ϕk,h⋆→ϕk,⋆∈H1(Ω), µk,⋆h →µk,⋆∈W1,3(Ω), vhk,⋆→vk,⋆∈Hσ(Ω).
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 25/32
Outline
Setting
The time discrete setting The fully discrete setting Numerical examples
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 25/32
Validity of the energy inequality
10−2 10−1
10−0.5
100 E(t) O(t−1)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7
−4
−2 0 ⋅10−6
ζ
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 26/32
Rising Bubble, setup
Boundary control, setup from first [Hysing et al, 2009] Benchmark, ρ1=1000,ρ2=100,η1=10, η2=1,σ=15.6, T =1.0
Figure:left to right: ϕ0,ϕd, four Ansatzfunctions
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 27/32
Rising Bubble, results
0 0.2 0.4 0.6 0.8 1
0 5 10 15 20
time
∥u(t)∥
Strength of control
0 0.2 0.4 0.6 0.8 1
0.5 0.6 0.7 0.8
time Center of mass
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 28/32
Initial value identification
Optimization with a phase field as control works best with non-smooth free energy densities.
Wu(ϕ) =W∞(ϕ) =⎧⎪⎪
⎨⎪⎪⎩
1
2(1−ϕ2) if ∣ϕ∣ ≤1,
∞ else.
ϕ 1
−1 1
W∞
∞
Results in constraint minimization problem
uI∈H1(Ω)∩minL∞(Ω),∣uI∣≤1J(uI) Solved by VMPT [Blank, Rupprecht, SICON 2017].
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 29/32
Initial value problem, setup
Initial value control, setup from second [Hysing et al] Benchmark, ρ1=1000,ρ2=1, η1=10,η2=0.1,σ=1.96,T =1.0
Figure:left to right: ϕd,ϕ0=uI0= −0.8
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 30/32
Initial value problem, result
Figure:left to right: uIopt,ϕ(uIopt)at final time with zero level line ofϕd
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 31/32
Summary
Energy stable time discretization concept for two-phase flow time discrete
fully discrete
Time discrete optimal control of two-phase flow with three kinds of control actions
time discrete fully discrete
Convergence analysis for h→0.
Thank you for your attention. [email protected]
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 32/32
Summary
Energy stable time discretization concept for two-phase flow time discrete
fully discrete
Time discrete optimal control of two-phase flow with three kinds of control actions
time discrete fully discrete
Convergence analysis for h→0.
Thank you for your attention. [email protected]
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 32/32
Summary
Energy stable time discretization concept for two-phase flow time discrete
fully discrete
Time discrete optimal control of two-phase flow with three kinds of control actions
time discrete fully discrete
Convergence analysis for h→0.
Thank you for your attention. [email protected]
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 32/32
Summary
Energy stable time discretization concept for two-phase flow time discrete
fully discrete
Time discrete optimal control of two-phase flow with three kinds of control actions
time discrete fully discrete
Convergence analysis for h→0.
Thank you for your attention.
Christian Kahle Optimal Control of Two-Phase Flow 10/2019 32/32