487
Views
12
CrossRef citations to date
0
Altmetric
Articles

Distributed port-Hamiltonian modelling for irreversible processes

, , &
Pages 3-22 | Received 27 Nov 2015, Accepted 31 Aug 2016, Published online: 05 Oct 2016

ABSTRACT

Infinite-dimensional port-Hamiltonian representation of irreversible processes accounting for the thermal energy domain is presented. Two examples are studied: the transmission line and a non-isothermal reaction diffusion process. The proposed approach uses thermodynamic variables in order to define the infinite-dimensional interconnection structure linking the different phenomena. A presentation is given for one-dimensional spatial domain. For the transmission line, the Hamiltonian is the total energy and for the reaction diffusion process it is the enthalpy or the opposite of entropy.

1. Introduction

The port-Hamiltonian formalism has been extensively used for the modelling, analysis and control of complex multi-physics systems of both finite- and infinite-dimensional natures. In the finite-dimensional case, the classical dissipative port-Hamiltonian formulation [Citation1] has been applied to mechanical systems [Citation2], RLC circuits [Citation3] and by using slightly degenerated structures to continuous stirred tank reactors (CSTRs) [Citation4]. In this later case, it gave rise to the definition of a new geometric structure associated with this irreversible port-Hamiltonian formulation in [Citation5].

In the infinite-dimensional case there exist several port-Hamiltonian formulations [Citation1,Citation6Citation8]. In this article we are interested in the formulation based on Stokes–Dirac structures [Citation9,Citation10] using port energy variables. This formulation has been used in the field of mechanics [Citation11], electrical circuits [Citation1] and isothermal multicomponent mass transport [Citation12]. Nevertheless, in the general non-isothermal case, the simultaneous representation of the energy conservation principle and the irreversible entropy production has not been associated with a linear geometric structure [Citation13].

Yet, in the case where these thermal phenomena are dominant, it is possible to put forward an interconnection structure between the different energy flows and the irreversible entropy production. This information is of primary importance as it expresses the irreversibility and the energy transformation from the material domain to the thermal domain, and its link with the dynamic behaviour of the system. The aim of this article is to make explicit such structure.

More precisely, we propose a port-Hamiltonian representation of two irreversible non-isothermal processes where the thermal energy domain is taken into account: the transmission line and a reaction diffusion process. This means that the entropy balance is in both cases explicitly written. The main difficulty in obtaining this representation concerns the representation of the conservation of the total energy and the irreversibility phenomena [Citation14].

The latter difficulty corresponds to an irreversible transfer of energy from some initial energy domain (such as mechanic, electric.) to the thermal domain. In [Citation14] we present a generalization to the infinite-dimensional case of the degenerated port-Hamiltonian structure proposed in [Citation4] in the case of the CSTR.

In order to obtain a Stokes–Dirac structure, we have to extend the vector of port variables as for a system with dissipation [Citation10]. We will see that a second extension will be necessary in order to satisfy the first law of thermodynamics. A first attempt of this methodology is presented in [Citation15].

For the two examples, the port-Hamiltonian representation, when the Hamiltonian is the energy, is achieved in extending the thermodynamic port variables by adding pairings of variables due to the physical irreversible phenomena and the pairings of port variables associated with the reappearance of energy in the thermal energy domain.

In the case of the reaction diffusion example, an alternative representation with the Hamiltonian being the opposite of the entropy is also proposed. This representation corresponds to the classical view of processes in chemical engineering [Citation16] where the energy balance is written but not the entropy. So it is also of interest to propose this representation. In this case the port-Hamiltonian representation is achieved in extending the thermodynamic port variables by adding pairings of variables due to the physical irreversible phenomena only.

In Section 2, we recall the main properties of irreversible thermodynamic distributed parameter systems. In Section 3 we briefly review the general port-Hamiltonian formulation of dissipative distributed parameter systems. In Section 4 we present the general port-Hamiltonian formulation of irreversible systems when the thermal domain is taken into account and we develop the results on the two examples. We propose also the port-Hamiltonian representation of the reaction diffusion system when the Hamiltonian is the opposite of the entropy.

2. Thermodynamic overview for distributed parameter systems

In the framework of equilibrium thermodynamics under the assumption that there is another form of energy than the internal energy u (in the case of a single phase system), the total energy by unit mass g fulfils the generalized Gibbs relation [Citation17,Citation18]:

(1) dg=jqjdpj+TdsPdυ+i=1ncμidθi(1)

where s,υ,θi are respectively the entropy per unit mass, volume per unit mass =1ρ and the mass fraction of species i, and T,P,μi are respectively the temperature, pressure and the chemical potential of the species i and the pairing of variables (qj,pj) corresponds to the jth other energy domain.

When non-equilibrium thermodynamics is considered, the Gibbs Equation (1) remains valid if the local equilibrium assumption is made [Citation17]:

Assumption 2.1:

The local and instantaneous relations between state variables of a physical system are the same as for a uniform system at thermodynamic equilibrium.

So the local equilibrium hypothesis states that (1) remains valid when expressed in terms of the material derivative t+vz where v is the velocity of the matter [Citation7]. In the case where there is no convection, the Gibbs equation becomes:

(2) gt=jqjpjt+TstPυt+i=1ncμiθit(2)

The entropy balance is obtained from (2) and the balances on the other variables. Putting it under the form of a general balance as (3) in a 1D case, it makes the source term corresponding to the irreversible entropy production σ appear:

(3) ρst=ϕ1z+ϕ2+σ(3)

where ρ is the total mass density, ϕ1 is the total entropy flux such diffusion phenomena and ϕ2 the local entropy flux due to exchange with the environment through the jacket and z represents the space coordinate.

