Next Article in Journal
Description of Transfer Processes in a Locally Nonequilibrium Medium
Next Article in Special Issue
Fourier Transform on the Homogeneous Space of 3D Positions and Orientations for Exact Solutions to Linear PDEs
Previous Article in Journal
On the Relation between Topological Entropy and Restoration Entropy
Previous Article in Special Issue
Discrete Transforms and Orthogonal Polynomials of (Anti)symmetric Multivariate Sine Functions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Review

From Lagrangian Mechanics to Nonequilibrium Thermodynamics: A Variational Perspective

by
François Gay-Balmaz
1,*,† and
Hiroaki Yoshimura
2,†
1
Centre National de la Recherche Scientifique (CNRS), Le Laboratoire de Météorologie Dynamique (LMD), Ecole Normale Supérieure, 75005 Paris, France
2
School of Science and Engineering, Waseda University, Tokyo 169-8050, Japan
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Entropy 2019, 21(1), 8; https://doi.org/10.3390/e21010008
Submission received: 21 November 2018 / Revised: 14 December 2018 / Accepted: 16 December 2018 / Published: 23 December 2018

Abstract

:
In this paper, we survey our recent results on the variational formulation of nonequilibrium thermodynamics for the finite-dimensional case of discrete systems, as well as for the infinite-dimensional case of continuum systems. Starting with the fundamental variational principle of classical mechanics, namely, Hamilton’s principle, we show, with the help of thermodynamic systems with gradually increasing complexity, how to systematically extend it to include irreversible processes. In the finite dimensional cases, we treat systems experiencing the irreversible processes of mechanical friction, heat, and mass transfer in both the adiabatically closed cases and open cases. On the continuum side, we illustrate our theory using the example of multicomponent Navier–Stokes–Fourier systems.

1. Introduction

This paper reviews our recent work on the development of a variational formulation of nonequilibrium thermodynamics, as established in [1,2,3,4]. This formulation extends to nonequilibrium thermodynamics of the Lagrangian formulation of classical and continuum mechanics that include irreversible processes, such as friction, heat, and mass transfer, chemical reactions, and viscosity.

1.1. Some History of the Variational Approaches to Thermodynamics

Thermodynamics was first developed to treat exclusively equilibrium states and the transition from one equilibrium state to another in which a change in temperature plays an important role. In this context, thermodynamics appeared mainly as a theory of heat, and it is viewed today as a branch of equilibrium thermodynamics. Such a classical theory, which does not aim to describe the time evolution of the system, can be developed in a well-established setting [5] governed by the well-known first and second laws, e.g., [6,7]. It is worth noting that classical mechanics, fluid dynamics, and electromagnetism, being essentially dynamical theories, cannot be treated in the context of equilibrium thermodynamics. Although much effort has been applied to the theoretical investigation of nonequilibrium thermodynamics in relation to physics, chemistry, biology, and engineering, the theory of nonequilibrium thermodynamics has not reached the level of completeness. This is in part due to the lack of a general variational formulation for nonequilibrium thermodynamics that would reduce to the classical Lagrangian variational formulation of mechanics in absence of irreversible processes. So far, various variational approaches have been proposed in relation to nonequilibrium thermodynamics. For example, the principle of least dissipation of energy, introduced in [8] and later extended in [9,10], underlies the reciprocal relations in linear phenomenological laws, and the principle of minimum entropy production by [11,12] sets conditions on steady-state processes. Onsager’s approach was generalized in [13] for systems with nonlinear phenomenological laws. We refer to [14] for reviews and developments of Onsager’s variational principles and for a study of the relation between Onsager’s and Prigogine’s principles. We also refer to Section 6 of [15,16] for overviews on variational approaches to irreversible processes. Note that, however, the variational principles developed in these previous works are not natural extensions of Hamilton’s principle of classical mechanics, because they do not recover Hamilton’s principle for the case in which irreversible processes are not included. Another important work was by [17,18], wherein, in conjunction with thermoelasticity, viscoelasticity, and heat transfer, a principle of virtual dissipation as a generalized form of the d’Alembert principle was used with various applications to nonlinear irreversible thermodynamics. In particular, Biot [17] mentioned that the relations between the rate of entropy production and state variables may be given as nonholonomic constraints. Nevertheless, this variational approach was restricted to weakly irreversible systems or thermodynamically holonomic and quasi-holonomic systems. More recently, it was noteworthy that [19] showed a variational formulation for viscoelastic fluids, in which the internal conversion of mechanical power into heat power due to frictional forces was written as a nonholonomic constraint. However, it should be noted that none of the approaches mentioned above present systematic and general variational formulations of nonequilibrium thermodynamics and are hence restricted to a certain class of thermodynamic systems.
Following the initial works of [20,21,22], the geometry of equilibrium thermodynamics has been mainly studied via contact geometry by [23], with further developments by [24,25,26]. In this geometric setting, thermodynamic properties are encoded by Legendre submanifolds of the thermodynamic phase space. A step toward a geometric formulation of irreversible processes was made in [27] by lifting port-Hamiltonian systems to the thermodynamic phase space. The underlying geometric structure in this construction is again a contact form. A description of irreversible processes using modifications of Poisson brackets was introduced in [28,29,30]. This was further developed, for instance, in [31,32,33,34,35]. A systematic construction of such brackets from the variational formulation given in the present paper was presented in [36] for the thermodynamics of multicomponent fluids.

1.2. Main Features of Our Variational Formulation

The variational formulation for nonequilibrium thermodynamics developed in [1,2,3,4] is distinct from the earlier variational approaches mentioned above, both in its physical meaning and in its mathematical structure, as well as in its goal. Roughly speaking, while most of the earlier variational approaches mainly underlie the equation for the rate of entropy production, in order to justify the expression of the phenomenological laws governing the irreversible processes involved, our variational approach aims to underlie the complete set of time evolution equations of the system in such a way that it extends the classical Lagrangian formulation in mechanics to nonequilibrium thermodynamic systems including irreversible processes.
This is accomplished by constructing a generalization of the Lagrange–d’Alembert principle of nonholonomic mechanics, where the entropy production of the system, written as the sum of the contribution of each of the irreversible processes, is incorporated into a nonlinear nonholonomic constraint. As a consequence, all the phenomenological laws are encoded in the nonlinear nonholonomic constraints, to which we naturally associate a variational constraint on the allowed variations of the action functional. A natural definition of the variational constraint in terms of the phenomenological constraint is possible thanks to the introduction of the concept of thermodynamic displacement, which generalizes the concept of thermal displacement given by [37] to all the irreversible processes.
More concretely, if the system involves internal irreversible processes, denoted by α , and irreversible process at the ports, denoted by β , with thermodynamic fluxes J α , J β and thermodynamic affinities X α , X β together with a thermodynamic affinity X ext β associated with the exterior, then the thermodynamic displacements Λ α , Λ β are such that Λ ˙ α = X α and Λ ˙ β = X β . This allows us to formulate the variational constraint associated with the phenomenological constraint in a systematic way, namely, by replacing all the velocities by their corresponding virtual displacement and by removing the external thermodynamic affinity X ext β at the exterior of the system as follows:
J α Λ ˙ α + J β Λ ˙ β X ext β J α δ Λ α + J β δ Λ β .
Our variational formulation thus has a clear and systematic structure that appears to be common for the macroscopic description of the nonequilibrium thermodynamics of physical systems. It can be applied to the finite-dimensional case of discrete systems, such as classical mechanics, electric circuits, chemical reactions, and mass transfer. Further, our variational approach can be naturally extended to the infinite-dimensional case of continuum systems; for instance, it can be applied to some nontrivial example, such as the multicomponent Navier–Stokes–Fourier equations. Again, it is emphasized that our variational formulation consistently recovers Hamilton’s principle in classical mechanics when irreversible processes are not taken into account.

1.3. Organization of the Paper

In Section 2, we start with a very elementary review of Hamilton’s variational principle in classical mechanics and its extension to the case of mechanical systems with external forces. We also briefly review the variational formulation of mechanical systems with linear nonholonomic constraints by using the Lagrange–d’Alembert principle. Furthermore, we review the extension of Hamilton’s principle to continuum systems and illustrate it with the example of compressible fluids in the Lagrangian description. The variational principle in the Eulerian description is then deduced in the context of symmetry reduction. In Section 3, we recall the two laws of thermodynamics as formulated by [38], and we present the variational formulation of nonequilibrium thermodynamics for the finite-dimensional case of discrete systems. We first consider adiabatically closed simple systems and illustrate the variational formulation using the case of a movable piston containing an ideal gas and the case of a system consisting of a chemical species experiencing diffusion between several compartments. We then consider adiabatically closed non-simple systems, such as the adiabatic piston with two cylinders and a system with a chemical species experiencing both diffusion and heat conduction between two compartments. Further, we consider the variational formulation for open systems and illustrate it with the example of a piston device with ports and heat sources. In Section 4, we extend the variational formulation of nonequilibrium thermodynamics to the infinite-dimensional case of continuum systems and consider a multicomponent compressible fluid subject to irreversible processes due to viscosity, heat conduction, and diffusion. The variational formulation is first given in the Lagrangian description, from which the variational formulation in the Eulerian description is deduced. This is illustrated with the multicomponent Navier–Stokes–Fourier equations. In Section 5, we make some concluding remarks and mention further developments based on the variational formulation of nonequilibrium thermodynamics, such as variational discretizations, Dirac structures in thermodynamics, reduction by symmetries, and thermodynamically consistent modeling.

2. Variational Principles in Lagrangian Mechanics

2.1. Classical Mechanics

One of the most fundamental statements in classical mechanics is the principle of critical action or Hamilton’s principle, according to which the motion of a mechanical system between two given positions is given by a curve that makes the integral of the Lagrangian of the system critical (see, for instance, [39]).
Let us consider a mechanical system with configuration manifold Q. For instance, for a system of N particles moving in the Euclidean 3-space, the configuration manifold is Q = R 3 N , whereas for a rigid body moving freely in space, Q = R 3 × S O ( 3 ) , the product of the Euclidean 3-space and the rotation group. Let us denote by ( q 1 , , q n ) the local coordinates of the manifold Q, also known as generalized coordinates of the mechanical system. Let L be a given Lagrangian of the system, which usually depends only on the position q and velocity v of the system and is hence defined on the tangent bundle or velocity phase space, T Q , of the manifold Q. Recall that tangent bundle of a manifold Q is the manifold T Q given by the collection of all tangent vectors in Q. As a set, it is given by the disjoint union of the tangent spaces of Q, that is, T Q = q Q T q Q , where T q Q is the tangent space to Q at q. The elements in T q Q are denoted by ( q , v ) . The Lagrangian L is usually given by the kinetic minus the potential energy of the system: L ( q , v ) = K ( q , v ) U ( q ) .
Hamilton’s principle is written as follows. Suppose that the system occupies the positions q 1 and q 2 at the time t 1 and t 2 . Then, the motion q ( t ) of the mechanical system between these two positions is a solution of the critical point condition
d d ϵ ϵ = 0 t 1 t 2 L q ( t , ϵ ) , q ˙ ( t , ϵ ) d t = 0 ,
where q ( t , ϵ ) , t [ t 1 , t 2 ] , ϵ [ a , a ] , is an arbitrary variation of the curve q ( t ) with fixed endpoints, i.e., q ( t , ϵ ) | ϵ = 0 = q ( t ) and q ( t 1 , ϵ ) = q ( t 1 ) , q ( t 2 , ϵ ) = q ( t 2 ) , for all ϵ . The infinitesimal variation associated with a given variation q ( t , ϵ ) is denoted by
δ q ( t ) : = d d ϵ ϵ = 0 q ( t , ϵ ) .
From the fixed endpoint conditions, we have δ q ( t 1 ) = δ q ( t 2 ) = 0 .
The Hamilton principle in Equation (1) is usually written in short form as
δ t 1 t 2 L ( q , q ˙ ) d t = 0 ,
for arbitrary infinitesimal variations δ q , with δ q ( t 1 ) = δ q ( t 2 ) = 0 . Throughout this paper, we always use this short notation for the variational principles and also simply refer to δ q for variations.
The direct application of Equation (1) gives, in local coordinates q = ( q 1 , , q n ) ,
δ t 1 t 2 L ( q , q ˙ ) d t = t 1 t 2 L q i δ q i + L q ˙ i δ q ˙ i d t = t 1 t 2 L q i d d t L q ˙ i δ q i d t + L q ˙ i δ q i t 1 t 2 ,
where Einstein’s summation convention is employed. Since δ q is arbitrary and since the boundary term vanishes because of the fixed endpoint conditions, we get from Equation (3) the Euler–Lagrange equations:
d d t L q ˙ i L q i = 0 , i = 1 , , n .
We recall that L is called regular when the Legendre transform F L : T Q T Q , locally given by ( q i , v i ) ( q i , L v i ) , is a local diffeomorphism, where T Q denotes the cotangent bundle or momentum phase space of Q. Recall that cotangent bundle of a manifold Q is the manifold T Q = q Q T q Q , where T q Q is the cotangent space at each q given as the dual space to T q Q . The elements in T q Q are covectors, denoted by ( q , p ) . When L is regular, the Euler–Lagrange Equation (4) yields a second-order differential equation for the curve q ( t ) .
The energy of a mechanical system with the Lagrangian L is defined on T Q by
E ( q , v ) = L v , v L ( q , v ) ,
where , denotes a dual pairing between the elements in T q Q and T q Q . It is easy to check that E is conserved along the solutions of the Euler–Lagrange Equation (4), namely,
d d t E ( q , q ˙ ) = d d t L q ˙ i L q i q ˙ i = 0 .
Let us assume that the mechanical system is subject to an external force, given by a map F ext : T Q T Q assumed to be fiber preserving, i.e., F ext ( q , v ) T q Q for all ( q , v ) T q Q . The extension of Equation (2) to forced mechanical systems is given by
δ t 1 t 2 L ( q , q ˙ ) d t + t 1 t 2 F ext ( q , q ˙ ) , δ q d t = 0 ,
for arbitrary variations δ q , with δ q ( t 1 ) = δ q ( t 2 ) = 0 . The second term in Equation (6) is the time integral of the virtual work F ext ( q , q ˙ ) , δ q done by the force field F ext : T Q T Q with a virtual displacement δ q in T Q . The principle in Equation (6) leads to the forced Euler–Lagrange equations
d d t L q ˙ i L q i = F i ext .

