Sei sulla pagina 1di 7

Automatica 64 (2016) 105–111

Contents lists available at ScienceDirect

Automatica
journal homepage: www.elsevier.com/locate/automatica

Brief paper

On the passivity based control of irreversible processes:


A port-Hamiltonian approach✩
Héctor Ramírez a , Yann Le Gorrec a , Bernhard Maschke b , Françoise Couenne b
a
FEMTO-ST, UMR CNRS 6174, AS2M Department, Université de Bourgogne Franche-Comté, Université de Franche-Comté, ENSMM, 24 rue Savary, F-25000
Besanon, France
b
LAGEP, UMR CNRS 5007, Université de Lyon, Université Lyon 1, Faculté Sciences et Technologie, 43 Boulevard du 11 Novembre 1918, F-69622
Villeurbanne, France

article info abstract


Article history: Irreversible port-Hamiltonian systems (IPHS) have recently been proposed for the modelling of irre-
Received 1 June 2014 versible thermodynamic systems. On the other hand, a classical result on the use of the second law of
Received in revised form thermodynamics for the stabilization of irreversible processes is the celebrated thermodynamic avail-
1 June 2015
ability function. These frameworks are combined to propose a class of Passivity Based Controller (PBC) for
Accepted 25 June 2015
irreversible processes. An alternative formulation of the availability function in terms of internal energy
is proposed. Using IPHS a matching-condition, which is interpreted in terms of energy-shaping, is derived
Keywords:
and a specific solution that permits to assign a desired closed-loop structure and entropy rate is proposed.
Passivity based control The approach can be compared with Interconnection and Damping Assignment-PBC, this method how-
Port-Hamiltonian systems ever leads in general to thermodynamically non-coherent closed-loop systems. In this paper a system
Irreversible thermodynamics theoretic approach is employed to derive a constructive method for the control design. The closed-loop
CSTR system is in IPHS form, hence it can be identified with a thermodynamic system and the control param-
eters related with thermodynamic variables, such as the reaction rates in the case of chemical reactions.
A generic non-linear non-isothermal continuous stirred tank reactor is used to illustrate the approach.
© 2015 Elsevier Ltd. All rights reserved.

