the Creative Commons Attribution 4.0 License.

the Creative Commons Attribution 4.0 License.

# Jarzynski equality and Crooks relation for local models of air–sea interaction

### Florian Lemarié

We show that the most prominent of the work theorems, the Jarzynski equality and the Crooks relation,
can be applied to the momentum transfer at the air–sea interface using a hierarchy of local models.
In the more idealized models, with and without a Coriolis force,
the variability is provided from Gaussian white noise which modifies the shear between the
atmosphere and the ocean. The dynamics is Gaussian, and the Jarzynski equality and Crooks
relation can be obtained analytically solving stochastic differential equations. The more
involved model consists of interacting atmospheric and oceanic boundary layers, where only
the dependence on the vertical direction is resolved, the turbulence is modeled through standard turbulent
models and the stochasticity comes from a randomized drag coefficient. It is integrated
numerically and can give rise to a non-Gaussian dynamics. Also in this case the Jarzynski
equality allows for calculating a dynamic beta *β*_{D} of the turbulent fluctuations
(the equivalent of the thermodynamic beta $\mathit{\beta}=({k}_{\mathrm{B}}T{)}^{-\mathrm{1}}$ in thermal fluctuations).
The Crooks relation gives the *β*_{D} as a function of the magnitude of the work fluctuations.
It is well defined (constant) in the Gaussian models and can show a slight variation in the
more involved models. This demonstrates that recent concepts of stochastic thermodynamics
used to study micro-systems subject to thermal fluctuations can further the understanding
of geophysical fluid dynamics with turbulent fluctuations.

To better understand the interactions between different components of the climate system is an important and difficult task. The problem lies in the different science proper to each component leading to disparate processes, evolving on dissimilar scales in space and time. This heterogeneity complexifies the research, from an observational, theoretical and numerical perspective. Air–sea interaction is one example. The exchange of heat, momentum and matter between the atmosphere and the ocean has a strong influence on our climate (Stocker et al., 2007). In the present work only the exchange of momentum is considered. It is caused by the shear at the sea surface due to the difference between the atmospheric winds and the ocean currents in the corresponding planetary boundary layers. For a general discussion on air–sea interaction we refer to Csanady (2001). The atmospheric winds are usually faster than the ocean currents, and therefore the atmosphere mostly loses energy at the interface by friction and the ocean mostly gains energy (e.g., Wirth, 2019). The energy exchange is not conservative, and most of the energy is dissipated (Duhaut and Straub, 2006; Wirth, 2018).

Since the work of Einstein (1906) (see also Einstein, 1956; Perrin, 2014), fluctuations have been the focus of research in statistical mechanics, which had traditionally been concerned with averages. Fluctuations in a thermodynamic system usually appear at spatial scales which are small enough so that thermal, molecular motion leaves an imprint on the dynamics, as was first noted by Einstein (1906) (see also Einstein, 1956; Perrin, 2014). The importance of fluctuations is, however, not restricted to small systems where thermal fluctuations are important, since they leave their imprint on the dynamics at all scales when (not necessarily thermal) fluctuations are strong enough. A typical example of non-thermal fluctuations is fluctuating turbulent fluid motion (e.g., Frisch, 1995). The average motion of a turbulent fluid can not be understood without some knowledge about the turbulent fluctuations. The importance of turbulent fluctuations is especially pronounced in geophysical flows, which are highly anisotropic due to the influence of gravity. This leads to a quasi-two-dimensional dynamics, an energy cascade from small to large scales and strong fluctuations (see Boffetta and Ecke, 2012, for a recent review on 2D turbulence). Likewise, the air–sea interaction on hourly to climatic timescales can not be understood without some knowledge of the fluctuations at smaller and faster scales (see McWilliams and Huckle, 2006; Shrira and Almelah, 2020). Furthermore, in many natural systems the focus is on the fluctuations rather than on an average state. Examples are weather and climate dynamics, where we focus on the fluctuations in the same system on different timescales. For the weather the timescale of interest is from roughly an hour to a week; for the climate the focus is from tens to thousands of years. As processes with very different timescales intervene, the system is not in a stationary state at those timescales but is constantly evolving in time. The different components of the system exchange energy; they do work on each other. The exchange of energy between fluctuating components is the subject of the present work.