Systems with Nonholonomic Constraints

Hamilton’s principle, as recalled above, is only valid for holonomic systems, i.e., systems without constraints or whose constraints are given by functions of the coordinates only, not the velocities. In geometric terms, such constraints are obtained by the specification of a submanifold N of the configuration manifold Q. In this case, the equations of motion are still given by Hamilton’s principle for the Lagrangian L restricted to the tangent bundle T N of the submanifold N Q .
When the constraints cannot be reduced to relations between the coordinates only, they are called nonholonomic. Here, we restrict the discussion to nonholonomic constraints that are linear in velocity. Such constraints are locally given in the form
ω i α ( q ) q ˙ i = 0 , α = 1 , , k < n ,
where ω i α are functions of local coordinates q = ( q 1 , , q n ) on Q. Intrinsically, the functions ω i α are the components of k independent one-forms ω α on Q, i.e., ω α = ω i α d q i , for α = 1 , , k . Typical examples of linear nonholonomic constraints are those imposed on the motion of rolling bodies, namely, the velocities of the points in contact should be identical.
For systems with nonholonomic constraints (Equation (8)), the corresponding equations of motion can be derived from a modification of the Hamilton principle called the Lagrange–d’Alembert principle, which is given by
δ t 1 t 2 L ( q , q ˙ ) d t = 0 ,
for variations δ q subject to the condition
ω i α ( q ) δ q i = 0 , α = 1 , , k < n ,
together with the fixed endpoint conditions δ q ( t 1 ) = δ q ( t 2 ) = 0 . Note the occurrence of two constraints with distinct roles. First, there is the constraint in Equation (8) on the solution curve called the kinematic constraint. Second, there is the constraint in Equation (10) on the variations used in the principle, referred to as the variational constraint. Later, we show that this distinction becomes more noticeable in nonequilibrium thermodynamics.
A direct application of Equations (9) and (10) yields the Lagrange–d’Alembert equations
d d t L q ˙ i L q i = λ α ω i α .
These equations, together with the constraints in Equation (8), form a complete set of equations for the unknown curves q i ( t ) and λ α ( t ) .
For more information on nonholonomic mechanics, the reader can consult [40,41,42]. Note that the Lagrange–d’Alembert principle (9) is not a critical curve condition for the action integral restricted to the space of a curve satisfying the constraints. Such a principle, which imposes the constraint via a Lagrange multiplier, gives equations that are, in general, not equivalent to the Lagrange–d’Alembert Equation (11), see, e.g., [42,43]. Such equations are sometimes referred to as the vakonomic equations.

2.2. Continuum Mechanics

Hamilton’s principle permits a natural extension to continuum systems, such as fluid and elasticity. For such systems, the configuration manifold Q is typically a manifold of maps. We shall restrict the discussion here to fluid mechanics in a fixed domain D R 3 that is assumed to be bounded by a smooth boundary D . Hamilton’s principle for fluid mechanics in the Lagrangian description has been discussed at least since the works of [44] for an incompressible fluid and [45,46] for compressible flows (see also [47] for further references on these early developments). Hamilton’s principle has since then been an important modeling tool in continuum mechanics.

2.2.1. Configuration Manifolds

For fluid mechanics in a fixed domain and before the occurrence of any shocks, the configuration space can be taken as the manifold Q = Diff ( D ) of diffeomorphisms of D . In this paper, we do not describe the functional analytic setting needed to rigorously work in the framework of infinite dimensional manifolds. For example, one can assume that the diffeomorphisms are of some given Sobolev class, regular enough (at least of class C 1 ) so that Diff ( D ) is a smooth infinite-dimensional manifold and a topological group with a smooth right translation. The tangent bundle to Diff ( D ) is formally given by the set of vector fields on D covering a diffeomorphism φ and tangent to the boundary, i.e., for each φ Diff ( D ) , we have
T φ Diff ( D ) = { V : D T D V ( X ) T φ ( X ) D , X D , V ( X ) T φ ( X ) D , X D } .
The motion of the fluid is fully described by a curve φ t Diff ( D ) defining the position x = φ t ( X ) at time t of a fluid particle with label X D . The vector field V t T φ t Diff ( D ) defined by V t ( X ) = d d t φ t ( X ) is the material velocity of the fluid. In local coordinates, we write x a = φ t a ( X A ) and V t a ( X A ) = d d t φ t a ( X A ) .

2.2.2. Hamilton’s Principle

Given a Lagrangian L : T Q R defined on the tangent bundle of the infinite-dimensional manifold Q = Diff ( D ) , Hamilton’s principle formally takes the same form as Equation (2), namely,
δ t 1 t 2 L ( φ , φ ˙ ) d t = 0 ,
for variations δ φ such that δ φ t 1 = δ φ t 2 = 0 .
Let us consider a Lagrangian of the general form
L ( φ , φ ˙ ) = D L φ ( X ) , φ ˙ ( X ) , φ ( X ) d 3 X ,
with L being the Lagrangian density and φ being the Jacobian matrix of φ , known as the deformation gradient in continuum mechanics. The variation of the integral yields
δ t 1 t 2 L ( φ , φ ˙ ) d t = t 1 t 2 D L φ a δ φ a + L φ ˙ a δ φ ˙ a + L φ , A a δ φ , A a d 3 X d t = t 1 t 2 D L φ a δ φ a t L φ ˙ a A L φ , A a δ φ a d 3 X d t + D L φ ˙ a δ φ a t 1 t 2 d 3 X + t 1 t 2 D L φ , A a N A δ φ a d S d t ,
where N is the outward-pointing unit normal vector field to the boundary D , and d S denotes the area element on the surface D . Hamilton’s principle thus yields the Euler–Lagrange equations and the boundary condition
t L φ ˙ + DIV L φ = L φ and L φ · N T D = 0 on D ,
where the divergence operator is defined as DIV L φ a = A L φ , A a . The tensor field
P : = L φ , i . e . P a A = L φ , A a
is called the first Piola–Kirchhoff stress tensor (see, e.g., [48]).

2.2.3. The Lagrangian of the Compressible Fluid

For a compressible fluid, the Lagrangian has the standard form
L ( φ , φ ˙ ) = K ( φ , φ ˙ ) U ( φ ) = D 1 2 ϱ ref ( X ) | φ ˙ ( X ) | 2 E ϱ ref ( X ) , S ref ( X ) , φ ( X ) d 3 X ,
with ϱ ref ( X ) and S ref ( X ) being the mass density and entropy density in the reference configuration. The two terms in Equation (15) are, respectively, the total kinetic energy of the fluid and minus the total internal energy of the fluid. The function E is a general expression for the internal energy density written in terms of ϱ ref ( X ) , S ref ( X ) , and the deformation gradient φ ( X ) . For fluids, E depends on the deformation gradient only through the Jacobian of φ , denoted by J φ . This fact is compatible with the material covariance property of E , written as
E ψ ϱ ref , ψ S ref , ( φ ψ ) = ψ E ϱ ref , S ref , φ , for all ψ Diff ( D ) ,
where the pull-back notation is defined as
φ f = ( f φ ) J φ
for some function f defined on D . From Equation (16), we deduce the existence of a function ϵ such that
E ϱ ref , S ref , φ = φ ϵ ( ρ , s ) , for ρ = φ ϱ ref , s = φ S ref ,
(see [48,49]). The function ϵ = ϵ ( ρ , s ) is the internal energy density in the spatial description expressed in terms of the mass density ρ and entropy density s.
For the Lagrangian Equation (15) and with the assumption in Equation (16), the first Piola–Kirchhoff stress tensor (Equation (14)) and its divergence are computed as
P a A = E φ , A a = p J φ ( φ 1 ) , a A and DIV P = ( p φ ) J φ ,
where p = ϵ ρ ρ + ϵ s s ϵ is the pressure. Note that for all δ φ a parallel to the boundary, we have P a A N A δ φ a = p J φ ( φ 1 ) , a A N A δ φ a = 0 , since ( φ 1 ) , a A δ φ a is parallel to the boundary. Hence, the boundary condition in Equation (13) is always satisfied. From Equation (19), the Euler–Lagrange Equation (13) becomes
ϱ ref φ ¨ = ( p φ ) J φ .
Equation (20) is the equation of motion for a compressible fluid in the material (or Lagrangian) description, which directly follows from the Hamilton principle in Equation (12) applied to the Lagrangian Equation (15). It is, however, highly desirable to have a variational formulation that directly produces the equations of motion in the standard spatial (or Eulerian) description. This is recalled below in Section 2.3 by using Lagrangian reduction by symmetry.

2.3. Lagrangian Reduction by Symmetry

When symmetry is available in a mechanical system, it is often possible to exploit it in order to reduce the dimension of the system and thereby facilitate its study. This process, called reduction by symmetry, is presently well understood on both the Lagrangian and Hamiltonian sides (see [50] for an introduction and references).
On the Hamiltonian side, this process is based on the reduction of symplectic or Poisson structures while, on the Lagrangian side, it is usually based on the reduction of variational principles (see [51,52,53]). Consider a mechanical system with a configuration manifold Q and Lagrangian L : T Q R , and consider also the action of a Lie group G on Q, denoted here simply as q g · q for g G , q Q . This action naturally induces an action on the tangent bundle T Q , denoted here simply as ( q , v ) ( g · q , g · v ) , called the tangent-lifted action. We say that the action is a symmetry for the mechanical system if the Lagrangian L is invariant under this tangent-lifted action. In this case, L induces a symmetry-reduced Lagrangian : ( T Q ) / G R defined on the quotient space ( T Q ) / G of the tangent bundle with respect to the action. The goal of the Lagrangian reduction process is to derive the equations of motion directly on the reduced space ( T Q ) / G . Under standard hypotheses on the action, this quotient space is a manifold, and one obtains the reduced Euler–Lagrange equations by computing the reduced variational principle for the action integral t 1 t 2 d t induced by Hamilton’s principle (Equation (2)) for the action integral t 1 t 2 L dt . The main difference between the reduced variational principle and Hamilton’s principle is the occurrence of constraints on the variations to be considered when computing the critical curves for t 1 t 2 d t . These constraints are uniquely associated with the reduced character of the variational principle and are not due to physical constraints as in Equation (10) earlier.
We now quickly recall the application of Lagrangian reduction for the treatment of fluid mechanics in a fixed domain (see Section 2.2) by following the Euler–Poincaré reduction approach in [54]. In this case, the Lagrangian reduction process encodes the shift from the material (or Lagrangian) description to the spatial (or Eulerian) description.
As we recalled above, in the material description, the motion of the fluid is described by a curve of diffeomorphisms φ t in the configuration manifold Q = Diff ( D ) , and the evolution Equation (20) for φ t follows from the standard Hamilton principle.
In the spatial description, the dynamics are described by the Eulerian velocity v ( t , x ) , the mass density ρ ( t , x ) and the entropy density s ( t , x ) , defined in terms of φ t as
v t = φ ˙ t φ t 1 , ρ t = ( φ t ) ϱ ref , s t = ( φ t ) S ref .
Using these relations and Equation (18), the Lagrangian Equation (15) in the material description induces the following expression in the spatial description:
( v , ρ , s ) = D 1 2 ρ | v | 2 ε ( ρ , s ) d 3 x .
The symmetry group underlying the Lagrangian reduction process is the subgroup
Diff ( D ) ϱ red , S ref Diff ( D )
of diffeomorphisms that preserve both the mass density ϱ ref and entropy density S ref in the reference configuration. So, we have Q = Diff ( D ) and G = Diff ( D ) ϱ red , S ref in the general Lagrangian reduction setting described above.
From the relations in Equation (21), we deduce that the variations δ φ used in Hamilton’s principle in Equation (12) induce the variations
δ v = t ζ + v · ζ ζ · v , δ ρ = div ( ρ ζ ) , δ s = div ( s ζ ) ,
where ζ = δ φ φ 1 is an arbitrary time-dependent vector field parallel to D . From Lagrangian reduction theory, the Hamilton principle in Equation (12) induces, in the Eulerian description, the (reduced) variational principle
δ t 1 t 2 ( v , ρ , s ) d t = 0 ,
for variations δ v , δ ρ , δ s constrained by the relations in Equation (22) with ζ ( t 1 ) = ζ ( t 2 ) = 0 . This principle yields the compressible fluid equations ρ ( t v + v · v ) = p in the Eulerian description, while the continuity equations t ρ + div ( ρ v ) = 0 and t s + div ( s v ) = 0 follow from the definition of ρ and s in Equation (21) (see [54]). We refer to [49] for an extension of this Lagrangian reduction approach to the case of fluids with a free boundary.
The variational formulations in Equations (22) and (23) are extended in Section 4 to include irreversible processes and are illustrated using the Navier–Stokes–Fourier system as an example.

3. Variational Formulation for Discrete Thermodynamic Systems

In this section, we present a variational formulation for the finite-dimensional case of discrete thermodynamic systems that reduces to Hamilton’s variational principle in Equation (2) in absence of irreversible processes. The form of this variational formulation is similar to that of nonholonomic mechanics recalled earlier (see Equations (8)–(10)) in the sense that the critical curve condition is subject to two constraints: a kinematic constraint on the solution curve and a variational constraint on the variations to be considered when computing the criticality condition. A major difference, however, with the Lagrange–d’Alembert principle recalled above is that the constraints are nonlinear in velocity. This formulation is extended to continuum systems in Section 4.
Before presenting the variational formulation, we recall below the two laws of thermodynamics as formulated in [38].
  • The two laws of thermodynamics
Let us denote by Σ a physical system and by Σ ext its exterior. The state of the system is defined by a set of mechanical variables and a set of thermal variables. State functions are functions of these variables. Stueckelberg’s formulation of the two laws is given as follows.
  • First law:
For every system Σ , there exists an extensive scalar state function E, called energy, which satisfies
d d t E ( t ) = P W ext ( t ) + P H ext ( t ) + P M ext ( t ) ,
where P W ext is the power associated with the work done on the system (here, work includes not only mechanical work by the action of forces but also other physical work, such as that by the action of electric voltages, etc.), P H ext is the power associated with the transfer of heat into the system, and P M ext is the power associated with the transfer of matter into the system. As we recall below, a transfer of matter into the system is associated with a transfer of work and heat. By convention, P W ext and P H ext denote uniquely the power associated with a transfer of work and heat into the system that is not associated with a transfer of matter. The power associated with a transfer of heat or work due to a transfer of matter is included in P M ext .
Given a thermodynamic system, the following terminology is generally adopted:
  • A system is said to be closed if there is no exchange of matter, i.e., P M ext ( t ) = 0 . When P M ext ( t ) 0 , the system is said to be open.
  • A system is said to be adiabatically closed if it is closed and there are no heat exchanges, i.e., P M ext ( t ) = P H ext ( t ) = 0 .
  • A system is said to be isolated if it is adiabatically closed and there is no mechanical power exchange, i.e., P M ext ( t ) = P H ext ( t ) = P W ext ( t ) = 0 .
From the first law, it follows that the energy of an isolated system is constant.
  • Second law:
For every system Σ , there exists an extensive scalar state function S, called entropy, which obeys the following two conditions
(a)
Evolution part:
If the system is adiabatically closed, the entropy S is a non-decreasing function with respect to time, i.e.,
d d t S ( t ) = I ( t ) 0 ,
where I ( t ) is the entropy production rate of the system accounting for the irreversibility of internal processes.
(b)
Equilibrium part:
If the system is isolated, as time tends to infinity, the entropy tends toward a finite local maximum of the function S over all thermodynamic states ρ compatible with the system, i.e.,
lim t + S ( t ) = max ρ compatible S [ ρ ] .
By definition, the evolution of an isolated system is said to be reversible if I ( t ) = 0 , namely, the entropy is constant. In general, the evolution of a system Σ is said to be reversible if the evolution of the total isolated system with which Σ interacts is reversible.
Based on this formulation of the two laws, Stueckelberg and Scheurer [38] developed a systematic approach for the derivation of the equations of motion for thermodynamic systems; it is especially well suited for the understanding of nonequilibrium thermodynamics as an extension of classical mechanics. We refer, for instance, to [55,56,57] for the applications of Stueckelberg’s approach to the derivation of equations of motion for thermodynamical systems.
We present our approach by considering systems with gradually increasing level of complexity. First we treat adiabatically closed systems that have only one entropy variable or, equivalently, one temperature. Such systems, called simple systems, may involve the irreversible processes of mechanical friction and internal matter transfer. Then, we treat a more general class of finite-dimensional adiabatically closed thermodynamic systems with several entropy variables, which may also involve the irreversible process of heat conduction. We then consider open finite-dimensional thermodynamic systems, which can exchange heat and matter with the exterior. Finally, we explain how chemical reactions can be included in the variational formulation.

3.1. Adiabatically Closed Simple Thermodynamic Systems

We present below the definition of finite-dimensional and simple systems following [38]. A finite-dimensional thermodynamic system Σ is a collection Σ = A = 1 P Σ A of a finite number of interacting simple thermodynamic systems Σ A . By definition, a simple thermodynamic system is a macroscopic system for which one (scalar) thermal variable and a finite set of nonthermal variables are sufficient to entirely describe the state of the system. From the second law of thermodynamics, we can always choose the entropy S as a thermal variable. A typical example of such a simple system is the one-cylinder problem. We refer to [55] for a systematic treatment of this system via Stueckelberg’s approach.

3.1.1. Variational Formulation for Mechanical Systems with Friction

We consider here a simple system which can be described only by a single entropy as a thermodynamic variable, besides mechanical variables. As in Section 2.1 above, let Q be the configuration manifold associated with the mechanical variables of the simple system. The Lagrangian of the simple thermodynamic system is thus a function:
L : T Q × R R , ( q , v , S ) L ( q , v , S ) ,
where S R is the entropy. We assume that the system involves external and friction forces given by fiber-preserving maps F ext , F fr : T Q × R T Q , i.e., such that F fr ( q , v , S ) T q Q , similar to F ext . As stated in [1], the variational formulation for this simple system is given as follows:
Find the curves q ( t ) , S ( t ) which are critical for the variational condition
δ t 1 t 2 L ( q , q ˙ , S ) d t + t 1 t 2 F ext ( q , q ˙ , S ) , δ q d t = 0 ,
subject to the phenomenological constraint
L S ( q , q ˙ , S ) S ˙ = F fr ( q , q ˙ , S ) , q ˙ ,
and for variations subject to the variational constraint
L S ( q , q ˙ , S ) δ S = F fr ( q , q ˙ , S ) , δ q ,
with δ q ( t 1 ) = δ q ( t 2 ) = 0 .
Taking variations of the integral in Equation (24), integrating by parts, and using δ q ( t 1 ) = δ ( t 2 ) = 0 , it follows that
t 1 t 2 L q i d d t L q ˙ i + F i ext δ q i + L S δ S d t .
From the variational constraint in Equation (26), the last term in the integrand of the above equation can be replaced by F i fr δ q i . Hence, using Equation (25), we get the following system of evolution equations for the curves q ( t ) and S ( t ) :
d d t L q ˙ L q = F fr ( q , q ˙ , S ) + F ext ( q , q ˙ , S ) , L S S ˙ = F fr ( q , q ˙ , S ) , q ˙ .
This variational formulation is a generalization of Hamilton’s principle in Lagrangian mechanics in the sense that it can yield irreversible processes in addition to the Lagrange–d’Alembert equations with external and friction forces. In this generalized variational formulation, the temperature is defined as minus the derivative of L with respect to S, i.e., T = L S , which is assumed to be positive. When the Lagrangian has the standard form
L ( q , v , S ) = K ( q , v ) U ( q , S ) ,
where the kinetic energy K is assumed to be independent of S, and U ( q , S ) is the internal energy, then T = L S = U S recovers the standard definition of the temperature in thermodynamics.
When the friction force vanishes, the entropy is constant from the second equation in Equation (27), and hence, the system in Equation (27) reduces to the forced Euler–Lagrange equations in classical mechanics for a Lagrangian depending parametrically on a given constant entropy S 0 .
The total energy associated with the Lagrangian is still defined by the same expression as in Equation (5) except that it now depends on S, i.e., we define the total energy E : T Q × R R by
E ( q , v , S ) = L v , v L ( q , v , S ) .
Along the solution curve of Equation (27), we have
d d t E = d d t L q ˙ i L q i q ˙ i L S S ˙ = F i ext q ˙ i = P W ext ,
where P W ext is the power associated with the work done on the system. This is nothing but the statement of the first law for the thermodynamic system, as in Equation (27).
The rate of entropy production of the system is
S ˙ = 1 T F fr , q ˙ .
The second law states that the internal entropy production is always positive, from which the friction force is dissipative, i.e., F fr ( q , q ˙ , S ) , q ˙ 0 for all ( q , q ˙ , S ) . This suggests the phenomenological relation F i fr = λ i j q ˙ j , where λ i j , i , j = 1 , , n are functions of the state variables, with the symmetric part of the matrix λ i j positive semi-definite, which are determined by experiments.
Remark 1 (Phenomenological and variational constraints).
The explicit expression of the constraint in Equation (25) involves phenomenological laws for the friction force F fr , which is why we refer to it as a phenomenological constraint. The associated constraint in Equation (26) is called a variational constraint since it is a condition on the variations to be used in Equation (24). Note that the constraint in Equation (25) is nonlinear and also that one shifts from the variational constraint to the phenomenological constraint by formally replacing the time derivatives q ˙ , S ˙ by the variations δ q , δ S :
L S S ˙ = F fr , q ˙ L S δ S = F fr , δ q .
Such a systematic correspondence between the phenomenological and variational constraints will hold, in general, for our variational formulation of thermodynamics, as we present in detail below.
Remark 2.
In our macroscopic description, it is assumed that the macroscopically “slow ” or collective motion of the system can be described by q ( t ) , while the time evolution of the entropy S ( t ) is determined from the microscopically “fast ” motions of molecules through statistical mechanics under the assumption of local equilibrium. It follows from statistical mechanics that the internal energy U ( q , S ) , given as a potential energy at the macroscopic level, is essentially coming from the total kinetic energy associated with the microscopic motion of molecules, which is directly related to the temperature of the system.
Example 1 (piston).
Consider a gas confined by a piston in a cylinder as in Figure 1. This is an example of a simple adiabatically closed system, whose state can be characterized by ( q , v , S ) .
The Lagrangian is given by L ( q , v , S ) = 1 2 m v 2 U ( q , S ) , where m is the mass of the piston; U ( q , S ) : = U ( S , V = A q , N 0 ) , where U ( S , V , N ) is the internal energy of the gas, N 0 is the constant number of moles, V = α q is the volume, and α is the constant area of the cylinder. Note that we have
U S ( q , S ) = T ( q , S ) a n d U q ( q , S ) = p ( q , S ) α ,
where T is temperature and p = U V is the pressure. The friction force reads F fr ( q , q ˙ , S ) = λ ( q , S ) q ˙ , where λ ( q , S ) 0 is the phenomenological coefficient, which is determined experimentally.
Following Equations (24)–(26), the variational formulation is given by
δ t 1 t 2 1 2 m q ˙ 2 U ( q , S ) d t + t 1 t 2 F ext ( q , q ˙ , S ) δ q d t = 0 ,
subject to the phenomenological constraint
U S ( q , S ) S ˙ = λ ( q , S ) q ˙ 2 .
and for variations subject to the variational constraint
U S ( q , S ) δ S = λ ( q , S ) q ˙ δ q .
From this principle, we get the equations of motion for the piston-cylinder system as
m q ¨ = p ( q , S ) α + F ext λ ( q , S ) q ˙ , T ( q , S ) S ˙ = λ ( q , S ) q ˙ 2 ,
consistent with the equations derived in Section 4 of [55]. We can verify the energy balance, i.e., the first law, as d d t E = F ext q ˙ , where E = 1 2 m q ˙ 2 + U is the total energy.

3.1.2. Variational Formulation for Systems with Internal Mass Transfer

We here extend the previous variational formulation to the finite-dimensional case of discrete systems experiencing internal diffusion processes. Diffusion is particularly important in biology, as many processes depend on the transport of chemical species through bodies. For instance, the setting that we develop is well suited for the description of diffusion across composite membranes, e.g., composed of different elements arranged in a series or parallel array, which occurs frequently in living systems and has remarkable physical properties (see [58,59,60,61]).
As illustrated in Figure 2, we consider a thermodynamic system consisting of K compartments that can exchange matter by diffusion across walls (or membranes) of their common boundaries. We assume that the system has a single species, and we denote by N k the number of moles of the species in the k-th compartment, k = 1 , , K . We assume that the thermodynamic system is simple; i.e., a uniform entropy S, the entropy of the system, is attributed to all the compartments.
For each compartment k = 1 , , K , the mole balance equation is
d d t N k = = 1 K J k ,
where J k = J k is the molar flow rate from compartment to compartment k due to diffusion of the species. We assume that the simple system also involves mechanical variables, friction, and exterior forces F fr and F ext , as in (A). The Lagrangian of the system is thus a function:
L : T Q × R × R K R , q , v , S , N 1 , , N K L q , v , S , N 1 , , N K .
Thermodynamic displacements associated with matter exchange. The variational formulation involves the new variables W k , k = 1 , , K , which are examples of thermodynamic displacements and play a central role in our formulation. In general, we define the thermodynamic displacement associated with an irreversible process as the primitive in time of the thermodynamic force (or affinity) of the process. This force (or affinity) thus becomes the rate of change of the thermodynamic displacement. In the case of matter transfer, W ˙ k corresponds to the chemical potential of N k .
The variational formulation for a simple system with an internal diffusion process is stated as follows.
Find the curves q ( t ) , S ( t ) , W k ( t ) , N k ( t ) which are critical for the variational condition
δ t 1 t 2 L q , q ˙ , S , N 1 , , N K + W ˙ k N k d t + t 1 t 2 F ext , δ q d t = 0 ,
subject to the phenomenological constraint
L S S ˙ = F fr , q ˙ + k , = 1 K J k W ˙ k ,
and for variations subject to the variational constraint
L S δ S = F fr , δ q + k , = 1 K J k δ W k ,
with δ q ( t 1 ) = δ q ( t 2 ) = 0 and δ W k ( t 1 ) = δ W k ( t 2 ) = 0 , k = 1 , , K .
Taking variations of the integral in Equation (29), integrating by parts, and using δ q ( t 1 ) = δ q ( t 2 ) = 0 and δ W k ( t 1 ) = δ W k ( t 2 ) = 0 , it follows that
t 1 t 2 L q i d d t L q ˙ i + F i ext δ q i + L S δ S + L N k + W ˙ k δ N k N ˙ k δ W k d t .
Then, using the variational constraint in Equation (31), we get the following conditions:
δ q i : d d t L q ˙ i L q i = F i fr + F i ext , i = 1 , , n , δ N k : d d t W k = L N k , k = 1 , , K , δ W k : d d t N k = = 1 K J k , k = 1 , , K .
These conditions, combined with the phenomenological constraint in Equation (30), yield the system of evolution equations for the curves q ( t ) , S ( t ) , and N k ( t ) :
d d t L q ˙ L q = F fr + F ext , d d t N k = = 1 K J k , k = 1 , , K , L S S ˙ = F fr , q ˙ k < J k L N k L N .
The total energy is defined as in Equations (5) and (28) and depends here on the mechanical variables ( q , v ) T Q , the entropy S, and the number of moles N k , k = 1 , , K , i.e., we define E : T Q × R × R K R as
E q , v , S , N 1 , , N K = L v , v L q , v , S , N 1 , , N K .
On the solutions of Equation (33), we have
d d t E = d d t L q ˙ i L q i q ˙ i L S S ˙ L N k N ˙ k = F i ext q ˙ i = P W ext ,
where P W ext is the power associated with the work done on the system. This is the statement of the first law for the thermodynamic system in Equation (33).
For a given Lagrangian L, the temperature and chemical potentials of each compartment are defined as
T : = L S and μ k : = L N k , k = 1 , , K .
The last equation in Equation (33) yields the rate of entropy production of the system as
S ˙ = 1 T F fr , q ˙ + 1 T k < J k ( μ k μ ) ,
where the two terms correspond, respectively, to the rate of entropy production due to mechanical friction and to matter transfer. The second law suggests the phenomenological relations
F i fr = λ i j q ˙ j and J k = G k l ( μ k μ ) ,
where λ i j , i , j = 1 , , n and G k , k , = 1 , , K are functions of the state variables, with the symmetric part of the matrix λ i j positive semi-definite and with G k 0 for all k , .
Example 2 (mass transfer associated with nonelectrolyte diffusion through a homogeneous membrane).
We consider a system with diffusion due to internal matter transfer through a homogeneous membrane separating two reservoirs. We suppose that the system is simple (so it is described by a single entropy variable) and involves a single chemical species. We assume that the membrane consists of three regions, namely, the central layer denotes the membrane capacitance in which energy is stored without dissipation, while the outer layers indicate transition regions in which dissipation occurs with no energy storage. We denote by N m the number of mole of this chemical species in the membrane and by N 1 and N 2 the numbers of mole in reservoirs 1 and 2, as shown in Figure 3. Define the Lagrangian by L ( S , N 1 , N 2 , N m ) = U ( S , N 1 , N 2 , N m ) , where U ( S , N 1 , N 2 , N m ) denotes the internal energy of the system, and assume that the volumes are constant and the system is isolated. We denote by μ k = U N k the chemical potential of the chemical species in the reservoirs ( k = 1 , 2 ) and in the membrane ( k = m ) . The flux from reservoir 1 into the membrane is denoted by J 1 m , and the flux from the membrane into reservoir 2 is denoted by J m 2 .
The variational condition for the diffusion process is provided by
δ t 1 t 2 L ( S , N 1 , N 2 , N m ) + W ˙ 1 N 1 + W ˙ 2 N 2 + W ˙ m N m d t = 0 ,
subject to the phenomenological constraint
L S S ˙ = J m 1 ( W ˙ 1 W ˙ m ) + J m 2 ( W ˙ 2 W ˙ m )
and for variations subject to the variational constraint
L S δ S = J m 1 ( δ W 1 δ W m ) + J m 2 ( δ W 2 δ W m ) ,
with δ W k ( t i ) = 0 for k = 1 , 2 , m and i = 1 , 2 .
Thus, it follows that
N ˙ 1 = J m 1 , N ˙ m = J 1 m + J 2 m , N ˙ 2 = J m 2
and W ˙ 1 = μ 1 , W ˙ 2 = μ 2 , W ˙ m = μ m . The constraint in Equation (36) becomes
T S ˙ = J m 1 ( μ 1 μ m ) + J m 2 ( μ 2 μ m ) ,
where T = L S . Equations (38) and (39) are equivalent to those derived in ([61] Section 2.2). From Equations (38) and (39), we have energy conservation d d t U = 0 , which is consistent with the fact that the system is isolated.