1. Introduction Sbarbaro, & Ortega, 2009). These systems retain much of the dis-
sipative port Hamiltonian structure, but differ by their structure
The different suggestions for the modelling of irreversible (interconnection and dissipation) matrices and input vector fields
thermodynamic processes as (dissipative) port-Hamiltonian sys- which depend explicitly on the gradient of the Hamiltonian. This
tems (PHS) (Duindam, Macchelli, Stramigioli, & Bruyninckx, 2009; framework has recently been combined with the framework of
Maschke & van der Schaft, 1992; van der Schaft & Maschke, 1995) the thermodynamic availability function (Alonso & Ydstie, 1996,
have led to a class of system called quasi-PHS (Dörfler, Johnsen, & 2001; Ydstie & Alonso, 1997) to derive Lyapunov conditions for the
Allgöwer, 2009; Eberard, Maschke, & van der Schaft, 2007; Hangos, stabilization of irreversible thermodynamic systems (Hoang et al.,
Bokor, & Szederkényi, 2001; Hoang, Couenne, Jallut, & Le Gorrec, 2011; Hoang, Couenne, Jallut, & Le Gorrec, 2012; Ydstie, 2002).
2011; Otero-Muras, Szederkényi, Alonso, & Hangos, 2008; Ramirez, From a control design perspective this implies that when look-
ing for closed-loop potentials, for instance when passivity based
control (PBC) techniques are applied (Ortega, van der Schaft, Ma-
✩ This work was supported by French sponsored projects HAMECMOPSYS and
reels, & Maschke, 2001; Ortega, van der Schaft, Maschke, & Escobar,
2002), the integrability conditions lead to partial differential equa-
Labex ACTION under reference codes ANR-11-BS03-0002 and ANR-11-LABX-0001-
01, respectively. The material in this paper was partially presented at the 1st IFAC tions which are nonlinear instead of linear. Furthermore, it is well
Workshop on Thermodynamic Foundations of Mathematical Systems Theory, July known that for this case a physically consistent parametrization of
13–16, 2013, Lyon, France and at the 19th IFAC World Congress, August 24–29, the control problem is far from obvious (Kotyczka, 2013). This im-
2014, Cape Town, South Africa. This paper was recommended for publication in plies closed-loop systems without physical interpretation or very
revised form by Associate Editor Thomas Meurer under the direction of Editor
complex matching equations to solve during the design.
Miroslav Krstic.
E-mail addresses: hector.ramirez@femto-st.fr (H. Ramírez),
In this paper we shall consider the control of a class of such
legorrec@femto-st.fr (Y. Le Gorrec), maschke@lagep.univ-lyon1.fr (B. Maschke), extensions of PHS, named Irreversible Port-Hamiltonian Systems
couenne@lagep.univ-lyon1.fr (F. Couenne). (IPHS) (Ramirez, Maschke, & Sbarbaro, 2013a,b). These systems
http://dx.doi.org/10.1016/j.automatica.2015.07.002
0005-1098/© 2015 Elsevier Ltd. All rights reserved.
106 H. Ramírez et al. / Automatica 64 (2016) 105–111

embed by construction simultaneously the first (conservation of The drift dynamic in (1) is defined by a non-linear relation be-
energy) and the second principle (irreversible creation of entropy). tween the time derivative ẋ of the state variables and ∂∂Ux , charac-
An incremental energy function, defined as an energy based avail- terized by the modulating function R x, ∂∂Ux , ∂∂ Sx , which explicitly
 
ability function, is used as desired closed-loop Hamiltonian follow-
depends on the differential of the energy ∂∂Ux . The balance equations
ing Ramirez, Gorrec, Maschke, and Couenne (2013); Ramirez, Le
of the total energy and entropy functions of IPHS express the first
Gorrec, and Maschke (2014). A Lyapunov condition is then derived and second principles of irreversible thermodynamics: the conser-
and interpreted in terms of energy-shaping passivity based control vation of energy and the irreversible creation of entropy due to
(PBC) (Ortega et al., 2001, 2002). The Lyapunov condition is then irreversible phenomena. By skew-symmetry of J, the balance equa-
further developed and a specific non-linear solution, which per- tion of the internal energy,
mits to assign a desired closed-loop interconnection structure and
entropy dissipation rate, is proposed. dU
= y⊤ u, (3)
The proposed design procedure consists in finding appropri- dt
ate structure matrices and desired thermodynamic control func- expresses that the system (1) is a lossless dissipative systems with
tions to solve algebraically (Acosta, Ortega, Astolfi, & Sarras, 2008; (energy) supply rate y⊤ u (Willems, 1972). The balance equation of
Nunna, Sassano, & Astolfi, 2015) the associated matching equa- the entropy function is given by
tions. The IPHS formulation allows to systematically parametrize
dS  ∂S ⊤ ∂U ∂ S ⊤  ∂U 
the problem to derive the conditions for a globally stabilizing con- = R x, ∂∂Ux , ∂∂ Sx J (x) g x, ∂ x u

+
troller which preserves the IPHS structure in closed-loop. Since the dt ∂x ∂x ∂x
structure of the closed-loop system is IPHS, it can be interpreted as 
 ∂S ⊤

= γ x, ∂∂Ux {S , U }2J + g ⊤ x, ∂∂Ux u.
  
a thermodynamic system and the parameters of the controller re- (4)
lated with thermodynamic variables, such as the reaction rates in ∂x
the case of chemical reactions. By Definition 1 the first term is positive: γ x, ∂∂Ux {S , U }2J = σ x,
  
The paper is organized as follows: Section 2 recalls the defini- ∂U

∂x
≥ 0. For irreversible thermodynamic systems, this term rep-
tion and physical interpretation of IPHS. In Section 3 the framework
resents the internal entropy production and its positivity expresses
of the thermodynamic availability function is presented and a gen-
the second principle of thermodynamics. The second term in (4)
eral Lyapunov condition is derived. Section 4 presents the main
corresponds to the definition of an entropy supply rate. For further
results of this paper. In Section 5 the approach is applied to the details on IPHS and its thermodynamic interpretation we refer the
example of a generic non-linear non-isothermal CSTR model. Fi- reader to Ramirez, Maschke, et al. (2013a).
nally Section 6 gives some closing remarks and comments on fu-
ture work.
3. Energy shaping of IPHS

2. Irreversible Port-Hamiltonian systems In Ramirez, Gorrec, et al. (2013) the framework of the thermo-
dynamic availability function, formalized for the control of ther-
Irreversible Port Hamiltonian Systems (IPHS) have been defined modynamic systems by Alonso and Ydstie (2001) and with roots
in Ramirez, Maschke, et al. (2013a) as an extension of Port in the works of Keenan (1951) and Willems (1972), has been used
Hamiltonian systems for the purpose of representing not only to derive a Lyapunov condition for the stability analysis of IPHS. Us-
the energy balance but also the entropy balance, essential in ing the convexity of the internal energy function, a convex exten-
thermodynamic systems. sion named energy based availability function has been defined and
shown to be a Lyapunov function candidate for the closed-loop sys-
Definition 1 (Ramirez, Maschke, et al., 2013a). An input affine IPHS tem. This has been done following Alonso and Ydstie (2001), Hoang
is defined by the dynamic equation and output relation et al. (2011, 2012) and Ydstie (2002), where an entropy based avail-
ability function is constructed for irreversible thermodynamic sys-
 ∂U tems.
ẋ = R x, ∂∂Ux , ∂∂ Sx J (x) + g x, ∂∂Ux u,
  
∂x (1)
In the sequel the stability condition presented in Ramirez,
∂U
 ∂U Gorrec, et al. (2013) is developed and it is shown that it defines an

x, (x)

y=g ∂x energy shaping controller (Ortega et al., 2001, 2002) with respect to
∂x
a new closed-loop Hamiltonian and supply rate.
where x(t ) ∈ Rn is the state vector, the smooth functions U (x) :
Rn → R and S (x) : Rn → R represent, respectively, the internal Definition 2. The energy based availability function is defined as
energy (the Hamiltonian) and the entropy functions, J ∈ Rn×n is
a constant skew-symmetric structure (interconnection) matrix of A(x, x∗ ) = U (x) + Ua (x, x∗ ) (5)
the Poisson bracket (Maschke, van der Schaft, & Breedveld, 1992) with
acting on any two smooth functions Z and G as:
∂U ∗ ⊤
Ua (x, x∗ ) = −U (x∗ ) − ( x ) ( x − x∗ ) (6)
∂Z ⊤ ∂G ∂x
{Z , G}J = (x)J (x). (2)
∂x ∂x and x∗ an equilibrium point.
 ∂U ∂S 
The real function R = R x, ∂ x , ∂ x is composed by the product of
Assumption 3. The availability function A(x, x∗ ) is strictly positive
a positive definite function γ and the Poisson bracket between the
with minimum A(x = x∗ ) = 0 where x∗ is an equilibrium point.
entropy and the energy functions:
This assumption is fulfilled for any equilibrium point of a
R x, ∂∂Ux , ∂∂ Sx = γ x, ∂∂Ux {S , U }J ,
   
monophasic thermodynamic systems if one of the extensive vari-
ables is fixed since then the internal energy is a strictly convex
with γ x, ∂∂Ux : Rn → R, γ ≥ 0, a non-linear positive function.
 
function (Jillson & Ydstie, 2007).
The input map is defined by g x, ∂∂Ux ∈ Rn×m with the input u(t ) ∈
 
It is clear from Definition 2 that the energy based availability
Rm a time dependent function. function qualifies as a Lyapunov function candidate for controlled
H. Ramírez et al. / Automatica 64 (2016) 105–111 107

IPHS. Define an availability-conjugated output defining an avail- M (x) a symmetric positive semi-definite matrix defining a pseudo-
ability supply rate of the availability function, Riemannian metric expressed by the so called Ginzburg–Landau
(dissipative) bracket (Grmela & Öttinger, 1997), defined in some
ỹ = g ⊤ ∂∂Ux (x) − ∂∂Ux (x∗ ) = g ⊤ ∂∂Ax (x, x∗ ).
 
(7) local coordinates for two smooth functions Z and G as,
∂Z ⊤ ∂G
Proposition 4. Let x∗ be an equilibrium point for (1) and A(x, x∗ ) [Z , G]M = (x)M (x) (x). (13)
satisfies Assumption 3 with u = β (x, x∗ ) satisfying
∂x ∂x
In this case (12) is a PHS. The drawback of selecting a PHS as target
γ {S , U }J {A, U }J + ỹ β = −s,

(8) system for the control of IPHS is that it leads to non-linear match-
ing (partial differential) equations. This motivates the algebraic ap-
with s(x, x ) > 0, ∀x ̸= x and s(x, x ) = 0 for x = x . Then x is
∗ ∗ ∗ ∗ ∗
proach employed in this paper, where the closed-loop Lyapunov
globally asymptotically stable. function is fixed a priori as the availability function using the ther-
modynamic properties of IPHS. Some examples of use of algebraic
Proof. A is by Definition 2 a Lyapunov function candidate for (1).
approaches for solving matching equations in PBC design can be
The time derivative of A along the trajectories of (1) is given by
found for instance in Acosta et al. (2008) and Nunna et al. (2015).
∂U ∂ U ∗ ⊤ dx
 
dA
= ( x) − (x ) 4.1. A locally asymptotically stabilizing controller
dt ∂x ∂x dt
∂U ∂U ∗ ∂U
 ⊤
We shall now elaborate on the matching equation presented
=R (x) − (x ) J (x) in the previous section and derive the conditions for shaping the
∂x ∂x ∂x
Hamiltonian and the structure of the system. Define the control in-
∂U ∂U ∗ ⊤ put as u = γ {S , U }J ũ, with ũ an auxiliary input, then the matching
 
+ ( x) − (x ) g β, (9) equation (8) becomes
∂x ∂x
γ {S , U }J {A, U }J + ỹ⊤ ũ = −s.
 
and using (8) we finally obtain (14)
where s is the rate of decrease of the availability function defined in
dA
= −s. (10) (10). Notice that (14) may be compared to the stabilization condi-
dt tion for reversible Hamiltonian systems. In that case γ {S , U }J = 1
Since A is strictly positive x∗ is an isolated minimum, and since s and the condition {A, U }J + ỹ⊤ ũ = −s expresses the decrease
only vanishes at x∗ asymptotic stability follows invoking La Salle’s of the shaped closed-loop Hamiltonian function. For IPHS, from
invariance theorem on a region around x∗ .  (14), we see that this condition is modulated by the nonlinear term
R = γ {S , U }J , which is not signed defined since the bracket {S , U }J
Proposition 4 defines an energy shaping controller (Ortega,
may take positive or negative values. Let us consider a particular
Loria, Nicklasson, & Sira-Ramirez, 1998). Indeed, assume that there
solution to (14) in the following form
exists a function Ua (x, x∗ ), which represents the added/removed
energy by the controller, such that the closed-loop energy function ỹ⊤ ũ = −{A, U }J − {S , U }J [A, A]M + {A, A}Jd (15)
(availability function) can be written as A = U (x) + Ua (x, x∗ ). Then
where Jd (x) = −Jd (x) is a desired closed-loop interconnection ma-

from (3), the existence of Ua such that (10) is satisfied implies the
trix defining a Poisson bracket. Notice that the bracket {A, A}Jd = 0,
existence of a state feedback u = β(x, x∗ ) such that
expressing the conservation of the closed-loop energy with respect
β(x, x∗ )⊤ y(x) = −U̇a (x, x∗ ) − s(x). (11) to Jd . This is referred to as interconnection assignment. Substituting
(15) in (14), we have that the dissipation function is given by
The closed-loop energy function A is defined by construction,
hence by combining (6) and (11) we obtain s = γ {S , U }2J [A, A]M . (16)
∂U ∗ ⊤ Using the definition of ỹ (Eq. (7)) and noting that (15) is mul-
β(x, x∗ )⊤ y(x) = (x ) ẋ − s(x),
tiplied from the left by ∂∂Ax , the control law ũ satisfying (15) and

∂x
and using (1) gives the matching Eq. (8). Hence, Proposition 4 de- being independent of the co-energy variables has to satisfy
∂U ∂A ∂A
 
fines an energy shaping controller with added/removed energy Ua .
g ũ = −J − { S , U }J M + Jd .
∂x ∂x ∂x
4. Interconnection and entropy rate assignment The linear least square solution with respect to the Euclidean norm
of this equation considering ũ = β(x) is given by,
In this section we shall further elaborate on a class of control   ∂U ∂U ∗
 
which not only assigns the energy based availability function β(x) = g Ď (x) −{S , U }J M (x) + Jd (x) (x) − (x )
as closed-loop Hamiltonian but also shapes the structure of the ∂x ∂x
system by assigning a desired interconnection matrix and closed- ∂U
loop entropy rate. Consider the following target system: − g Ď (x)J (x), (17)
∂x
 ∂A which exists if and only if the following matching equation: is sat-
ẋ = −M x, ∂∂ Sx , ∂∂Ax (x),

(12)
∂x isfied (Campbell & Meyer, 2009):
∂U ∂U ∗
 
with M x, ∂∂ Sx , ∂∂Ax ≥ 0. The time variation of A is
 
− g ⊥ (x){S , U }J M (x) (x) − (x )
∂x ∂x
∂ A⊤  ∂A
(x)M x, ∂∂ Sx , ∂∂Ax (x) ≤ 0

Ȧ = −
  ∂U ∂U ∗

∂x ∂x + g ⊥ (x) Jd − J (x) − Jd (x ) = 0 (18)
which implies that under some additional properness conditions ∂x ∂x
(12) is asymptotically stable. where g Ď (x) = [g ⊤ (x)g (x)]−1 g ⊤ (x) is the Moore–Penrose pseudo
The target system (12) can be interpreted within the framework inverse and g ⊥ (x) a left full rank annihilator of g (x), i.e., g ⊥ (x)g (x)
of IDA-PBC (Ortega et al., 2001, 2002) if M = Jd (x) − M (x), with = 0. Eqs. (17) and (18) may be interpreted in terms of IDA-PBC.
108 H. Ramírez et al. / Automatica 64 (2016) 105–111

Indeed, take again the case reversible case, γ {S , U }J = 1, then Furthermore, the control defines a purely energy-balancing + entropy
u = ũ and it is observed that the solution corresponds to the IDA- injecting controller.
PBC solution for the PHS The thermodynamic equilibrium is normally excluded from the
∂U region of operation of the system, however it should be noticed
ẋ = J + g ũ (19)
∂x that {S , U }J = 0 implies dA
dt
= 0. The equilibrium is hence only
with target system given by locally asymptotically stable, and any equilibrium too close to the
  ∂A thermodynamic equilibrium could present convergence problems.
ẋ = −M (x) + Jd (x) .
∂x 4.2. A globally asymptotically stabilizing controller
In the present case, since γ {S , U }J ̸= 1, the target system of the
equivalent IDA-PBC problem is given by In order to overcome the limitations of the previous design we
  ∂A now fix as control objective to render the closed-loop system IPHS
ẋ = −{S , U }J M (x) + Jd (x) , (20) and assign a desired closed-loop entropy rate. This, from a physical
∂x
point of view, is equivalent to change the thermodynamic equilib-
where the matrix {S , U }J M (x) is not a positive (semi) definite since
rium in closed-loop. Consider the following solution to (8)
{S , U }J is of arbitrary sign. This ‘‘contradiction’’ comes of course
from the fact that the previous interpretation has been performed ỹ⊤ u = −R{A, U }J − σd [A, A]M + Rd {A, A}Jd (24)
with respect to the auxiliary input ũ and not the actual control
input u = γ {S , U }J ũ. Nevertheless, it also expresses the irre- where Rd = γd {S , A}Jd and σd = γd {S , A} with γd > 0 a non-
2
Jd
versible nature of the controlled system: The bracket {S , U }J , which vanishing positive function. These two functions which are defined
for irreversible thermodynamic systems corresponds to the physi- by the controllers design parameters A, Jd and γd , are respectively,
cal driving force, appears explicitly in the structure matrix of IPHS a designed non-linear modulating function and a closed-loop en-
making the tropy rate. Rd and σd only vanish at ∂∂Ax (x∗ ) = 0, which corresponds
 control design non-linear with respect to the states and
co-states ∂∂Ux . to the desired closed-loop equilibrium. The difference with (15),

The result is summarized in the following proposition. where an auxiliary input is used to factor-out the bracket {S , A}J , in
(24) new modulating functions, σd and Rd , are introduced as design
Proposition 5. Let x∗ be an equilibrium point for (1). Assume there parameter to introduce a closed-loop thermodynamic equilibrium
exist matrices M (x) ≥ 0 and Jd (x) = −Jd⊤ (x), and a full-rank left an- that coincides with the desired equilibrium x∗ .
nihilator g ⊥ (x) of g (x) satisfying (18). Then u = γ {S , U }J β with β The control law u has to satisfy
as in (17) locally asymptotically stabilizes x∗ . Furthermore, the closed- ∂U ∂A ∂A
 
loop dynamic is gu = −RJ − σd M + Rd Jd .
∂x ∂x ∂x
  ∂A
And the linear least square solution with respect to the Euclidean
ẋ = −σ M + RJd (21)
∂x norm is given by
  ∂U ∂U ∗
with σ = γ {S , U }2J ≥ 0.
 
Ď
β(x) = g (x) Rd Jd − σd M (x) − (x )
Proof. Eq. (21) is obtained by replacing the control law u = ∂x ∂x
γ {S , U }J β in (1) under the assumption that (18) is satisfied. Since ∂U
M (x) is positive semi-definite, the asymptotic stability follows by − g Ď (x)RJ (x), (25)
applying La Salle’s invariance principle in a region around the equi- ∂x
librium. The region of attraction is given by the largest subset that which exists if and only if
excludes {S , U }J = 0, which corresponds to the thermodynamic   ∂U ∂U ∗
 
equilibrium, and which is normally excluded from the region of g (x) Rd Jd − σd M

( x) − (x )
∂x ∂x
operation of the system. 
∂U
The closed-loop system resembles an IPHS with respect to the − g ⊥ (x)RJ (x) = 0. (26)
energy based availability function, but the modulating function ∂x
R = γ {S , U }J is defined with respect to the open-loop structure The result is summarized in the following proposition.
matrix J and Hamiltonian U (x). The dissipation of the closed-loop
system is given by (16), and may be equivalently written in terms of Proposition 7. Let x∗ be an equilibrium point for (1). Assume there
the internal entropy production or entropy rate σ as s = σ [A, A]M , exist matrices M (x) ≥ 0 and Jd (x) = −Jd⊤ (x), a scalar functions γd
hence it is directly related with the irreversible thermodynamic > 0 such that σd = γd {S , A}2Jd and Rd = γd {S , A}Jd , and a full-rank
dissipation of the system. left annihilator g ⊥ (x) of g (x) satisfying (26). Then u = β with β as
The matching equation (18) is an algebraic condition since the in (25) globally asymptotically stabilizes x∗ . Furthermore, the closed-
closed-Hamiltonian (and hence also Ua ) has been fixed. The de- loop dynamic is
sign parameters are the dissipation matrix M, the desired inter-
connection matrix Jd and up to some degree g ⊥ . These matrices   ∂A
should be chosen such that (18) is satisfied and can be used to as- ẋ = −σd M + Rd Jd . (27)
∂x
sign the desired closed-loop dynamic. For some cases, it is possible
to use relations arising from the physical properties of the system Proof. The proof is analogous to the proof of Proposition 5. The
to solve (18). A particular case is when the interconnection matrix global asymptotic stability follows by applying La Salle’s invariance
is not changed, i.e., Jd = J, and only some closed-loop dissipation principle in a region around x∗ noting that dA dt
only vanishes
is added. at x∗ . 
Corollary 6. Assume Jd = J, then x∗ is locally asymptotically stable if The closed-loop system is an IPHS with dissipation function
s = σd ∂∂Ax M ∂∂Ax . Indeed, we see from (27) that if M = 0, then (27)

∂U ∗

g J (x ) = 0, and (22) is an IPHS with respect to A according to Definition 1.
∂x It is important to remark that (27) can be derived using
g ⊥ M = 0. (23) IDA-PBC, however finding an appropriate physically consistent
H. Ramírez et al. / Automatica 64 (2016) 105–111 109

parametrization is far from obvious when dealing with non- The dynamic equation of the CSTR may be expressed as
mechanical or electro-mechanical systems (Kotyczka, 2013). The
∂U
(x) + g x, ∂∂Ux u
 
systematic control design approach employed in the derivation of ẋ = RJ (31)
Proposition 5 led to a thermodynamic consistent parametrization ∂x
of the control parameters A, Jd , M, and σd in Proposition 7. This with state vector x = [n⊤ , S ]⊤ , where n = (n1 , . . . , nm )⊤ with ni
result can be regarded as a thermodynamic equivalent of IDA-PBC. the number of moles of the species i inside the reactor, S the total
Indeed (27) is again an IPHS with structure matrix Rd Jd and energy entropy, the internal energy U (x) as Hamiltonian function,
function A (interconnection assignment and energy shaping), and
the dissipation assignment given by matrix σd M assures the 0 ··· 0 ν̄1 µ1
   
convergence to the minimum of the closed-loop energy function. ..  ∂U  .. 
. , . 
 ,

J = 0 ··· 0 =
Corollary 6 can be generalized for this case as follows. ∂x
0 ··· 0 ν̄m µm
 
Corollary 8. x∗ is globally asymptotically stable if −ν̄1 ··· −ν̄m 0 T
where the structure matrix J is a constant skew-symmetric matrix
g ⊥ J = 0, and (28)
whose elements are the signed stoichiometric coefficients of the
g Jd = 0 ,

and (29) chemical reaction ν̄i = ζi − ηi , which is positive or negative de-
pending on whether the species i is a product or a reactant, the
g M = 0.

(30) differential ∂∂Ux is the vector of intensive variables, where T and µi
are respectively the temperature in the reactor and the chemical
Condition (30) is in general easy to fulfil since the only
potential of the species i. The modulating function R is given by
restrictions on M are that it should be positive semi-definite and  
symmetric. Condition (29) is only required if Jd is chosen different rV
R = γ x, ∂∂Ux {S , U }J =
 
to the null matrix. On the other hand, condition (28) is more
A
TA
restrictive, since J and g (and up to an important degree also g ⊥ )
are defined by the structure of the system. Nevertheless, since J with γ = TrVA and {S , U }J = A, where r (n, T ) is the reaction
expresses the conserved quantities of the system we may find this rate which depends on the temperature T and on the reactant
condition automatically fulfilled for systems whose input maps are m vector n (Feinberg, 1987; Horn & Jackson, 1972),
mole number
related with the physical invariants. In that case selecting J = Jd A = − i=1 ν̄i µi is the chemical affinity of the reaction and corre-
reduces (28) and (29) to one equivalent condition. This point will sponds to the thermodynamic driving force of the chemical reac-
be illustrated on the example of the CSTR. tion. The input vector is u = [u1 , u2 ]⊤ with u1 = F /V the dilution
rate, where F is the volumetric flow rate, and u2 = Q the heat flux
Remark 9. No assumption has been made on the stability of from the cooling jacket. The input map is given by
the open-loop equilibrium. The control is designed using a state
ñ 0
 
feedback derived from Lyapunov arguments, allowing to deal with
g =
multiple or/and unstable open-loop equilibria like in the case of φ(x) 1
T
exothermic chemical reaction systems.
with ñ = ne − n, where ne = (ne1 , . . . , nem )⊤ is the vector con-
5. Example: the CSTR taining the number of moles of species i at the inlet and φ(x) =
i=1 (nei sei − ni si ) + T (hei − Tsei − µi ), where sei , si and hei are re-
m nei

Let us consider for simplicity and without restricting to a single spectively the inlet molar entropy, the molar entropy and the inlet
reaction in a continuous stirred tank reactor (CSTR) with the specific molar enthalpy of species i.
following reversible reaction scheme: The assumption of constant total volume imposes a constraint
m m over the total outlet flow (Couenne, Jallut, Maschke, Breedveld, &
r
 
ζi Bi
ηi Bi Tayakout, 2006; Couenne, Jallut, Maschke, Tayakout, & Breedveld,
i=1 i=1
2008), i.e. in the present case the total outlet flow is chosen equal to
the total inlet flow. We underline that the assumption of constant
with ζi , ηi being the constant stoichiometric coefficients for species
volume guarantees that the energy based availability function A is
Bi in the reaction. We shall consider that the CSTR satisfies the
strictly convex.
following standard operation assumptions (Aris, 1989; Favache &
Dochain, 2009).
5.2. Stabilization of the CSTR
Assumption 10. (1) The reactor operates in liquid phase, (2) the
molar volumes of each species are identical and the total volume, A constructive method to compute globally asymptotically sta-
denoted by V , in the reactor is maintained constant, (3) the initial bilizing solutions to the stability condition is provided by Proposi-
number of moles of a species in the reactor is equal to the number tion 7. Let us select Jd = J such that Corollary 8 can be used. First we
of moles of the inlet of the same species, (4) for a given steady state shall verify that (28) is satisfied and then we shall look for a matrix
temperature T and steady state input there is only one possible M such that (30) holds. The first step is to find a full-rank left anni-
steady state for the mass (numbers of moles) balance. hilator for the input map. A possible choice is the (m − 1)× n matrix
ñ2 −ñ1 0 ··· 0 0 0
 
Remark 11. The last point of Assumption 10 is standard and
does not imply that the chemical reaction system does not admit 0 ñ3 −ñ2 ··· 0 0 0
g⊥ =  .. .. .. .
multiple stable or unstable equilibrium points. It refers to that each 
0 0 . . . 0 0

steady state temperature is associated to one unique steady state
temperature. 0 0 ··· 0 ñm −ñm−1 0
Using this annihilator we compute from (22)
5.1. IPHS model (Ramirez, Maschke, et al., 2013a) 
0 ··· 0 ν̄1 ñ2 − ν̄2 ñ1

0 ··· 0 ν̄2 ñ3 − ν̄3 ñ2
The CSTR has been extensively studied using IPHS and contact ,

g ⊥J = 
 .. .. .. ..
geometry in Ramirez, Maschke, et al. (2013a) and the reader is . . . .

referred to that work for a detailed deduction of the IPHS model. 0 ··· 0 ν̄m−1 ñm − ν̄m ñm−1
110 H. Ramírez et al. / Automatica 64 (2016) 105–111

and it remains to verify that g ⊥ J = 0, which is true if controller has been interpreted in terms of energy-shaping PBC and
further developed to derive a specific non-linear solution, which
ñ1 ñ2 ñm−1 ñm
= = ··· = = . (32) permits to assign a desired closed-loop interconnection structure
ν̄1 ν̄2 ν̄m−1 ν̄m and entropy rate. The matching condition is an algebraic condi-
It has been shown (Prigogine & Defay, 1954) for batch reactors that tion whose solution is parametrized by the desired closed-loop
(32) is actually the expression of De Donder’s extent of reaction interconnection and damping matrices. It is shown that a physi-
n0i − ni cally (thermodynamically) coherent closed-loop system cannot be
= ξ. in PHS form, and hence standard PBC techniques such as IDA-PBC
ν̄i
fail in the choice of the ideal target system. The proposed controller
This property can easily be extended to the CSTR case as soon as As-
globally stabilizes the closed-loop system and renders it IPHS with
sumption 10 is satisfied, i.e., when the initial number of moles of
dissipation. This allows to interpret the closed-loop system as a
each species equals the number of moles at the inlet: n(t = 0) =
thermodynamic system and relate the control parameters with
n0 = ne (see also Aris, 1989). Hence (28) is automatically fulfilled.
This comes from the fact that J expresses the stoichiometry of the thermodynamic variables, such as the reaction rates in the case of
reaction and g the mole (mass) balance relation. Since the reactor chemical reactions.
operates at constant volume, the total mass becomes an invariant The example of a generic non-linear non-isothermal CSTR has
for the reaction, and g ⊥ J = 0 is simply the mathematical expres- been used to illustrate the approach. For this case the solution
sion of this invariant. to the matching equation follows directly from the IPHS model.
Condition (30) can be solved by noting that the last column of Future work will deal with numerical implementations of the
g ⊥ is zero. This implies that any matrix M (x) = M ⊤ (x) ≥ 0 for controller under realistic operation conditions.
which the first m rows and columns forms a null submatrix is so-
lution to (30). A (simple) possible choice is M = diag(0, . . . , 0, 1), Acknowledgements
which corresponds to a diagonal matrix with all elements equal to
zero except the last element of its diagonal which is 1. The closed- The authors would like to thank the editors and the reviewers
loop system then takes the form for their constructive comments and suggestions.
  ∂A
ẋ = −σd M + Rd J .
∂x References
The closed-loop system is an IPHS with dissipation, with the
availability function as closed-loop Hamiltonian. Moreover, if no Acosta, J., Ortega, R., Astolfi, A., & Sarras, I. (2008). A constructive solution for
stabilization via immersion and invariance: The cart and pendulum system.
damping injection is considered (M = 0), then the controller cor-
Automatica, 44, 2352–2357.
responds to an energy-shaping controller. The dissipation is given Alonso, A. A., & Ydstie, B. E. (1996). Process systems, passivity and the second law
by −σd M ∂∂Ax , it is modulated by the desired entropy production of thermodynamics. Computers and Chemical Engineering, 20, 1119–1124.
σd and acts only on the entropy balance. This is consistent with Alonso, A. A., & Ydstie, B. E. (2001). Stabilization of distributed systems using
irreversible thermodynamics. Automatica, 37, 1739–1755.
the thermodynamic interpretation of the closed-loop system. The Aris, R. (1989). Chemical engineering, Elementary chemical reactor analysis.
closed-loop entropy balance is given by Stoneham, USA: Butterworths.
m Campbell, S. L., & Meyer, C. D. (2009). Generalized inverses of linear transformations.
Society for Industrial and Applied Mathematics.

νi µi (x) − µi (x∗ ) − σd (T − T ∗ ).
 
Ṡ = −γd Couenne, F., Jallut, C., Maschke, B., Breedveld, P., & Tayakout, M. (2006). Bond
i=1 graph modelling for chemical reactors. Mathematical and Computer Modelling
From this balance equation we see how the first term contributes of Dynamical Systems, 12, 159–174.
Couenne, F., Jallut, C., Maschke, B., Tayakout, M., & Breedveld, P. (2008). Structured
to the energy-balancing and the second term to the entropy injec- modeling for processes: A thermodynamical network theory. Computers &
tion. The time derivative of A is Chemical Engineering, 32, 1120–1134.
Dörfler, F., Johnsen, J., & Allgöwer, F. (2009). An introduction to interconnection and
dA
= −σd (T − T ∗ )2 = −γd (A − A∗ )2 (T − T ∗ )2 . (33) damping assignment passivity-based control in process engineering. Journal of
Process Control, 19, 1413–1426.
dt
Duindam, V., Macchelli, A., Stramigioli, S., & Bruyninckx, H. (Eds.) (2009). Modeling
The decrease of the energy based availability function is related and control of complex physical systems—The port-Hamiltonian approach. Berlin,
to the desired irreversible entropy rate, which is positive definite Germany: Springer-Verlag.
and only zero at the desired equilibrium. In order to complete the Eberard, D., Maschke, B. M., & van der Schaft, A. J. (2007). An extension of
Hamiltonian systems to the thermodynamic phase space: Towards a geometry
stability proof, we apply La Salle’s invariance Theorem in a suffi-
of nonreversible processes. Reports on Mathematical Physics, 60, 175–198.
ciently small region around T = T ∗ . From Assumption 10 we have Favache, A., & Dochain, D. (2009). Thermodynamics and chemical systems stability:
that there is only one equilibrium for each temperature and that The CSTR case study revisited. Journal of Process Control, 19, 371–379.
T = T ∗ ⇔ A = A∗ , hence we can conclude that the closed-loop Feinberg, M. (1987). Chemical reaction network structure and the stability
systems is globally asymptotically stable. of complex isothermal reactors—I. The deficiency zero and deficiency one
theorems. Chemical Engineering Science, 42, 2229–2268.
The tuning parameter in the proposed controller is the scalar Grmela, M., & Öttinger, H. (1997). Dynamics and thermodynamics of complex fluids.
function γd > 0. From (33) and (27) we observe that this func- I. Development of a general formalism. Physical Review E, 56, 6620–6632.
tion can be used to increase/decrease and shape the closed-loop Hangos, K. M., Bokor, J., & Szederkényi, G. (2001). Hamiltonian view on process
dissipation and the closed-loop interconnection matrix. Recall that systems. AIChE Journal, 47, 1819–1831.
Hoang, H., Couenne, F., Jallut, C., & Le Gorrec, Y. (2011). The port Hamiltonian
in open-loop γ = TrVA , where the most important function is the approach to modelling and control of continuous stirred tank reactors. Journal
reaction rate r, which characterizes the chemical reaction. Hence of Process Control, 21, 1449–1458.
a thermodynamically consistent choice for the controller is γd = Hoang, H., Couenne, F., Jallut, C., & Le Gorrec, Y. (2012). Lyapunov-based
rd (x) T ∗VA∗ , with rd (x) a desired reaction profile. A simple choice that control of non isothermal continuous stirred tank reactors using irreversible
thermodynamics. Journal of Process Control, 22, 412–422.
guarantees σd > 0 is rd = r ∗ which is the open-loop reaction rate Horn, F., & Jackson, R. (1972). General mass action kinetics. Archive for Rational
evaluated at the desired equilibrium. Mechanics and Analysis, 47, 81–116.
Jillson, K. R., & Ydstie, B. E. (2007). Process networks with decentralized inventory
6. Conclusion and flow control. Journal of Process Control, 17(5), 399–413.
Keenan, J. H. (1951). Availability and irreversibility in thermodynamics. British
Journal of Applied Physics, 2, 183.
This paper presents a constructive PBC method based on IPHS Kotyczka, P. (2013). Local linear dynamics assignment in IDA-PBC. Automatica, 49,
formulation and the thermodynamic availability function. The 1037–1044.
H. Ramírez et al. / Automatica 64 (2016) 105–111 111

Maschke, B., & van der Schaft, A. (1992). Port controlled Hamiltonian systems: modelling and control of multi-physical systems and control of partial differential
modeling origins and system theoretic properties. In Proceedings of the 3rd IFAC equations with application to micro-mechatronic and thermodynamic systems. He
symposium on nonlinear control systems, NOLCOS’92 (pp. 282–288). Bordeaux, is member of the IFAC technical committee on non-linear control systems (TC2.3)
France. since September 2014.
Maschke, B., van der Schaft, A., & Breedveld, P. (1992). An intrinsic Hamiltonian
formulation of network dynamics: Non-standard Poisson structures and
gyrators. Journal of the Franklin Institute, 329, 923–966.
Nunna, K., Sassano, M., & Astolfi, A. (2015). Constructive interconnection
Yann Le Gorrec was graduated as engineer in ‘‘Control,
and damping assignment for port-controlled Hamiltonian systems. IEEE
Electronics, Computer Engineering’’ at the National Insti-
Transactions on Automatic Control, 60(9), 2350–2361.
tute of Applied Sciences (INSA, Toulouse, France) in 1995.
Ortega, R., Loria, A., Nicklasson, P., & Sira-Ramirez, H. (1998). Communications and
He received in 1998 his Ph.D. degree from the National
control series, Passivity-based control of Euler–Lagrange systems. Berlin: Springer.
Higher School of Aeronautics and Aerospace (Supaero,
Ortega, R., van der Schaft, A., Mareels, I., & Maschke, B. (2001). Putting energy back
Toulouse, France). His field of interest was robust con-
in control. IEEE Control Systems Magazine, 21, 18–32.
trol and self scheduled controller synthesis. From 1999 to
Ortega, R., van der Schaft, A., Maschke, B., & Escobar, G. (2002). Interconnection and
2008, he was an Associate Professor in Automatic Con-
damping assignment passivity based control of port-controlled Hamiltonian
trol at the Laboratory of Control and Chemical Engineering
systems. Automatica, 38, 585–596.
of Lyon Claude Bernard University (LAGEP, Villeurbanne,
Otero-Muras, I., Szederkényi, G., Alonso, A. A., & Hangos, K. M. (2008). Local
France). He worked on port Hamiltonian systems and their
dissipative Hamiltonian description of reversible reaction networks. Systems &
use for the modelling and control of irreversible and distributed parameter systems
Control Letters, 57, 554–560.
with an application to physico-chemical processes. From September 2008 he is a
Prigogine, I., & Defay, R. (1954). Treatise on thermodynamics: Vol. 1. Chemical
Professor at the National Engineering Institute in Mechanics and Microtechnologies.
thermodynamics. London, Great Britain: Longmans Green and Co.
His current field of research is the control of nonlinear, irreversible and infinite di-
Ramirez, H., Gorrec, Y.L., Maschke, B., & Couenne, F. (2013). Passivity based control of
mensional systems with an application to micromechatronics, smart materials and
irreversible port Hamiltonian systems. In Proceedings of the 2013 IFAC workshop
vibro acoustic systems.
on thermodynamic foundations of mathematical systems theory, TFMST’13. Lyon,
France.
Ramirez, H., Le Gorrec, Y., & Maschke, B. (2014). Interconnection and damping
assignment—passivity based control of irreversible port Hamiltonian systems.
In Proceedings of the 19th IFAC world congress. Cape Town, South Africa. Bernhard Maschke was graduated as engineer in telecom-
Ramirez, H., Maschke, B., & Sbarbaro, D. (2013a). Irreversible port-Hamiltonian munication at the Ecole Nationale Supérieure des Télé-
systems: A general formulation of irreversible processes with application to communications (Paris, France) in 1984. He received in
the CSTR. Chemical Engineering Science, 89, 223–234. 1990 his Ph.D. degree on the control of robots with flexi-
Ramirez, H., Maschke, B., & Sbarbaro, D. (2013b). Modelling and control of multi- ble links and in 1998 the Habilitation to Direct Researches,
energy systems: An irreversible port-Hamiltonian approach. European Journal both from the University of Paris-Sud (Orsay, France).
of Control, 19, 513–520. From 1986 until 1990 he prepared his Ph.D. on the con-
Ramirez, H., Sbarbaro, D., & Ortega, R. (2009). On the control of non-linear trol of robots with flexible links at the Department of Ad-
processes: An IDA–PBC approach. Journal of Process Control, 19, 405–414. vanced Robotics of the Commissariat à l’énergie Atomique.
van der Schaft, A., & Maschke, B. (1995). The Hamiltonian formulation of energy From 1990 until 2000 he has been an Associate Professor
conserving physical systems with external ports. Archiv für Elektronik und at the Laboratory of Industrial Automation of the Conser-
Übertragungstechnik, 49, 362–371. vatoire National des Arts et Métiers (Paris, France) and since 2000 he is a Professor
Willems, J. (1972). Dissipative dynamical systems part I: General theory. Archive for in Control Engineering at the Laboratory of Control and Chemical Engineering of the
Rational Mechanics and Analysis, 45, 321–351. University Claude Bernard of Lyon (Villeurbanne, France). His research interests in-
Ydstie, B. E. (2002). Passivity based control via the second law. Computers and clude the modelling and control of multi-physical systems, port-Hamiltonian sys-
Chemical Engineering, 26, 1037–1048. tems, passivity-based control and modelling and control of distributed parameter
Ydstie, B. E., & Alonso, A. A. (1997). Process systems and passivity via the clausius- systems.
planck inequality. Systems & Control Letters, 30, 253–264.

Héctor Ramírez is an Associate Professor in control en- Françoise Couenne graduated as engineer in automatic
gineering at the University of Bourgogne-Franche-Comté control from the Institut Polytechnique de Grenoble
(Besançon, France). He received the Ph.D. in Automatic (Grenoble, France) in 1983. She received in 1986 her Ph.D.
Control from the University Claude Bernard-Lyon 1 (Lyon, degree in automatic control from the same institute. She
France) in 2012, the Ph.D. in electrical engineering, M.Sc. in has a CNRS (French National Research Center) research
electrical engineering and professional title in electronic position and is presently based at LAGEP (Laboratory
engineering from the University of Concepción (Concep- of Automatic Control and Chemical Engineering) at the
ción, Chile) in 2012, 2009 and 2006, respectively. He held University of Lyon 1 (Lyon, France). Her current research
a post-doctoral research position at the FEMTO-ST re- deals with modelling, port-Hamiltonian systems, model
search institute (Besançon, France) from 2012 to 2013. reduction and control of distributed parameter systems for
His research interests include port-Hamiltonian systems, physico-chemical processes.

Potrebbero piacerti anche