Next Article in Journal
Two Models for 2D Deep Water Waves
Next Article in Special Issue
Note on the Early Thermoelastic Stage Preceding Rayleigh–Bénard Convection in Soft Materials
Previous Article in Journal
New Dimensionless Number for the Transition from Viscous to Turbulent Flow
Previous Article in Special Issue
On Mixed Convection in a Horizontal Channel, Viscous Dissipation and Flow Duality
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis and Computations of Optimal Control Problems for Boussinesq Equations

by
Andrea Chierici
1,*,†,
Valentina Giovacchini
2,*,† and
Sandro Manservisi
2,*,†
1
Department of Mathematics and Statistics, Texas Tech University, Lubbock, TX 79409, USA
2
Laboratory of Montecuccolino, Department of Industrial Engineering, University of Bologna, Via dei Colli 16, 40136 Bologna, Italy
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Fluids 2022, 7(6), 203; https://doi.org/10.3390/fluids7060203
Submission received: 12 May 2022 / Revised: 28 May 2022 / Accepted: 2 June 2022 / Published: 14 June 2022
(This article belongs to the Special Issue Convection in Fluid and Porous Media)

Abstract

:
The main purpose of engineering applications for fluid with natural and mixed convection is to control or enhance the flow motion and the heat transfer. In this paper, we use mathematical tools based on optimal control theory to show the possibility of systematically controlling natural and mixed convection flows. We consider different control mechanisms such as distributed, Dirichlet, and Neumann boundary controls. We introduce mathematical tools such as functional spaces and their norms together with bilinear and trilinear forms that are used to express the weak formulation of the partial differential equations. For each of the three different control mechanisms, we aim to study the optimal control problem from a mathematical and numerical point of view. To do so, we present the weak form of the boundary value problem in order to assure the existence of solutions. We state the optimization problem using the method of Lagrange multipliers. In this paper, we show and compare the numerical results obtained by considering these different control mechanisms with different objectives.

1. Introduction

The optimization of complex systems in engineering is a crucial aspect that encourages and promotes research in the optimal control field. Optimization problems have three main ingredients: objectives, controls, and constraints. The first ingredient is the objective of interest in engineering applications, namely, flow matching, drag minimization, and enhancing or reducing turbulence. A quadratic functional minimization usually defines this objective. The controls can be chosen for large classes of design parameters. Examples are boundary controls such as injection or suction of fluid [1] and heating or cooling temperature controls [2,3,4], distributed controls such as heat sources or magnetic fields [5], and shape controls such as geometric domains [6]. Finally, a specific set of partial differential equations for the state variables defines the constraints. A typical optimization problem consists of finding state and control variables that minimize the objective functional and satisfy the imposed constraints [7]. In [7], the interested reader can find time-dependent and stochastic (input data polluted by random noise) analyses of optimal control theory that broaden the perspective of this work, here limited to stationary equations. Of course, the stochastic and optimal control time-dependent approach requires larger computational resources that severely limit real-life applications.
In this paper, we focus on engineering applications where fluid natural convection plays a main role. In these cases, buoyancy forces have a strong influence on the flow. Applications for natural convection optimal design are crucial in many contexts, ranging from semiconductor production processes, where buoyancy forces can control the crystal growth, to thermal hydraulics of lead-cooled fast reactors (LFR), where emergency cooling is guaranteed by natural convection. In the design of engineering devices such as heat exchangers, nuclear cores, and primary or secondary circuit pipes, optimization techniques can be used to achieve specified objectives such as desired wall temperatures or wall-normal heat fluxes, target mean temperatures, velocity profiles, or turbulence enhancements/reductions. The thermodynamic properties of lead allow a high level of natural circulation cooling in the primary system of an LFR. For core cooling, LFR design enhances strong natural circulation during plant operations and shutdown conditions [8]. Within this framework, we aim to study optimal control problems for mixed and natural convection.
In the past few years, the mathematical analysis of the optimal control of Navier–Stokes and energy equations has made considerable progress. The optimization of the heat transfer in forced convection flows can be found in many studies, mainly where the coupling between the Navier–Stokes and energy equations ignores density variations (see for example [2,4] and citations therein). In the case of natural or mixed convection flows, several authors have studied the mathematical analysis of the optimal control for the Oberbeck–Boussinesq system, focusing on stationary distributed and boundary thermal controls (see for example [3,5,9,10,11,12]). The solvability of the stationary boundary control problem for the Boussinesq equation is studied in [13,14], considering as boundary controls the velocity, the temperature, and the heat flux. Recently, new approaches to the study of the optimal control of Boussinesq equations have been proposed [15,16,17]. In [15], the solvability of an optimal control problem for steady non-isothermal incompressible creeping flows was proven. The temperature and the pressure in a flat portion of the local Lipschitz boundary played the role of controls. In [16], the optimal Neumann control problem for non-isothermal steady flows in low-concentration aqueous polymer solutions was considered, and sufficient conditions for the existence of optimal solutions were established. The problem of the optimal start control for unsteady Boussinesq equations was investigated in [17] to prove their solvability.
The main aim of this paper is to show the possibility of systematically controlling natural and mixed convection flows using mathematical tools based on optimal control theory. We consider three different control mechanisms: distributed, Dirichlet, and Neumann boundary controls. The solvability of the stationary optimal control problem for the Boussinesq equations has already been widely investigated in previous studies, considering as controls the forces and heat sources acting on the domain, together with the velocity, pressure, heat flux, and temperature on a portion of the boundary [3,5,9,10,11,12,13,14,15,16,17]. However, only a few studies show the numerical results of the optimal control problem for the Boussinesq equation and consider only a single control mechanism [2,11,14]. Thus, while the theoretical analysis of these control problems has been widely presented in previous studies, the implementation through an efficient numerical algorithm in a finite element code of the obtained optimality systems represents the novelty of this work. This paper aims to review the main thermal control mechanisms, showing and comparing the numerical results obtained for the different control mechanisms, objectives, and penalization parameters.
In Section 2, we first introduce the required mathematical tools such as functional spaces and their norms together with bilinear and trilinear forms that are used to express the weak formulation of the partial differential equations. In Section 3, the general forms of the optimal control problem and of the objective functional are presented. For each of the three different control mechanisms, we aim to study the optimal control problem from a mathematical point of view. To do so, we present the weak form of the boundary value problem, in order to prove the existence of solutions. We state the optimization problem and the existence of its solution using the method of Lagrange multipliers. Moreover, we present a numerical algorithm for each control type, in order to successfully solve the optimization system arising from the optimization problem. Numerical results are then presented in Section 4, considering the three thermal control mechanisms with different objectives for the temperature and velocity fields. The importance of the choice of the penalization parameter λ is taken into account, and the results are discussed for different values of the penalization parameter.

2. Notation

We use the standard notation H s ( O ) for a Sobolev space of order s with respect to the set O , which can be the flow domain Ω R n , with n = 2 , 3 , or its boundary Γ . We remark that H 0 ( O ) = L 2 ( O ) . Corresponding Sobolev spaces of vector-valued functions are denoted by H s ( O ) . In particular, we denote the space H 1 ( Ω ) by { v i L 2 ( Ω ) | v i / x j L 2 ( Ω ) for i , j = 1 , , n } and the subspace H Γ j 1 ( Ω ) by v H 1 ( Ω ) | v = 0 on Γ j , where Γ j is a subset of Γ . In addition, we write H 0 1 ( Ω ) = H Γ 1 ( Ω ) . The dual space of H Γ s 1 ( Ω ) is denoted by H Γ s 1 * ( Ω ) . In particular, the dual spaces of H 1 ( Ω ) and H 0 1 ( Ω ) are H 1 * ( Ω ) and H 1 ( Ω ) , respectively. We define the space of square integrable functions having zero mean over Ω as
L 0 2 ( Ω ) = q L 2 ( Ω ) | Ω q d x = 0 ,
and the solenoidal spaces as
V = { v H 1 ( Ω ) | · v = 0 } , V 0 = { v H 0 1 ( Ω ) | · v = 0 } .
The norms of the functions belonging to H m ( O ) are denoted by · m , O . For ( f g ) L 1 ( O ) and ( u · v ) L 1 ( O ) , we define the scalar product as
( f , g ) O = O f g d x , ( u , v ) O = O u · v d x .
Whenever possible, we will neglect the domain label. Thus, the inner product in L 2 ( Ω ) and L 2 ( Ω ) are both denoted by ( · , · ) . This notation will also be employed to denote pairings between Sobolev spaces and their duals.
For the description of the Boussinesq system, we use the bilinear forms
a ( u , v ) = Ω u : v d x u , v H 1 ( Ω ) ,
a ( T , θ ) = Ω T · θ d x T , θ H 1 ( Ω ) ,
b ( u , q ) = Ω q · u d x q L 0 2 ( Ω ) , u H 1 ( Ω ) ,
and the trilinear forms
c ( w , u , v ) = Ω w · u · v d x w , u , v H 1 ( Ω ) ,
c ( w , T , θ ) = Ω w · T θ d x w H 1 ( Ω ) , T , θ H 1 ( Ω ) .
These forms are continuous [18]. Note that, for all u V , v H 1 ( Ω ) and T H 1 ( Ω ) , we have c ( u , v , v ) = 0 and c ( u , T , T ) = 0 .

3. Optimal Control of Boussinesq Equations