3.2. Adiabatically Closed Non-Simple Thermodynamic Systems

We now consider a general finite-dimensional system Σ = A = 1 P Σ A composed of interconnected simple thermodynamic systems Σ A , as illustrated in Figure 4. This class of non-simple interconnected systems extends the class of interconnected mechanical systems (see [62]) to include the irreversible processes. In addition to the irreversible processes of friction and mass transfer described earlier, these systems can also involve the process of heat conduction.
The main difference from the previous cases is the occurrence of several entropy variables, namely, each subsystem Σ A has an entropy denoted by S A , A = 1 , , P . Besides the variables S A , each subsystem Σ A may also be described by mechanical variables q A Q A and number of moles ( N A , 1 , , N A , K A ) R K A , where Q A is a configuration manifold for a mechanical variable associated with Σ A and where K A is the number of compartments in a simple system Σ A . For simplicity, we assume that independent mechanical coordinates q Q have been chosen to represent the mechanical configuration of the interconnected system Σ . The state variables needed to describe this system are
( q , v ) T Q , S A , A = 1 , , P , N A , k , k = 1 , , K A , A = 1 , , P .
We present the variational formulation for these systems in two steps, exactly as in Section 3.1, by first considering the case without any transfer of mass.

3.2.1. Variational Formulation for Systems with Friction and Heat Conduction

Besides the entropies S A , A = 1 , , P , these systems only involve mechanical variables. The Lagrangian of the system is thus a function:
L : T Q × R P R , q , v , S 1 , , S P L q , v , S 1 , , S P .
We denote by F ext A : T Q × R P T Q the external force acting on subsystem Σ A . Consistent with the fact that the mechanical variables q = ( q 1 , , q n ) describe the configuration of the entire interconnected system Σ , only the total exterior force F ext = A = 1 P F ext A appears explicitly in the variational condition in Equation (42). We denote by F fr ( A ) : T Q × R P T Q the friction forces experienced by subsystem Σ A . This friction force is at the origin of an entropy production for subsystem Σ A and appears explicitly in the phenomenological constraint (Equation (43)) and the variational constraint (Equation (44)) of the variational formulation. We also introduce the fluxes J A B , A B associated with the heat exchange between subsystems Σ A and Σ B and such that J A B = J B A . The relation between the fluxes J A B and the heat power exchange P H A B are given later. For the construction of variational structures, it is convenient to define the flux J A B for A = B as
J A A : = B A J A B ,
so that we have
A = 1 P J A B = 0 , for all B .
Thermodynamic displacements associated with heat exchange. To incorporate heat exchange into our variational formulation, the new variables Γ A , A = 1 , , P are introduced. These are again examples of thermodynamic displacements in the same way as we defined W k before. For the case of heat exchange, Γ ˙ A corresponds to the temperature of the subsystem Σ A , where Γ A is identical to the thermal displacement employed in [37], which was originally introduced by [63]. The introduction of Γ A is accompanied by the introduction of an entropy variable Σ A whose meaning will be clarified later.
Now, the variational formulation for a system with friction and heat conduction is stated as follows:
Find the curves q ( t ) , S A ( t ) , Γ A ( t ) , Σ A ( t ) which are critical for the variational condition
δ t 1 t 2 L q , q ˙ , S 1 , , S K + Γ ˙ A ( S A Σ A ) d t + t 1 t 2 F ext , δ q d t = 0 ,
subject to the phenomenological constraint
L S A Σ ˙ A = F fr ( A ) , q ˙ + J A B Γ ˙ B , for A = 1 , , P ,
and for variations subject to the variational constraint
L S A δ Σ A = F fr ( A ) , δ q + J A B δ Γ B , for A = 1 , , P ,
with δ q ( t 1 ) = δ q ( t 2 ) = 0 and δ Γ A ( t 1 ) = δ Γ A ( t 2 ) = 0 , A = 1 , , P .
Taking variations of the integral in Equation (42), integrating by parts, and using δ q ( t 1 ) = δ ( t 2 ) = 0 and δ Γ A ( t 1 ) = δ Γ A ( t 2 ) = 0 , it follows that
t 1 t 2 L q i d d t L q ˙ i + F i ext δ q i + L S A δ S A ( S ˙ A Σ ˙ A ) δ Γ A + Γ ˙ A ( δ S A δ Σ A ) d t = 0 .
Then, using the variational constraint (Equation (44)), we get the following conditions:
δ q i : L q i d d t L q ˙ i A = 1 P Γ ˙ A L S A F i fr ( A ) + F i ext = 0 , i = 1 , , n , δ S A : L S A + Γ ˙ A = 0 , A = 1 , , P , δ Γ A : S ˙ A + Σ ˙ A B = 1 P Γ ˙ A L S A J B A = 0 , A = 1 , , P .
The second equation yields
Γ ˙ A = L S A = : T A ,
where T A is the temperature of the subsystem Σ A . This implies that Γ A is a thermal displacement. Because of Equation (41), the last equation yields S ˙ A = Σ ˙ A . Hence, using Equation (43), we get the following system of evolution equations for the curves q ( t ) and S A ( t ) :
d d t L q ˙ L q = A = 1 P F fr ( A ) + F ext , L S A S ˙ A = F fr ( A ) , q ˙ B = 1 P J A B L S B L S A , A = 1 , , P .
As before, we have d d t E = F ext , q ˙ = P W ext , where the total energy E is defined in the same way as before. Since the system is non-simple, it is instructive to analyze the energy behavior of each subsystem. This can be done if the Lagrangian is given by the sum of the Lagrangians of the subsystems, i.e.,
L ( q , v , S 1 , , S P ) = A = 1 P L A ( q , v , S A ) .
The mechanical equation for Σ A is given as
d d t L A q ˙ L A q = F fr ( A ) + F ext A + B = 1 P F B A ,
where F B A = F A B is the internal force exerted by Σ B on Σ A . Denoting E A as the total energy of Σ A , we have
d d t E A = F ext A , q ˙ + B = 1 P F B A , q ˙ + B = 1 P J A B L S B L S A = P W ext A + B = 1 P P W B A + B = 1 P P H B A ,
where P W ext A and P W B A denote the power associated with the work done on Σ A by the exterior and that by the subsystem Σ B , respectively, and where P H B A is the power associated with the heat transfer from Σ B to Σ A . The link between the flux J A B and the power exchange is thus
P H B A = J A B ( T A T B ) .
Since entropy is an extensive variable, the total entropy of the system is S = A = 1 P S A . From Equation (46), it follows that the rate of total entropy production S ˙ = A = 1 P S ˙ A of the system is given by
S ˙ = A = 1 P 1 T A F fr ( A ) , q ˙ + A < B K J A B 1 T B 1 T A ( T B T A ) .
The second law suggests the phenomenological relations
F i fr ( A ) = λ i j A q ˙ j and J A B T A T B T A T B = L A B ( T B T A ) ,
where λ i j A and L A B are functions of the state variables, with the symmetric part of the matrices λ i j A positive semi-definite and with L A B 0 for all A , B . From the second relation, we deduce J A B = L A B T A T B = κ A B , with κ A B = κ A B ( q , S A , S B ) being the heat conduction coefficients between subsystem Σ A and subsystem Σ B .
Example 3 (The adiabatic piston).
We consider a piston-cylinder system composed of two cylinders connected by a rod, each of which contains a fluid (or an ideal gas) and is separated by a movable piston, as shown in Figure 5. We assume that the system is isolated. Despite its apparent simplicity, this system has attracted a lot of attention in the literature because there has been some controversy about the final equilibrium state of this system when the piston is adiabatic. We refer to [55] for a review of this challenging problem and for the derivation of the time evolution of this system, based on the approach of [38].
The system Σ may be regarded as an interconnected system consisting of three simple systems; namely, the two pistons Σ 1 , Σ 2 of mass m 1 , m 2 and the connecting rod Σ 3 of mass m 3 . As illustrated in Figure 5, q and r = D q denote, respectively, the distance between the bottom of each piston to the top, where D is a constant. In this setting, we choose the variables ( q , v , S 1 , S 2 ) (the entropy associated with Σ 3 is constant) to describe the dynamics of the interconnected system, and the Lagrangian is given by
L ( q , v , S 1 , S 2 ) = 1 2 M v 2 U 1 ( q , S 1 ) U 2 ( q , S 2 ) ,
where M : = m 1 + m 2 + m 3 , and
U 1 ( q , S 1 ) : = U 1 ( S 1 , V 1 = α 1 q , N 1 ) , U 2 ( q , S 2 ) : = U 2 ( S 2 , V 2 = α 2 r , N 2 ) ,
with U i ( S i , V i , N i ) as the internal energies of the fluids, N i as the constant number of moles, and α i as the constant areas of the cylinders, i = 1 , 2 .
As in Equation (49), we have F fr ( A ) ( q , q ˙ , S A ) = λ A q ˙ , with λ A = λ A ( q , S A ) 0 , A = 1 , 2 and J A B = κ A B = : κ , where κ = κ ( S 1 , S 2 , q ) 0 is the heat conductivity of the connecting rod.
From the variational formulations (Equations (42)–(44)), we get the following system for q ( t ) , S 1 ( t ) , S 2 ( t ) , in light of Equation (46), as
M q ¨ = p 1 ( q , S 1 ) α 1 p 2 ( q , S 2 ) α 2 ( λ 1 + λ 2 ) q ˙ , T 1 ( q , S 1 ) S ˙ 1 = λ 1 q ˙ 2 + κ T 2 ( q , S 2 ) T 1 ( q , S 1 ) , T 2 ( q , S 2 ) S ˙ 2 = λ 2 q ˙ 2 + κ T 1 ( q , S 1 ) T 2 ( q , S 2 ) ,
where we used U i S i ( q , S i ) = T i ( q , S i ) , U 1 q = p 1 ( q , S 1 ) α 1 , and U 2 q = p 2 ( q , S 2 ) α 2 .
These equations recover those derived in [55], (51)–(53). We have d d t E = 0 , where E = 1 2 M q ˙ 2 + U 1 ( q , S 1 ) + U ( q , S 2 ) , consistent with the fact that the system is isolated. The rate of total entropy production is
d d t S = λ 1 T 1 + λ 2 T 2 q ˙ 2 + κ ( T 2 T 1 ) 2 T 1 T 2 0 .
The equations of motion for the adiabatic piston are obtained by setting κ = 0 .

3.2.2. Variational Formulation for Systems with Friction, Heat Conduction, and Internal Mass Transfer