Finally we will call the energy representation when the Gibbs equation is used as in (1) and the entropy representation when the Gibbs relation is seen as

(4) ds=1TdgjqjTjdp+PTdυi=1ncμiTdθi(4)

3. Infinite-dimensional dissipative port-Hamiltonian systems

The port-Hamiltonian formulation of distributed parameter systems is based on the generalization of the finite-dimensional Dirac structure [Citation19,Citation20]. This geometrical structure relates the flow and effort variables, f and e, through a skew symmetric operator that interprets the power conservation principle. In this section, we will recall the definition of a Stokes–Dirac structure and give the general port-Hamiltonian formulation of dissipative distributed parameter systems.

Let E and F be linear spaces equipped with the non-degenerated pairing:

(5) E×FLefe,f(5)

where L is a linear space. Let us consider the symmetric pairing built from the natural pairing ,:

(6) e1f1,e2f2>=<e1|f2>+<e2|f1>,e1f1,e2f2E×F(6)

Definition 3.1

[Citation21]: A Stokes–Dirac structure D is a linear subspace of E×F that is maximally isotropic respectively to the non-degenerate symmetric bilinear form (6) or D=D with D={bε×F|b,b1=0,b1E×F}.

Let us consider the 1D dissipative system defined on the space interval Z=[a,b] and represented by (7):

(7) xt=JGRGδHδx+Bu(7)

where x(t,z)Rn is the state of the system, u(t,z)C(Z) is the distributed control, J is a skew symmetric operator, G and B are linear operators with their respective adjoint operator G and B. In this article we limit our presentation for the following parametrization for J and G operators:

(8) J=P1z+P0,G=G1z+G0(8)

with P1 being a symmetric n×n matrix and P0 a skew symmetric n×n matrix. G1 and G0 being m×n matrices. RRm×m is a non-negative definite matrix and H(x) is the Hamiltonian of the system:

(9) H(x)=12abHdz=12abxTFxdz(9)

with F > 0 being a n×n constant matrix. δHδx represents the variational derivative of the functional H (see [Citation1]).

Consider the flow variables vector noted fC(Z)n given as the time derivative of the extensive variables x and the effort variables vector eC(Z)n given as the variational derivative of the Hamiltonian H.

This dissipative system can be rewritten using a Stokes–Dirac structure obtained using an extension with the dissipative port variables (fr,er)C(Z)m×C(Z)m [Citation1] together with the dissipative constitutive equation:

(10) fer=JGG0Jeefr+B0uwithfr=Rer(10)

with the following boundary port variables [Citation10]:

or with the following boundary port variables

(12) ifG1=0,fe=Rexte(b)e(a)withRext=12P1P1InIn(12)

The extended operator Je can be seen as the skew-symmetric operator describing the Stokes–Dirac structure corresponding to the dissipative system with the extended flow and effort variables fe=(f,fr) and ee=(e,er) and extended boundary port variables (11) or (12). In order to define the dynamics of the port-Hamiltonian system, the resistive port is terminated with the resistive relation fr=Rer that represents the dissipation of the system. represents the overall interconnection of the dissipative system through the Stokes–Dirac structure (noted D):

Figure 1. Interconnection structure of dissipative port-Hamiltonian system.

Figure 1. Interconnection structure of dissipative port-Hamiltonian system.

The energy balance is given by

(13) dHdt=12ddtabxTFxdz=abeTxtdz=e,fL2(13)

which finally leads to the following equation:

dHdt=abeTJeeTGRGe+eTBudz
(14) =eaTfaebTfby,uL2er,frL2with y=Be.(14)

Equation (14) shows that the Stokes–Dirac structure allows to derive naturally the overall change of the energy of the system as a partition into accumulated, dissipated and exchanged energy. In the next section we examine the case of irreversible system where the thermal domain is taken into account.

4. Irreversible port-Hamiltonian system

When the thermal domain is represented in the system, a part of the total energy is transformed irreversibly into thermal energy. This is well known as the irreversible entropy production. This irreversible phenomenon happens while the total energy is preserved as stated by the first thermodynamic principle. From the point of view of the original energy domain, it is seen as a dissipation and from the thermal domain point of view it is seen as a source. This irreversible energy is represented by the couple of conjugated port variables corresponding to temperature T and the irreversible entropy production noted σ. In [Citation13] and [Citation5] it is shown that when the irreversible thermal domain is taken into account, it makes it difficult to write the dynamical system using a Stokes–Dirac structure. In [Citation5] the authors propose a new formulation for irreversible systems using a skew symmetric operator left multiplied by a term that allows to inherit the irreversibility. In [Citation4] another pseudo-Hamiltonian formulation is given with an interconnection skew symmetric matrix, which depends on the temperature T.

Figure 2. Interconnection structure of irreversible port-Hamiltonian system with the thermal domain.

Figure 2. Interconnection structure of irreversible port-Hamiltonian system with the thermal domain.

We will show hereafter how to write an irreversible system, with n state variables including entropy s, using a Stokes–Dirac structure on an extended vector of port variables. This extension is done with a couple of conjugated port variables (fσ,eσ)C(Z)m×C(Z)m representing the irreversibility in the thermal domain. (fσ,eσ) could also be a vector of all possible irreversible phenomena occurring in the system. The flow variable fσ=σ corresponds to the opposite of the irreversible entropy production and the effort variable eσ=T corresponds to temperature. The proposed irreversible port-Hamiltonian system is as follows:

(15) fereσ=JGGσG00Gσ00Jeefrfσ+B00uwithfr=RerandeσTfσ=erTRer > 0(15)