In this paper, we study optimal control problems for stationary incompressible flows in mixed or natural convection regimes. In these engineering applications, the dependence on the temperature field cannot be neglected in the Navier–Stokes equation. Thus, the temperature and velocity fields are mutually dependent through buoyancy forces and advection. These flows are defined by the following Boussinesq equations:
· u = 0 in Ω ,
u · u + p ν Δ u = f β g T in Ω ,
u · T α Δ T = Q in Ω ,
where Ω is a bounded open set in R d , d = 2 or 3 with smoothing as necessary at boundary Γ . The operator Δ defines the Laplace operator · = 2 = Δ . In (6)–(8), u , p, and T denote the velocity, pressure, and temperature fields, while f is a body force, Q is a heat source, and g is the gravitational acceleration. The fluid thermal diffusivity, kinematic viscosity, and coefficient of expansion are defined by α , ν , and β , respectively. The system (6)–(8) is closed, with appropriate boundary conditions on Ω . For the velocity, we set Dirichlet boundary conditions, while for the temperature field we consider a mixed boundary condition defined as
u = w on Ω , T = g t on Γ d , α T · n = g t , n on Γ n .
We denote by Γ d and Γ n the boundaries where Dirichlet and Neumann boundary conditions are applied, with Γ d Γ n = Γ = Ω .
We formulate this control problem as a constrained minimization of the following objective functional:
T ( u , T ) = α u 2 Ω d | u u d | 2 d x + α T 2 Ω d | T T d | 2 d x ,
subject to the Boussinesq Equations (6)–(8) imposed as constraints. In (10), the functions u d and T d are the given desired velocity and temperature distributions. The terms in the functional (10) measure the L 2 ( Ω ) distance between the velocity u and the target field u d and/or between the temperature T and the target field T d . The non-negative penalty parameters α u and α T can be used to change the relative importance of the terms appearing in the definition of the functional. If α u = 0 , we have as the objective a temperature matching case; if α T = 0 , we consider a velocity matching case.
The control can be a volumetric heat source, a boundary temperature, or a heat flux. In all these cases, the control has to be limited to avoid unbounded solutions. To do so, we can add a constraint limiting the value of the admissible control, or we can penalize the objective functional T by adding a regularization term. With this second approach, we do not need to impose any a priori constraints on the size of the control. Let c be the control belonging to a Hilbert space H s ( O ) . We can then define a cost functional
J ( u , T , c ) = α u 2 Ω d | u u d | 2 d x + α T 2 Ω d | T T d | 2 d x + λ | | c | | H s ( O ) ,
where the last term contains the H s ( O ) -norm of the control c penalized with a parameter λ . The value of the parameter λ is used to change the relative importance of the objective and cost terms.

3.1. Dirichlet Boundary Control

In a Dirichlet boundary control problem, we aim to control the fluid state acting on the temperature on a portion of the boundary Γ c Γ d . The boundary condition reported in (9) can be written in this case as
u = w on Ω , T = g t on Γ i , T = g t + T c on Γ c , α T · n = g t , n on Γ n ,
where Γ i = Γ d Γ c . In (12), g t , g t , n , and w are given functions, while T c is the control. Thus, Γ c and Γ i denote the portions of Γ d where temperature control is and is not applied, respectively. By considering Equation (11) with s = 1 , the cost functional is given as follows:
J ( u , T , T c ) = α u 2 Ω d | u u d | 2 d x + α T 2 Ω d | T T d | 2 d x + λ 2 Γ c ( | T c | 2 + | s T c | 2 ) d x ,
where s denotes the surface gradient operator, i.e., s f : = f n ( n · f ) . The cost contribution measures the H 1 ( Γ c ) -norm of the control T c .

3.1.1. Weak Formulation and Lagrange Multiplier Approach