We extend the previous case to one in which the subsystems Σ A not only exchange work and heat but also exchange matter. In general, each subsystem may itself have several compartments, in which case the variables are those listed in Equation (40). For simplicity, we assume that each subsystem has only one compartment. The reader can easily extend this approach to the general case. The Lagrangian is thus a function:
L : T Q × R P × R P R , q , v , S 1 , , S P , N 1 , , N P L q , v , S 1 , , S P , N 1 , , N P ,
where S A and N A are the entropy and number of moles of subsystem Σ A , A = 1 , , P . Since the previous cases are presented in detail above, we here just present the variational formulation and the resulting equations of motion.
Find the curves q ( t ) , S A ( t ) , Γ A ( t ) , Σ A ( t ) , W A ( t ) , N A ( t ) which are critical for the variational condition
δ t 1 t 2 L q , q ˙ , S 1 , , S P , N 1 , , N P + W ˙ A N A + Γ ˙ A ( S A Σ A ) d t + t 1 t 2 F ext , δ q d t = 0 ,
subject to the phenomenological constraint
L S A Σ ˙ A = F fr ( A ) , q ˙ + J A B Γ ˙ B + J B A W ˙ A , for A = 1 , , P ,
and for variations subject to the variational constraint
L S A δ Σ A = F fr ( A ) , δ q + J A B δ Γ B + J B A δ W A , for A = 1 , , P ,
with δ q ( t i ) = δ W A ( t i ) = δ Γ A ( t i ) = 0 , i = 1 , 2 , A = 1 , , P .
From Equations (51)–(53), we obtain the following system of evolution equations for the curves q ( t ) , S A ( t ) , and N A ( t ) :
d d t L q ˙ L q = A = 1 P F fr ( A ) + F ext , d d t N A = B = 1 P J B A , A = 1 , , P , L S A S ˙ A = F fr ( A ) , q ˙ B = 1 P J A B L S B L S A B = 1 P J B A L N A , A = 1 , , P .
We also obtain the conditions
Γ ˙ A = L S A = : T A , W ˙ A = L N A = : μ A , Σ ˙ A = S ˙ A , A = 1 , , P ,
where we defined the temperature T A and the chemical potential μ A of the subsystem Σ A . The variables Γ A and W A are again the thermodynamic displacements associated with the processes of heat and matter transfer.
The total energy satisfies d d t E = P W ext and the detailed energy balances can be carried out as in Equation (47) and yields here
P H + M B A = J A B ( T A T B ) .
The rate of total entropy production of the system is computed as
S ˙ = A = 1 P 1 T A F fr ( A ) , q ˙ + A < B J A B 1 T B 1 T A ( T B T A ) + A < B J B A μ B T B μ A T A .
From the second law of thermodynamics, the total entropy production must be positive and hence suggests the phenomenological relations
F i fr ( A ) = λ i j A q ˙ j , T A T B T A T B J A B J B A = L A B T B T A μ B T B μ A T A ,
where the symmetric part of the n × n matrices λ A and of the 2 × 2 matrices L A B are positive. The entries of these matrices are phenomenological coefficients determined experimentally, which may generally depend on the state variables. From Onsager’s reciprocal relations, the 2 × 2 matrix
L A B = L A B H H L A B H M L A B M H L A B M M
is symmetric for all A , B . The matrix elements L A B H H and L A B M M are related to the processes of heat conduction and diffusion between Σ A and Σ B . The coefficients L A B M H and L A B H M describe the cross-effects, and hence are associated with discrete versions of the process of thermal diffusion and the Dufour effect. Thermal diffusion is the process of matter diffusion due to the temperature difference between the compartments. The Dufour effect is the process of heat transfer due to difference of chemical potentials between the compartments.
Example 4 (Heat conduction and diffusion between two compartments).
We consider a closed system consisting of two compartments, as illustrated in Figure 6. The compartments are separated by a permeable wall through which heat conduction and diffusion is possible. The system is closed and, therefore, there is no matter transfer with exterior, while we have heat and mass transfer between the compartments.
The Lagrangian of this system is
L ( S 1 , S 2 , N 1 , N 2 ) = U 1 ( S 1 , N 1 ) U 2 ( S 2 , N 2 ) ,
where U i ( S i , N i ) is the internal energy of the ith chemical species and the volume is assumed to be constant. In this case, the system in Equation (54) specifies
N ˙ 1 = J 2 1 , N ˙ 2 = J 1 2 , T 1 S ˙ 1 = J 12 ( T 2 T 1 ) J 2 1 μ 1 , T 2 S ˙ 2 = J 12 ( T 1 T 2 ) J 1 2 μ 2 ,
where
T A = U S A , μ A = U N A , A = 1 , 2
are the temperatures and chemical potentials of the Ath compartments. From Equation (56), it follows that the equation for the total entropy S = S 1 + S 2 of the system is
S ˙ = J 12 ( T 1 T 2 ) 1 T 1 1 T 2 + J 1 2 μ 1 T 1 μ 2 T 2 0 ,
from which the phenomenological relations are obtained as in Equation (55). The energy balance in each compartment is
d d t U 1 = J 12 ( T 2 T 1 ) , d d t U 2 = J 12 ( T 1 T 2 ) ,
which shows the relation between the flux J 12 and the power P 1 2 = J 12 ( T 2 T 1 ) exchanged between the two compartments due to heat conduction, diffusion, and their cross-effects. The total energy E = U 1 + U 2 is conserved.
Remark 3 (General structure of the variational formulation for adiabatically closed systems).
In each of the situation considered, the variational constraint can be systematically obtained from the phenomenological constraint by replacing the time derivative by the delta variation for each process. For the most general case treated above, we have the following correspondence:
L S A Σ ˙ A = F fr ( A ) , q ˙ + J A B Γ ˙ B + J B A W ˙ A L S A δ Σ A = F fr ( A ) , δ q + J A B δ Γ B + J B A δ W A .
In the above, the quantities to be determined from the state variables by phenomenological laws are F fr ( A ) , J A B , and J B A .
The structure of our variational formulation is better explained by adopting a general point of view. If we denote by Q the thermodynamic configuration manifold and by x Q the collection of all the variables of the thermodynamic system, for instance, x = ( q , S A , N A , W A , Γ A , Σ A ) , A = 1 , , P in the preceding case, then the variational formulation for an adiabatically closed system falls into the following abstract setting. Given a Lagrangian L : T Q R , an external force F ext : T Q T Q , and fiber-preserving maps A α : T Q T Q , A α ( x , v ) T x Q , α = 1 , , k , the variational formulation reads as follows:
δ t 1 t 2 L ( x ( t ) , x ˙ ( t ) ) d t + t 1 t 2 F ext ( x ( t ) , x ˙ ( t ) ) , δ x ( t ) d t = 0 ,
where the curve x ( t ) satisfies the phenomenological constraint
A α ( x , x ˙ ) · x ˙ = 0 , f o r α = 1 , , k ,
and for variations δ x subject to the variational constraint
A α ( x , x ˙ ) · δ x = 0 , f o r α = 1 , , k ,
with δ x ( t 1 ) = δ x ( t 2 ) = 0 .
This yields the system of equations
d d t L x ˙ L x F ext = λ α A α ( x , x ˙ ) , A α ( x , x ˙ ) · x ˙ = 0 , α = 1 , , k .
It is clear that all the variational formulations for the adiabatically closed system considered above fall into this category by appropriately choosing x, L ( x , x ˙ ) , F ext ( x , x ˙ ) , and A α ( x , x ˙ ) . The energy defined by E ( x , v ) = L v , v L ( x , v ) satisfies d d t E = F ext , x ˙ .
The constraints involved in this variational formulation admit an intrinsic geometric description. The variational constraint (Equation (59)) defines the subset C V T Q × Q T Q given by
C V = { ( x , v , δ x ) T Q × Q T Q A α ( x , v ) · δ x = 0 , f o r α = 1 , , k } ,
so that C V ( x , v ) : = C V { ( x , v ) } × T x Q is a vector subspace of T x Q for all ( x , v ) T Q . The phenomenological constraint (Equation (58)) defines the subset C K T Q given by
C K = { ( x , v ) T Q A α ( x , v ) · v = 0 , f o r α = 1 , , k } .
Then, one notes that the constraint C K can be intrinsically defined from C V as
C K = { ( x , v ) T Q ( x , v ) C V ( x , v ) } .
Constraints C V and C K related in this way are called nonlinear nonholonomic constraints of thermodynamic type (see [1,64]).

3.3. Open Thermodynamic Systems