So the extended operator Je is a skew-symmetric operator describing the Stokes–Dirac structure corresponding to the irreversible system on the extended flow and effort variables fe=f,fr,fσ, ee=e,er,eσ and extended boundary port variables (11) or (12) as shown in . In order to define the dynamics of the port-Hamiltonian system, the resistive port is terminated with the dissipative constitutive relation fr=Rer (noted as R in ) together with the constitutive relation of irreversibility (noted as S, for source, in ). This relation can be rewritten explicitly as follows:

(16) eσTfσ=Tσ=erTRerσ=erTRerT > 0(16)

Gσ represents the n×m matrix interconnection map of the irreversible m ports to the system, which has the following form:

(17) Gσ=00...0000...0011...11(17)

The energy balance is given by

(18) dHdt=abeTJe+eTBueTGRGe+eTGσfσdz=eaTfaebTfby,uL2er,frL2eσ,fσL2=0(18)

with y=Be. Relation (18) shows that the first thermodynamic principle is verified by the conservation of overall energy H of the system. The second thermodynamic principle, which states the positivity of entropy production σ, is verified by (16). These two thermodynamic principles are implicitly coded in the irreversible port-Hamiltonian formulation (15).

Remark 1:

The proposed representation of the system is based on an extension of port variables set (flows and efforts) corresponding to the natural dual variables for diffusion, reaction, conduction phenomena but also for their respective entropy production. The system shows that the externalization of the constitutive equations of the previously cited thermodynamic phenomena as well as the irreversible entropy production terms exhibits the intrinsic interconnection structure for the considered system. This methodology corresponds to defining port variables associated with the R and the S bonds of the irreversible transducer RS bond graph element [Citation1,Citation22]. This element is used as soon as the entropy balance is written. The RS element has two constitutive relations: the first one corresponds to the dissipation phenomenon R: the energy of some physical domain is dissipated. The constitutive equation is an algebraic relation between the effort eR(t) and flow fR(t) with positive values: fR(t)=ϕR(eR(t)) or eR(t)=ϕR(fR(t)). The second relation gives the irreversible entropy production. This can be seen as a source of thermal energy. This explains the name of this element (S for source). So this irreversible transducer is a power continuous two-ports with the domain under consideration at one side and the thermal domain on the other side with the power continuity relation: Tσirr=eRTfR. with the irreversible entropy production flow σirr as the flow variable and temperature T for the effort variable.

In the next two subsections, we present the irreversible port-Hamiltonian formulation of two examples: the transmission line and a non-isothermal reaction diffusion system.

4.1. The transmission line

First we briefly recall the port-Hamiltonian formulation of the lossy transmission line when the Hamiltonian is the total electro-magnetic energy with the first extension corresponding to the resistive port variables as given in (10). Next we present the same case taking into account the thermal domain with the entropy balance equation.

4.1.1. The lossy transmission line

The transmission line is defined on the interval Z=[a,b]. We choose the linear charge density q(z,t), z being the spatial coordinate, and the magnetic flux density φ(z,t) as state variables and the total electro-magnetic energy as Hamiltonian:

(19) H(q,φ)=abH(q,φ)dz(19)

where H(q,φ) represents the energy density of per unit length:

H(q,φ)=12q(z,t)2C(z)+φ(z,t)2L(z)

where C(z) and L(z) represents the distributed capacitance and inductance, respectively. We consider the Joule heating defined by Ohm’s law of the distributed resistive element as the dissipation in the transmission line. The balance of the two state variables leads to

(20) tq(z,t)=ziLtφ(z,t)=zvCRiL(20)

with the current iL(z,t)=δH(q,φ)δφ=φ(z,t)L(z), the electric tension vC(z,t)=δH(q,φ)δq=q(z,t)C(z) and R is a distributed resistor. δH(q,φ)δφ represents the variational derivative of H of φ, which in our case is equal to H(q,φ)φ.

We consider the flux vector (fqfφ)=tqtφ given by the time derivative of the variables (q,φ) with the effort vector (eqeφ)=H(z)qH(z)φ. We complete the system (20) with the following boundary variables:

(21) e=ea(t)eb(t)=eq|z=aeq|z=b, f=fa(t)fb(t)=eφ|z=aeφ|z=b(21)

Considering the following extension of the flow and effort variables eR=iL and fR=RiL we choose the variables spaces: F=fT=fqfφfeRC(Z)2×Ra,b×C(Z) and E=eT=eqeφefRC(Z)2×Ra,b×C(Z)

Proposition 4.1

[Citation1]: The linear subspace DF×E defined by

(22) D=(f,e)F×E|fqfφeR=JeeqeφfRwithJe=JGG0,J=0zz0 G=01andfe|a,b=010100eqeφfR|a,b(22)
is a Stokes–Dirac structure with respect to the product symmetric pairing defined from the following bilinear product, which corresponds to the integral energy balance:
(23) .|.:E×FR(e,f)e|f=Zeqfq+eφfφ+fReRdz+e(b)f(b)e(a)f(a)(23)

The proof is omitted for this example but will be given for the irreversible case.

4.1.2. The lossy transmission line accounting for the thermal domain

We consider the Joule heating dissipation and its effect in the thermal domain. We do not consider conduction phenomenon and the system is supposed isolated.

We consider the total energy as Hamiltonian:

H(q,φ,s)=12q(z,t)2C(z)+φ(z,t)2L(z)+T(z,t)s(z,t)

where the temperature T(z) of the resistor is the variational derivative H with respect to the density of entropy s. The system (20) becomes

(24) tq(z,t)=ziLtφ(z,t)=zvCRiLts(z,t)=σ(24)

where σ=eRfRT is the irreversible entropy production due to the heating of the resistor.