The weak form of the boundary value problem (6)–(8) and (12) is given as follows: find ( u , p , T ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) such that
ν a ( u , v ) + c ( u , u , v ) + b ( v , p ) = ( f , v ) β ( g T , v ) v H 0 1 ( Ω ) , b ( u , q ) = 0 q L 0 2 ( Ω ) , α a ( T , φ ) + c ( u , T , φ ) = ( Q , φ ) + ( g t , n , φ ) Γ n φ H Γ d 1 ( Ω ) , ( T , s T ) Γ d = ( g t , s T ) Γ d + ( T c , s T ) Γ c s T H 1 / 2 ( Γ d ) .
The existence of the solution of the system (14) has been proved in [3]. Note that the normal heat flux on Γ d can be computed from T as
q n = α T · n | Γ d .
Now, we state the optimal control problem. We look for a ( u , p , T , T c ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × H 0 1 ( Γ c ) such that the cost functional (13) is minimized subject to the constraints (14). The admissible set of states and controls is
U a d = { ( u , p , T , T c ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × H 0 1 ( Γ c ) : J ( u , T , T c ) < and ( 14 ) is satified . }
Then, ( u ^ , p ^ , T ^ , T ^ c ) U a d is called an optimal solution if there exists ε > 0 such that
J ( u ^ , p ^ , T ^ , T ^ c , ) J ( u , p , T , T c ) ( u , p , T , T c ) U a d satisfying u u ^ 1 + p p ^ 0 + T T ^ 1 + T c T ^ c 1 , Γ c < ε
The existence of at least one optimal solution ( u ^ , p ^ , T ^ , T ^ c ) U a d was proven in [3].
We use the method of Lagrange multipliers to turn the constrained optimization problem (16) into an unconstrained one. We first show that suitable Lagrange multipliers exist. We summarize all the equations and the functional in two mappings and study their differential properties. It is convenient to define the following functional spaces:
B 1 = H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × H 0 1 ( Γ c ) × H 1 2 ( Γ d ) ,
B 2 = H 1 ( Ω ) × L 0 2 ( Ω ) × H Γ i 1 * ( Ω ) × H 1 2 ( Γ d ) ,
B 3 = H 0 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × H 0 1 ( Γ c ) × H 1 2 ( Γ d ) .
Let M : B 1 B 2 denote the generalized constraint equations, namely, M ( z ) = l for z = ( u , p , T , T c , q n ) B 1 and l = ( l 1 , l 2 , l 3 , l 4 ) B 2 if and only if
ν a ( u , v ) + c ( u , u , v ) + b ( v , p ) ( f , v ) + β ( g T , v ) = ( l 1 , v ) v H 0 1 ( Ω ) , b ( u , q ) = ( l 2 , q ) q L 0 2 ( Ω ) , α a ( T , φ ) + c ( u , T , φ ) ( Q , φ ) ( g t , n , φ ) Γ n ( q n , φ ) Γ c = ( l 3 , φ ) φ H Γ i 1 ( Ω ) , ( T , s T ) Γ d ( g t , s T ) Γ d ( T c , s T ) Γ c = ( l 4 , s T ) Γ d s T H 1 / 2 ( Γ d ) .
Thus, the constraint (14) can be expressed as M ( z ) = 0 . Let ( u ^ , p ^ , T ^ , T ^ c ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × H 0 1 ( Γ c ) denote an optimal solution in the sense of (17). Then, consider the nonlinear operator N : B 1 R × B 2 defined by
N ( u , p , T , T c , q n ) = J ( u , T , T c ) J ( u ^ , T ^ , T ^ c ) M ( u , p , T , T c , q n ) .
Given z = ( u , p , T , T c , q n ) B 1 , the operator M ( z ) : B 3 B 2 may be defined as M ( z ) · z ˜ = l ˜ for z ˜ = ( u ˜ , p ˜ , T ˜ , T ˜ c , q ˜ n ) B 3 and l ˜ = ( l ˜ 1 , l ˜ 2 , l ˜ 3 , l ˜ 4 ) B 2 if and only if
ν a ( u ˜ , v ) + c ( u ˜ , u , v ) + c ( u , u ˜ , v ) + b ( v , p ˜ ) + β ( g T ˜ , v ) = ( l ˜ 1 , v ) v H 0 1 ( Ω ) , b ( u ˜ , q ) = ( l ˜ 2 , q ) q L 0 2 ( Ω ) , α a ( T ˜ , φ ) + c ( u ˜ , T , φ ) + c ( u , T ˜ , φ ) ( q ˜ n , φ ) Γ c = ( l ˜ 3 , φ ) φ H Γ i 1 ( Ω ) , ( T ˜ , s T ) Γ d ( T ˜ c , s T ) Γ c = ( l ˜ 4 , s T ) Γ d s T H 1 / 2 ( Γ d ) .
The operator N ( z ) : B 3 R × B 2 may be defined as N ( z ) · z ˜ = ( a ˜ , l ˜ ) for a ˜ R if and only if
α u ( u u d , u ˜ ) Ω d + α T ( T T d , T ˜ ) Ω d + λ ( T c , T ˜ c ) Γ c + + λ ( s T c , s T ˜ c ) Γ c = a ˜ ν a ( u ˜ , v ) + c ( u ˜ , u , v ) + c ( u , u ˜ , v ) + b ( v , p ˜ ) + β ( g T ˜ , v ) = ( l ˜ 1 , v ) v H 0 1 ( Ω ) , b ( u ˜ , q ) = ( l ˜ 2 , q ) q L 0 2 ( Ω ) , α a ( T ˜ , φ ) + c ( u ˜ , T , φ ) + c ( u , T ˜ , φ ) ( q ˜ n , φ ) Γ c = ( l ˜ 3 , φ ) φ H Γ i 1 ( Ω ) , ( T ˜ , s T ) Γ d ( T ˜ c , s T ) Γ c = ( l ˜ 4 , s T ) Γ d s T H 1 / 2 ( Γ d ) .
The differential operator M is characterized by non-coercive elliptic equations. The advection terms in these equations are driven by the velocity field u H 1 ( Ω ) . Thus, the existence result for this class of equations is not trivial and cannot be obtained in the Lax–Milgram setting. However, by using a Leray–Schauder topological degree argument, we can introduce the following statements.
Let Ω R n be a bounded open subset with boundary Γ . Let Γ d Γ be a set with positive measure and Γ n Γ Γ d . Consider
· ( A T y ) + ( u · ) y + b y = f in Ω , y = y 1 on Γ d , A T y · n = y n on Γ n ,
with b L n * / 2 ( Ω ) , b 0 a.e. on Ω , u L n * ( Ω ) , and f H Γ D 1 * ( Ω ) , where n * = n when n 3 , n * ] 2 , [ when n = 2 . Based on the Leray–Schauder topological degree argument in [19], if A is a function which satisfies these two properties and:
  • α A > 0 such that A ( x ) ξ · ξ α A | ξ | 2 for a.e. x Ω and for all ξ R n ;
  • Λ A > 0 such that | A ( x ) | Λ A for a.e. x Ω ;
then, there exists a unique solution y H 1 ( Ω ) of (24).
Furthermore, let z 0 B 1 . Then we have that the operator M ( z 0 ) has closed range in B 2 and the operator N ( z 0 ) has closed range but is not in R × B 2 . This allows us to find the Lagrange multipliers and the final optimality system. Let z ^ = ( u ^ , p ^ , T ^ , T ^ c , q ^ n ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × H 0 1 ( Γ c ) × H 1 / 2 ( Γ c ) denote an optimal solution in the sense of (17). Then, there exists a nonzero Lagrange multiplier ( Λ , u ^ a , p ^ a , T ^ a , q ^ a ) R × B 2 * satisfying the Euler equations
Λ J ( u ^ , T ^ , T ^ c ) · z ˜ + ( u ^ a , p ^ a , T ^ a , q ^ a ) , M ( z ^ ) · z ˜ = 0 , z ˜ B 3 ,
where · , · denotes the duality pairing between B 2 and B 2 * . For details on all the theoretical procedure regarding the existence of the Lagrange multipliers, the interested reader can consult [20].

3.1.2. The Optimality System

Now, we derive the optimality system using (25), and we drop the ( · ^ ) notation for the optimal solution. The Euler Equation (25) are equivalent to
α u Λ ( u u d , u ˜ ) Ω d + α T Λ ( T T d , T ˜ ) Ω d + Λ λ ( T c , T ˜ c ) Γ c + Λ λ ( s T c , s T ˜ c ) Γ c + + b ( u ˜ , p a ) + ν a ( u ˜ , u a ) + c ( u ˜ , u , u a ) + b ( u a , p ˜ ) + c ( u , u ˜ , u a ) + β ( g T ˜ , u a ) + + α a ( T ˜ , T a ) + c ( u ˜ , T , T a ) + c ( u , T ˜ , T a ) ( q ˜ n , T a ) Γ c + ( T ˜ , q a ) Γ d ( T ˜ c , q a ) Γ c = 0 .
By extracting the terms involved in the same variation and setting Λ = 1 , we obtain the following equations:
ν a ( u ˜ , u a ) + c ( u , u ˜ , u a ) + c ( u ˜ , u , u a ) + b ( u ˜ , p a ) = = α u ( u u d , u ˜ ) Ω d c ( u ˜ ; T , T a ) u ˜ H 0 1 ( Ω ) , b ( u a , p ˜ ) = 0 p ˜ L 0 2 ( Ω ) , α a ( T ˜ , T a ) + c ( u , T ˜ , T a ) + ( T ˜ , q a ) Γ c = = ( β g T ˜ , u a ) + α T ( T T d , T ˜ ) Ω d T ˜ H Γ i 1 ( Ω ) , ( T a , q ˜ n ) Γ c = 0 , q ˜ n H 1 / 2 ( Γ c ) ,
and the control equation
λ ( T c , T ˜ c ) Γ c + λ ( s T c , s T ˜ c ) Γ c + ( q a , T ˜ c ) Γ c = 0 T ˜ c H 0 1 ( Γ c ) ,
with q a = α T a · n | Γ c on Γ c . The necessary conditions for an optimum are that Equations (14) and (27) are satisfied. This system of equations is called the optimality system. By applying integration by parts, it is easy to show that the system constitutes a weak formulation of the boundary value problem for the state equations
u · u + p ν Δ u = f β g T , · u = 0 , u · T α Δ T = Q , u = w on Γ , α T · n | Γ n = g t , n on Γ n , T = g t on Γ i , T = g t + T c on Γ c ,
the adjoint equations
u a · ( u ) T u · u a + p a ν Δ u a = T T a + α u ( u u d ) , · u a = 0 , α Δ T a u · T a = β g · u a + α T ( T T d ) , u a = 0 on Γ , T a · n | Γ n = 0 on Γ n , T a = 0 on Γ d ,
and the control equation
Δ s T c + T c α T a · n | Γ c λ = 0 on Γ c , T c = 0 on Γ c ,
where Δ s denotes the surface Laplacian. The optimality system in the strong form consists of the Boussinesq system (29), the adjoint of the Boussinesq Equation (30), and the control Equation (31).

3.1.3. Numerical Algorithm

The optimality system consists of three groups of equations: the state Equation (14), the adjoint state Equation (27), and the optimality conditions for T c (28). Due to the nonlinearity and large dimension of this system, a one-shot solver cannot be implemented. We may construct an iterative method to iterate among the three groups of equations so that at each iteration we are dealing with a smaller-sized system of equations. We consider a gradient method for the solution of the optimality problem, and the gradient of the functional is determined with the help of the solution of the adjoint system.
Let us consider the gradient method for the following minimization problem: find T c H 0 1 ( Γ c ) such that F ( T c ) : = J ( u ( T c ) , T ( T c ) , T c ) is minimized. Given T c ( 0 ) , we can define the sequence
T c ( n + 1 ) = T c ( n ) ρ ( n ) d F ( T c ( n ) ) d T c ( n ) ,
recursively, where ρ ( n ) is a variable step size. Let T ^ c be a solution of the minimization problem. Thus, the following necessary condition holds
d F ( T ^ c ) d T ^ c = d J ( u ( T ^ c ) , T ( T ^ c ) , T ^ c ) d T ^ c = 0 ,
and at the optimum state the equality T c ( n + 1 ) = T c ( n ) holds. For each fixed T c , the Gâteaux derivative ( d F ( T c ) / d T c ) · T ˜ c for every direction T ˜ c H 1 ( Γ c ) may be computed as
d F ( T c ) d T c · T ˜ c = λ ( s T c , s T ˜ c ) Γ c + λ ( T c , T ˜ c ) Γ c + ( T ˜ c , q a ) Γ c ,
or
d F ( T c ) d T c = λ Δ s T c + λ T c + q a .
Therefore, by combining (32) and (35), we implemented the following optimization algorithm.
(a)
Initial step:
  • choose tolerance τ and T c ( 0 ) ; set n = 0 and ρ ( 0 ) = 1 ;
  • solve for ( u ( 0 ) , p ( 0 ) , T ( 0 ) ) from (14) with T c = T c ( 0 ) ;
  • evaluate J ( 0 ) = J ( u ( 0 ) , T ( 0 ) , T c ( 0 ) ) using (13).
(b)
Main loop:
  • set n = n + 1 ;
  • solve for ( u a ( n ) , p a ( n ) , T a ( n ) ) from (27);
  • solve for T c ( n ) from
    T c ( n ) = T c ( n 1 ) ρ ( n ) Δ s T c ( n 1 ) + T c ( n 1 ) + α λ T a ( n ) · n | Γ c ,
    or
    Δ s T c ( n ) + T c ( n ) = Δ s T c ( n 1 ) + T c ( n 1 ) ρ ( n ) ( Δ s T c ( n 1 ) + T c ( n 1 ) + + α λ T a ( n ) · n | Γ c ) ;
  • solve for ( u ( n ) , p ( n ) , T ( n ) ) from (14) with T c = T c ( n ) ;
  • evaluate J ( n ) = J ( u ( n ) , T ( n ) , T c ( n ) ) using (13);
    (i)
    if J ( n ) > J ( n 1 ) , set ρ ( n ) = 0.5 ρ ( n ) and go to step (b) 3.;
    (ii)
    if J ( n ) < J ( n 1 ) , set ρ ( n + 1 ) = 1 and go to step (b) 1.;
    (iii)
    if | J ( n ) J ( n 1 ) | / | J ( n ) | < τ stop.
In this algorithm, we propose two different methods, given by (36) and (37), for the control update. With the method in (37), we enforce the belonging of T c to H 0 1 ( Γ c ) and we give more regularity to the control. The convergence of the algorithm was proven in [3]. The finite element discretization of the optimality system and an estimation of the approximation error were analyzed in [11].

3.2. Neumann Boundary Control

In a Neumann boundary control problem, we aim to control the state by acting on the heat flux on a portion of the boundary Γ c Γ n . The general boundary conditions reported in (9) can be written in this case as
u = w on Ω , T = g t on Γ d , α T · n = g t , n on Γ i , α T · n = h on Γ c ,
where Γ i = Γ n Γ c . In (12), g t , g t , n , and w are given functions, while h is the control. Thus, Γ i and Γ c denote the portions of Γ n where the control is applied or not, respectively.
The cost functional is given as follows:
J ( u , T , h ) = α u 2 Ω d | u u d | 2 d x + α T 2 Ω d | T T d | 2 d x + λ 2 Γ c | h | 2 d x .
The cost contribution measures the L 2 ( Γ c ) -norm of the control h.

3.2.1. Weak Formulation and Lagrange Multiplier Approach

The weak form of the boundary value problem (6)–(8) and (38) is given as follows: find ( u , p , T ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) such that
ν a ( u , v ) + c ( u , u , v ) + b ( v , p ) = ( f , v ) β ( g T , v ) v H 0 1 ( Ω ) , b ( u , q ) = 0 q L 0 2 ( Ω ) , α a ( T , φ ) + c ( u , T , φ ) = ( Q , φ ) + ( g t , n , φ ) Γ i + ( h , φ ) Γ c φ H Γ d 1 ( Ω ) .
The existence of the solution of the system (40) was proved in [9] (see Preposition 2.3).
Now, we state the optimal control problem: we look for a ( u , p , T , h ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Γ c ) such that the cost functional (39) is minimized subject to the constraints (40). The admissible set of states and controls is
U a d = { ( u , p , T , h ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Γ c ) : J ( u , T , h ) < and ( 40 ) is satified . }
Then, ( u ^ , p ^ , T ^ , h ^ ) U a d is called an optimal solution if there exists ε > 0 such that
J ( u ^ , p ^ , T ^ , h ^ ) J ( u , p , T , h ) ( u , p , T , h ) U a d satisfying u u ^ 1 + p p ^ 0 + T T ^ 1 + h h ^ 0 , Γ c < ε .
The existence of at least one optimal solution ( u ^ , p ^ , T ^ , h ^ ) U a d was proved in [9].
In addition, for the Neumann control, we consider all the constraint equations and the functional to study their differential properties. We define the following functional spaces:
B 1 = H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Γ c ) ,
B 2 = H 1 ( Ω ) × L 0 2 ( Ω ) × H Γ d 1 * ( Ω ) ,
B 3 = H 0 1 ( Ω ) × L 0 2 ( Ω ) × H Γ d 1 ( Ω ) × L 2 ( Γ c ) .
Let M : B 1 B 2 denote the generalized constraint equations, namely, M ( z ) = l for z = ( u , p , T , h ) B 1 and l = ( l 1 , l 2 , l 3 ) B 2 if and only if
ν a ( u , v ) + c ( u , u , v ) + b ( v , p ) ( f , v ) + β ( g T , v ) = ( l 1 , v ) v H 0 1 ( Ω ) , b ( u , q ) = ( l 2 , q ) q L 0 2 ( Ω ) , α a ( T , φ ) + c ( u , T , φ ) ( Q , φ ) ( g t , n , φ ) Γ i ( h , φ ) Γ c = ( l 3 , φ ) φ H Γ d 1 ( Ω ) .
Thus, the constraints (40) can be expressed as M ( z ) = 0 . Let ( u ^ , p ^ , T ^ , h ^ ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Γ c ) denote an optimal solution in the sense of (42). Then, consider the nonlinear operator N : B 1 R × B 2 defined by
N ( u , p , T , h ) = J ( u , T , h ) J ( u ^ , T ^ , h ^ ) M ( u , p , T , h ) .
Given z = ( u , p , T , h ) B 1 , the operator M ( z ) : B 3 B 2 may be defined as M ( z ) · z ˜ = l ˜ for z ˜ = ( u ˜ , p ˜ , T ˜ , h ˜ ) B 3 and l ˜ = ( l ˜ 1 , l ˜ 2 , l ˜ 3 ) B 2 if and only if
ν a ( u ˜ , v ) + c ( u ˜ , u , v ) + c ( u , u ˜ , v ) + b ( v , p ˜ ) + β ( g T ˜ , v ) = ( l ˜ 1 , v ) v H 0 1 ( Ω ) , b ( u ˜ , q ) = ( l ˜ 2 , q ) q L 0 2 ( Ω ) , α a ( T ˜ , φ ) + c ( u ˜ , T , φ ) + c ( u , T ˜ , φ ) ( h ˜ , φ ) Γ c = ( l ˜ 3 , φ ) φ H Γ d 1 ( Ω ) .
The operator N ( z ) : B 3 R × B 2 may be defined as N ( z ) · z ˜ = ( a ˜ , l ˜ ) for a ˜ R if and only if
α u ( u u d , u ˜ ) Ω d + α T ( T T d , T ˜ ) Ω d + λ ( h , h ˜ ) Γ c = a ˜ ν a ( u ˜ , v ) + c ( u ˜ , u , v ) + c ( u , u ˜ , v ) + b ( v , p ˜ ) + β ( g T ˜ , v ) = ( l ˜ 1 , v ) v H 0 1 ( Ω ) , b ( u ˜ , q ) = ( l ˜ 2 , q ) q L 0 2 ( Ω ) , α a ( T ˜ , φ ) + c ( u ˜ , T , φ ) + c ( u , T ˜ , φ ) ( h ˜ , φ ) Γ c = ( l ˜ 3 , φ ) φ H Γ d 1 ( Ω ) .
Let z 0 B 1 . Then, we have that the operator M ( z 0 ) has closed range in B 2 and the operator N ( z 0 ) has closed range but is not in R × B 2 . This follows standard techniques (see [21]). Therefore, let z ^ = ( u ^ , p ^ , T ^ , h ^ ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Γ c ) denote an optimal solution satisfying (42). Then, there exists a nonzero Lagrange multiplier ( Λ , u ^ a , p ^ a , T ^ a ) R × B 2 * satisfying the Euler equations
Λ J ( u ^ , T ^ , h ^ ) · z ˜ + ( u ^ a , p ^ a , T ^ a ) , M ( z ^ ) · z ˜ = 0 , z ˜ B 3 ,
where · , · denotes the duality pairing between B 2 and B 2 * .

3.2.2. The Optimality System

We drop the ( · ^ ) notation for the optimal solution and derive now the optimality system using (50). The Euler Equation (50) are equivalent to
α u Λ ( u u d , u ˜ ) Ω d + α T Λ ( T T d , T ˜ ) Ω d + Λ λ ( h , h ˜ ) Γ c + b ( u ˜ , p a ) + ν a ( u ˜ , u a ) + + c ( u ˜ , u , u a ) + b ( u a , p ˜ ) + c ( u , u ˜ , u a ) + β ( g T ˜ , u a ) + α a ( T ˜ , T a ) + + c ( u ˜ , T , T a ) + c ( u , T ˜ , T a ) ( h ˜ , T a ) Γ c = 0 .
By extracting the terms involved in the same variation and setting Λ = 1 , we obtain the following equations:
ν a ( u ˜ , u a ) + c ( u , u ˜ , u a ) + c ( u ˜ , u , u a ) + b ( u ˜ , p a ) d = = α u ( u u d , u ˜ ) Ω d c ( u ˜ ; T , T a ) u ˜ H 0 1 ( Ω ) , b ( u a , p ˜ ) = 0 p ˜ L 0 2 ( Ω ) , α a ( T ˜ , T a ) + c ( u , T ˜ , T a ) = ( β g T ˜ , u a ) + α T ( T T d , T ˜ ) Ω d T ˜ H Γ d 1 ( Ω ) ,
and the control equation
λ ( h , h ˜ ) Γ c + ( h ˜ , T a ) Γ c = 0 h ˜ L 2 ( Γ c ) .
The necessary conditions for an optimum are that Equations (40) and (52) are satisfied. This system of equations is called the optimality system. Integrations by parts may be used to show that the system constitutes a weak formulation of the boundary value problem
u · u + p ν Δ u = f β g T , · u = 0 , u · T α Δ T = Q , u = w on Γ , α T · n | Γ i = g t , n on Γ i , α T · n | Γ c = h on Γ c , T = g t on Γ d ,
the adjoint equations
u a · ( u ) T u · u a + p a ν Δ u a = T T a + α u ( u u d ) , · u a = 0 , α Δ T a u · T a = β g · u a + α T ( T T d ) , u a = 0 on Γ , T a · n | Γ n = 0 on Γ n , T a = 0 on Γ d ,
and the control equation
h = T a λ on Γ c .
The optimality system in the strong form consists of the Boussinesq system (54), the adjoint of Boussinesq Equation (55), and the control Equation (56).

3.2.3. Numerical Algorithm

We consider the gradient method for the following minimization problem: find h L 2 ( Γ c ) such that F ( h ) : = J ( u ( h ) , T ( h ) , h ) is minimized. Given h ( 0 ) , we can define the sequence
h ( n + 1 ) = h ( n ) ρ ( n ) d F ( h ( n ) ) d h ( n ) ,
recursively, where ρ ( n ) is a variable step size. For each fixed T c , the Gâteaux derivative ( d F ( h ) / d h ) · h ˜ for every direction h ˜ L 2 ( Γ c ) may be computed as
d F ( h ) d h · h ˜ = λ ( h , h ˜ ) Γ c + ( h ˜ , T a ) Γ c ,
or
d F ( h ) d h = h + T a λ .
The optimization algorithm is then given as follows
(a)
Initial step:
  • choose tolerance τ and h ( 0 ) ; set n = 0 and ρ ( 0 ) = 1 ;
  • solve for ( u ( 0 ) , p ( 0 ) , T ( 0 ) ) from (40) with h = h ( 0 ) ;
  • evaluate J ( 0 ) = J ( u ( 0 ) , T ( 0 ) , h ( 0 ) ) using (39).
(b)
Main loop:
  • set n = n + 1 ;
  • solve for ( u a ( n ) , p a ( n ) , T a ( n ) ) from (52);
  • solve for h ( n ) from
    h ( n ) = h ( n 1 ) ρ ( n ) h ( n 1 ) + T a ( n ) λ ;
  • solve for ( u ( n ) , p ( n ) , T ( n ) ) from (40) with h = h ( n ) ;
  • evaluate J ( n ) = J ( u ( n ) , T ( n ) , h ( n ) ) using (39);
    (i)
    if J ( n ) > J ( n 1 ) , set ρ ( n ) = 0.5 ρ ( n ) and go to step (b) 3.;
    (ii)
    if J ( n ) < J ( n 1 ) , set ρ ( n + 1 ) = 1 and go to step (b) 1.;
    (iii)
    if | J ( n ) J ( n 1 ) | / | J ( n ) | < τ stop.

3.3. Distributed Control

A distributed control problem aims to control the flow state using a heat source acting on the domain Ω as a control mechanism. In (8), the heat source Q is the control of the optimal control problem. The boundary conditions are those reported in (9), where w , g t , and g t , n are given functions. The cost functional is formulated as
J ( u , T , Q ) = α u 2 Ω d | u u d | 2 d x + α T 2 Ω d | T T d | 2 d x + λ 2 Ω | Q | 2 d x ,
where the cost contribution measures the L 2 ( Ω ) -norm of the control Q.

3.3.1. Weak Formulation and Lagrange Multiplier Approach

The weak form of the boundary value problem (6)–(9) is given as follows: find ( u , p , T ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) such that
ν a ( u , v ) + c ( u , u , v ) + b ( v , p ) = ( f , v ) β ( g T , v ) v H 0 1 ( Ω ) , b ( u , q ) = 0 q L 0 2 ( Ω ) , α a ( T , φ ) + c ( u , T , φ ) = ( Q , φ ) + ( g t , n , φ ) Γ n φ H Γ d 1 ( Ω ) .
The existence of the solution of the system (62) can be proved as in [9].
We now state the optimal control problem. We look for a ( u , p, T, Q ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Ω ) such that the cost functional (61) is minimized subject to the constraints (62). The admissible set of states and controls is
U a d = { ( u , p , T , Q ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Ω ) : J ( u , T , Q ) < and ( 62 ) is satified . }
Then ( u ^ , p ^ , T ^ , Q ^ ) U a d is called an optimal solution if there exists ε > 0 such that
J ( u ^ , p ^ , T ^ , Q ^ ) J ( u , p , T , Q ) ( u , p , T , Q ) U a d satisfying u u ^ 1 + p p ^ 0 + T T ^ 1 + Q Q ^ 0 < ε .
The existence of at least one optimal solution ( u ^ , p ^ , T ^ , Q ^ ) U a d can be proved as in [9].
We define the following functional spaces:
B 1 = H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Ω ) ,
B 2 = H 1 ( Ω ) × L 0 2 ( Ω ) × H Γ d 1 * ( Ω ) ,
B 3 = H 0 1 ( Ω ) × L 0 2 ( Ω ) × H Γ d 1 ( Ω ) × L 2 ( Ω ) .
Let M : B 1 B 2 denote the generalized constraint equations, namely, M ( z ) = l for z = ( u , p , T , Q ) B 1 and l = ( l 1 , l 2 , l 3 ) B 2 if and only if
ν a ( u , v ) + c ( u , u , v ) + b ( v , p ) ( f , v ) + β ( g T , v ) = ( l 1 , v ) v H 0 1 ( Ω ) , b ( u , q ) = ( l 2 , q ) q L 0 2 ( Ω ) , α a ( T , φ ) + c ( u , T , φ ) ( Q , φ ) ( g t , n , φ ) Γ n = ( l 3 , φ ) φ H Γ d 1 ( Ω ) .
Thus, the constraints (62) can be expressed as M ( z ) = 0 . Let ( u ^ , p ^ , T ^ , Q ^ ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Ω ) denote an optimal solution in the sense of (64). Then, consider the nonlinear operator N : B 1 R × B 2 defined by
N ( u , p , T , Q ) = J ( u , T , Q ) J ( u ^ , T ^ , Q ^ ) M ( u , p , T , Q ) .
Given z = ( u , p , T , Q ) B 1 , the operator M ( z ) : B 3 B 2 may be defined as M ( z ) · z ˜ = l ˜ for z ˜ = ( u ˜ , p ˜ , T ˜ , Q ˜ ) B 3 and l ˜ = ( l ˜ 1 , l ˜ 2 , l ˜ 3 ) B 2 if and only if
ν a ( u ˜ , v ) + c ( u ˜ , u , v ) + c ( u , u ˜ , v ) + b ( v , p ˜ ) + β ( g T ˜ , v ) = ( l ˜ 1 , v ) v H 0 1 ( Ω ) , b ( u ˜ , q ) = ( l ˜ 2 , q ) q L 0 2 ( Ω ) , α a ( T ˜ , φ ) + c ( u ˜ , T , φ ) + c ( u , T ˜ , φ ) ( Q ˜ , φ ) = ( l ˜ 3 , φ ) φ H Γ d 1 ( Ω ) .
The operator N ( z ) : B 3 R × B 2 may be defined as N ( z ) · z ˜ = ( a ˜ , l ˜ ) for a ˜ R if and only if
α u ( u u d , u ˜ ) Ω d + α T ( T T d , T ˜ ) Ω d + λ ( Q , Q ˜ ) = a ˜ ν a ( u ˜ , v ) + c ( u ˜ , u , v ) + c ( u , u ˜ , v ) + b ( v , p ˜ ) + β ( g T ˜ , v ) = ( l ˜ 1 , v ) v H 0 1 ( Ω ) , b ( u ˜ , q ) = ( l ˜ 2 , q ) q L 0 2 ( Ω ) , α a ( T ˜ , φ ) + c ( u ˜ , T , φ ) + c ( u , T ˜ , φ ) ( Q ˜ , φ ) = ( l ˜ 3 , φ ) φ H Γ d 1 ( Ω ) .
Let z 0 B 1 . We have that the operator M ( z 0 ) has closed range in B 2 and the operator N ( z 0 ) has closed range but is not in R × B 2 [21].
Similarly to the other controls presented in previous sections, let z ^ = ( u ^ , p ^ , T ^ , Q ^ ) H 1 ( Ω ) × L 0 2 ( Ω ) × H 1 ( Ω ) × L 2 ( Ω ) denote an optimal solution in the sense of (64). Then, there exists a nonzero Lagrange multiplier ( Λ , u ^ a , p ^ a , T ^ a ) R × B 2 * satisfying the Euler equations
Λ J ( u ^ , T ^ , Q ^ ) · z ˜ + ( u ^ a , p ^ a , T ^ a ) , M ( z ^ ) · z ˜ = 0 z ˜ B 3 ,
where · , · denotes the duality pairing between B 2 and B 2 * . The interested reader can consult [21] on the existence of the Lagrange multiplier.

3.3.2. Optimality System

As in the previous case, we drop the ( · ^ ) notation for the optimal solution and derive the optimality system using the Euler Equation (72)
α u Λ ( u u d , u ˜ ) Ω d + α T Λ ( T T d , T ˜ ) Ω d + Λ λ ( Q , Q ˜ ) + b ( u ˜ , p a ) + ν a ( u ˜ , u a ) + + c ( u ˜ , u , u a ) + b ( u a , p ˜ ) + c ( u , u ˜ , u a ) + β ( g T ˜ , u a ) + α a ( T ˜ , T a ) + c ( u ˜ , T , T a ) + + c ( u , T ˜ , T a ) ( Q ˜ , T a ) = 0 .
We extract the terms involved in the same variation, set Λ = 1 , and obtain the following equations:
ν a ( u ˜ , u a ) + c ( u , u ˜ , u a ) + c ( u ˜ , u , u a ) + b ( u ˜ , p a ) = = α u ( u u d , u ˜ ) Ω d c ( u ˜ ; T , T a ) u ˜ H 0 1 ( Ω ) , b ( u a , p ˜ ) = 0 p ˜ L 0 2 ( Ω ) , α a ( T ˜ , T a ) + c ( u , T ˜ , T a ) = ( β g T ˜ , u a ) + α T ( T T d , T ˜ ) Ω d T ˜ H Γ d 1 ( Ω ) ,
and the control equation
λ ( Q , Q ˜ ) + ( Q ˜ , T a ) = 0 , Q ˜ L 2 ( Ω ) .
The necessary conditions for an optimum are defined by Equations (62) and (74). This system of equations is the optimality system. We can use integrations to show that the system constitutes a weak formulation of the boundary value problem for state equations
u · u + p ν Δ u = f β g T , · u = 0 , u · T α Δ T = Q , u = w on Γ , α T · n | Γ n = g t , n on Γ n , T = g t on Γ d ,
the adjoint equations
u a · ( u ) T u · u a + p a ν Δ u a = T T a + α u ( u u d ) , · u a = 0 , α Δ T a u · T a = β g · u a + α T ( T T d ) , u a = 0 on Γ , T a · n | Γ n = 0 on Γ n , T a = 0 on Γ d ,
and the control equation
Q = T a λ in Ω .
Therefore, the optimality system in the strong form consists of the Boussinesq system (76), the adjoint of Boussinesq Equation (77), and the control Equation (78).

3.3.3. Numerical Algorithm

Let us consider the gradient method for the following minimization problem: find Q L 2 ( Ω ) such that F ( Q ) : = J ( u ( Q ) , T ( Q ) , Q ) is minimized. Given Q ( 0 ) , we can define the sequence
Q ( n + 1 ) = Q ( n ) ρ ( n ) d F ( Q ( n ) ) d Q ( n ) ,
recursively, where ρ ( n ) is a variable step size. Let Q ^ c be a solution of the minimization problem. Thus, at the optimum d F ( Q ^ ) / d Q ^ = 0 and Q ( n + 1 ) = Q ( n ) . The Gâteaux derivative ( d F ( Q ) / d Q ) · Q ˜ for every direction Q ˜ L 2 ( Ω ) may be computed as
d F ( Q ) d Q · Q ˜ = λ ( Q , Q ˜ ) + ( Q ˜ , T a ) .
Thus, the Gâteaux derivative may be computed as
d F ( Q ) d Q = Q + T a λ .
The optimization algorithm is then given as follows.
(a)
Initial step:
  • choose tolerance τ and Q ( 0 ) ; set n = 0 and ρ ( 0 ) = 1 ;
  • solve for ( u ( 0 ) , p ( 0 ) , T ( 0 ) ) from (62) with Q = Q ( 0 ) ;
  • evaluate J ( 0 ) = J ( u ( 0 ) , T ( 0 ) , Q ( 0 ) ) using (61).
(b)
Main loop:
  • set n = n + 1 ;
  • solve for ( u a ( n ) , p a ( n ) , T a ( n ) ) from (74);
  • solve for Q ( n ) from
    Q ( n ) = Q ( n 1 ) ρ ( n ) Q ( n 1 ) + T a ( n ) λ ;
  • solve for ( u ( n ) , p ( n ) , T ( n ) ) from (40) with Q = Q ( n ) ;
  • evaluate J ( n ) = J ( u ( n ) , T ( n ) , Q ( n ) ) using (39);
    (i)
    if J ( n ) > J ( n 1 ) , set ρ ( n ) = 0.5 ρ ( n ) and go to step (b) 3.;
    (ii)
    if J ( n ) < J ( n 1 ) , set ρ ( n + 1 ) = 1 and go to step (b) 1.;
    (iii)
    if | J ( n ) J ( n 1 ) | / | J ( n ) | < τ stop.

4. Numerical Results

In this section, we report some numerical results obtained by using the mathematical models shown in the previous sections. The main difference between the three control problems is in the nature of the control equations. For Neumann and distributed controls, the control equation is an algebraic equation that states that the control is proportional to the adjoint temperature (see Equations (56) and (78)). In contrast, when we have a Dirichlet boundary control, the control equation is a partial differential equation with the normal adjoint temperature gradient as source term, as reported in (31). Thus, the adjoint temperature T a plays a key role in all three control mechanisms, as does the regularization parameter λ that appears in the denominator of the source terms. The adjoint temperature T a depends on the objectives of the velocity and temperature fields. When the objective relates to the temperature field, the dependence is direct through the term α T ( T T d ) appearing on the right-hand side of the adjoint temperature Equations (27), (52), and (74). If the objective relates to the velocity field, the control mechanism is indirect, since the term α u ( u u d ) acts as a source in the adjoint velocity equation. In turn, the adjoint velocity appears in the source term of the adjoint temperature β g · u a .
The geometry considered for all the simulations is a square cavity with L = 0.01 m . The domain Ω = [ 0 , L ] × [ 0 , L ] R 2 is shown in Figure 1. We consider liquid lead with the properties reported in Table 1. We discretize the numerical problem in a finite element framework, and we consider a 20 × 20 uniform quadrangular mesh formed by biquadratic elements. The simulations were performed using the in-house finite element multigrid code FEMuS developed at the University of Bologna [22]. The code is based on a C++ main program that handles several external open-source libraries such as the MPI and PETSc libraries.

4.1. Dirichlet Boundary Control

We now show the numerical results for the Dirichlet boundary control. The boundary conditions are reported in (12), where Γ d = Γ 1 Γ 3 , Γ i = Γ 3 , Γ c = Γ 1 and Γ n = Γ 2 Γ 4 . We set f = 0 and Q = 0 in (14), and g u = 0 , g t , n = 0 , g t = 493 K on Γ 3 , and g t = 503 K on Γ 1 in (12). For the reference case, we set T c ( 0 ) = 0 . Then, on Γ c = Γ 1 we have T ( 0 ) = g t . In Figure 2a,b, we show the temperature and velocity contours, respectively, of the numerical solution when the control algorithm is not applied. Lead flows in the cavity and forms a clockwise vortex due to buoyancy forces caused by the heated cavity wall. The bulk velocity is U b = 0.008765 m / s . The Richardson number, computed as R i = g L Δ T β / U b 2 , is equal to 3.28 . The Grashof number is G r = R i R e 2 = 8.2 × 10 5 . Lastly, the Rayleigh number is given by R a = G r P r = 2 × 10 4 . The results shown in Figure 2 follow the typical features of temperature and velocity profiles for R a 10 4 , i.e., isotherms departing from the vertical position with the formation of a central elliptic clockwise vortex [23].

4.1.1. Temperature Matching Case

Firstly, we aim to test the optimization algorithm with a temperature matching case. Let (13) be the objective functional with α u = 0 , α T = 1 , and Ω d = [ 0.45 L ; 0.55 L ] × [ 0.75 L ; 0.85 L ] . The region Ω d is indicated in Figure 3a. We set T d = 450 K . Then, in Ω d we aim at obtaining cooler fluid than in the reference case reported in Figure 2a. We consider four different values of the regularization parameter λ , namely, 10 5 , 10 6 , 10 7 , and 10 8 . The reference objective functional is J ( 0 ) = 0.001250 . For the numerical simulations, we use the algorithm for Dirichlet boundary problems presented in the previous sections, and we choose (37) for the update algorithm of the control.
The contours of the optimal solution in terms of temperature and velocity fields are shown in Figure 3a,b, respectively, for λ = 10 7 . The region Ω d , where the objective is set, is highlighted with a black square in Figure 3a. From the contours, we can see that the optimal temperature field assumes values close to the target temperature T d = 450 K . To achieve the objective, the temperature on the left wall decreases with respect to the reference case. For this reason, the motion changes, and we obtain a counterclockwise vortex, as depicted by the streamlines in Figure 3b.
In Table 2, we report the objective functional values J ( n ) corresponding to its optimal state for each numerical simulation. We also report the value of the reference objective functional J ( 0 ) and the percentage reduction for each case evaluated as ( J ( 0 ) J ( n ) ) / J ( 0 ) . In addition, the number of iterations n of the optimization algorithm is included in Table 2. The lowest value of λ results in the lowest functional value of J ( 10 ) = 1.979 × 10 6 and the greatest percentage reduction.
Temperature profiles along the boundary Γ c are reported in Figure 4a for the different values of the regularization parameter λ . As λ decreases, the minima of the profiles move towards y / L = 1 . In Figure 4b, the temperature is plotted along a line at y / L = 0.8 for 0.45 < x / L < 0.55 in the region Ω d . We can see that for the lowest values of λ , the optimal solutions tend to the target profile T d . The case λ = 10 5 is the farthest from the objective, as we can also deduce from the functional values reported in Table 2.

4.1.2. Velocity Matching Case 1

The second test for the Dirichlet optimal control is a velocity matching case. The objective functional is the one reported in Equation (13), setting α u = 1 , α T = 0 and Ω d = [ 0.15 L ; 0.25 L ] × [ 0.45 L ; 0.55 L ] . The region Ω d is represented in Figure 5c. We aim to control the y-component of the velocity with v d = 0.05 m / s . In the reference case, the mean value of v over Ω d is 0.0159 m / s , but we aim to accelerate the fluid near the controlled boundary Γ c in order to enhance the velocity on Ω d . We consider different values of the regularization parameter λ , i.e., 10 10 , 10 11 , 10 12 , 10 13 , and 10 14 . The considered values are lower than those used for the temperature matching test. We also tested higher values of the regularization parameter, but the control was ineffective in those cases. Indeed, it is easier to achieve an objective on the temperature field than on the velocity field, since the control parameter T c (or h or Q) depends directly on the adjoint temperature but indirectly on the adjoint velocity. The value of the reference objective functional is J ( 0 ) = 7.011 × 10 10 .
In Figure 5, the optimal solution obtained with λ = 10 13 is reported. In Figure 5a, the contours of the optimal temperature field are shown. Along Γ c , the temperature shows a sharp variation. At the bottom of Γ c , we have a maximum for the temperature, while at the top is the minimum temperature value. The fluid is heated and is accelerated to the desired velocity in the region Ω d . The resulting velocity field is shown in Figure 5b, where contours of the velocity magnitude and streamlines are shown. The contours of the y-component of the velocity are shown in Figure 5c, where the region Ω d is highlighted.
In Table 3, we report the objective functional values J ( n ) , the number of iterations n of the optimization algorithm, and the percentage reduction with respect to the reference J ( 0 ) . For the highest values of λ , the control is poor, and the functional is quite similar to the reference value. However, we can observe a strong functional reduction for the cases with λ 10 13 .
Temperature profiles along the boundary Γ c are reported in Figure 6a for different values of the regularization parameter λ . For λ = 10 10 , the profile only has a stationary point at y / L 0.5 . For lower values of λ , there is a change of concavity in the temperature profiles and an inflection point at y / L 0.5 . As λ decreases, the maximum is located at 0.2 < y / L < 0.4 and its value increases, while the minimum is located at 0.6 < y / L < 0.8 and its value decreases. As expected, with low values of the regularization parameter, the H 1 ( Γ c ) -norm of the control has less weight in the objective functional, and more irregular functions are accepted as optimal solutions. In Figure 6b, the y-component of the velocity is plotted along a line at x / L = 0.2 for 0.45 < y / L < 0.55 in the region Ω d . The velocity profile is reported for all values of λ , together with the target velocity profile v d . For the lowest values of λ ( 10 13 , 10 14 ), the optimal solutions tend to the target profile v d , while the highest values of λ ( 10 10 , 10 11 , 10 12 ) lead to the solutions farthest from the objective, as can be deduced from the functional values in Table 3. However, when λ is small ( 10 13 , 10 14 ), the maximum temperature value increases (from 503 K up to 650 K ) and the minimum value decreases (from 503 K down to 400 K ). This large variation is due to the fact that the target v d is quite far from the reference case, and the temperature over Γ c must change considerably to reach the objective.

4.1.3. Velocity Matching Case 2

A second case for the velocity matching test is now considered. The objective is set on the x-component of the velocity field, where we aim to achieve a counterclockwise flow. Let us consider Ω d = [ 0.45 L ; 0.55 L ] × [ 0.75 L ; 0.85 L ] . This region is highlighted in Figure 7c. In the reference case, the mean value of u on Ω d is set to 0.0129 m / s . Then, we set a uniform value u d = 0.02 m / s as a target profile. The simulations are performed considering different values of λ , namely, 10 10 , 10 11 , and 10 12 . The reference objective functional is J ( 0 ) = 5.425 × 10 10 .
The optimal temperature and velocity fields obtained with λ = 10 11 are reported in Figure 7. In Figure 7a, the contours of the optimal temperature field are shown. The resulting velocity field is shown in Figure 7b, where contours of the velocity magnitude and streamlines are reported. We can observe that a counterclockwise flow is driven by the buoyancy forces. The contours of the x-component of the velocity are represented in Figure 7c, where the region Ω d is highlighted. We also report the optimal solution obtained with λ = 10 12 in Figure 8. In this case, the solution is quite unexpected. Figure 8a shows the contours of the optimal temperature field. At the bottom of the left wall ( Γ c = Γ 1 ), the temperature is higher than the temperature on the right wall ( Γ i = Γ 3 ), while at the top of Γ c the temperature is lower than the temperature on Γ 3 .
This profile induces buoyancy forces which cause two vortexes; a smaller clockwise vortex behind the bottom-left corner and a bigger counterclockwise vortex in the center of the cavity, as shown in Figure 8b. The contours of the x-component of velocity are shown in Figure 8c, where the region Ω d is in evidence. There, the x-component of velocity is quite uniform and close to the target value u d .
In Table 4, we report the objective functional values J ( n ) , the percentage reduction, and the number of iterations n of the optimization algorithm. For the highest value of λ ( 10 10 ), the control is poor, and the functional value is quite similar to the reference value. For the other values of λ , the control is more effective. As observed in the previous test cases, with the lowest value of λ , we have the lowest functional value and the greatest percentage reduction.
In Figure 9a, the temperature profiles along the boundary Γ c are shown for different values of the regularization parameter λ ( 10 10 , 10 11 , 10 12 ). For λ = 10 10 and λ = 10 11 , the profiles present a minimum point at 0.4 < y / L < 0.7 . The temperature on Γ c is lower than the temperature on the opposite wall Γ i , namely, T = 493 K , to obtain a counterclockwise flow. For λ = 10 12 , the optimal solution is unexpected, as previously noted. There is a variation of concavity in the profile and an inflection point at y / L 0.5 . For y / L < 0.5 , the temperature on Γ c is higher than the temperature on Γ 3 , while at the top of the controlled wall, for y / L > 0.5 , the temperature on Γ c is lower than the temperature on Γ 3 . In Figure 9b, the x-component of the velocity is plotted along a line at y / L = 0.8 for 0.45 < x / L < 0.55 in the region Ω d . The velocity profiles are shown for all values of λ , together with the target velocity profile u d . We can observe that in all cases, the flow changes from clockwise to counterclockwise with a negative x-component of velocity at the top of the cavity. We note that in this test, the lower the value of λ , the closer the velocity profile is to the target profile.

4.2. Neumann Boundary Control

For the Neumann control problem, we consider the geometry shown in Figure 1. The boundary conditions are reported in (38), where Γ d = Γ 3 , Γ n = Γ 1 Γ 2 Γ 4 , Γ i = Γ 2 Γ 4 , Γ c = Γ 1 . We set g t , n = 0 , g t = 493 K , and g u = 0 in (38) and f = 0 , Q = 0 in (40). The wall-normal heat flux h acting on Γ c is the control for the problem. To compute the reference case, we set h ( 0 ) = 0 . Thus, the uncontrolled problem consists of three thermally-insulated walls, i.e., the left ( Γ 1 ), bottom ( Γ 2 ), and top ( Γ 4 ) walls, and a wall with a fixed temperature, which is the right wall ( Γ 3 ). The reference case is a trivial problem, characterized by a uniform and constant temperature, no buoyancy forces, and still fluid.
We performed several tests, varying the objective. We report the numerical results obtained considering the same objective on the x-component of velocity also studied with the Dirichlet control. We recall the main simulation parameters. Let Ω d = [ 0.45 L ; 0.55 L ] × [ 0.75 L ; 0.85 L ] be the region where we aim to achieve the objective, and let u d = 0.02 m / s be the target velocity profile. In the reference case, the fluid is still. Then, u = 0 m / s in Ω d . The simulations were performed considering different values of λ , namely, 10 4 , 10 5 , 10 6 , and 10 7 . The reference objective functional is J ( 0 ) = 2.061 × 10 10 .
In Table 5, the objective functional values J ( n ) and the number of iterations n of the optimization algorithm are reported for all the values of λ . The percentage reductions are also reported. In all tests, we observe large functional reductions. In particular, for lower values of λ , the control is more effective.
The optimal solution obtained with λ = 10 6 is reported in Figure 10. The contours of the temperature field T over the domain can be seen in Figure 10a. The heat flux imposed on the left wall is outgoing, and the wall is cooler than in the reference case, with a minimum value of around 473 K. In Figure 10b, the velocity streamlines and the contours of the velocity magnitude are shown. The formation of a counterclockwise vortex is shown in this figure. The contours of the x-component of the velocity field u are reported in Figure 10, and the region Ω d is highlighted.
In Figure 11a, the temperature profiles along the boundary Γ c are shown for different values of the regularization parameter λ ( 10 4 , 10 5 , 10 6 , 10 7 ). Comparing these profiles with the temperature profiles of Figure 9a obtained for a Dirichlet control, we observe very different trends. With a Dirichlet control, the temperature on Γ c belongs to the Hilbert space H 1 ( Γ c ) , and the control T c is nullified at the extremities of the boundary, i.e., T c = 0 K on Γ c . For this reason, with a Dirichlet control, T = g t = 503 K at y / L = 0 and y / L = 1 . With Neumann controls, we do not have constraints on the temperature value on Γ c , and we obtain different shapes for the profiles. In Figure 11b, the control parameter h expressed in kW / m 2 is reported along Γ c . With the highest values of λ ( 10 4 , 10 5 ), the control is quite uniform and regular, but it is less effective with respect to the functional reduction. With the lowest values of λ ( 10 6 , 10 7 ), the profiles of the control h are sharp and present changes of sign.

4.3. Distributed Control

For the distributed control problem, we consider the geometry reported in Figure 1. The boundary conditions are reported in (9), where Γ d = Γ 1 Γ 3 , Γ n = Γ 2 Γ 4 . We set f = 0 , g u = 0 in (62), while in (9) we have g t , n = 0 , g t = 493 K on Γ 3 , and g t = 503 K on Γ 1 . The volumetric heat source Q is the control acting on the domain Ω . For the reference case, we consider Q ( 0 ) = 0 . Thus, the reference case is the one considered for the Dirichlet boundary control. The buoyancy forces put the fluid in motion, and a clockwise vortex is formed. The contours and streamlines for the temperature and velocity are shown in Figure 2.
We performed several tests, varying the objectives and the values of the regularization parameter λ . We show the results for a velocity matching case. Let us consider Ω d = [ 0.15 L ; 0.25 L ] × [ 0.45 L ; 0.55 L ] . We aim to control the y-component of the velocity, and therefore we set v d = 0.05 m / s , as in the first velocity matching case presented for the Dirichlet boundary control. In the reference case, the mean value of v on Ω d is equal to 0.0159 m / s , as we aim to accelerate the fluid near the controlled boundary Γ c . We consider several values of the regularization coefficient, namely, 10 10 , 10 11 , and 10 12 .
In Table 6, the objective functional values J ( n ) , the percentage reductions, and the number of iterations n of the optimization algorithm are reported for all values of λ . Thus, in all the tests, the functional is strongly reduced by a factor of 10 3 . This is an expected result since the optimal control Q can act on the whole domain, and its influence is strong on the distribution of the temperature field and buoyancy forces. We remark that with boundary control problems, the control can act only on a portion of the boundary, and its impact is less effective on the solution.
In Figure 12, the contours of the optimal solution for λ = 10 11 are shown. The optimal control Q expressed in MW / m 3 is reported in Figure 12a. The heat source is not uniform over the domain, being positive in the proximity of the hottest wall ( T = 503 K on Γ 1 ) and negative near the coolest wall ( T = 493 K on Γ 3 ). This heat source distribution influences the temperature solution reported in Figure 12b. The isotherms are more stretched than in the reference case, and the fluid is locally hotter than 503 K and cooler than 493 K , due to the volumetric heat source. The streamlines and contours of the velocity field are reported in Figure 12c. Figure 12d shows the region Ω d and the contours of the y-component of velocity. The solution is almost uniform in Ω d and is close to the target value of v d = 0.02 m / s . Comparing Figure 5c and Figure 12d, we can observe that the distributed control is the most effective in achieving the objective. The great effectiveness of the distributed control can be also seen by comparing Table 6 and the first three columns of Table 3. With the same λ coefficients ( 10 10 , 10 11 , and 10 12 ), the distributed control leads to much greater reductions in the functional J ( n ) than the Dirichlet control. Moreover, by observing Figure 5a and Figure 12b, we see that with a distributed control, the optimal temperature solution is more uniform and regular than with a Dirichlet optimal control, which can lead to temperature variations that may not be acceptable in a practical context.

5. Conclusions

In this work, optimal control problems for incompressible Newtonian buoyant flows were presented and discussed. Starting from some important results already presented in previous studies on the existence of an optimal solution and the existence of the Lagrange multipliers, we analyzed Dirichlet, Neumann, and distributed optimal control problems. For each case, we obtained the optimality system, which consists of state, adjoint, and control equations. To solve this numerically, a gradient method was introduced, and an efficient numerical algorithm was proposed for each case. We observed that the three control mechanisms differed only in the control equation, which is an algebraic equation in the case of distributed and Neumann control and a differential equation in the case of Dirichlet control. In all the mechanisms, the controls depended on the adjoint temperature field T a and on the regularization parameter λ . Numerical simulations were performed to test the robustness of the algorithm and the feasibility of the method. The developed numerical simulations included velocity matching cases and temperature matching cases, both evaluated with various values of the regularization parameter λ . We observed that the temperature matching case is easier to achieve, since in this case the distance from the target temperature appears directly as source term in the adjoint temperature equation. The choice of the value of the regularization parameters proved to be a key issue: too much regularization leads to smoother but less effective controls, while a lack of regularization causes numerical issues and singular solutions. We observed that the appropriate choice of λ should be made on a case-by-case basis. A comparison among the three thermal control mechanisms allowed us to draw some conclusions as follows. The strongest control is the distributed control, followed by the Neumann and Dirichlet boundary controls. Of course, all these three different controls can be feasible at different costs, depending on the engineering applications. In general, the developed numerical algorithm showed good convergence properties and thus can be considered a useful tool for the numerical resolution of optimal control problems for Boussinesq equations.

Author Contributions

Formal analysis, A.C., V.G. and S.M.; Investigation, A.C., V.G. and S.M.; Software, A.C., V.G. and S.M.; Validation, A.C., V.G. and S.M.; Writing—original draft, A.C., V.G. and S.M.; Writing—review & editing, A.C., V.G. and S.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chirco, L.; Chierici, A.; Da Vià, R.; Giovacchini, V.; Manservisi, S. Optimal Control of the Wilcox turbulence model with lifting functions for flow injection and boundary control. J. Phys. Conf. Ser. 2019, 1224, 012006. [Google Scholar] [CrossRef]
  2. Gunzburger, M.D.; Hou, L.S.; Svobodny, T.P. The approximation of boundary control problems for fluid flows with an application to control by heating and cooling. Comput. Fluids 1993, 22, 239–251. [Google Scholar] [CrossRef]
  3. Lee, H.C. Analysis and computational methods of Dirichlet boundary optimal control problems for 2D Boussinesq equations. Adv. Comput. Math. 2003, 19, 255–275. [Google Scholar] [CrossRef]
  4. Aulisa, E.; Bornia, G.; Manservisi, S. Boundary control problems in convective heat transfer with lifting function approach and multigrid vanka-type solvers. Commun. Comput. Phys. 2015, 18, 621–649. [Google Scholar] [CrossRef]
  5. Lee, H.C.; Shin, B.C. Piecewise optimal distributed controls for 2D Boussinesq equations. Math. Methods Appl. Sci. 2000, 23, 227–254. [Google Scholar] [CrossRef]
  6. Gunzburger, M.D.; Kim, H.; Manservisi, S. On a shape control problem for the stationary Navier-Stokes equations. ESAIM Math. Model. Numer. Anal. 2000, 34, 1233–1258. [Google Scholar] [CrossRef] [Green Version]
  7. Gunzburger, M.D. Perspectives in Flow Control and Optimization; SIAM: Philadelphia, PA, USA, 2003; Volume 5. [Google Scholar]
  8. Smith, C.F.; Cinotti, L. Lead-cooled fast reactor. In Handbook of Generation IV Nuclear Reactors; Elsevier: Amsterdam, The Netherlands, 2016; pp. 119–155. [Google Scholar]
  9. Lee, H.C.; Imanuvilov, O.Y. Analysis of optimal control problems for the 2-D stationary Boussinesq equations. J. Math. Anal. Appl. 2000, 242, 191–211. [Google Scholar] [CrossRef] [Green Version]
  10. Lee, H.C. Optimal control problems for the two dimensional Rayleigh—Bénard type convection by a gradient method. Jpn. J. Ind. Appl. Math. 2009, 26, 93–121. [Google Scholar] [CrossRef]
  11. Lee, H.C.; Kim, S.H. Finite element approximation and computations of optimal Dirichlet boundary control problems for the Boussinesq equations. J. Korean Math. Soc. 2004, 41, 681–715. [Google Scholar] [CrossRef] [Green Version]
  12. Lee, H.C. Analysis and computations of Neumann boundary optimal control problems for the stationary Boussinesq equations. In Proceedings of the 40th IEEE Conference on Decision and Control (Cat. No. 01CH37228), Orlando, FL, USA, 4–7 December 2001; Volume 5, pp. 4503–4508. [Google Scholar]
  13. Alekseev, G. Solvability of stationary boundary control problems for heat convection equations. Sib. Math. J. 1998, 39, 844–858. [Google Scholar] [CrossRef]
  14. Alekseev, G.; Tereshko, D. Boundary control problems for stationary equations of heat convection. In New Directions in Mathematical Fluid Mechanics; Springer: Berlin/Heidelberg, Germany, 2009; pp. 1–21. [Google Scholar]
  15. Baranovskii, E.S.; Domnich, A.A.; Artemov, M.A. Optimal boundary control of non-isothermal viscous fluid flow. Fluids 2019, 4, 133. [Google Scholar] [CrossRef] [Green Version]
  16. Baranovskii, E.S. Optimal boundary control of the Boussinesq approximation for polymeric fluids. J. Optim. Theory Appl. 2021, 189, 623–645. [Google Scholar] [CrossRef]
  17. Baranovskii, E.S. The optimal start control problem for two-dimensional Boussinesq equations. Izv. Math. 2022, 86, 221–242. [Google Scholar] [CrossRef]
  18. Ciarlet, P.G. The Finite Element Method for Elliptic Problems; SIAM: Philadelphia, PA, USA, 2002. [Google Scholar]
  19. Droniou, J. Non-coercive linear elliptic problems. Potential Anal. 2002, 17, 181–203. [Google Scholar] [CrossRef]
  20. Chierici, A.; Giovacchini, V.; Manservisi, S. Analysis and numerical results for boundary optimal control problems applied to turbulent buoyant flows. Int. J. Numer. Anal. Model. 2022, 19, 347–368. [Google Scholar]
  21. Giovacchini, V. Development of a numerical platform for the modeling and optimal control of liquid metal flows. Ph.D. Thesis, University of Bologna, Bologna, Italy, 2022. [Google Scholar]
  22. Chierici, A.; Barbi, G.; Bornia, G.; Cerroni, D.; Chirco, L.; Da Vià, R.; Giovacchini, V.; Manservisi, S.; Scardovelli, R.; Cervone, A. FEMuS-Platform: A numerical platform for multiscale and multiphysics code coupling. In Proceedings of the 9th edition of the International Conference on Computational Methods for Coupled Problems in Science and Engineering (COUPLED PROBLEMS 2021), Virtual, 13–16 June 2021. [Google Scholar]
  23. Barakos, G.; Mitsoulis, E.; Assimacopoulos, D. Natural convection flow in a square cavity revisited: Laminar and turbulent models with wall functions. Int. J. Numer. Methods Fluids 1994, 18, 695–719. [Google Scholar] [CrossRef]
Figure 1. Computational domain for the optimal control of Boussinesq equations, where g is the gravity vector and Γ 1 , Γ 2 , Γ 3 , and Γ 4 are the boundaries.
Figure 1. Computational domain for the optimal control of Boussinesq equations, where g is the gravity vector and Γ 1 , Γ 2 , Γ 3 , and Γ 4 are the boundaries.
Fluids 07 00203 g001
Figure 2. Uncontrolled solution: contours of the temperature field T (a); contours and streamlines of the velocity field u (b). The velocity magnitude is indicated by | u | .
Figure 2. Uncontrolled solution: contours of the temperature field T (a); contours and streamlines of the velocity field u (b). The velocity magnitude is indicated by | u | .
Fluids 07 00203 g002
Figure 3. Temperature matching case with Dirichlet boundary control: optimal solution for λ = 10 7 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Figure 3. Temperature matching case with Dirichlet boundary control: optimal solution for λ = 10 7 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Fluids 07 00203 g003
Figure 4. Temperature matching case with Dirichlet boundary control: temperature T profiles plotted against y / L along the controlled boundary Γ c (a); temperature T profiles plotted against x / L on the region Ω d along the line y / L = 0.8 (b). Numerical results for λ = 10 5 , 10 6 , 10 7 , and 10 8 . The target value T d is shown as a dotted line.
Figure 4. Temperature matching case with Dirichlet boundary control: temperature T profiles plotted against y / L along the controlled boundary Γ c (a); temperature T profiles plotted against x / L on the region Ω d along the line y / L = 0.8 (b). Numerical results for λ = 10 5 , 10 6 , 10 7 , and 10 8 . The target value T d is shown as a dotted line.
Fluids 07 00203 g004
Figure 5. Velocity matching case with Dirichlet boundary control—Case 1: optimal solution for λ = 10 13 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the y-component of the velocity field v (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Figure 5. Velocity matching case with Dirichlet boundary control—Case 1: optimal solution for λ = 10 13 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the y-component of the velocity field v (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Fluids 07 00203 g005
Figure 6. Velocity matching case with Dirichlet boundary control—Case 1: temperature profiles T plotted against y / L on the controlled boundary Γ c (a); y-component of the velocity v profiles plotted against y / L on the region Ω d along the line x / L = 0.2 (b). Numerical results for λ = 10 10 , 10 11 , 10 12 , 10 13 , and 10 14 . The target value v d is shown as a dotted line.
Figure 6. Velocity matching case with Dirichlet boundary control—Case 1: temperature profiles T plotted against y / L on the controlled boundary Γ c (a); y-component of the velocity v profiles plotted against y / L on the region Ω d along the line x / L = 0.2 (b). Numerical results for λ = 10 10 , 10 11 , 10 12 , 10 13 , and 10 14 . The target value v d is shown as a dotted line.
Fluids 07 00203 g006
Figure 7. Velocity matching case with Dirichlet boundary control—Case 2: optimal solution for λ = 10 11 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the x-component of the velocity field u (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Figure 7. Velocity matching case with Dirichlet boundary control—Case 2: optimal solution for λ = 10 11 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the x-component of the velocity field u (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Fluids 07 00203 g007
Figure 8. Velocity matching case with Dirichlet boundary control—Case 2: optimal solution for λ = 10 12 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the x-component of the velocity field u (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Figure 8. Velocity matching case with Dirichlet boundary control—Case 2: optimal solution for λ = 10 12 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the x-component of the velocity field u (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Fluids 07 00203 g008
Figure 9. Velocity matching case with Dirichlet boundary control—Case 2: temperature profiles T plotted against y / L on the controlled boundary Γ c (a); x-component of the velocity u profiles plotted against y / L on the region Ω d along the line x / L = 0.2 (b). Numerical results for λ = 10 10 , 10 11 , and 10 12 . The target value u d is shown as a dotted line.
Figure 9. Velocity matching case with Dirichlet boundary control—Case 2: temperature profiles T plotted against y / L on the controlled boundary Γ c (a); x-component of the velocity u profiles plotted against y / L on the region Ω d along the line x / L = 0.2 (b). Numerical results for λ = 10 10 , 10 11 , and 10 12 . The target value u d is shown as a dotted line.
Fluids 07 00203 g009
Figure 10. Velocity matching case with Neumann boundary control: optimal solution for λ = 10 6 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the x-component of the velocity field u (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Figure 10. Velocity matching case with Neumann boundary control: optimal solution for λ = 10 6 . Contours of the temperature field T (a); contours and streamlines of the velocity field u (b); contours of the x-component of the velocity field u (c). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Fluids 07 00203 g010
Figure 11. Velocity matching case with Neumann boundary control: temperature T (a) and wall-normal heat flux h (b) plotted against y / L on the controlled boundary Γ c . Numerical results for λ = 10 4 , 10 5 , 10 6 , and 10 7 .
Figure 11. Velocity matching case with Neumann boundary control: temperature T (a) and wall-normal heat flux h (b) plotted against y / L on the controlled boundary Γ c . Numerical results for λ = 10 4 , 10 5 , 10 6 , and 10 7 .
Fluids 07 00203 g011
Figure 12. Velocity matching case with distributed control: optimal solution for λ = 10 11 . Contours of the control Q (a); contours of the temperature field T (b); contours and streamlines of the velocity field u (c); contours of the y-component of velocity v (d). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Figure 12. Velocity matching case with distributed control: optimal solution for λ = 10 11 . Contours of the control Q (a); contours of the temperature field T (b); contours and streamlines of the velocity field u (c); contours of the y-component of velocity v (d). The velocity magnitude is indicated by | u | , and Ω d is the region where the objective is set.
Fluids 07 00203 g012
Table 1. Boussinesq control: physical properties employed for the numerical simulations.
Table 1. Boussinesq control: physical properties employed for the numerical simulations.
PropertySymbolValueUnits
Viscosity μ 0.00181 Pa   s
Density ρ 10,340 kg / m 3
Thermal conductivity λ 10.72 W/(mK)
Specific heatc 145.75 J/(kgK)
Coefficient of expansion β 2.5684 × 10 4 K 1
Table 2. Temperature matching case with Dirichlet boundary control: objective functional, percentage reduction, and number of iterations of the optimization algorithm for different λ values.
Table 2. Temperature matching case with Dirichlet boundary control: objective functional, percentage reduction, and number of iterations of the optimization algorithm for different λ values.
λ 10 5 10 6 10 7 10 8 Reference
J ( n ) × 10 6 3.1102.1792.0911.9791250
% Reduction 99.75 99.82 99.83 99.84 0
Iterations n656100
Table 3. Velocity matching case with Dirichlet boundary control. Case 1: objective functional, percentage reduction, and number of iterations of the optimization algorithm for different λ values.
Table 3. Velocity matching case with Dirichlet boundary control. Case 1: objective functional, percentage reduction, and number of iterations of the optimization algorithm for different λ values.
λ 10 10 10 11 10 12 10 13 10 14 Reference
J ( n ) × 10 12 586.3413.6137.49.7678.796701.1
% Reduction 16.4 41.01 80.40 98.61 98.74 0
Iterations n554650
Table 4. Velocity matching case with Dirichlet boundary control—Case 2: objective functional, percentage reduction and number of iterations of the optimization algorithm for different λ values.
Table 4. Velocity matching case with Dirichlet boundary control—Case 2: objective functional, percentage reduction and number of iterations of the optimization algorithm for different λ values.
λ 10 10 10 11 10 12 Reference
J ( n ) × 10 13 246.636.041.6775423
% Reduction 54.53 93.35 99.69 0
Iterations n41090
Table 5. Velocity matching case with Neumann boundary control: objective functional, percentage of reduction, and number of iterations of the optimization algorithm for the reference case and different λ values.
Table 5. Velocity matching case with Neumann boundary control: objective functional, percentage of reduction, and number of iterations of the optimization algorithm for the reference case and different λ values.
λ 10 4 10 5 10 6 10 7 Reference
J ( n ) × 10 12 30.5830.148.4541.536206.1
% Reduction 85.16 85.8 95.90 99.25 0
Iterations n414970
Table 6. Velocity matching case with distributed control: objective functional J ( n ) , percentage reduction, and number of iterations n of the optimization algorithm for different values of λ .
Table 6. Velocity matching case with distributed control: objective functional J ( n ) , percentage reduction, and number of iterations n of the optimization algorithm for different values of λ .
λ 10 10 10 11 10 12 Reference
J ( n ) × 10 13 2.7922.2292.1592061
% Reduction 99.96 99.97 99.97 0
Iterations n313350
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chierici, A.; Giovacchini, V.; Manservisi, S. Analysis and Computations of Optimal Control Problems for Boussinesq Equations. Fluids 2022, 7, 203. https://doi.org/10.3390/fluids7060203

AMA Style

Chierici A, Giovacchini V, Manservisi S. Analysis and Computations of Optimal Control Problems for Boussinesq Equations. Fluids. 2022; 7(6):203. https://doi.org/10.3390/fluids7060203

Chicago/Turabian Style

Chierici, Andrea, Valentina Giovacchini, and Sandro Manservisi. 2022. "Analysis and Computations of Optimal Control Problems for Boussinesq Equations" Fluids 7, no. 6: 203. https://doi.org/10.3390/fluids7060203

APA Style

Chierici, A., Giovacchini, V., & Manservisi, S. (2022). Analysis and Computations of Optimal Control Problems for Boussinesq Equations. Fluids, 7(6), 203. https://doi.org/10.3390/fluids7060203

Article Metrics

Back to TopTop