The thermodynamic systems that we considered so far are restricted to the adiabatically closed cases. For such systems, interaction with the exterior is only through the exchange of mechanical work, and hence the first law for such systems reads
d d t E = F ext , q ˙ = P W ext .
We now consider the more general case of open systems exchanging work, heat, and matter with the exterior. In this case, the first law reads
d d t E = P W ext + P H ext + P M ext ,
where P H ext is the power associated with the transfer of heat into the system and P M ext is the power associated with the transfer of matter into the system. As we recall below, the transfer of matter into or out of the system is associated with a transfer of work and heat. By convention, P W ext and P H ext denote uniquely the power associated with work and heat that is not associated with a transfer of matter. The power associated with a transfer of heat or work due to a transfer of matter is included in P M ext .
In order to get a concrete expression for P M ext , let us consider an open system with several ports, a = 1 , , A , through which matter can flow into or out of the system. We suppose, for simplicity, that the system involves only one chemical species and denote by N the number of moles of this species. The mole balance equation is
d d t N = a = 1 A J a ,
where J a is the molar flow rate into the system through the ath port so that J a > 0 indicates the flow into the system and J a < 0 indicates the flow out of the system.
As matter enters or leaves the system, it carries its internal, potential, and kinetic energy. This energy flow rate at the ath port is the product E a J a of the energy per mole (or molar energy) E a and the molar flow rate J a at the ath port. In addition, as matter enters or leaves the system, it also exerts work on the system that is associated with pushing the species into or out of the system. The associated energy flow rate is given at the a-th port by J a p a V a , where p a and V a are the pressure and the molar volume of the substance flowing through the ath port. From this, we get the expression
P M ext = a = 1 A J a ( E a + p a V a ) .
We refer, for instance, to [65,66] for the detailed explanations of the first law for open systems.
We present below an extension of the variational formulation to the case of open systems. In order to motivate the form of the constraints that we use, we first consider a particular case of simple open system, namely, the case of a system with a single chemical species N in a single compartment with constant volume V and without mechanical effects. In this particular situation, the energy of the system is given by the internal energy written as U = U ( S , N ) , since V = V 0 is constant. The balance of moles and energy are respectively given by
d d t N = a = 1 A J a , d d t U = a = 1 A J a ( U a + p a V a ) = a = 1 A J a H a
(see Equation (61)), where H a = U a + p a V a is the molar enthalpy at the ath port and where U a , p a , and V a are, respectively, the molar internal energy, the pressure, and the molar volume at the ath port. From these equations and the second law, one obtains the equations for the rate of change of the entropy of the system as
d d t S = I + a = 1 A J a S a ,
where S a is the molar entropy at the ath port and I is the rate of internal entropy production of the system given by
I = 1 T a = 1 A J a H a T S a μ ,
with T = U S being the temperature and μ = U N being the chemical potential. For our variational treatment, it is useful to rewrite the rate of internal entropy production as
I = 1 T a = 1 A J S a ( T a T ) + J a ( μ a μ ) ,
where we define the entropy flow rate J S a : = J a S a and also use the relation H a = U a + p a V a = μ a + T a S a . The thermodynamic quantities known at the ath port are usually the pressure p a and the temperature T a , from which the other thermodynamic quantities, such as μ a = μ a ( p a , T a ) or S a = S a ( p a , T a ) , are deduced in light of the state equations of the gas.
Here, we only show the variational formulation for a simplified case of open systems, namely, an open system with only one entropy variable and one compartment with a single species. So, the open system is a simple system. The reader is referred to [3] for the more general cases of open systems, such as the extensions of Equations (29)–(31) and (51)–(53) to open systems, as well as for the case when the mechanical energy of the species is taken into account.
The state variables needed to describe the system are ( q , v , S , N ) T Q , and the Lagrangian is a map
L : T Q × R × R R , ( q , v , S , N ) L ( q , v , S , N ) ,
We assume that the system has A ports, through which species can flow out of or into the system, and B heat sources. As above, μ a and T a denote the chemical potential and temperature at the ath port, and T b denotes the temperature of the bth heat source.
Find the curves q ( t ) , S ( t ) , Γ ( t ) , Σ ( t ) , W ( t ) , N ( t ) which are critical for the variational condition
δ t 1 t 2 L ( q , q ˙ , S , N ) + W ˙ N + Γ ˙ ( S Σ ) d t + t 1 t 2 F ext , δ q d t = 0 ,
subject to the phenomenological constraint
L S Σ ˙ = F fr , q ˙ + a = 1 A J a ( W ˙ μ a ) + J S a ( Γ ˙ T a ) + b = 1 B J S b ( Γ ˙ T b ) ,
and for variations subject to the variational constraint
L S δ Σ = F fr , δ q + a = 1 A J a δ W + J S a δ Γ + b = 1 B J S b δ Γ ,
with δ q ( t 1 ) = δ q ( t 2 ) = 0 , δ W ( t 1 ) = δ W ( t 2 ) = 0 , and δ Γ ( t 1 ) = δ Γ ( t 2 ) = 0 .
We note that the variational constraint (Equation (66)) follows from the phenomenological constraint (Equation (65)) by formally replacing the time derivatives Σ ˙ , q ˙ , W ˙ , Γ ˙ by the corresponding virtual displacements δ Σ , δ q , δ W , δ Γ and by removing all the terms that depend uniquely on the exterior, i.e., the terms J a μ a , J S a T a , and J S b T b . Such a systematic correspondence between the phenomenological and variational constraints extends to open systems the correspondence for adiabatically closed systems verified in Equations (25) ⇝ (26), (30) ⇝ (31), (43) ⇝ (44), (52) ⇝ (53); see also Remarks 1 and 3. Note that the action functional in Equation (64) has the same form as that in the case of adiabatically closed systems.
Taking variations of the integral in Equation (64), integrating by parts, and using δ q ( t 1 ) = δ ( t 2 ) = 0 , δ W ( t 1 ) = δ W ( t 2 ) = 0 , and δ Γ ( t 1 ) = δ Γ ( t 2 ) = 0 and using the variational constraint (Equation (66)), we obtain the following conditions:
δ q : d d t L q ˙ i L q i = F i fr + F i ext , i = 1 , , n , δ S : Γ ˙ = L S , δ W : N ˙ = a = 1 A J a , δ N : W ˙ = L N , δ Γ : S ˙ = Σ ˙ + a = 1 A J S a + b = 1 B J S b .
By the second and fourth equations, the variables Γ and W are thermodynamic displacements as before. The main difference from the earlier cases is that now S ˙ and Σ ˙ are no longer equal. The physical interpretation of Σ is given below. From Equation (65), it follows that the system of evolution equations for the curves q ( t ) , S ( t ) , N ( t ) is defined by
d d t L q ˙ L q = F fr + F ext , d d t N = a = 1 A J a , L S S ˙ a = 1 A J S a b = 1 B J S b = F fr , q ˙ a = 1 A J a L N + μ a + J S a L S + T a b = 1 B J S b L S + T b .
The energy balance for this system is computed as
d d t E = F ext , q ˙ = P W ext + b = 1 B J S b T b = P H ext + a = 1 A ( J a μ a + J S a T a ) = P M ext .
From the last equation in Equation (68), the rate of entropy of the system is found by the equation
S ˙ = I + a = 1 A J S a + b = 1 B J S b ,
where I is the rate of internal entropy production given by
I = 1 T F fr , q ˙ mechanical friction + 1 T a = 1 A J a μ a μ + J S a T a T mixing of matter flowing into the system + 1 T b = 1 B J S b T b T heating .
From the last Equations (67) and (69), we notice that Σ ˙ = I is the rate of internal entropy production. The second and third terms in Equation (69) represent the entropy flow rate into the system associated with the ports and the heat sources. The second law requires I 0 , whereas the sign of the rate of entropy flow into the system is arbitrary.
Example 5
(A piston device with ports and heat sources Figure 7). We consider a piston with mass m moving in a cylinder containing a species with internal energy U ( S , V , N ) . We assume that the cylinder has two external heat sources with entropy flow rates J b i , i = 1 , 2 , and two ports through which the species is injected into or flows out of the cylinder with molar flow rates J a i , i = 1 , 2 . The entropy flow rates at the ports are given by J S a i = J a i S a i .
The variable q characterizes the one-dimensional motion of the piston such that the volume occupied by the species is V = α q , with α the sectional area of the cylinder. The Lagrangian of the system is
L ( q , q ˙ , S , N ) = 1 2 m q ˙ 2 U ( S , A q , N ) .
The variational formulations (Equations (64)–(66)) yield the evolution equations for q ( t ) , S ( t ) , N ( t )
m q ¨ = p ( q , S , N ) α + F fr + F ext , N ˙ = a = 1 A J a , S ˙ = I + i = 1 2 J S a i + j = 1 2 J S b j ,
where p ( q , S , N ) = U V is the pressure and I = Σ ˙ is the internal entropy production given by
I = 1 T F fr q ˙ + 1 T i = 1 2 ( μ a i μ ) + S a i ( T a i T ) J a i + 1 T j = 1 2 J S b j ( T b j T ) .
The first term represents the entropy production associated with the friction experienced by the moving piston, the second term is the entropy production associated with the mixing of gas flowing into the cylinder at the two ports a 1 , a 2 , and the third term denotes the entropy production due to the external heating. The second law requires that each of these terms is positive. The energy balance holds as
d d t E = F ext q ˙ = P W ext + j = 1 2 J S b j T b j = P H ext + i = 1 2 ( J a i μ a i + J S a i T a i ) = P M ext .
Remark 4 (Inclusion of chemical reactions).
The variational formulations presented so far can be extended to include several chemical species undergoing chemical reactions. Let us denote by I = 1 , , R the chemical species and by a = 1 , , r the chemical reactions. Chemical reactions may be represented by
I ν I a I a ( 2 ) a ( 1 ) I ν I a I , a = 1 , , r ,
where a ( 1 ) and a ( 2 ) are the forward and backward reactions associated with reaction a, and ν I a , ν I a are the forward and backward stoichiometric coefficients for component I in reaction a. Mass conservation during each reaction is given by
I m I ν I a = 0 f o r a = 1 , , r ( L a v o i s i e r l a w ) ,
where ν I a : = ν I a ν I a , and m I is the molecular mass of species I. The affinity of reaction a is the state function defined by A a = I = 1 R ν I a μ I , a = 1 , , r , where μ I is the chemical potential of the chemical species I. The thermodynamic flux associated with reaction a is the rate of extent denoted J a .
The thermodynamic displacements are W I and ν a such that
W ˙ I = μ I , I = 1 , , R a n d ν ˙ a = A a , a = 1 , , r .
For chemical reactions in a single compartment assumed to be adiabatically closed and without mechanical components, the variational formulation is given as follows.
Find the curves S ( t ) , N I ( t ) , W I ( t ) , ν a ( t ) , I = 1 , , R , a = 1 , , r , which are critical for the variational condition
δ t 1 t 2 L ( N 1 , , N R , S ) + W ˙ I N I d t = 0 ,
subject to the phenomenological and chemical constraints
L S S ˙ = J a ν ˙ a a n d ν ˙ a = ν I a W ˙ I , a = 1 , , r ,
and for variations subject to the variational constraints
L S δ S = J a δ ν a a n d δ ν a = ν I a δ W I , a = 1 , , r ,
with δ W I ( t 1 ) = δ W I ( t 2 ) = 0 , I = 1 , , R .
The variational formulations (Equations (71)–(73)) yield the evolution equations for chemical reactions
N ˙ I = J a ν I a , I = 1 , , R a n d T S ˙ = J a A a ,
together with the conditions in Equation (70).
Chemical reactions can be included in of all the thermodynamic systems considered previously by combining the variational formulations given by Equations (71)–(73) for chemical reactions with the variational formulations given by Equations (29)–(31), (51)–(53), and (64)–(66).
Remark 5 (General structure of the variational formulation for open systems).
As opposed to the adiabatically closed case, the phenomenological and variational constraints depend explicitly on time t R for the case of open systems. In addition, the phenomenological constraint involves an affine term that depends only on the properties at the ports. From a general point of view, letting Q be the configuration manifold, these constraints are defined by the maps A α : R × T Q T Q , A ( t , x , v ) T x Q , with A α ( t , x , v ) T x Q , and B α : R × T Q R , α = 1 , , k , where t R and ( x , v ) T Q .
Given a time-dependent Lagrangian L : R × T Q R and an external force F ext : R × T Q T Q , the variational formulations in Equations (57)–(59) are extended as follows.
δ t 1 t 2 L ( t , x ( t ) , x ˙ ( t ) ) d t + t 1 t 2 F ext ( t , x ( t ) , x ˙ ( t ) ) , δ x ( t ) d t = 0 ,
where the curve x ( t ) satisfies the phenomenological constraint
A α ( t , x , x ˙ ) · x ˙ + B α ( t , x , x ˙ ) = 0 , f o r α = 1 , , k .
and for variations δ x subject to the variational constraint
A α ( t , x , x ˙ ) · δ x = 0 , f o r α = 1 , , k .
with δ x ( t 1 ) = δ x ( t 2 ) = 0 .
This yields the system of equations
d d t L x ˙ L x F ext = λ α A α ( t , x , x ˙ ) A α ( t , x , x ˙ ) · x ˙ + B α ( t , x , x ˙ ) = 0 , α = 1 , , k .
The variational formulation for open systems falls into this category by appropriately choosing x and L . For instance, for Equations (64)–(66), one has x = ( q , S , N , W , Γ , Σ ) , and L is the integrand in Equation (64). Note that in Equation (74), we chose the Lagrangian to be time-dependent for the sake of generality. In fact, all the variational formulations for thermodynamics presented above generalize easily to time-dependent Lagrangians. We refer to [3] for a full treatment.
The energy defined by E ( t , x , v ) = L v , v L ( t , x , v ) satisfies the energy balance equation
d d t E = F ext , x ˙ λ α B α L t .
In the application to open thermodynamic systems, the first term is identified with P W ext , the second term is identified with P H + M ext , while the third term is due to the explicit dependence of the Lagrangian on the time.

4. Variational Formulation for Continuum Thermodynamic Systems

In this section, we extend Hamilton’s principle of continuum mechanics (12) to nonequilibrium continuum thermodynamics, in the same way as Hamilton’s principle of classical mechanics (Equation (2)) was extended to the finite-dimensional case of discrete thermodynamic systems in Section 3.
We consider a multicomponent compressible fluid subject to the irreversible processes of viscosity, heat conduction, and diffusion. In presence of irreversible processes, we impose no-slip boundary conditions, hence, the configuration manifold for the fluid motion is the manifold Q = Diff 0 ( D ) of diffeomorphisms that keep the boundary D pointwise fixed.
We assume that the fluid has P components with mass densities ϱ A ( t , X ) , A = 1 , , P in the material description, and we denote by S ( t , X ) the entropy density in the material description. The motion of the multicomponent fluid is given as before by a curve of diffeomorphisms φ t Diff 0 ( D ) , but now φ ˙ t is interpreted as the barycentric material velocity of the multicomponent fluid. The Lagrangian of the multicomponent fluid with irreversible processes is
L : T Diff 0 ( D ) × F ( D ) × F ( D ) P R , ( φ , φ ˙ , S , ϱ 1 , , ϱ P ) L ( φ , φ ˙ , S , ϱ 1 , , ϱ P ) ,
where F ( D ) denotes a space of functions on D and is given by
L ( φ , φ ˙ , S , ϱ 1 , , ϱ P ) = K ( φ , φ ˙ , ϱ 1 , , ϱ P ) U ( φ , S , ϱ 1 , , ϱ P ) = D 1 2 ϱ ( X ) | φ ˙ ( X ) | 2 E ϱ 1 ( X ) , , ϱ P ( X ) , S ( X ) , φ ( X ) d 3 X .
The first term is the total kinetic energy of the fluid, where ϱ : = A = 1 P ϱ A is the total mass density. The second term is minus the total internal energy of the fluid, where E is a general expression for the internal energy density written in terms of ϱ A ( X ) , S ( X ) , and the deformation gradient φ ( X ) . As in Equation (16), E satisfies the material covariance assumption and depends on the deformation gradient only through the Jacobian J φ . As in Equation (18), there is a function ϵ , the internal energy density in the spatial representation, such that
E ϱ 1 , , ϱ P , φ ) = φ ϵ ( ρ 1 , , ρ P , s ) , for ρ A = φ ϱ A , s = φ S .
In the spatial description, the Lagrangian Equation (79) reads as
( v , s , ρ 1 , , ρ P ) = D 1 2 ρ | v | 2 ε ( ρ 1 , , ρ P , s ) d 3 x .
Note that in absence of irreversible process, the Lagrangian (79) would just be defined on the tangent bundle T Diff ( D ) with ϱ A = ϱ ref A , A = 1 , , P and S = S ref seen as fixed parameters, exactly as in Equation (15) for the single-component case.
Remark 6 (Material vs spatial variational principle).
As we present below, the variational formulation for continuum thermodynamical systems in the material description is the natural continuum (infinite-dimensional) version of that of discrete (finite-dimensional) thermodynamical systems described in Section 3. This is analogous to the conservative reversible case recalled earlier, namely, the Hamilton principle (Equation (12)); associated with the material description of continuum systems is the natural continuum version of the classical Hamilton principle Equation (2). This is why we first consider below in Section 4.1 the variational formulation of continuum systems in the material description and deduce from it the variational formulation in the spatial description later in Section 4.2. The latter is more involved since it contains additional constraints, as we have seen in the conservative reversible case in Section 2.3.

4.1. Variational Formulation in the Lagrangian Description

The variational formulation of a multicomponent fluid subject to the irreversible processes of viscosity, heat conduction, and diffusion is the continuum version of the variational formulations (Equations (51)–(53)) for finite-dimensional thermodynamic systems with friction, heat, and mass transfer. Analogous to the thermodynamic fluxes F fr , J A B , J B A are the viscous stress, the entropy flux density, and the diffusive flux density given by P fr , J S , J A in the material description. Total mass conservation imposes the condition A = 1 P J A = 0 .
We give below the variational formulation for a general Lagrangian with density L , i.e.,
L ( φ , φ ˙ , S , ϱ 1 , , ϱ P ) = D L φ , φ ˙ , φ , S , ϱ 1 , , ϱ P d 3 X .
The continuum version of the variational formulations (Equations (51)–(53)) that we propose are the following.
Find the curves φ ( t ) , S ( t ) , Γ ( t ) , Σ ( t ) , W A ( t ) , ϱ A ( t ) which are critical for the variational condition:
0 T D L φ , φ ˙ , φ , S , ϱ 1 , , ϱ P + W ˙ A ϱ A + Γ ˙ ( S Σ ) d 3 X d t = 0
subject to the phenomenological constraint
L S Σ ˙ = P fr : φ ˙ + J S · Γ ˙ + J A · W ˙ A
and for variations subject to the variational constraint
L S δ Σ = P fr : δ φ + J S · δ Γ + J A · δ W A
with δ φ ( t i ) = δ Γ ( t i ) = δ W A ( t i ) = 0 , i = 1 , 2 , and with δ φ | D = 0 .
Taking variations of the integral in Equation (82), integrating by parts, and using δ φ ( t i ) = δ Γ ( t i ) = δ W A ( t i ) = 0 , i = 1 , 2 , and δ φ | D = 0 , it follows that
t 1 t 2 D L φ a δ φ a t L φ ˙ a A L φ , A a δ φ a + L S δ S + L ϱ A + W ˙ A δ ϱ A L φ , A a ϱ ˙ A δ W A ( S ˙ Σ ˙ ) δ Γ + Γ ˙ ( δ S δ Σ ) d 3 X d t = 0 .
Using the variational constraint (Equation (84)), integrating by parts, and collecting the terms proportional to δ φ , δ Γ , δ S , δ W A , and δ ϱ A , we get
δ φ : d d t L φ ˙ + DIV L φ + Γ ˙ L S 1 P fr L φ = 0 δ Γ : S ˙ = DIV Γ ˙ L S 1 J S + Σ ˙ , δ S : Γ ˙ = L S , δ W A : ϱ ˙ A = DIV Γ ˙ L S 1 J A , δ ϱ A : W ˙ A = L ϱ A ,
together with the boundary conditions
D P fr a B N B δ φ a d S = 0 , D J S · N δ Γ d S = 0 , D J A · N δ W A d S = 0 ,
where N is the outward-pointing unit normal vector field to D . The first boundary term vanishes since δ φ | D = 0 from the no-slip boundary condition. The second and third conditions give
J S · N = 0 and J A · N = 0 , A = 1 , , P , on D ,
i.e., the fluid is adiabatically closed.
From the third and fifth conditions in Equation (85), we have Γ ˙ = L S = T , the temperature in the material representation, and W ˙ A = L ϱ A = Υ A , a generalization of the chemical potential of component A in the material representation. The second equation in Equation (85) thus reads as S ˙ + DIV J S = Σ ˙ and attributes to Σ the meaning of entropy generation rate density. From the first and fourth equation and the constraint, we get the system
d d t L φ ˙ + DIV L φ P fr L φ = 0 ϱ ˙ A + DIV J A = 0 , A = 1 , , P T ( S ˙ + DIV J S ) = P fr : φ ˙ J S · T J A · Υ A ,
for the fields φ ( t , X ) , ϱ A ( t , X ) , and S ( t , X ) . The parameterization of the thermodynamic fluxes P fr , J S , J A in terms of the thermodynamic forces are discussed in the Eulerian description below.