Considering the following flow and effort variable extensions fs=ts,es=T=δH(q,φ,s)δs, fσ=σ and eσ=T, we obtain the spaces of extended flow and efforts F and E: F=fT=fqfφfsfeReσC(Z)3×R{a,b}×C(Z)2 and E=eT=eqeφ es e fR fσC(Z)3×R{a,b}×C(Z)2.

Proposition 4.2:

The linear subspace DF×E defined by

(25) D=f,eF×E|f=Jee with Je as given in (15),J=0z0z00000,GR=010,Gσ=001andfe|a,b=0100010000eqeφesfRfσ|a,b(25)
is a Stokes–Dirac structure with respect to the symmetric pairing defined from the following bilinear product, which corresponds to the integral energy balance:
(26) e|f=Z(eqfq+eφfφ+esfs+fReR+fσeσ)dz+e(b)f(b)e(a)f(a)(26)

Proof.

The proof follows [Citation6]. First we will show DD. We consider two pairings of variables belonging to D: (f,e) and (f,e).

We calculate the bilinear product using the relations given in (26) and in (25):

(27) (f,e),(f,e)=e|f+e|f=Zeqzeφ+eφzeqfR+esfs+fReR+fσeσdz+ eq(b)eφ(b)eq(a)eφ(a)+ Zeqzeφ+eφzeqfR+esfs+fReR+fσeσdz+ eq(b)eφ(b)eq(a)eφ(a)(27)

Integrating by parts, we obtain:

(28) (f,e),(f,e)=Z(eqzeφeφzeq)dzeqeφab+Z(eφzeqeqzeφ)dzeqeφab+eq(b)eφ(b)eq(a)eφ(a)+eq(b)eφ(b)eq(a)eφ(a)Z(eφfR+eφfR)dz+Z(esfs+fReR+fσeσ+esfs+fReR+fσeσ)dz(28)

which simplifies as

(29) (f,e),(f,e)=Z(eφfReφfR+esfs+fReR+fσeσ+esfs+fReR+fσeσ)dz(29)

By replacing fs, er, eσ, fs, er, eσ by their expressions in (25), we finally obtain that (f,e),(f,e)=0.

Therefore, we have DD.

The second part of the proof is to show that DD. We consider a pair of variables f,eF×E such that for each element f,eD the bilinear product is zero:

(30) (f,e),(f,e)=0(30)

From the definition of the structure (25) we note that the choice of variables eq, eφ, es, fR and fσ is free. So for the element of D we can arbitrarily choose these elements.

First we consider the functions eq, eφ are zero at the boundary of the domain.

We calculate e|f replacing f by the relations given in (25), integrating by parts and considering the boundary conditions are zero on eq, eφ:

(31) e|f=Zeqzeφ+eφzeqfR+esfs+fReR+fσeσdz=Zeφzeq+eqzeφeφfResfσ+fReφ+fσesdz(31)

Since the relation (30) has to be verified, we have

(32) e|f=eφzeq+eqzeφeφfResfσ+fReφ+fσesdz(32)

On the other side, e|f is also equal to

(33) e|f=Zeqfq+eφfφ+esfs+fReR+fσeσdz(33)

The relations (32) and (33) must be equal and for all elements e:

(34) Z(eφzeq+eqzeφeφfResfσ+fReφ+fσes)+(eqfq+eφfφ+esfs+fReR+fσeσ)dz=0(34)

We conclude that the below equality must be verified for all elements e:

(35) Zeφzeq+fφ+fR+eqzeφ+fq+ZfReReφ+esfs+fσ+fσeσesdz=0(35)

By identification, we deduce that the elements of f must verify:

(36) fφ=zeqfRfq=zeφeR=eφfs=fσeσ=es(36)

which correspond to the relations defined for the elements of D (see (25)).

Now let us consider the case where the boundary variables are not zero. We insert the relations of f as established in (36) and those of f in Equation (27):

The equality to zero of Equation (27) must remain true for all boundary conditions e, f. By identification we obtain:

(37) e(a)=eq(a)e(b)=eq(b)f(a)=eφ(a)f(b)=eφ(b)(37)

which correspond to the relations on the boundary of the structure (25). Thus we have shown that DD.

We conclude that D=D and that D is a Stokes–Dirac structure.

4.2. The non-isothermal diffusion reaction system

Diffusion reaction system are described by semi-linear parabolic partial differential equations. These systems are naturally applied in chemical engineering and explain how the concentration of one or more constituents distributed in space are locally transformed by chemical reaction in another constituent and transported in space by diffusion.

In this section we first present the mass, energy and entropy balance of the reaction diffusion process. Next we propose the port-Hamiltonian of this irreversible system taking the Hamiltonian as the enthalpy, which corresponds up to a constant to the total energy of the system in the case where the pressure and the total mass density are constant. In this case the irreversible structure as proposed in Section 4 is obtained. Finally we propose the port-Hamiltonian representation of the reaction diffusion system by taking the Hamiltonian as the opposite of the entropy. In this second case there is no more the extension due to irreversibility since the system from the point of view of the Hamiltonian is dissipative. So we get the structure corresponding to dissipative systems.

4.2.1. Model of diffusion reaction process

We suppose isobaric operating conditions and a constant total mass density ρ inside the jacketed reactor. The reactor is assumed to have a length L. The axial coordinate is z.

The chemical reaction r involves two species A and B: νAAνBB with stoichiometric coefficients νA,νB > 0. The reaction kinetics is modelled by the Arrhenius law

(38) r=k0eERTcA(38)

where cA is the molar concentration of the species A, T is the temperature, E is the activation energy, R the perfect gas constant and k0 the kinetic constant.

We assume that there is no convection and that matter diffusion and heat conduction are occurring inside the reactor. Furthermore, we consider that there is distributed heat transfer q(z) between the reactor and its jacket.