A recent concept, which is presently the subject of attention when non-equilibrium thermal systems
are considered, are work theorems. The most prominent ones are the
Jarzynski equality (Jarzynski, 1997) and the Crooks relation (Crooks, 1998).
Rather than looking at average values of the thermodynamic variables, they consider their
probability density functions (pdf's) which allow the replacement of inequalities of equilibrium
statistical mechanics by equalities. As an example, the second law of thermodynamics states
that the work *W* performed on a system is larger than or equal to the increase Δ*G* in
its free energy: *W*≥Δ*G*. When the work is seen as a fluctuating quantity *w*,
which differs even when a specific process is repeated with the same deterministic forcing
protocol but is subject to thermal fluctuations, the Jarzynski equality says that
$\langle \mathrm{exp}(-\mathit{\beta}w)\rangle =\mathrm{exp}(-\mathit{\beta}\mathrm{\Delta}G)$, where the average
〈〉 is taken over the ensemble of thermal fluctuations. This not only includes
the second law on average but also says that individual exceptions have to exist
(see Sect. 2). When thermal fluctuations are considered, the (thermodynamic)
$\mathit{\beta}=({k}_{\mathrm{B}}T{)}^{-\mathrm{1}}$ is the inverse of the product of the Boltzmann constant and the temperature.
In the case of air–sea interaction, considered here, the dynamic *β*, (denoted *β*_{D})
is the inverse of an energy related to the macroscopic turbulent fluctuations.
It is the inverse of a “temperature”, that is, in the present context, of a turbulent kinetic energy.

The here discussed work theorems are different but related to fluctuation theorems considered in Wirth (2018, 2019). In a recent review Seifert (2012) presents the relation of fluctuation theorems, the Jarzynski equality, the Crooks relation and other recent concepts of non-equilibrium thermodynamics and develops a unifying framework. Work theorems are considered based on different approaches: Hamiltonian dynamics subject to an external forcing, Fokker–Planck equations and Langevin dynamics (see Seifert, 2012, for a review). Here only the last approach is used.

The concepts developed for micro-dynamics with fluctuations due to thermal motion are here applied to macroscopic fluid dynamics, where an atmospheric planetary boundary layer interacts with an oceanic mixed layer. In this case the fluctuations are due to the smaller-scale turbulence in both layers. The concepts of fluctuation theorems have been previously applied to cases with turbulent rather than thermal fluctuations. Examples are the experimental data of the drag force exerted by a turbulent flow (Ciliberto et al., 2004) and the local entropy production in Rayleigh–Bénard convection (Shang et al., 2005).

A system that is subject to an external forcing typically evolves in time; it is in a non-stationary state. If there is a balance between external forcings and/or internal dissipation in such a way that ensemble averages do not evolve in time, the system is in a non-equilibrium stationary state. In the here-considered work theorems a dissipative system is subject to forcing and also the average large-scale quantities evolve in time; the dynamics is in a non-stationary non-equilibrium state.

The concepts of non-equilibrium statistical mechanics have been applied to momentum transfer between the atmosphere and the ocean in a non-rotating frame in Wirth (2018, 2019). This was done by adapting the mathematics developed to study the movement of a Brownian particle. The present work prolongs this research by considering work relations and extending it to the dynamics in a rotating frame. The motion of a particle in a rotating frame is similar to Brownian motion of a charged particle in a magnetic field, a problem which has been studied since Taylor (1961) (see also Czopnik and Garbaczewski, 2001). The structure of the equations is identical when the Larmor frequency of a charged particle in a magnetic field is replaced by the Coriolis frequency. The passage from a non-rotating frame to a rotating frame is, however, far from straightforward, for principally two reasons. First, the dynamics is no longer invariant by time reversal, even in the non-dissipative limit. In the words of statistical mechanics, detailed balance, which is the basis of many analytical results, is lost. Secondly, it is not clear that results from simple models that do not explicitly resolve the vertical structure in the atmospheric and oceanic boundary layer are useful to investigate the situation in a rotating frame with a Coriolis force (see McWilliams and Huckle, 2006). Indeed, the dynamics in the planetary boundary layer shows a strong dependence on the vertical coordinate, not only in magnitude but also in direction as determined by Ekman (1905). Analytic solutions for time evolution are only available in special cases (see Shrira and Almelah, 2020). In the present pedagogical approach to the subject we therefore work with a hierarchy of three models. The first model is a linear zero-dimensional one-component model (1D velocity vector). We analytically prove the validity of the work theorems by solving the corresponding stochastic differential equation (SDE). In the second model the Coriolis force is added, and it has two horizontal components (2D velocity vector). The work theorems are again proven analytically. The third model is a fully non-linear model, explicitly resolving the vertical dependence of the interacting atmospheric and oceanic boundary layer, which is integrated numerically.

In the next section we introduce the theory of stochastic thermodynamics and work relations applied to air–sea interaction. The models are introduced and solved, using stochastic calculus, in Sect. 3. As the concepts are new to the field (see Ghil, 2019, for a historical perspective), we present all the calculations in detail for pedagogical purposes and also to show that most of it reduces to linear algebra. We refer the reader not familiar with stochastic differential equations to Dijkstra (2013) and Franzke et al. (2015). The results, for the three models of our model hierarchy, are discussed in Sect. 4, and we end with some conclusions in Sect. 5.

## 2.1 Model

### 2.1.1 The 1D two-component model (1D2C)

We consider the turbulent momentum transfer between the atmospheric and the
oceanic planetary boundary layer, which are coupled by a frictional force.
The atmospheric layer is also subject to a deterministic forcing imposed from
the exterior through a pressure gradient. The dynamics in the boundary layers
is investigated using Reynolds decomposition, in which the fast fluctuations
in the three-dimensional velocity are separated from the slowly evolving component
of the horizontal velocity field (called “velocity field” in the sequel). The
horizontal variations in the velocity field are neglected. This is justified in
a local model by the disparity of the vertical and horizontal scales. The
atmospheric planetary boundary layer is a few hundreds of meters thick. The oceanic
planetary boundary layer spans a few tens of meters in the vertical. The velocity
field in both layers varies considerably over the thickness of the corresponding
boundary layer. Horizontal variations are imposed by the weather systems that force
the dynamics and typically extend 1000 km in the horizontal. This leads to a classical
model of the planetary boundary layers (introduced by Ekman, 1905),
which depends on the vertical direction (1D) and resolves the two horizontal
components (2C) of the velocity vector
${\stackrel{\mathrm{\u0303}}{\mathbf{u}}}_{\mathrm{a}}(z,t)=\left({\stackrel{\mathrm{\u0303}}{u}}_{\mathrm{a}}\right(z,t),{\stackrel{\mathrm{\u0303}}{v}}_{\mathrm{a}}(z,t\left)\right)$^{1}; this 1D2C model is given by an evolution equation
of both velocity components:

where *f* is the Coriolis frequency; *ν*_{a}(*z*,*t*) the turbulent viscosity; and
$\stackrel{\mathrm{\u0303}}{\mathbf{F}}=({\stackrel{\mathrm{\u0303}}{F}}_{x},{\stackrel{\mathrm{\u0303}}{F}}_{y})$ a forcing provided by a
large-scale pressure gradient, which is independent of the vertical direction.
The turbulent viscosity *ν*_{a}(*z*,*t*) parameterizes the effect of the not-explicitly-resolved fluctuations
on the velocity field; it is calculated through a turbulent closure scheme.
The atmosphere extends over $z\in [\mathrm{0},{h}_{\mathrm{a}}]$, and the boundary conditions are
(Neumann at top and bottom)

where *ρ*_{a} is a constant atmospheric density. The ocean is also governed
by model (Eq. 1) where all subscripts are changed (_{a}→_{o});
the forcing vanishes; the domain extends over $z\in [-{h}_{\mathrm{o}},\mathrm{0}]$; and the boundary
conditions are (Neumann at bottom and top)

The surface friction $\mathit{\tau}=({\mathit{\tau}}_{y},{\mathit{\tau}}_{y})$ is parameterized as a
function of the velocity difference between the atmospheric and oceanic velocity
near the interface *z*=0. Linear Rayleigh friction (i.e., parameterized
to be linearly proportional to the relative wind) is employed:

Here *S*^{−1} is oceanic friction time, or a quadratic drag law:

with *δ*_{a}≪*h*_{a} and *δ*_{o}≪*h*_{o}. Here the drag coefficient *c*_{d}
is defined relative to the ocean and the equivalent drag coefficient for the atmosphere
is obtained by multiplying *c*_{d} by ${\mathit{\rho}}_{\mathrm{o}}/{\mathit{\rho}}_{\mathrm{a}}$.

### 2.1.2 The 0D two-component model (0D2C)

The 0D version of the 1D2C model (Eq. 1) is obtained by integration over the vertical extent of the corresponding layer normalized by the layer thickness. Introducing

and using the boundary conditions (Eqs. 2 and 3) as well as the linear Rayleigh friction (Eq. 4), we obtain the following 0D2C model for the atmosphere:

where $m=\frac{{\mathit{\rho}}_{\mathrm{o}}{h}_{\mathrm{o}}}{{\mathit{\rho}}_{\mathrm{a}}{h}_{\mathrm{a}}}$ is the mass ratio between the oceanic layer and the atmospheric layer and $\mathbf{F}\left(t\right)=({F}_{x},{F}_{y})$ is analogous to $\stackrel{\mathrm{\u0303}}{\mathbf{F}}\left(t\right)$. Similarly for the ocean, we have

The upper ocean is mainly forced at its surface by the wind shear. Forcing due to the dynamics of the deeper or surrounding ocean is not considered by the model. The momentum exchange between the layers due to unresolved turbulent motion is parameterized by a random force $\mathit{\zeta}=({\mathit{\zeta}}_{x},{\mathit{\zeta}}_{y})$, added to the friction law. The model under consideration in the following thus reads

where the stochastic noise has been scaled by $M=m+\mathrm{1}$ to simplify the algebra
in the following. Note that *M* is the total mass per unit surface.
The analytical solution to the coupled model (Eq. 9)
is given in Appendix B.
When the Coriolis parameter vanishes (*f*=0) and the linear friction law is used,
the dynamics in the two horizontal directions is uncoupled.
In this case a simple 0D1C model can be obtained
by setting *v*_{a} to 0 in Eq. (9a) (or *v*_{o}=0
in Eq. 9c) and discarding Eq. (9b) (or Eq. 9d).

Let us also introduce the integrated mode, which gives the momentum integrated over $[-{h}_{\mathrm{o}},{h}_{\mathrm{a}}]$, and the shear mode:

The shear and the turbulence in the atmosphere and the ocean do
not affect the integrated momentum **u**_{I}. The two layers only interact by
friction, which acts as a damping on the shear mode (see Sects. A1 and B1).
The only remaining two parameters in the problem
are the constant mass ratio of the oceanic versus the atmospheric layer, *m*, and the
function *S*. For the case of linear Rayleigh friction (Eq. 4), *S* is constant.
When the turbulent, quadratic friction law (Eq. 5) applies, we have
$S={c}_{\mathrm{d}}\left|{\mathbf{u}}_{S}\right|/{h}_{\mathrm{o}}$, with a constant drag coefficient *c*_{D}.

The departures from the vertical average in the atmosphere and the ocean are given by

The interaction between the different components is schematized in Fig. 1.
The dynamics of the integrated mode, **u**_{I}, does not depend on the shear
** τ**, as can be verified when Eq. (10a) is combined with Eq. (9)
(see Sects. A1and B1).
Newton's laws insure that the dynamics of the integrated mode is independent of the
interior dynamics, that is of

**u**

_{S}, ${\mathbf{u}}_{\mathrm{a}}^{\prime}$, ${\mathbf{u}}_{\mathrm{o}}^{\prime}$,

*ν*

_{a}(

*z*) and

*ν*

_{o}(

*z*). This property is lost when a dependence on the horizontal directions is included. Due to the boundary conditions, it is also not subject to dissipation and therefore conserves its (kinetic) energy. The dynamics of the integrated mode is purely deterministic, and the work

*W*

_{I}done on it equals the increase in the free energy Δ

*G*. The shear mode

**u**

_{S}interacts with the internal modes in the atmosphere, ${\mathbf{u}}_{\mathrm{a}}^{\prime}$, and the ocean, ${\mathbf{u}}_{\mathrm{o}}^{\prime}$, through the shear at the interface

**. The dynamics in the shear mode does not depend explicitly on the internal viscosity**

*τ**ν*

_{a}(

*z*) and

*ν*

_{o}(

*z*) in the two layers but only through ${\mathbf{u}}_{\mathrm{a}}^{\prime}$ and ${\mathbf{u}}_{\mathrm{o}}^{\prime}$. As ${\mathbf{u}}_{\mathrm{a}}^{\prime}$ has a vanishing vertical average, it is not forced by the pressure gradient. The dynamics of ${\mathbf{u}}_{\mathrm{a}}^{\prime}$ depends explicitly on

**u**

_{S}, ${\mathbf{u}}_{\mathrm{a}}^{\prime}$, ${\mathbf{u}}_{\mathrm{o}}^{\prime}$ and

*ν*

_{a}(

*z*). The same applies to the ocean. In the 0D models the effect of the internal modes (magenta boxes in Fig. 1) on the shear mode is modeled by a stochastic noise. In the 1D model the internal dynamics is resolved explicitly; stochastic noise is added to the drag coefficient only and enters the dynamics through the shear at the interface (red arrows in Fig. 1); see Sect. 3.3 for more details on this point. Looking at air–sea interaction in terms of modes not only is a technical simplification but also emphasizes the view of seeing the atmosphere and the ocean as a combined system rather than as separate atmospheric and oceanic layers that act on each other. From Eqs. (10a) and (10b) we easily obtain that

with $M=m+\mathrm{1}$ being the total mass per unit surface.

## 2.2 Stochastic thermodynamics

The concept of stochastic thermodynamics was introduced by Sekimoto (1998) (see also Seifert, 2012). Rather than considering the classical dynamics described by Hamilton's equations over the entire phase space of all microstates, on one hand, or the averaged thermodynamic quantities, without internal dynamics, on the other, it takes an intermediate position by looking at mesostates (also called statistical states). A mesostate does not completely determine the microstate of the system but represents an ensemble of microstates. It is therefore not described by a sharp value but by a pdf. Its mathematical framework comprises the Langevin equation and the stochastic differential equations, which describe the evolution of a pdf. It is a dynamics with a deterministic and stochastic part that interact. Such an approach is adapted when external forces only constrain part of the dynamics as the internal response of the system is too involved (chaotic or turbulent), so it can only be described in a stochastic sense. If a specific force is applied to a system, the outcome depends on the initial microstate that is usually not precisely known and its evolution has a random component. By considering the evolution of the pdf, which takes into account the uncertainty in the microstates that influences the system, we obtain a deterministic evolution of the pdf.

We here apply these concepts to air–sea interaction; the “heat”, the source of the fluctuation, in our approach is (small-scale) turbulent motion,
all that is represented in magenta and red in Fig. 1.
The macroscopic variable are the slowly varying vertically averaged velocities
**u**_{a} and **u**_{o} or equivalently modes **u**_{I} and **u**_{S}. In analogy
to the first law of thermodynamics we write

The work applied to the system by the external force $\mathbf{F}=({F}_{x},{F}_{y})$ in Eq. (9) is

For the sake of readability, in the sequel we will omit the dot symbol
“⋅” in vector products. *V*, d*V* and d*Q* should be
understood as scalar quantities in the following. The internal (kinetic)
energy is

and the heat provided to the system (*Q*<0 as friction dissipates heat) is

The dissipation to heat is given by

To derive the second line we used Eqs. (9a–9d).
The shear force between the layers is *S***u**_{S}; when the friction law is linear *S* is a constant; otherwise it is a function of the shear.
Furthermore if we consider a process that starts at *A* and finishes at *B*, we have

The free energy is $\mathrm{\Delta}G=V\left(\mathrm{\infty}\right)-V\left(A\right)=\frac{\mathrm{1}}{\mathrm{2}M}{\mathbf{u}}_{I}^{\mathrm{2}}$, the energy in the integrated mode, as the energy in the shear mode is dissipated away in time.
The energy in the integrated mode changes only when a forcing is applied, so it varies only when the protocol *A*→*B*,
or its inverse, is applied, whereas the internal energy *V* varies before and after.
Note that $\frac{\mathrm{d}Q}{\mathrm{d}t}<\mathrm{0}$, and therefore $\mathrm{\Delta}G<W(A\to B)$ and $-\mathrm{\Delta}G<W(B\to A)$,
which leads to $-W(B\to A)<\mathrm{\Delta}G<W(A\to B)$.
This means that more work than the free energy has to be provided to go from A to B and less work than the free energy is recuperated on
the reverse (conjugated) path.
In a cyclic process *B*=*A*, Δ*G*=0 and all the work injected into the system is ultimately dissipated.

It is important to note that the Coriolis parameter does not explicitly appear in the equation of the work or the heat
as the Coriolis force is orthogonal to the local velocity.
However, the Coriolis parameter strongly influences the dynamics, that is **u**_{a} and **u**_{o}.
Through this influence, it has a determining role on the work and heat budget.

## 2.3 Forward, inverse and reverse processes

The forcing protocol on the time interval [0,*T*] is given by

where the function **F** has a compact support within the interval [0,*T*],
It is important to note that even if the system evolves (relaxes) outside the interval [0,*T*],
no work is performed on the system as the force is vanishing.
When the Coriolis force is present, the system is generally not in a stationary state after the forcing
but performs inertial oscillations.
To bring the system back to the initial state, an inverse protocol has to be performed at precisely a multiple
of the inertial period after the forward protocol:

For a reverse protocol it is required that the forcing is

To satisfy both conditions we impose the symmetries

If we neglect the turbulence in both layers, which is modeled by a stochastic term, the dynamics is deterministic. During the forward process, starting from rest and applying the protocol ${\stackrel{\mathrm{\u0303}}{\mathbf{F}}}_{A\to B}\left(t\right)$, we have

The reverse process starts from the converged state, is forced by ${{\stackrel{\mathrm{\u0303}}{\mathbf{F}}}^{r}}_{B\to A}\left(t\right)$ for a period *T* and then relaxes to rest at *t*=∞:

Note that $-{W}^{r}\le \mathrm{\Delta}G\le {W}^{f}$ which is a statement of the second law of thermodynamics. When the process is reversible then the equalities apply. Furthermore we always have $\mathrm{2}\mathrm{\Delta}G={W}^{f}-{W}^{r}$. So far the dynamics considered has been deterministic.

The turbulent motion within the system is due to internal dynamics and is modeled by stochastic terms.
When noise is added in the linear model, it does not interfere with the deterministic dynamics but simply adds to it.
Furthermore, the force is deterministic, so the randomness in the work is provided solely by the fluctuations in **u**_{a}.
As randomness resides only in the shear mode, the fluctuations in the work ${w}^{\prime}=m{\int}_{\mathrm{0}}^{T}{\mathbf{Fu}}_{S}^{\prime}\mathrm{d}t$ come
from fluctuations in the shear mode ${\mathbf{u}}_{S}^{\prime}$.
Note that the vertical average of ${\mathbf{u}}_{\mathrm{a}}^{\prime}$ vanishes, so the internal modes do not contribute to the work.
When the noise terms are Gaussian and the friction linear, the velocities are Gaussian variables and so is
the work performed on the layers and modes.
The average of these variables are given by the deterministic part
(〈*w*^{f}〉=*W*^{f} and 〈*w*^{r}〉=*W*^{r}), and the variance ${\mathit{\sigma}}_{W}^{\mathrm{2}}\left(T\right)$
is obtained through the variance of the shear mode.
In the case with an internal turbulent dynamics, $-{W}^{r}\le \mathrm{\Delta}{G}^{f}\left(\mathrm{\infty}\right)\le {W}^{f}$ is true for averages only; individual trajectories can be exceptions.

In the Gaussian case the pdf's for the forward and reverse processes are

Note that the pdf's are identical except for a shift of 2Δ*G*^{f}(∞) in *z*.
Examples of the pdf's in the Gaussian case for the forward and reverse processes, as well as of the pdf's of the reverse process flipped at the origin,
are shown, for different values of the work averages and *β*_{D}, in the schematic Fig. 2 for illustration.

## 2.4 Jarzynski equality

We denote the averaging with respect to the forward process by

The Jarzynski equality is then expressed by

In the Gaussian case we have

and verifying the Jarzynski equality reduces to equating the powers of the exponential:

The only non-trivial solution is

The Jarzynski equality applies when *β* is a constant, independent of
the forcing protocol **F** and *T*.
At first sight Eq. (34) is astonishing,
as the Jarzynski equality expressed by Eq. (31) seems to be a statement on the
free energy which solely depends on the integrated mode.
Equation (34), however, connects the heat dissipated in the shear mode to
the work fluctuations, which are only due to the shear mode.
Furthermore, we have seen that the dynamics of the two modes are unrelated.
This apparent inconsistency is resolved by multiplying Eq. (31) by *e*^{βΔG} on both sides.
It is then apparent that an average of the exponential of Δ*G*−*w* is taken,
which only depends on the shear mode.
Note that when thermal fluctuations are considered, ${\mathit{\beta}}^{-\mathrm{1}}={k}_{\mathrm{B}}T$ and more generally
for the Ornstein–Uhlenbeck process,
with an auto-correlation of the noise characterized by the variable *R* (defined below through Eq. 40),
${\mathit{\beta}}_{\mathrm{D}}^{-\mathrm{1}}=\frac{R}{\mathrm{SM}}$, which relates the fluctuations to the dissipation
and shows the connection of the Jarzynski equality to the fluctuation dissipation relation and the fluctuation dissipation theorem
(see Wirth, 2019, 2018).

Experiments can also be performed for different values of *β*_{D} (see the
schematic Fig. 2). If the turbulence level decreases,
*β*_{D} increases and the dynamics converges towards a deterministic process.
Note that neither Δ*G*−*W* nor ${\mathit{\sigma}}_{w}^{\mathrm{2}}$ depends on *u*_{I}(0); in the
case of vanishing Coriolis force this is equivalent to Galilean invariance.

Furthermore, neither the work nor the free energy depends on the relaxation process
and in an experiment it is not necessary to wait for the relaxation to the stationary
state to obtain the free energy. It is only necessary to repeat the experiment
sufficiently many times to obtain statistically significant results and use
the Jarzynski equality to obtain the free energy. The work does, however, depend
on **u**_{S}(0), and so we have to start from equilibrium
(〈**u**_{S}(0)〉=0 and $\langle {\mathbf{u}}_{S}(\mathrm{0}{)}^{\mathrm{2}}\rangle ={\mathit{\beta}}_{\mathrm{D}}^{-\mathrm{1}}$).
The Jarzynski equality also shows that, as ${\mathit{\sigma}}_{w}^{\mathrm{2}}>\mathrm{0}$, there have to be
(rare) paths for which the work performed is smaller than the free energy.
This is easily seen as ${e}^{-x}<\mathrm{1}$ for *x*>0. In thermodynamics these paths
are sometimes referred to as “violations of the second law of thermodynamics”.
The probability of such a violation occurring in the Gaussian case can be expressed using the error function
as $\mathrm{erf}\left(\right(\mathrm{\Delta}G-{W}^{f})/{\mathit{\sigma}}_{W}))$.
However, due to the convexity of the exponential function
〈*e*^{x}〉≥*e*^{〈x〉} (called Jensen's inequality), and
therefore 〈*w*〉≥Δ*G* and the second law of thermodynamics
is verified in an average sense, it is a statistical law.

## 2.5 Crooks relation

The Jarzynski equality (JE) considers an average with respect to the forward process, whereas the Crooks relation (CR) compares the pdf's of the forward and reverse process, without any averaging; it states

where $q=\mathrm{\Delta}G-w$ is the negative dissipation along a single trajectory with
work *w* and *Q*=〈*q*〉 by definition. The CR is also useful to determine Δ*G*; it is the value *w* where the graphs of the forward pdf and the reverse
pdf of the negative argument cross, where pdf^{f}(*w*) is pdf^{r}(−*w*)
(see Fig. 2). When the shapes of the forward and reverse pdf
agree, the free energy can be also obtained via
${\mathrm{pdf}}^{r}\left(w\right)={\mathrm{pdf}}^{f}(w+\mathrm{2}\mathrm{\Delta}G)$. The first method is useful when
*β*_{D} is small, and the second is useful when it is large. The CR considers the pdf, and
the JE which is concerned with averages can be derived from it
through dividing Eq. (35) by exp (*β*_{D}*q*) multiplying by
pdf^{r}(−*w*) and integrating over *w* from −∞ to ∞.
In cyclic or stationary processes the free energy gain is vanishing, the
reverse pdf equals the forward pdf and the CR simplifies to the
detailed fluctuation theorem.

In the Gaussian case described above the CR is obtained by a straightforward calculation:

## 2.6 Integral fluctuation theorem

Note also that when the CR holds,

This is the integral fluctuation theorem; it shows that there exists trajectories
with *q*>0, demonstrating violations of the second law of thermodynamics. It is proven by
using Jensen's inequality: $\mathrm{1}=\langle \mathrm{exp}\left({\mathit{\beta}}_{\mathrm{D}}q\right)\rangle \ge \mathrm{exp}\left({\mathit{\beta}}_{\mathrm{D}}Q\right)$,
which leads to *Q*≥0. The integral fluctuation theorem is a reformulation of
the JE in terms of dissipated heat.

In cyclic or stationary processes the free energy gain vanishes. When a force is applied, it typically drives the system and does work, which is dissipated to heat. Rare events when the work is negative and heat does work must exist, following the derived results above.

The work relations are investigated for a hierarchy of models of air–sea interaction.
This not only favors a pedagogical discussion of the subject but also
helps to emphasize critical points in the application of the theory exposed above.
The simpler models, which are given by Eq. (9), are called 0D models
as the variables have no spatial dependence. The friction force between the two layers
is parameterized by linear Rayleigh friction, which allows for analytical solutions.
In these linear models which are subject to Gaussian noise (through the *ζ*_{x}
and *ζ*_{y} terms in Eq. 9 the pdf's of the work are
Gaussian random variables, which are determined by their mean, their variance
and their temporal correlation). In this case the work theorems are algebraic
relations between the means and the variances which can be calculated analytically
using stochastic calculus. The first model of interest, referred to as 0D1C model,
does not include the Coriolis force (*f*=0), and the dynamics in the two horizontal directions (the two components of the velocity vector) are independent.
The analytical solution for this model is given in Sect. 3.1.
The 0D1C model represents the simplest example in which work theorems can be discussed
and solved analytically by employing Newton's laws and solving stochastic differential
equations. It can also be shown that in this case the work theorems are a consequence
of Galilean invariance. When the Coriolis force is added the 0D2C model (Eq. 9) is recovered and the dynamics in the two horizontal directions interact. The Coriolis
force also adds several conceptual difficulties to the problem. First, for Brownian
motion of particles subject to a Coriolis force, detailed balance is lost as the
dynamics is not time reversible. Second, Galilean invariance is broken, even for
the deterministic part of the problem. Third, the application of a reverse protocol
depends on the timing. The same force can increase or reduce the free energy depending
on when, at which phase, it is applied. We calculate the work theorem analytically
by employing Newton's laws and solving stochastic differential equations in Sect. 3.2.

We then discuss in Sect. 3.3 a non-linear model with a vertical dependence on the atmosphere and ocean (1D2C model) that describes the non-linear interaction of the two planetary boundary layers. It is described by Eqs. (1), (2), (3) and (5). The model is deterministic except for the drag coefficient, which has a stochastic part. All results concerning this model are obtained through numerical integration of the corresponding governing equations.

## 3.1 The linear 0D1C model

The solution of the 0D1C model introduced in Sect. 2.1 is

where ℱ(*t*) is the deterministic forcing of the synoptic atmosphere and
*ζ* a random force. The steps to obtain such solution are given in Sect. A1. In terms of the integrated mode and the shear mode, the equivalent solution is

In the following we consider that the noise *ζ*(*t*) is delta correlated in time:

with *R* being a positive scalar.

### 3.1.1 Constant forcing

The simplest case is a constant force ℱ(*t*) of amplitude ℱ_{0} during the interval $I=[\mathrm{0},T]$; such forcing satisfies the symmetry required for a reverse protocol as given by Eq. (22).
Note that in a linear model the results obtained with such forcing are general because every forcing can be approximated by a sum of step-function forcings or an integral of infinitesimal step functions.
The dynamics of a sum of step functions or an integral is the sum or integral of the dynamics of the individual forcings.
The solution for $\mathrm{0}\le t\le T$ is

and for *t*≥*T*, it is

The work can be separated in the work done on the shear mode *W*_{S} and on the integrated mode *W*_{I}.
The work the system absorbs as well as how much is absorbed by each mode depends on the state of the system and on the initial condition.
The work is

The kinetic energy is

for *t*>*T*; if *t*∈*I*, replace *T* with *t* in the above equation.

The energy difference is

The free energy is the energy difference in the integrated mode, as the shear mode relaxes to zero in equilibrium, when the forcing has subsided.
Therefore it equals the work performed on the integrated mode *W*_{I}.

The free energy only varies when work is performed on the system. When the process is infinitely slow, the free energy equals the work. The energy dissipated is

### 3.1.2 Forward and reverse process (deterministic)

The free energy starting from rest is

The forward process starts from rest and is forced with amplitude ℱ_{0} for a period *T* and is then let to relax:

The reverse process starts from the converged state is forced with amplitude −ℱ_{0} for a period *T* and then relaxes to rest:

Note that $-{W}^{r}\le \mathrm{\Delta}G\le {W}^{f}$, which is a statement of the second law of thermodynamics.
When the process is reversible then the equalities apply. It is interesting to note that during a very slow process
(*T*→∞ while keeping ℱ_{0}*T* fixed), the process approaches the reversible limit.
Furthermore $\mathrm{2}\mathrm{\Delta}G={W}^{f}-{W}^{r}$.

### 3.1.3 Forward and reverse process (stochastic)

When noise is added in the linear model it does not interfere with the deterministic dynamics but just adds to it.
Furthermore, the force is prescribed (therefore deterministic) and the randomness in the work is provided solely by the fluctuations in *u*_{a}, and as
randomness resides only in the shear-mode the fluctuations in the work ${w}^{\prime}=\int {\mathcal{F}}_{\mathrm{0}}{u}_{S}^{\prime}\mathrm{d}t$ come
from fluctuations in the shear mode ${u}_{S}^{\prime}$.
The work values are Gaussian variables with a mean that is the value of the deterministic part
(〈*w*^{f}〉=*W*^{f}, 〈*w*^{r}〉=*W*^{r}), and the variance
is given by the variance of the Ornstein–Uhlenbeck process integrated over the time interval *T* (see Appendix A, Sect. A2):

where *A*(*T*) is given in Eq. (59), showing a relation between the difference in the work to the free energy (the dissipated energy) and the stochastic fluctuations;
this is the fluctuation dissipation theorem (see Wirth, 2019).
In this case $-{W}^{r}\le \mathrm{\Delta}{G}^{f}\left(\mathrm{\infty}\right)\le {W}^{f}$ is true on average only; individual trajectories can be exceptions.
Note that

and the instantaneous correlation is recovered when the averaging time is vanishes and the *T*^{−1} law for averaging times larger than the correlation time.
The pdf's are

### 3.1.4 Jarzynski equality and Crooks relation

In order to apply the JE to the present problem,
we identify the heat by *Q*=*W*_{S} and the free energy by Δ*G*=*W*_{I},
and Eq. (34) leads to

This proves that the JE applies with the standard dynamic *β*_{D} of the Ornstein–Uhlenbeck process.

Note that in the above all dependence is on the product ℱ_{0}*T* and not on the factors independently in this linear problem.
Experiments can also be performed at different temperatures.
Also, Galilean invariance is assured as neither Δ*G*−*W* nor ${\mathit{\sigma}}_{w}^{\mathrm{2}}$ depends on *u*_{I}(0).
Furthermore, neither the work nor the free energy depends on the relaxation process, so the above is always true
and in an experiment it is not necessary to wait for the relaxation to the stationary state to obtain the free energy.
It is only necessary to do the experiment sufficiently many times and use the JE to obtain the free energy.
The work does, however, depend on *u*_{S}(0), and so we have to start from equilibrium (*u*_{S}(0)=0).
As discussed in Sect. 2.4, the JE also shows that there has to be (rare) paths
for which the work performed is smaller than the free energy, but 〈*w*〉≥Δ*G*
and the second law of thermodynamics is verified in an average sense – it is a statistical law.
Expressed in terms of the dissipation along a trajectory, the JE leads to $\langle {e}^{-{\mathit{\beta}}_{\mathrm{D}}q}\rangle =\mathrm{1}$ and again
〈*q*〉≥0 on average, but paths exist with negative dissipation.

The CR is obtained by a straightforward calculation introducing ${W}^{f}={W}_{I}+{W}_{S}$ and ${W}^{r}=-{W}_{I}+{W}_{S}$:

## 3.2 The linear 0D2C model

The calculations performed for the one-component model will now be extended to the two-component model where the two components interact through the Coriolis force (see Appendix B).
The solutions of the integrated mode **u**_{I}(*t*) and the shear **u**_{S}(*t*) mode are given by Eqs. (B10a) and (B10b).
From these equations it follows that the work is

where 𝒞_{I} and 𝒞_{S} are defined in Eq. (B9).
The free energy is again Δ*G*=*W*_{I}.
The freely evolving system typically relaxes to a state where the
integrated mode, which
is non-stationary, performs undamped inertial oscillations. When a forcing is applied, the work and free
energy change depends on the phase of the integrated mode.

### 3.2.1 Constant forcing

We start from a system at rest and apply the force constant ℱ of amplitude ℱ_{0} for a time interval *T* to the *x* component.

For *f*=0, this is equivalent to Eqs. (46) and (47).

As the model is linear, all statistics are Gaussian and the statistical properties are completely described by the first-order moments,
which are described by the deterministic equations and the second-order moments.
Assuming the noise to be isotropic in the horizontal ($\langle {\mathit{\zeta}}_{x}^{\mathrm{2}}\rangle =\langle {\mathit{\zeta}}_{y}^{\mathrm{2}}\rangle =\mathrm{2}R$, 〈*ζ*_{x}*ζ*_{y}〉=0),
we obtain for the random part

where again the 𝒞_{S} and 𝒮_{S} are given in Eq. (B9).

### 3.2.2 Jarzynski equality and Crooks relation

Note that for the work fluctuations only the *x* component, to which the forcing applies, has to be considered,
that is the random fluctuations in ${u}^{\prime}={u}_{\mathrm{a}}^{\prime}$ averaged over the interval *T*:

Due to the linearity, the process is Gaussian with a vanishing mean value and a variance (see Appendix B, Sect. B2):

We obtain

which leads to

which is the same dynamic *β*_{D} as in the one-dimensional non-rotating case.

## 3.3 The one-dimensional non-linear boundary-layer model

In this model we resolve part of the dynamics in the interior of the atmospheric and the oceanic layer explicitly.
The model consists of Eq. (1) and the boundary conditions
Eqs. (2) and (3).
The thickness of the atmospheric layer is *h*_{a}=300 m, and for the oceanic layer it is *h*_{o}=30 m, with densities
${\mathit{\rho}}_{\mathrm{a}}=\mathrm{1}\phantom{\rule{0.125em}{0ex}}\mathrm{kg}\phantom{\rule{0.125em}{0ex}}{\mathrm{m}}^{-\mathrm{3}}$ and ${\mathit{\rho}}_{\mathrm{o}}=\mathrm{1000}\phantom{\rule{0.125em}{0ex}}\mathrm{kg}\phantom{\rule{0.125em}{0ex}}{\mathrm{m}}^{-\mathrm{3}}$.
The Coriolis parameter is $f={\mathrm{10}}^{-\mathrm{4}}\phantom{\rule{0.125em}{0ex}}{\mathrm{s}}^{-\mathrm{1}}$.
The vertical viscosity in the atmosphere is calculated by a turbulent kinetic energy (TKE) scheme with a shear-based length scale (see Sect. 4.1 in Lemarié et al., 2021), and in the ocean a *K*-profile parameterization
(KPP; see Sect. 2c in McWilliams and Huckle, 2006) is used.
The shear between the layers is calculated using Eq. (5).
The randomness is introduced through the friction coefficient *c*_{d}; it is given by the square of a random Gaussian variable
with a variance ${c}_{\mathrm{d}}^{m}=\mathrm{1.2}\times {\mathrm{10}}^{-\mathrm{3}}$ and an exponential correlation in time with a decay time of ${t}_{cd}^{\mathrm{exp}.1}={f}^{-\mathrm{1}}$ in experiment 1
and ${t}_{cd}^{\mathrm{exp}.2}=\mathrm{10}{f}^{-\mathrm{1}}$ in experiment 2.
This is justified by the fact that the friction coefficient depends on a variety of physical properties such as the
wave spectrum and velocity of propagation, as well as the stratification and boundary-layer turbulence in the atmosphere and the ocean,
which all vary in space and time.
This typically leads to large variability in the measured *c*_{d} coefficient (see, e.g., Csanady, 2001; Oost et al., 2002; Large, 2006; Patton et al., 2019).
Results from two sets of numerical experiments, exp1 and exp2, are presented here.
The structure of the model is again the same as shown in Fig. 1; the random part is given by *T* (red color in the figure), and
all other interactions are presented through deterministic equations.

For this model the free energy is still given by the kinetic energy of the integrated mode,
as all other motion decays when forcing subsides.
It is governed by the same equation as in the linear 0D Coriolis model;
that is, its dynamics is independent of the shear and the internal modes in the atmosphere and the ocean.
We call $T=\mathrm{4}\mathit{\pi}{f}^{-\mathrm{1}}=\mathrm{1}$ d.
The forcing protocol is a constant force that is applied in the intervals $[jT,(j+.25\left)T\right]$ for the days $j=\mathrm{1},\phantom{\rule{0.25em}{0ex}}\mathrm{\dots},n$.
The forcing is applied to the *x* component only through a large-scale pressure gradient via a geostrophic velocity:
${\mathcal{F}}_{x}=-(-\mathrm{1}{)}^{j}f{v}_{G}$ and ℱ_{y}=0 in Eqs. (1a) and (1b), respectively;
that is, the forward and reverse forcing alternate periodically.
The periodic work applied to the integrated mode and the evolution of the free energy are shown in Fig. 3;
both agree with the analytic solution,
and the periodic response to the periodic forcing is clearly visible.
This verifies that the dynamics of the integrated mode is not affected by the random fluctuations in the shear coefficient.

The dynamics of the shear mode is governed by the same equations as in the linear 0D Coriolis model with a deterministic forcing and friction at the air–sea interface. The difference to the 0D model is that the dynamics of the internal modes within the atmosphere and the ocean are explicitly resolved and they influence the shear force that acts on the shear mode. That is, the stochastic term in the 0D models mimics the influence of the internal modes in the atmosphere and the ocean. The 1D model also resolves the shear modes, not only between the atmosphere and the ocean but also within them. These modes interact in a non-linear way and exchange energy, which is ultimately dissipated when the external forcing subsides. In the 1D model the internal modes within the atmosphere and within the ocean interact through the surface friction term and the internal eddy viscosities. In more involved 2D or 3D models, not studied here, they also interact through non-linear horizontal advection.

The numerical model to solve the above-discussed equations is a variation on the one used in (Lemarié et al., 2021).
There are 20 levels in the atmosphere and 20 in the ocean, with the first grid points at *δ*_{a}=5 and *δ*_{o}=1 m,
in the atmosphere and the ocean, respectively.
The time step of the integration is 10*π* s.
For both experiments, the integration consists of a spin-up of 4×10^{3} d followed by an integration of
4.4×10^{3} d; the ensemble size is of each integration is 10^{3},
and 10 integrations were performed.
The total ensemble size for each experiment is therefore 2.2×10^{7}, when we suppose ergodicity (note that the protocol repeats every 2 d).

The work performed on the atmosphere is now a random process.
The numerical results show that the average work performed on the atmosphere in the forward process in the two experiments
is Δ*W*^{exp.1}=21.0 and Δ*W*^{exp.2}=67.3 J m^{−2},
while only a small part of this work drives the integrated mode, contributing to the free energy $\mathrm{\Delta}G=\mathrm{6}/\mathrm{101}\approx \mathrm{5.94}$.
Its value can be calculated analytically; it is independent of the friction process and therefore equal in both experiments.
Results of the numerical integration are shown in Fig. 4 where the different pdf's are visualized.
The standard deviations of the pdf's are *σ*^{exp.1}=10.3 and *σ*^{exp.2}=34.8 J m^{−2}.
They are close to but significantly different from Gaussian with a skewness (third standardized moment)
of ${\mathit{\mu}}_{\mathrm{3}}^{\mathrm{exp}.1}=\mathrm{0.03}$ and ${\mathit{\mu}}_{\mathrm{3}}^{\mathrm{exp}.2}=-\mathrm{0.20}$.
In this case the verification of the work theorems no longer reduces to algebraic relations between the first- and second-order moments,
but the whole shape of the pdf's has to be considered.
The forward pdf and the backward pdf flipped at *z*=0 (pdf^{r}(−*z*)) intersect at Δ*G*, in both experiments (Fig. 4),
within the statistical error as predicted by the CR.
The forward pdf and the backward pdf shifted by 2Δ*G* superpose within statistical error, as can be seen
in Fig. 4.
This is a consequence of the independence of the deterministic dynamics of the integrated mode from the rest of the dynamics and the symmetry of the forcing protocol
given in Eq. (23).
The same figure shows clearly that the probability of a forward event with work smaller than the free energy Δ*G*
is non-negligible; the equivalents of such events
in thermal processes are referred to as violations of the second law of thermodynamics.
Note that the probability of a forward event with negative work is also present.

We numerically found the JE
$\langle \mathrm{exp}(-{\mathit{\beta}}_{\mathrm{JE}}(w-\mathrm{\Delta}G){\rangle}_{f}=\mathrm{1}$ in the two experiments to be satisfied for ${\mathit{\beta}}_{\mathrm{JE}}^{\mathrm{exp}.1}=\mathrm{0.115}$ and ${\mathit{\beta}}_{\mathrm{JE}}^{\mathrm{exp}.2}=\mathrm{0.290}$,
respectively,
as can be seen from Fig. 5. Here we denote by *β*_{JE} the value of *β*_{D} obtained from the data through the JE.

For evaluating the CR we plotted

where we denote by *β*_{CR} the value of *β*_{D} obtained from the data through the CR.
Note that near Δ*G* this expression is strongly dependent on the bin size, where the nominator and denominator go to zero,
which makes a numerical evaluation difficult and leads to strong oscillations.
We clearly see that ${\mathit{\beta}}_{\mathrm{CR}}^{\mathrm{exp}.2}$ is close to but significantly different from a constant and that ${\mathit{\beta}}_{\mathrm{JE}}^{\mathrm{exp}.2}$ is a good approximation
for values around the maximum of pdf^{f}(*w*).
The dimension of *β* is the inverse of an energy, and the obvious question is to see how it can be related to the dynamics.
In the Gaussian case Eq. (70) shows that it is equal to the ratio of the heat dissipated over one cycle and the variance of the work:

For the present non-Gaussian model these calculations lead to ${\mathit{\beta}}_{\mathrm{Gauss}}^{\mathrm{exp}.1}=\mathrm{0.29}$ and ${\mathit{\beta}}_{\mathrm{Gauss}}^{\mathrm{exp}.2}=\mathrm{0.10}$;
the value is equal to *β*_{CR} and *β*_{JE}
for exp1 (with a close to Gaussian pdf) and close to *β*_{CR} and *β*_{JE} for exp2 (see from Fig. 5).

We started by introducing the concept of work theorems into a simple model of air–sea interaction,
in which the atmosphere and ocean were represented by their corresponding mixed layer.
In this case the JE and the CR can be obtained analytically.
We then performed the same calculations on a model including a Coriolis force.
In that case the time reversibility is broken and the dynamics lags detailed balance,
which is at the basis of the original proofs of the JE and the CR
in the Hamiltonian system.
Analytical integrations of the stochastic differential equations governing the dynamics of the system
prove the existence of the JE and the CR.
They furthermore show that the limit of *f*→0 is well defined and the non-rotating solution is obtained

In the applications of work theorems where fluctuations arise from thermal dynamics,
the thermodynamic *β* is fixed by the temperature of the heat bath.
In the system considered here there is no external heat bath, but the fluctuations are generated by the external forcing
and the internal dynamics.
The different value of the dynamic *β* in the two experiments comes, therefore, at no surprise, as the fluctuations now arise from
the dynamics of the shear mode and the internal modes in the atmosphere and the ocean, which clearly differ between both experiments.
In terms of heat fluctuations this means that the system is not thermostated; there is no outside heat bath that keeps the temperature (or *β*) constant.
In exp2 the variation in the drag coefficient is 10 times slower than in exp1 and the dynamics of the shear mode and the internal modes
in the atmosphere and the ocean have more time to adjust to its instantaneous value.
The drag influences not only the work but also the variability, leading to a dynamic *β* that depends on *w*.
The result that a variation in the dynamic *β* is undetectable in exp1 and small in exp2 allows for the definition of an average *β* in the present dynamics.
This shows the pertinence of the work theorems by Jarzynski and Crooks in the present context as they apply not only to exp1 but also to exp2
in which the fluctuations are slower than the forcing protocol.
This is important as forcing protocols and turbulence levels vary over a large continuum of timescales.

The physical interpretation of the dynamic *β* or its inverse, often called effective temperature (Feitosa and Menon, 2004)
or characteristic energy (Ciliberto et al., 2004),
is given by Eq. (81) as the ratio of the heat dissipated over one cycle to the variance of the work.

We have shown that the modern concepts of non-equilibrium statistical mechanics can be applied to large-scale environmental fluid dynamics, where fluctuations are not thermal but come from the turbulent fluid motion. We have demonstrated that the concepts of the dynamic beta, that is the equivalent of temperature in dynamical systems, can be extended to the momentum transfer at the air–sea interface using the formalism developed by Jarzynski and Crooks. It is important to note that work theorems are valid for forces of arbitrary amplitude; they are not a perturbative theory. This is, to the best of our knowledge, the first time that the concepts of work relations are investigated in geophysics and climate science. We successfully adapted the work theorems to the subject of air–sea momentum transfer, but they can, in the same way, be applied to other components of the climate system.

Work theorems also have important practical applications. When the work pdf's of the forward and backward process are obtained, the free energy of the system and the dissipated energy can be obtained and a mechanical efficiency of the air–sea momentum transfer calculated. This is key in understanding the energetics of the climate system. For a discussion of the ocean circulation kinetic energy, we refer the reader to Ferrari and Wunsch (2009), and for a spatio-temporal variability in the momentum transfer to the ocean, we refer to Wirth (2021). When the CR applies, the likeliness of some rare and extreme events can be obtained from parts of the pdf that represent likely events. Furthermore, when work theorems are found to apply in observations, they represent an important tool to evaluate numerical integrations and parameterizations in models of the environmental dynamics.

The mechanics of air–sea momentum transfer has advanced considerably since the pioneering work of Ekman (1905) and is today an active field of research (Duhaut and Straub, 2006; McWilliams and Huckle, 2006; Zhai et al., 2012; Shrira and Almelah, 2020). In an environment fluctuating on a vast continuum of scales in space and time, the statistical mechanics has to be advanced.

The difficulty in performing simulations in air–sea interaction is the large difference in the characteristic timescales of the fast atmosphere and the slow ocean, the stiffness of the problem. Therefore integrations of the fast atmospheric dynamics are necessary with a long spin-up, as the ocean has to be in a statistically stationary state followed by a long integration to obtain a statistical significant ensemble of ocean states. When observations are considered, the stiffness asks for observations over extended periods of time which are just becoming available.

Similar problems appear when the interaction of other components of the climate system are considered. The momentum transfer at the air–sea interface is just one example where work relations between fluctuating components of the climate system increase our understanding. Their extension to other components is straightforward.

## A1 Solution

We consider a state vector given by the atmospheric and oceanic velocity:

The evolution equation for the 0D1C model
(i.e., model of Eq. 9 with *f*=0) can be written
in a matrix form as

with

where ℱ is the deterministic forcing of the synoptic atmosphere on the atmospheric boundary layer and *ζ* is the random noise
parameterizing internal turbulent motion
which does not act on the integrated momentum.

The first step to solve the system of ordinary differential equations (ODEs) (Eq. A2) is to diagonalize **P**. The eigenvalues *λ*_{j} and associated eigenvectors **e**_{j}
of **P** are

with $M=m+\mathrm{1}$.
The square matrix **P** is thus diagonalizable and can be decomposed as

Furthermore, $M{\mathbf{A}}^{-\mathrm{1}}=\mathbf{A}$ and also

which shows that the integrated *u*_{I} and shear *u*_{S}
modes defined in Eq. (10) are eigenmodes of
the dynamics.
We can thus re-express Eq. (A2)
with the unknown **u** as

with the unknown **u**_{M}. Because **D** is a diagonal matrix, the two ODEs in Eq. (A6) are decoupled and can be solved separately. As reported in Eq. (39), we easily find that

and the solution in terms of the original unknowns *u*_{a} and *u*_{o} given in Eq. (38) is simply obtained using the relation $\mathbf{u}=\left({\mathbf{Au}}_{M}\right)/M$ to obtain

which can be recast as

## A2 Variance

The deterministic and the stochastic dynamics are statistically independent,
so when calculating statistical moments we can ignore the deterministic
one (i.e., ℱ(*t*) will be ignored). In the following we denote ${u}_{S}^{\prime}$ as
the random part of *u*_{S}. The solution of the shear mode is given by
Eq. (39b). Its variance is, using the fact that
$\u2329\mathit{\zeta}\left(t\right)\mathit{\zeta}\left({t}^{\prime}\right)\u232a=\mathrm{2}R\mathit{\delta}(t-{t}^{\prime})$
(see Eq. 40) and that 〈*ζ*(*t*)〉=0,

It is important to note that there are two different averages involved in the above equation, all denoted by the same symbol 〈⋅〉.
One is over the noise, and the other is over the initial conditions.
Using the same symbol is justified as the initial conditions are due to the same statistical noise applied prior to *t*=0.
In a statistically stationary process the variance is independent of the time *t*, and therefore

Such a consistency condition is extensively used throughout this paper.

For the work theorems the focus is on the statistics of averages over a time interval *T*.
Using Eq. (A7) we obtain

Its variance is

Note that for *T*≪SM we have $\langle \left[{\stackrel{\mathrm{\u203e}}{{u}_{S}^{\prime}}}^{T}\right(t){]}^{\mathrm{2}}\rangle =\langle {u}_{S}(t{)}^{\mathrm{2}}\rangle $,
and for *T*≫SM we obtain $\langle \left[{\stackrel{\mathrm{\u203e}}{{u}_{S}^{\prime}}}^{T}\right(t){]}^{\mathrm{2}}\rangle =\mathrm{2}\langle {u}_{S}(t{)}^{\mathrm{2}}\rangle /\left(\mathrm{SM}T\right)$.

The calculations performed for the one-component model in the previous section will now be extended to the two-component model where the two components interact through the Coriolis force.

## B1 Solution

To simplify the algebra we temporarily manipulate complex quantities in this subsection. For the 0D2C model given in Eq. (9) we consider a state vector given by

where *U*_{a} and *U*_{o} are complex quantities
such that ${U}_{\mathrm{a}}={u}_{\mathrm{a}}+i{v}_{\mathrm{a}}$ and ${U}_{\mathrm{o}}={u}_{\mathrm{o}}+i{v}_{\mathrm{o}}$.
The general evolution equation satisfied by
**y** is

with

where *F*_{u}, *ζ*_{u} and *ζ*_{v} are real-valued functions.
The matrix **P**_{f} is diagonalizable and can be decomposed as

We recall that $M{\mathbf{A}}^{-\mathrm{1}}=\mathbf{A}$, and introducing the complex numbers ${U}_{I}={u}_{I}+i{v}_{I}$ and ${U}_{S}={u}_{S}+i{v}_{S}$ corresponding to the integrated and shear modes, we have

Re-expressing the original system of ODEs in terms of
**y**_{M}, we obtain

and we obtain two independent ODEs for the complex functions *U*_{I}(*t*) and *U*_{S}(*t*):

whose solutions are

Taking the real and imaginary parts of *U*_{I}(*t*), we obtain

Now considering the shear mode, we have

Note that for *f*=0, we easily recover the solutions from the 0D1C model. To further simplify those solutions, we introduce the notations

to reformulate the solutions of the 0D2C model as

## B2 Variance

For the sake of clarity we use the notations
*c*=cos (*f**t*) and *s*=sin (*f**t*) in the following.
We consider a Gaussian process with a variance:

If the noise is turned off at *t*=0, we have the deterministic evolution
(using $\mathrm{cos}(t+\mathit{\alpha})\mathrm{cos}(t+\mathit{\beta})+\mathrm{sin}(t+\mathit{\alpha})\mathrm{sin}(t+\mathit{\beta})=\mathrm{cos}\mathit{\alpha}\mathrm{cos}\mathit{\beta}+\mathrm{sin}\mathit{\alpha}\mathrm{sin}\mathit{\beta}$)

and its variance is given by

It cancels the time-dependent part of the variance due to the noise (see Eq. B14), making the total variance time independent. This is another expression of the consistency condition mentioned in the previous section. The total variance is

where *W*_{S} is given by Eq. (74).
It is important to note that the last equality is equal to the last equality in Eq. (A13)
and that in the limit *f*→0, the solutions of the non-rotating case are obtained in all the formulas.

The Fortran code corresponding to the 1D2C model described in Sect. 2.1 and used in Sect. 3.3 is available at https://doi.org/10.5281/zenodo.4888804 (Wirth and Lemarié, 2021).

No data sets were used in this article.

AW and FL contributed to the theoretical calculations and the writing of the paper. AW designed and carried out the numerical experiments and their analysis. FL developed the 1D2C model.

The authors declare that they have no conflict of interest.

This work was funded by the French LEFE (Les Enveloppes Fluides et l'Environnement) MANU (méthodes MAthématiques et NUmériques) program through project FASIL.

This paper was edited by Rui A. P. Perdigão and reviewed by two anonymous referees.

Boffetta, G. and Ecke, R. E.: Two-dimensional turbulence, Annu. Rev. Fluid Mech., 44, 427–451, 2012. a

Ciliberto, S., Garnier, N., Hernandez, S., Lacpatia, C., Pinton, J.-F., and Chavarria, G. R.: Experimental test of the Gallavotti–Cohen fluctuation theorem in turbulent flows, Physica A, 340, 240–250, 2004. a, b

Crooks, G. E.: Nonequilibrium measurements of free energy differences for microscopically reversible Markovian systems, J. Stat. Phys., 90, 1481–1487, 1998. a

Csanady, G. T.: Air-sea interaction: laws and mechanisms, Cambridge University Press, Cambridge UK, 2001. a, b

Czopnik, R. and Garbaczewski, P.: Brownian motion in a magnetic field, Physical Review E, 63, 021105, https://doi.org/10.1103/PhysRevE.63.021105, 2001. a

Dijkstra, H. A.: Nonlinear climate dynamics, Cambridge University Press, New York, USA, 2013. a

Duhaut, T. H. and Straub, D. N.: Wind stress dependence on ocean surface velocity: Implications for mechanical energy input to ocean circulation, J. Phys. Oceanogr., 36, 202–211, 2006. a, b

Einstein, A.: Zur Theorie der Brownschen Bewegung, Ann. Phys., 324, 371–381, 1906. a, b

Einstein, A.: Investigations on the Theory of the Brownian Movement, Courier Corporation, 1956. a, b

Ekman, V. W.: On the influence of the earth's rotation on ocean-currents, Almquist & Wiksells boktryckeri, A.-B., 1905. a, b, c

Feitosa, K. and Menon, N.: Fluidized granular medium as an instance of the fluctuation theorem, Phys. Rev. Lett., 92, 164301, https://doi.org/10.1103/PhysRevLett.92.164301, 2004. a

Ferrari, R. and Wunsch, C.: Ocean circulation kinetic energy: Reservoirs, sources, and sinks, Annu. Rev. Fluid Mech., 41, 253–282, https://doi.org/10.1146/annurev.fluid.40.111406.102139, 2009. a

Franzke, C. L., O'Kane, T. J., Berner, J., Williams, P. D., and Lucarini, V.: Stochastic climate theory and modeling, WIRES Climate Change, 6, 63–78, 2015. a

Frisch, U.: Turbulence: the legacy of AN Kolmogorov, Cambridge University Press, Cambridge, UK, 1995. a

Ghil, M.: A century of nonlinearity in the geosciences, Earth Space Sci., 6, 1007–1042, 2019. a

Jarzynski, C.: Nonequilibrium equality for free energy differences, Phys. Rev. Lett., 78, 2690, https://doi.org/10.1103/PhysRevLett.78.2690, 1997. a

Large, W. B.: Surface Fluxes for Practitioners of Global Ocean Data Assimilation, in: Ocean Weather Forecasting. An Integrated View of Oceanography, edited by: Chassignet, E. P. and Verron, J., chap. 9, Springer, Dordrecht, The Netherlands, 229–270, 2006. a

Lemarié, F., Samson, G., Redelsperger, J.-L., Giordani, H., Brivoal, T., and Madec, G.: A simplified atmospheric boundary layer model for an improved representation of air–sea interactions in eddying oceanic models: implementation and first evaluation in NEMO (4.0), Geosci. Model Dev., 14, 543–572, https://doi.org/10.5194/gmd-14-543-2021, 2021. a, b

McWilliams, J. C. and Huckle, E.: Ekman layer rectification, J. Physi. Oceanogr., 36, 1646–1659, 2006. a, b, c, d

Oost, W., Komen, G., Jacobs, C., and Van Oort, C.: New evidence for a relation between wind stress and wave age from measurements during ASGAMAGE, Bound.-Lay. Meteorol., 103, 409–438, https://doi.org/10.1023/A:1014913624535, 2002. a

Patton, E. G., Sullivan, P. P., Kosović, B., Dudhia, J., Mahrt, L., Žagar, M., and Marić, T.: On the Influence of Swell Propagation Angle on Surface Drag, J. Appl. Meteorol. Clim., 58, 1039–1059, https://doi.org/10.1175/JAMC-D-18-0211.1, 2019. a

Perrin, J.: Atomes (Les), CNRS Editions, Paris, ISBN: 978-2-271-08260-2, 2014. a, b

Seifert, U.: Stochastic thermodynamics, fluctuation theorems and molecular machines, Rep. Prog. Phys., 75, 126001, https://doi.org/10.1140/epjb/e2008-00001-9, 2012. a, b, c

Sekimoto, K.: Langevin equation and thermodynamics, Prog. Theor. Phys. Supp., 130, 17–27, 1998. a

Shang, X.-D., Tong, P., and Xia, K.-Q.: Test of steady-state fluctuation theorem in turbulent Rayleigh-Bénard convection, Phys. Rev. E, 72, 015301, https://doi.org/10.1103/PhysRevE.72.015301, 2005. a

Shrira, V. I. and Almelah, R. B.: Upper-ocean Ekman current dynamics: a new perspective, J. Fluid Mech., 887, https://doi.org/10.1017/jfm.2019.1059, 2020. a, b, c

Stocker, T. F., Qin, D., Plattner, G., Tignor, M., Allen, S., Boschung, J., Nauels, A., Xia, Y., Bex, V., and Midgley, P.: Climate Change 2007 – The Physical Science Basis Working Group I Contribution to the Fourth Assessment Report of the IPCC Author: Intergovernmental Panel on Climate Change 2007. a

Taylor, J.: Diffusion of plasma across a magnetic field, Phys. Rev. Lett., 6, 262, https://doi.org/10.1103/PhysRevLett.6.262, 1961. a

Wirth, A.: A Fluctuation–Dissipation Relation for the Ocean Subject to Turbulent Atmospheric Forcing, J. Phys. Oceanogr., 48, 831–843, 2018. a, b, c, d

Wirth, A.: On fluctuating momentum exchange in idealised models of air–sea interaction, Nonlinear Proc. Geophys., 26, 457–477, 2019. a, b, c, d, e

Wirth, A.: Determining the dependence of the power supply to the ocean on the length and time scales of the dynamics between the meso-scale and the synoptic scale, from satellite data, Ocean Dynam., 71, 439–445, https://doi.org/10.1007/s10236-020-01439-4, 2021. a

Wirth, A. and Lemarié, F.: Code repository for 'Jarzynski equality and Crooks relation for local models of air-sea interaction', a ESD paper, Zenodo https://doi.org/10.5281/zenodo.4888804, 2021. a

Zhai, X., Johnson, H. L., Marshall, D. P., and Wunsch, C.: On the wind power input to the ocean general circulation, J. Phys. Oceanogr., 42, 1357–1365, 2012. a

^{1}

The superscript $\stackrel{\mathrm{\u0303}}{\phantom{\rule{0.125em}{0ex}}\phantom{\rule{0.125em}{0ex}}}$ is used to characterize a variable
which is a function of *z* and *t*.