4.2. Variational Formulation in the Eulerian Description

While the variational formulation is simpler in the material description, the resulting equations of motion are usually written and studied in the spatial description. It is therefore useful to have an Eulerian version of the variational formulations (Equations (82)–(84)). In order to obtain such a variational formulation, all the variables used in Equations (82)–(84) must be converted to their Eulerian analogue. We have already seen the relations s = φ S and ρ A = φ ϱ A between the Eulerian and Lagrangian mass densities and entropy densities, where the pull-back notation is defined in Equation (17). The Eulerian quantities associated with Σ , Γ , and W A are defined as follows
σ = φ Σ , γ = Γ φ 1 , w A = W A φ 1 .
The Eulerian version of the Piola–Kirchhoff viscous stress tensor P fr is the viscous stress tensor σ fr obtained via the Piola transform (see [2,48]).
From the material covariance assumption, the Lagrangian (81) can be rewritten exclusively in terms of spatial variables as
v , s , ρ 1 , , ρ P = D L v , s , ρ 1 , , ρ P d 3 x ,
where the Lagrangian density is defined by
L v , s , ρ 1 , , ρ P = φ L ( v φ , φ ρ 1 , , φ ρ P , φ s ) .
Using all the preceding relations between Lagrangian and Eulerian variables, we can rewrite the variational formulations Equations (82)–(84) in the following purely Eulerian form.
Find the curves v ( t ) , s ( t ) , γ ( t ) , σ ( t ) , w A ( t ) , ρ A ( t ) which are critical for the variational condition
0 T D L v , s , ρ 1 , , ρ P + D t w A ρ A + D t γ ( s σ ) d 3 x d t = 0
subject to the phenomenological constraint
L s D ¯ t σ = σ fr : v + j S · D t γ + j A · D t w A
and for variations δ v = t ζ + v · ζ ζ · v , δ ρ A , δ w A , δ s , δ σ , and δ γ subject to the variational constraint
L s D ¯ δ σ = σ fr : ζ + j S · D δ γ + j A · D δ w A
with ζ ( t i ) = δ γ ( t i ) = δ w A ( t i ) = 0 , i = 1 , 2 , and with ζ | D = 0 .
In Equations (87)–(89), we use the notations D t f = t f + v · f , D ¯ t f = t f + div ( f v ) , D δ f = δ f + ζ · f , and D ¯ δ f = δ f + div ( f ζ ) for the Lagrangian time derivatives and variations of functions and densities.
The variational formulations (Equations (87)–(89)) yield the system
( t + £ v ) L v = ρ A L ρ A + s L s + div σ fr D ¯ t ρ A + div j A = 0 , A = 1 , , P L s ( D ¯ t s + div j s ) = σ fr : v j s · L s j A · L ρ A ,
together with the conditions
D ¯ t σ = D ¯ t s + div j s , D t γ = L s , D t w A = L ρ A .
In Equation (90), £ v denotes the Lie derivative defined as £ v m = v · m + v T · m + m div v . We refer to [2] for a detailed derivation of these equations from the variational formulations (Equations (87)–(89)).
The multicomponent Navier–Stokes–Fourier equations. For the Lagrangian
v , s , ρ 1 , , ρ P = D 1 2 ρ | v | 2 ϵ ( ρ 1 , , ρ P , s ) d 3 x
we get
ρ ( t v + v · v ) = p + div σ fr D ¯ t ρ A + div j A = 0 , A = 1 , , P T ( D ¯ t s + div j s ) = σ fr : v j s · T j A · μ A
with μ A = ϵ ρ A , T = ϵ s , and p = μ A ρ A + T s ϵ .
The system of Equation (91) needs to be supplemented with phenomenological expressions for the thermodynamic fluxes σ fr , j S , j A in terms of the thermodynamic affinities Def v , T , μ A compatible with the second law. It is empirically accepted that for a large class of irreversible processes and under a wide range of experimental conditions, the thermodynamic fluxes J α are linear functions of the thermodynamic affinities X α , i.e., J α = L α β X β , where the transport coefficients L α β ( ) are state functions that must be determined by experiments or, if possible, by kinetic theory. Besides defining a positive quadratic form, the coefficients L α β ( ) must also satisfy Onsager’s reciprocal relations [8] due to the microscopic time reversibility and the Curie principle associated with material invariance (see, for instance, [67,68,69,70]). In the case of the multicomponent fluid, writing the traceless part of σ fr and Def v as ( σ fr ) ( 0 ) = σ fr 1 3 ( Tr σ fr ) δ and ( Def v ) ( 0 ) = Def v 1 3 ( div v ) δ , we have the following phenomenological linear relations
j S j A = L S S L S B L A S L A B T μ B , 1 3 Tr σ fr = ζ div v , ( σ fr ) ( 0 ) = 2 μ ( Def v ) ( 0 ) ,
where all the coefficients may depend on ( s , ρ 1 , , ρ P ) . The first linear relation describes the vectorial phenomena of heat conduction (Fourier law), diffusion (Fick law), and their cross-effects (Soret and Dufour effects); the second relation describes the scalar processes of bulk viscosity with coefficient ζ 0 , and the third relation is the tensorial process of shear viscosity with coefficient μ 0 . The associated friction stress reads
σ fr = 2 μ Def v + ζ 2 3 μ ( div v ) δ .
All these phenomenological considerations take place with the phenomenological constraint (Equation (88)) and the associated variational constraint (Equation (89)), but they are not involved in the variational condition (87). Note that our variational formulation holds independently on the linear character of the phenomenological laws.
Remark 7.
For simplicity, we chose the fluid domain D as a subset of R 3 endowed with the Euclidean metric. More generally, the variational formulation can be intrinsically written on Riemannian manifolds (see [2]). Making the dependence of the Riemannian metric explicit, even if it is given by the standard Euclidean metric, is important for the study of the covariance properties [49].

5. Concluding Remarks

In this paper, we survey our recent developments on the Lagrangian variational formulation for nonequilibrium thermodynamics developed in [1,2,3], which is a natural extension of Hamilton’s principle in mechanics to include irreversible processes.
Before going into details, we briefly review Hamilton’s principle as it applies to (finite-dimensional) discrete systems in classical mechanics, as well as to (infinite-dimensional) continuum systems. Then, in order to illustrate our variational formulation for nonequilibrium thermodynamics, we first start with the finite dimensional case of adiabatically closed systems together with representative examples, such as a piston containing an ideal gas, a system with a chemical species experiencing diffusion between several compartments, an adiabatic piston with two cylinders, and a system with a chemical species experiencing diffusion and heat conduction between two compartments. Then, we extend the variational formulation to open finite-dimensional systems that can exchange heat and matter with the exterior. This case is illustrated with the help of a piston device with ports and heat sources. We also demonstrate how chemical reactions can be naturally incorporated into our variational formulation.
Second, we illustrate the variational formulation with the infinite-dimensional case of continuum systems by focusing on a compressible fluid with the irreversible processes due to viscosity, heat conduction, and diffusion. The formulation is first given in the Lagrangian (or material) description because it is in this description that the variational formulation is a natural continuum extension of the one for discrete systems. The variational formulation in the Eulerian (or spatial) description is then deduced by Lagrangian reduction and yields the multicomponent Navier–Stokes–Fourier equations.
One of the key issue of our variational formulation is the introduction and the use of the concept of thermodynamic displacement, whose time derivative corresponds to the affinity of the process. Thermodynamic displacement allows for systematically developing the variational constraints associated with the nonlinear phenomenological constraints. The variational formulations presented in this paper use the entropy as an independent variable, but a variational approach based on the temperature can be also developed by considering free energy Lagrangians (see [4]).

Further Developments

Associated with our variational formulation of nonequilibrium thermodynamics, there are the following interesting and important topics, which we have not described here due to lack of space, but they are quite relevant to the variational formulation of nonequilibrium thermodynamics, reviewed in this paper.
  • Dirac structures and Dirac systems: It is well known that when the Lagrangian is regular, the equations of classical mechanics can be transformed into the setting of Hamiltonian systems. The underlying geometric object for this formulation is the canonical symplectic form on the phase space T Q of the configuration manifold. When irreversible processes are included, this geometric formulation is lost because of the degeneracy of the Lagrangians and the presence of the nonlinear nonholonomic constraints. Hence, one may ask: what is the appropriate geometric object that generalizes the canonical symplectic form in the formulation of thermodynamics? In [64,71], it was shown that the evolution equations for both adiabatically closed and open systems can be geometrically formulated in terms of various classes of Dirac structures induced by the phenomenological constraint and from the canonical symplectic form on T Q or on T ( Q × R ) .
  • Reduction by symmetry: When symmetries are available, reduction processes can be applied to the variational formulation of thermodynamics, thereby extending the process of Lagrangian reduction from classical mechanics to thermodynamics. This is illustrated in Section 4.2 for the Navier–Stokes–Fourier equation, but it can be carried out in general for all the variational formulations presented in this paper. For instance, we refer to [72] for the case of simple thermodynamic systems on Lie groups with symmetries.
  • Variational discretization: Associated with the variational formulation in this paper, there exist variational integrators for the nonequilibrium thermodynamics of simple adiabatically closed systems (see [72,73]). These integrators are structure-preserving numerical schemes that are obtained by a discretization of the variational formulation. The structure-preserving property of the flow of such systems is an extension of the symplectic property of the flow of variational integrators for Lagrangian mechanics.
  • Modeling of thermodynamically consistent models: The variational formulation for thermodynamics can be also used to derive new models, which are automatically thermodynamically consistent. We refer to [74] for an application of the variational formulation to atmospheric thermodynamics and its pseudo-incompressible approximation.

Funding