The diffusion flux fdi of species i (for i=A,B) is related to the thermodynamic driving force zμi as (see [Citation16]):

(39) fdA=Dz(μAμB)(39)

with D the diffusion coefficient. Since it is assumed that no convection occurs, we have fdA+fdB=0.

The conduction flux satisfies the Fourier’s law:

(40) fF=λz(T)(40)

where λ > 0 is the thermal conductivity of the matter.

The material balance of the two species A and B (expressed in mass fraction θi) is given by

(41) ρtθA=zfdAMAνArρtθB=zfdB+MBνBr(41)

where Mi is the molar mass of species i.

The energy balance with incompressible and isobaric assumptions can be expressed with the enthalpy balance:

(42) ρth=zfh+q(42)

where h=u+P1ρ the enthalpy per mass unit and fh is the total enthalpy flux:

(43) fh=fdh+fF(43)

where fdh=i=A,Bfdihi is the enthalpy flux due to diffusion. hi is the partial mass enthalpy of species i. q is the distributed thermal exchange with the jacket and the reactor.

The entropy balance is given by

(44) ρts=zfs+qTj+σ(44)

where Tj is the distributed temperature of the jacket, the total entropy flux fs=i=A,Bfdisi+fFs with the entropy flux due to diffusion fFs=fFT and with si the partial mass entropy of species i. σs the irreversible production of entropy. This term is computed by equalizing the entropy balance given by Equation (44) and the one appearing in the Gibbs Equation (2).

The irreversible production of entropy is given by

(45) σ=q1Tj1TσextrTμAMAνAμBMBνBσr1TfdAzμAσA1TfdBzμBσBfszTTσS(45)

Each term of the irreversible entropy production terms is assumed in the context of the irreversible thermodynamics to be positive (see [Citation23,Citation24]). The first term σext is related to exchange with the jacket of the reactor. The second term σr is due to the chemical reaction. σA and σB are due to diffusion of species A and B in the material domain. Finally σS is due to diffusion and conduction in the thermal domain.

4.2.2. Energy representation

The model for the reaction diffusion system in energy representation is given by

(46) ρtθA=zfdAMAνArρtθB=zfdB+MBνBrρts=zfsqTj+σ(46)

In the sequel of the section, we will show how this energy representation can be written using a Stokes–Dirac structure defined on a particular extended pairings of effort and flow variables.

The choice of the pairings of effort and flow variables is deduced from the integral energy balance:

(47) ddt0Ludz=0Ltudz=0LTρts+μiρtθidz(47)

gives the natural pairing of variables (heat and entropy flows, chemical potentials and temperature) issued from (47).

Table 1. Pairing of thermodynamic flow-effort in energy vision.

We develop the calculations of (47) to make appear the boundary variables:

(48) ddt0Ludz=0LT(zfs+qTj+σ+μAzfdAMAνAr+ μBzfdB+MBνBr)dz=0LfszT+fdAzμA+fdBzμBdz+TFsμAfdAμBfdB0L+0LTqTj+σμAMAνAμBMBνB=Ardz(48)

As the result, we have the pairing of variables listed in .

Table 2. Pairing of additional flow-effort in energy vision.

fA, fB, fs are the diffusion flow of species A, B and the total entropy flux, respectively; EA, EB, Es are the gradient of the intensive variables given in ; fr is the reaction flow term; Er is the affinity of the reaction; the terms fσA fσBare the irreversible entropy production due to diffusion; fσS is the irreversible entropy production due to conduction; fσr is the irreversible entropy due to reaction. The eσ terms are the temperature. u is the thermal entropy flow due to exchange with the jacket and y is the temperature.

The energy balance can be rewritten using (47) and (48) as

(49) 0LTρts+μiρtθi0LFszT+FdAzμA+FdBzμBdzTFsμAFdAμBFdB0L0LTqTj+σArdz=0(49)

Replacing with the port variables, we obtain:

(50) 0L(eAFA+eBFB+esFs+EAfA+EBfB+Esf+Erfr+eσAfσA+eσBfσB+ eσSfσS+eσrfσr+uy)dz+eAfA+eBfA+esfs0L=0(50)

We consider the vectors EE=C(Z)11and FF=C(Z)11:

(51) E=eAeBesfAfBfsfrfσAfσBfσSfσrTF=FAFBFsEAEBEsEreσAeσBeσSeσrT(51)

and with the following port variables on the boundary:

(52) eT=(eA eB es) ,fT= (fA fB fs)(52)

we obtain:

(53) ef(0,L)=I30303×503I303×5E|0,L(53)

where 03,I3R3×3, 03×5R3×5 represent the 3 × 3 zero matrix, the 3 × 3 identity matrix and the 3 × 5 zero matrix, respectively.

Let us define the sets F=FufF×C(Z)×R3×0,L and ={[Eye]E×C(Z)×3×{0,L}} and the bilinear product:

Eye|Fuf=E,FL2+y,uL2+eL,fLR3e0,f0R3

with

(54) E,FL2=0LeAFA+eBFB+esFs+EAfA+EBfB+Esfs+Erfr+eσAfσA+eσBfσB+eσSfσS+eσrfσrdz(54)

u,yL2=0Luydz and eL,fLR3=eAfA+eBfB+esfs.

Proposition 4.3:

The linear subset DE×F is defined by D=(Fuf,Eye).E×F|F=FJeE+B03×105×1u, y=[B01×301×5]E, (ef)(0,L)=(I303×303×503×3I303×5)E|0,L} is a Stokes–Dirac structure with respect to the symmetric pairing constructed from the bilinear product (54) with

(55) J=03,G=x00νAMA0x0νBMB00x0,Gσ=000000001111(55)
the input operator B=001.Furthermore, the irreversible feature of the system is defined by
(56) ET0303×403×404×3040404×304I4F>0fσTeσ>0(56)

Proof.

To prove the proposition we follow the same steps given in Proposition 4.2 where we have to show that DD and DD. A sketch of this proof can be found in [Citation15] and details are given in Appendix 1.

4.2.3. Entropy representation

The model for the reaction diffusion system in energy representation is given by

(57) ρtθA=zfdAMAνArρtθB=zfdB+MBνBrρth=z(fh)+q(57)

In the sequel of the section we will show how this energy representation can be written using a Stokes–Dirac structure defined on a particular extended pairings of effort and flow variables

This presentation is based in the Gibbs equation of entropy vision: ds=1TdhμiTθi, where we consider – s as the Hamiltonian.

Taking the same methodology for the energy vision, we define pairs of effort–flow variables dual for our Hamiltonian. The pairs are given in .

Table 3. Pairing of thermodynamic flow–effort in entropy vision.

where fA, fB, fh are the diffusion flow of species A, B and the total enthalpy flow, respectively. EA, EB, Eh are the gradient of the intensive variables eA, eB and eh, fr is the reaction flow term, er is the entropic affinity. u is the thermal flow due to exchange with the jacket and y is the thermal effort.

Considering the vectors E and F as follows: E= (eA eB eh fA fB fh fr)T and F=(FA FB Fh EA EB Eh er )T With EE=(C(Z))7and FF=(C(Z))7

and with the following boundary port variables:

eT=eAeBeh,fT=fAfBfh
we have:
(58) ef(0,L)=I30303×103I303×1E|0,L(58)

Let us define the subspaces F=Φ=FufF×C(Z)×R3×{0,L} and E=Θ=EyeE×C(Z)×R3×{0,L}

and the duality product:

(59) Θ,Φ=E,FL2+y,uL2+eL,fLR3e0,f0R3(59)

The system (57) can be rewritten as

(60) F=JeE+Beuy=BeE(60)

with

(61) J=03,G=z00νAMA0z0νBMB00z0,Be=B030withB=001(61)

Proposition 4.4:

The linear subset DE×F is defined by D=Θ,ΦE×F|F=JeE+ Beu,y=BeEandef(0,L)=I30303×103I303×1E|0,L is a Stokes–Dirac structure with respect to the symmetric pairing constructed from the bilinear product (59).

The proof of the Proposition 4.4 is omitted because it is similar to that of the Proposition 4.3.

5. Conclusion

In this article we proposed an irreversible port-Hamiltonian representation for irreversible (thermo)dynamic systems. This representation is based on a Stokes–Dirac structure built from an extension of the set of power conjugated variables. It is shown that the first and the second thermodynamic principles, namely the total energy conservation and the positive entropy production, can be naturally derived from the proposed representation. We first applied this representation to the transmission line including thermal domain of energy. We then applied it to reaction diffusion system where it is shown how diffusion transport phenomena and chemical reactions can be represented using a Stokes–Dirac structure. This representation is given for energy and entropy vision. In both cases, the dissipation of the system is related to the irreversible entropy production due to the reaction, diffusion and conduction. This formulation is well suited for control purposes. Indeed the underlying Dirac structure is of great advantage for control purposes when associated with structure preserving model reduction and passivity-based control technics [Citation4].

A perspective to this work is to consider the convection phenomenon. It can be first derived for constant convection velocity by taking the momentum balance equation of the system into account.

Disclosure statement

No potential conflict of interest was reported by the authors.

Additional information

Funding

This work was supported by the LABEX ACTION [grant number ANR-11-LABX-0001- 01]; ANR HAMECMOPSYS [grant number ANR-11-BS03-0002].

References

  • V. Duindam, A. Macchelli, S. Stramigioli, and H. Bruyninckx (Eds.), Modeling and Control of Complex Physical Systems: The port-Hamiltonian Approach, Springer Science & Business Media, Berlin, 2009.
  • S. Sakai and S. Stramigioli, Port-Hamiltonian approaches to motion generation for mechanical systems, 2007 IEEE International Conference on Robotics and Automation, Roma, 2007, pp. 1948–1953.
  • E. Garcia-Canseco and R. Ortega, A new passivity property of linear RLC circuits with application to power shaping stabilisation, in Proceedings of the 2004 American Control Conference, Vol. 2, Boston, MA 2004, pp. 1428–1433.
  • H. Hoang, F. Couenne, C. Jallut, and Y. Le Gorrec, The port Hamiltonian approach to modeling and control of continuous stirred tank reactors, J. Process Control 21 (10) (2011), pp. 1449–1458. doi:10.1016/j.jprocont.2011.06.014
  • H. Ramirez, B. Maschke, and D. Sbarbaro, Irreversible port-Hamiltonian systems: A general formulation of irreversible processes with application to the CSTR, Chem. Eng. Sci. 89 (2013), pp. 223–234. doi:10.1016/j.ces.2012.12.002
  • A.J. Van der Schaft and B.M. Maschke, Hamiltonian formulation of distributed parameter systems with boundary energy flows, J. Geom. phys. 42 (1–2) (2002), pp. 166–194. doi:10.1016/S0393-0440(01)00083-3
  • K. Schlacher, Mathematical modeling for nonlinear control: A Hamiltonian approach, Math. Comput. Simul. 79 (4) (2008), pp. 829–849. doi:10.1016/j.matcom.2008.02.011
  • M. Schöberl and A. Siuka, Jet bundle formulation of infinite-dimensional port-hamiltonian systems using differential operators, Automatica 50 (2) (2014), pp. 607–613. doi:10.1016/j.automatica.2013.11.035
  • B. Maschke and A.J. Van der Schaft, Hamiltonian representation of distributed parameter systems with boundary energy flow, in Nonlinear Control in the Year 2000, Vol. 2, A. Isidori, F. Lamnabhi-Lagarrigue, and W. Respondek, eds., Springer, London, 2001, pp. 137–142.
  • Y. Le Gorrec, H. Zwart, and B. Maschke, Dirac structures and boundary control systems associated with skew-symmetric differential operators, SIAM J. Control Optim. 44 (5) (2005), pp. 1864–1892. doi:10.1137/040611677
  • G. Golo, A.J. Van der Schaft, and S. Stramigioli, Hamiltonian formulation of planar beams, A Proceedings Volume from the 2nd IFAC Workshop Elsevier, Seville, Spain, 2003, p. 147.
  • A. Baaiu, F. Couenne, L. Lefevre, Y. Le Gorrec, and M. Tayakout, Structure-preserving infinite dimensional model reduction: Application to adsorption processes, J. Process Control 19 (3) (2009), pp. 394–404. doi:10.1016/j.jprocont.2008.07.002
  • D. Eberard and B. Maschke, An extension of port Hamiltonian systems to irreversible systems, Proc. Int. IFAC Conf. on Nonlinear Systems’ Theory and Control, NOLCOS’04, Stuttgart, 2004.
  • W. Zhou, B. Hamroun, Y. Le Gorrec, and F. Couenne, Infinite dimensional port hamiltonian representation of chemical reactors, 4th IFAC Workshop on Lagrangian and Hamiltonian Methods for Non Linear Control, LHMNLC’12, 4, Bertinoro, 2012, pp. 248–253.
  • W. Zhou, B. Hamroun, Y. Le Gorrec, and F. Couenne, Infinite dimensional port Hamiltonian representation of reaction diffusion processes, IFAC-PapersOnLine MATHMOD 2015 48 (1) (2015), pp. 476–481.
  • R.B. Bird, W.E. Stewart, and E.N. Lightfoot, Transport Phenomena, 2nd ed., John Wiley and Sons, New York, 2002.
  • S.R. De Groot and P. Mazur, Non-Equilibrium Thermodynamics, Dover Publications,INC, New york, 1983.
  • K.R. Jillson and B.E. Ydstie, Process networks with decentralized inventory and flow control, J. Process Control 17 (5) (2007), pp. 399–413. doi:10.1016/j.jprocont.2006.12.006
  • T.J. Courant, Dirac manifolds, Trans. Amer. Math. soc. 319 (2) (1990), pp. 631–661. doi:10.1090/S0002-9947-1990-0998124-1
  • I. Dorfman, Dirac Structures and Integrability of Nonlinear Evolution Equations, John Wiley, Chichester, 1993.
  • B. Maschke and A.J. Van Der Schaft, Advanced topics in control systems theory, chapter: Compositional modelling of distributed-parameter systems, in Lecture Notes on Control and Information Sciences, A. Loria, F. Lamnabhi Lagarrigue, and E. Panteley, eds., Springer, 2005, pp. 115–154.
  • F. Couenne, C. Jallut, B. Maschke, M. Tayakout, and P.C. Breedveld, Structured modeling for processes: A thermodynamical network theory, Comput. Chem. Eng. 32 (6) (2008), pp. 1120–1134. doi:10.1016/j.compchemeng.2007.04.012
  • H.B. Callen, Thermodynamics and an Introduction to Thermostatics, 2nd ed., JohnWiley & Sons Inc, New York, 1985.
  • P. Glansdorff and I. Prigogine, Thermodynamic Theory of Structure, Stability and Fluctuations, Wiley-Interscience, New York, NY, 1971.

Appendix 1:

Proof of Proposition 4.3

Proof. First we will show DD .

We consider two elements of D: di=Fiuifi,Eiyiei for i=1,2.

and their symmetric pairing:

d1,d2=0LE1TF2+E2TF1+y1u2+y2u1dz+e1Tf2+e2Tf1L0
(62) =0LLdz+M(62)
where L is the distributed part and M is the boundary part.Using the definition of variables given by the relation (51), we have:
(63) L=eA1FA2+eB1FB2+es1Fs2+fA1EA2+fB1EB2+fs1Es2+fr1Er2+fσA1eσA2+fσB1eσB2+fσS1eσS2+fσr1eσr2+eA2FA1+eB2FB1+es2Fs1+fA2EA1+fB2EB1+fs2Es1+fr2Er1+fσA2eσA1+fσB2eσB1+fσS2eσS1+fσr2eσr1+y1u2+y2u1(63)
By substitution of the expression of F1 and F2 by their relation Fi=JEi+B03×105×1ui in the equation, we have the notation σsi=fσAi+fσBi+fσSi+fσri:
L=eA1(zfA2MAνAfr2)+eB1(zfB2+MBνBfr2)+es1(zfs2+σs2u2)+eA2(zfA1MAνAfr1)+eB2(zfB1+MBνBfr1)+es2(zfs1+σs1u1)+fA1(zeA2)+fB1(zeB2)+fs1(zes2)+fr1(νAMAeA2νBMBeB2)+fA2(zeA1)+fB2(zeB1)+fs2(zes1)+fr2(νAMAeA1νBMBeB1)σs1es2σs2es1+y1u2+y2u1

By the relation yi=[B00]Ei we have yi=esi, and the terms of u and y vanish. Les terms of σs1 also vanish. Also by grouping the terms of z we have:

L=z(eA1fA2)z(eB1fB2)z(es1fs2)z(eA2fA1)z(eB2fB1)z(es2fs1)+eA1(MAνAfr2)+eB1(+MBνBfr1)+eA2(MAνAfr1)+eB2(MBνBfr2)+fr1(νAMAeA2νBMBeB2)+fr2(νAMAeA1νBMBeB1)

The expression eA1MAνAfr2+eB1+MBνBfr1+eA2MAνAfr1+ eB2MBνBfr2+fr1νAMAeA2νBMBeB2+fr2νAMAeA1νBMBeB1 is zero. We conclude that: L=zeA1fA2zeB1fB2zes1fs2zeA2fA1zeB2fB1z(es2fs1)

and that 0LLdz=e1Tf2+e2Tf1

We also have

M=e1Tf2+e2Tf1L0

Thus we have

0LLdz+Mdz=0

Therefore we have d1,d2=0, which shows that DD .

Second we will show DD: In order to demonstrate this point, we assume d1D, which implies that for all elements d2D we have <<d1,d2>>=0

From the definition of the structure given by the Proposition 4.3 the choice of variables of E2 is open. First we consider the functions fA,fB,fsand eA,eB,es is zero on the boundary of the domain. Besides, we assume that the reactor is autonomous so that u=0

The symmetric pairing becomes:

(64) 0LE1TF2+E2TF1dz=0(64)

We replace F2 by the relations defined in the structure of Proposition 4.3 in the Equation (64) because d2D, we have:

E1TF2=eA1(zfA2MAνAfr2)+eB1(zfB2+MBνBfr2)+es1(zfs2(fσA2+fσB2+fσS2+fσr2))+fA1(zeA2)+fB1(zeB2)+fs1(zes2)+fr1(νAMAeA2νBMBeB2)+fσA1eσA2+fσB1eσB2+fσS1eσS1+fσr1eσr2=fA2zeA1+fB2zeB1+fs2zes1+eA2zfA1+eB2zfB1+es2zfs1z(eA1fA2)z(eB1fB2)z(es1fs2)z(eA2fA1)z(eB2fB1)z(es2fs1)(MAνAeA1MBνBeB1)fr2+(MAνAeA2MBνBeB2)fr1es1(fσA2+fσB2+fσS2+fσr2)+fσA1eσA2+fσB1eσB2+fσS1eσS2+fσr1eσr2

With the relation 0LE2TF1dz=0LE1TF2dz given by (64), we have:

0LE2TF1=0L(fA2zeA1+fB2zeB1+fs2zes1+eA2zfA1+eB2zfB1+es2zfs1)dz+[eA1fA2]0L+[eB1fB2]0L+[es1fs2]0L+[eA2fA1]0L+[eB2fB1]0L+[es2fs1]0L+0L(MAνAeA1MBνBeB1)fr2(MAνAeA2MBνBeB2)fr1dz+0Les1(fσA2+fσB2+fσS2+fσr2)dz+0LfσA1eσA2fσB1eσB2fσS1eσS2fσr1eσr2dz

With the assumption all the boundary terms vanish:

0LE2TF1=0L(eA2(zfA1)+eB2(zfB1)+es2(zfs1)+fA2(zeA1)+fB2(zeB1)+fs2(zes1))dz+0L((MAνAeA1MBνBeB1)fr2(MAνAeA2MBνBeB2)fr1+es1(fσA2+fσB2+fσS2+fσr2)fσA1eσA2fσB1eσB2fσS1eσS2fσr1eσr2)dz

We have:

(65) E2TF1=eA2(zfA1MAνAfr1)+eB2(zfB1+MBνBfr1)+es2(zfd1sfσA1fσB1fσS1fσr1)+fA2(zeA1)+fB2(zeB1)+fs2(zes1)+fr2(νAMAeA1νBMBeB1)+es1(fσA2+fσB2+fσS2+fσr2)(65)

By identification, we easily find that for F1 verifies the structure given in the Proposition 4.3.

Second, in order to finish the demonstration, we consider that the boundary is no longer zero, and demonstrate this part of d1 verify also the property of the structure of Proposition 4.3.

Let us substitute the right structure of F1 in the symmetric pairing:

0LzeA1fA2zeB1fB2zes1fs2zeA2fA1zeB2fB1zes2fs1dz+e1Tf2+e2Tf1L0=0

We obtain easily:

(66) [eA1fA2]0L[eB1fB2]0L[es1fs2]0L[eA2fA1]0L[eB2fB1]0L[es2fs1]0L+[e1Tf2+e2Tf1]L0=0(66)

We recall that the boundary port variables satisfy:

e2{0,L}=e2Ae2Be2s|0,L=eA2eB2es2|0,L, f2{0,L}=f2Af2Bf2s|0,L=fAfBfs|0,L

So we have:

(67) [eA1fA2]0L[eB1fB2]0L[es1fs2]0L[eA2fA1]0L[eB2fB1]0L[es2fs1]0L+[e1AfA2+e1BfB2+e1sfs2+eA2f1A+eB2f1B+es2f1s]0L=0(67)

This equation have to be satisfied for all f2, e2 so that

(68) fA2(L)e1A(L)eA1(L)+fB2(L)e1B(L)eB1(L)+fs2(L)e1s(L)es1(L)+eA2(L)f1A(L)fA1(L)+eB2(L)f1B(L)fB1(L)+es2(L)f1s(L)fs1(L)=0(68)

We have the same equation for z=0.

As the result, we obtain easily f1=fA1fB1fs1 and e1=eA1eB1es1

show that d1D

● The third point of the proof concerns the irreversibility feature of the representation. It can be easily checked by using the structure and the definition of the port variables:

(69) ET(0300004000I4)F=ET(03000I400004)F=rAfdAzμAfdBzμBfszT>0(69)

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.