F.G.-B. is partially supported by the ANR project GEOMFLUID, ANR-14-CE23-0002-01; H.Y. is partially supported by JSPS Grant-in-Aid for Scientific Research (16KT0024, 24224004), the MEXT “Top Global University Project” and Waseda University (SR 2018K-195).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gay-Balmaz, F.; Yoshimura, H. A Lagrangian variational formulation for nonequilibrium thermodynamics. Part I: Discrete systems. J. Geom. Phys. 2017, 111, 169–193. [Google Scholar] [CrossRef]
  2. Gay-Balmaz, F.; Yoshimura, H. A Lagrangian variational formulation for nonequilibrium thermodynamics. Part II: Continuum systems. J. Geom. Phys. 2017, 111, 194–212. [Google Scholar] [CrossRef]
  3. Gay-Balmaz, F.; Yoshimura, H. A variational formulation of nonequilibrium thermodynamics for discrete open systems with mass and heat transfer. Entropy 2018, 20, 163. [Google Scholar] [CrossRef]
  4. Gay-Balmaz, F.; Yoshimura, H. A free energy Lagrangian variational formulation of the Navier-Stokes-Fourier system. Int. J. Geom. Methods Mod. Phys. 2018, in press. [Google Scholar] [CrossRef]
  5. Gibbs, J.W. Collected Works; Scribner: New York, NY, USA, 1902. [Google Scholar]
  6. Callen, H.B. Thermodynamics and an Introduction to Thermostatistics, 2nd ed.; John Wiley & Sons Inc.: New York, NY, USA, 1985. [Google Scholar]
  7. Landau, L.D.; Lifshitz, E.M. Statistical Physics; Volume 5 of A Course of Theoretical Physics; Pergamon Press: Oxford, UK, 1969. [Google Scholar]
  8. Onsager, L. Reciprocal relations in irreversible processes I. Phys. Rev. 1931, 37, 405–426. [Google Scholar] [CrossRef]
  9. Onsager, L.; Machlup, S. Fluctuations and irreversible processes. Phys. Rev. 1953, 91, 1505–1512. [Google Scholar] [CrossRef]
  10. Onsager, L.; Machlup, S. Fluctuations and irreversible processes II. Systems with kinetic energy. Phys. Rev. 1953, 91, 1512–1515. [Google Scholar] [CrossRef]
  11. Prigogine, I. Etude Thermodynamique des Phénomènes Irréversibles; Bruxelles: Brussels, Belgium, 1947. [Google Scholar]
  12. Glansdorff, P.; Prigogine, I. Thermodynamic Theory of Structure, Stability, and Fluctuations; Wiley-Interscience: New York, NY, USA, 1971. [Google Scholar]
  13. Ziegler, H. A possible generalization of Onsager’s theory. In Irreversible Aspects of Continuum Mechanics; Barkus, H., Sedov, L.I., Eds.; Springer: New York, NY, USA, 1968. [Google Scholar]
  14. Gyarmati, I. Nonequilibrium Thermodynamics: Field Theory and Variational Principles; Springer: New York, NY, USA, 1970. [Google Scholar]
  15. Lavenda, B.H. Thermodynamics of Irreversible Processes; Macmillan: London, UK, 1978. [Google Scholar]
  16. Ichiyanagi, M. Variational principles in irreversible processes. Phys. Rep. 1994, 243, 125–182. [Google Scholar] [CrossRef]
  17. Biot, M.A. A virtual dissipation principle and Lagrangian equations in non-linear irreversible thermodynamics. Acad. R. Belg. Bull. Cl. Sci. 1975, 5, 6–30. [Google Scholar]
  18. Biot, M.A. New variational-Lagrangian irreversible thermodynamics with application to viscous flow, reaction-diffusion, and solid mechanics. Adv. Appl. Mech. 1984, 24, 1–91. [Google Scholar]
  19. Fukagawa, H.; Fujitani, Y. A variational principle for dissipative fluid dynamics. Prog. Theor. Phys. 2012, 127, 921–935. [Google Scholar] [CrossRef]
  20. Gibbs, J.W. Graphical methods in the thermodynamics of fluids. Trans. Conn. Acad. 1873, 2, 309–342. [Google Scholar]
  21. Gibbs, J.W. A method of geometrical representation of the thermodynamic properties of substances by means of surfaces. Trans. Conn. Acad. 1873, 2, 382–404. [Google Scholar]
  22. Carathéodory, C. Untersuchungen über die Grundlagen der Thermodynamik. Math. Ann. 1909, 67, 355–386. [Google Scholar] [CrossRef]
  23. Hermann, R. Geometry, Physics and Systems; Dekker: New York, NY, USA, 1973. [Google Scholar]
  24. Mrugala, R. Geometrical formulation of equilibrium phenomenological thermodynamics. Rep. Math. Phys. 1978, 14, 419–427. [Google Scholar] [CrossRef]
  25. Mrugala, R. A new representation of Thermodynamic Phase Space. Bull. Pol. Acad. Sci. 1980, 28, 13–18. [Google Scholar]
  26. Mrugala, R.; Nulton, J.D.; Schon, J.C.; Salamon, P. Contact structure in thermodynamic theory. Rep. Math. Phys. 1991, 29, 109–121. [Google Scholar] [CrossRef]
  27. Eberard, D.; Maschke, B.M.; van der Schaft, A.J. An extension of Hamiltonian systems to the thermodynamic phase space: Towards a geometry of nonreversible processes. Rep. Math. Phys. 2007, 60, 175–198. [Google Scholar] [CrossRef] [Green Version]
  28. Grmela, M. Bracket formulation of dissipative fluid mechanics equations. Phys. Lett. A 1984, 102, 355–358. [Google Scholar] [CrossRef]
  29. Kaufman, A. Dissipative Hamiltonian systems: A unifying principle. Phys. Lett. A 1984, 100, 419–422. [Google Scholar] [CrossRef]
  30. Morrison, P. Bracket formulation for irreversible classical fields. Phys. Lett. A 1984, 100, 423–427. [Google Scholar] [CrossRef]
  31. Edwards, B.J.; Beris, A.N. Noncanonical Poisson bracket for nonlinear elasticity with extensions to viscoelasticity. Phys. A Math. Gen. 1991, 24, 2461–2480. [Google Scholar] [CrossRef]
  32. Edwards, B.J.; Beris, A.N. Unified view of transport phenomena based on the generalized bracket formulation. Ind. Eng. Chem. Res. 1991, 30, 873–881. [Google Scholar] [CrossRef]
  33. Grmela, M.; Öttinger, H.-C. Dynamics and thermodynamics of complex fluids. I. Development of a general formalism. Phys. Rev. E 1997, 56, 6620–6632. [Google Scholar] [CrossRef]
  34. Morrison, P. A paradigm for joined Hamiltonian and dissipative systems. Physica D 1986, 18, 410–419. [Google Scholar] [CrossRef]
  35. Öttinger, H.C.; Grmela, M. Dynamics and thermodynamics of complex fluids. II. Illustrations of a general formalism. Phys. Rev. E 1997, 56, 6633–6655. [Google Scholar] [CrossRef]
  36. Eldred, C.; Gay-Balmaz, F. Single and double generator bracket formulations of geophysical fluids with irreversible processes. arXiv, 2018; arXiv:1811.11609v1. [Google Scholar]
  37. Green, A.E.; Naghdi, P.M. A re-examination of the basic postulates of thermomechanics. Proc. R. Soc. Lond. Ser. A 1991, 432, 171–194. [Google Scholar] [CrossRef]
  38. Stueckelberg, E.C.G.; Scheurer, P.B. Thermocinétique Phénoménologique Galiléenne; Birkhäuser: Basel, Switzerland, 1974. [Google Scholar]
  39. Landau, L.D.; Lifshitz, E.M. Mechanics; Volume 1 of A Course of Theoretical Physics; Pergamon Press: Oxford, UK, 1969. [Google Scholar]
  40. Neimark, J.I.; Fufaev, N.I. Dynamics of Nonholonomic Systems; Volume 33 of Translations of Mathematical Monographs; American Mathematical Society: Providence, RI, USA, 1972. [Google Scholar]
  41. Arnold, V.I.; Kozlov, V.V.; Neishtadt, A.I. Dynamical Systems III; Encyclopedia of Mathematics; Springer: New York, NY, USA, 1988; Volume 3. [Google Scholar]
  42. Bloch, A.M. Nonholonomic Mechanics and Control; Volume 24 of Interdisciplinary Applied Mathematics; Baillieul, J., Crouch, P., Marsden, J., Krishnaprasad, P.S., Murray, R.M., Zenkov, D., Eds.; Springer: New York, NY, USA, 2003. [Google Scholar]
  43. Lewis, A.; Murray, R.M. Variational principles in constrained systems: Theory and experiments. Int. J. Nonlinear Mech. 1995, 30, 793–815. [Google Scholar] [CrossRef]
  44. Herivel, J.W. The derivation of the equations of motion of an ideal fluid by Hamilton’s principle. Proc. Camb. Philos. Soc. 1955, 51, 344–349. [Google Scholar] [CrossRef]
  45. Serrin, J. Mathematical principles of classical fluid mechanics. In Handbuch der Physik VIII-I; Springer: Berlin, Germany, 1959; pp. 125–263. [Google Scholar]
  46. Eckart, C. Variation principles of hydrodynamics. Phys. Fluids 1960, 3, 421–427. [Google Scholar] [CrossRef]
  47. Truesdell, C.; Toupin, R. The classical field theories. In Handbuch der Physik III-I; Springer: Berlin, Germany, 1960; pp. 226–790. [Google Scholar]
  48. Marsden, J.E.; Hughes, T.J.R. Mathematical Foundations of Elasticity; Prentice Hall: New York, NY, USA, 1983. [Google Scholar]
  49. Gay-Balmaz, F.; Marsden, J.E.; Ratiu, T.S. Reduced variational formulations in free boundary continuum mechanics. J. Nonlinear Sci. 2012, 22, 553–597. [Google Scholar] [CrossRef]
  50. Marsden, J.E.; Ratiu, T.S. Introduction to Mechanics and Symmetry, 2nd ed.; Texts in Applied Mathematics; Springer: New York, NY, USA, 1999; Volume 17. [Google Scholar]
  51. Marsden, J.E.; Scheurle, J. Lagrangian reduction and the double spherical pendulum. ZAMP 1993, 44, 17–43. [Google Scholar] [CrossRef] [Green Version]
  52. Marsden, J.E.; Scheurle, J. The reduced Euler–Lagrange equations. Fields Inst. Commun. 1993, 1, 139–164. [Google Scholar]
  53. Cendra, H.; Marsden, J.E.; Ratiu, T.S. Lagrangian Reduction by Stages; Memoirs of the AMS: Providence, RI, USA, 2001; Volume 152. [Google Scholar]
  54. Holm, D.D.; Marsden, J.E.; Ratiu, T.S. The Euler-Poincaré equations and semidirect products with applications to continuum theories. Adv. Math. 1998, 137, 1–8. [Google Scholar] [CrossRef]
  55. Gruber, C. Thermodynamics of systems with internal adiabatic constraints: Time evolution of the adiabatic piston. Eur. J. Phys. 1999, 20, 259–266. [Google Scholar] [CrossRef]
  56. Ferrari, C.; Gruber, C. Friction force: From mechanics to thermodynamics. Eur. J. Phys. 2010, 31, 1159–1175. [Google Scholar] [CrossRef]
  57. Gruber, C.; Brechet, S.D. Lagrange equation coupled to a thermal equation: Mechanics as a consequence of thermodynamics. Entropy 2011, 13, 367–378. [Google Scholar] [CrossRef]
  58. Kedem, O.; Katchalsky, A. Permeability of composite membranes. Part 1. Electric current, volume flow and flow of solute through membranes. Trans. Faraday Soc. 1963, 59, 1918–1930. [Google Scholar] [CrossRef]
  59. Kedem, O.; Katchalsky, A. Permeability of composite membranes. Part 2. Parallel elements. Trans. Faraday Soc. 1963, 59, 1931–1940. [Google Scholar] [CrossRef]
  60. Kedem, O.; Katchalsky, A. Permeability of composite membranes. Part 3. Series array of elements. Trans. Faraday Soc. 1963, 59, 1941–1953. [Google Scholar] [CrossRef]
  61. Oster, G.F.; Perelson, A.S.; Katchalsky, A. Network thermodynamics: Dynamic modelling of biophysical systems. Q. Rev. Biophys. 1973, 6, 1–134. [Google Scholar] [CrossRef] [PubMed]
  62. Jacobs, H.; Yoshimura, H. Tensor products of Dirac structures and interconnection in Lagrangian mechanics. J. Geom. Mech. 2014, 6, 67–98. [Google Scholar] [CrossRef] [Green Version]
  63. von Helmholtz, H. Studien zur Statik Monocyklischer Systeme; Sitzungsberichte der Königlich Preussischen Akademie der Wissenschaften zu Berlin: Berlin, Germany, 1884; pp. 159–177. [Google Scholar]
  64. Gay-Balmaz, F.; Yoshimura, H. Dirac structures in nonequilibrium thermodynamics. J. Math. Phys. 2018, 59, 012701. [Google Scholar] [CrossRef] [Green Version]
  65. Sandler, S.I. Chemical, Biochemical, and Engineering Thermodynamics; John Wiley & Sons: New York, NY, USA, 2006. [Google Scholar]
  66. Klein, S.; Nellis, G. Thermodynamics; Cambridge University Press: Cambridge, UK, 2011. [Google Scholar]
  67. de Groot, S.R.; Mazur, P. Nonequilibrium Thermodynamics; North-Holland: Amsterdam, The Netherlands, 1969. [Google Scholar]
  68. Kondepudi, D.; Prigogine, I. Modern Thermodynamics; John Wiley & Sons: New York, NY, USA, 1998. [Google Scholar]
  69. Landau, L.D.; Lifshitz, E.M. Fluid Mechanics; Volume 6 of A Course of Theoretical Physics; Pergamon Press: Oxford, UK, 1969. [Google Scholar]
  70. Woods, L.C. The Thermodynamics of Fluid Systems; Clarendon Press: Oxford, UK, 1975. [Google Scholar]
  71. Gay-Balmaz, F.; Yoshimura, H. Dirac structures in nonequilibrium thermodynamics for open systems. Preprint 2018, unpublished. [Google Scholar]
  72. Couéraud, B.; Gay-Balmaz, F. Variational discretization of simple thermodynamical systems on Lie groups. Disc. Cont. Dyn. Syst. Ser. S 2018, in press. [Google Scholar]
  73. Gay-Balmaz, F.; Yoshimura, H. Variational discretization for the nonequilibrium thermodynamics of simple systems. Nonlinearity 2018, 31, 1673. [Google Scholar] [CrossRef]
  74. Gay-Balmaz, F. A variational derivation of the nonequilibrium thermodynamics of a moist atmosphere with rain process and its pseudoincompressible approximation. arXiv, 2018; arXiv:1701.03921v2. [Google Scholar]
Figure 1. One cylinder.
Figure 1. One cylinder.
Entropy 21 00008 g001
Figure 2. Simple adiabatically closed system with a single chemical species experiencing diffusion among several compartments.
Figure 2. Simple adiabatically closed system with a single chemical species experiencing diffusion among several compartments.
Entropy 21 00008 g002
Figure 3. Nonelectrolyte diffusion through a homogeneous membrane.
Figure 3. Nonelectrolyte diffusion through a homogeneous membrane.
Entropy 21 00008 g003
Figure 4. Non-simple interconnected system.
Figure 4. Non-simple interconnected system.
Entropy 21 00008 g004
Figure 5. The two-cylinder problem.
Figure 5. The two-cylinder problem.
Entropy 21 00008 g005
Figure 6. Non-simple closed system with a single chemical species, experiencing diffusion and heat conduction between two compartments.
Figure 6. Non-simple closed system with a single chemical species, experiencing diffusion and heat conduction between two compartments.
Entropy 21 00008 g006
Figure 7. A piston device with ports and heat sources.
Figure 7. A piston device with ports and heat sources.
Entropy 21 00008 g007

Share and Cite

MDPI and ACS Style

Gay-Balmaz, F.; Yoshimura, H. From Lagrangian Mechanics to Nonequilibrium Thermodynamics: A Variational Perspective. Entropy 2019, 21, 8. https://doi.org/10.3390/e21010008

AMA Style

Gay-Balmaz F, Yoshimura H. From Lagrangian Mechanics to Nonequilibrium Thermodynamics: A Variational Perspective. Entropy. 2019; 21(1):8. https://doi.org/10.3390/e21010008

Chicago/Turabian Style

Gay-Balmaz, François, and Hiroaki Yoshimura. 2019. "From Lagrangian Mechanics to Nonequilibrium Thermodynamics: A Variational Perspective" Entropy 21, no. 1: 8. https://doi.org/10.3390/e21010008

APA Style

Gay-Balmaz, F., & Yoshimura, H. (2019). From Lagrangian Mechanics to Nonequilibrium Thermodynamics: A Variational Perspective. Entropy, 21(1), 8. https://doi.org/10.3390/e21010008

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop