Thermodynamic and Mechanical Study: Difference between revisions

From dada-engine.org
Created page with "<translate> == 1. Scope and method == This study describes the complete driven cycle of the Dada machine in symbolic form. The model couples prescribed kinematics of the two pistons, well-mixed gas volumes, 0D heat exchangers, passive check valves, and a generic compressible hydraulic closure model. The cycle origin is set at the '''top position of the large cylinder''', with: <math>t=0,\qquad \theta(0)=0,\qquad V_L(0)=V_{L,\max}.</math> The four gas volumes are: *..."
 
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<translate>
<translate>
== 1. Scope and method ==
== 1. Scope and method == <!--T:1-->


This study describes the complete driven cycle of the Dada machine in symbolic form. The model couples prescribed kinematics of the two pistons, well-mixed gas volumes, 0D heat exchangers, passive check valves, and a generic compressible hydraulic closure model.
<!--T:2-->
This study describes the complete thermodynamic cycle of the Dada engine in symbolic form, in both refrigeration and motor operation. The model couples prescribed kinematics of the two pistons, well-mixed gas volumes, 0D heat exchangers, passive check valves, and a generic compressible hydraulic closure model.


The cycle origin is set at the '''top position of the large cylinder''', with:
<!--T:3-->
The cycle origin is set with the large cylinder at  maximum volume, with:


<!--T:4-->
<math>t=0,\qquad \theta(0)=0,\qquad V_L(0)=V_{L,\max}.</math>
<math>t=0,\qquad \theta(0)=0,\qquad V_L(0)=V_{L,\max}.</math>


<!--T:5-->
The four gas volumes are:
The four gas volumes are:


* <code>S</code>: small cylinder, directly associated with the cold heat exchanger <code>C</code>;
<!--T:6-->
* <code>L</code>: large cylinder, directly associated with the hot heat exchanger <code>H</code>;
* <math display="inline">S</math>: small cylinder;
* <code>C</code>: cold heat exchanger, which absorbs heat from the cold reservoir;
* <math display="inline">L</math>: large cylinder;
* <code>H</code>: hot heat exchanger, which rejects heat to the hot reservoir.
* <math display="inline">H_i</math>: heat-in exchanger, located on the <math display="inline">S \to L</math> hydraulic path and transferring heat into the gas;
* <math display="inline">H_o</math>: heat-out exchanger, located on the <math display="inline">L \to S</math> hydraulic path and transferring heat out of the gas.


The check valves allow <code>H → S</code> during Phase II and <code>C → L</code> during Phase IV.
<!--T:420-->
The two hydraulic branches have fixed circulation orientations:


The cycle comprises four phases:
<!--T:421-->
<math>S\to H_i\to L,</math>


* '''Phase I''' — check valves closed, nominally adiabatic: compression on the <code>L+H</code> side;
<!--T:422-->
* '''Phase II''' — heat exchange, nominally isothermal: transfer <code>L → H → S</code>, with heat rejection on the hot side;
<math>L\to H_o\to S.</math>
* '''Phase III''' — check valves closed, nominally adiabatic: expansion on the <code>S+C</code> side;
* '''Phase IV''' — heat exchange, nominally isothermal: transfer <code>S → C → L</code>, with heat absorption on the cold side.


The terms ''nominally adiabatic'' and ''nominally isothermal'' describe the objective of the cycle. They do not constitute exact thermodynamic constraints: temperatures are calculated from the balances, the heat exchangers remain coupled to their reservoirs, and the low-displacement regions of the pistons are not assumed to be perfectly stationary.


=== 1.1 First-level assumptions ===
<!--T:423-->
Each branch contains one passive check valve. The check valve may be installed on either side of its heat exchanger. The two admissible arrangements for the heat-in branch are:


<!--T:424-->
<math>S\to \mathrm{CV}_i\to H_i\to L,</math>
<!--T:425-->
or:
<!--T:426-->
<math>S\to H_i\to \mathrm{CV}_i\to L.</math>
<!--T:427-->
Likewise, the heat-out branch may be arranged as:
<!--T:428-->
<math>L\to \mathrm{CV}_o\to H_o\to S,</math>
<!--T:429-->
or:
<!--T:430-->
<math>L\to H_o\to \mathrm{CV}_o\to S.</math>
<!--T:431-->
In all cases the check valve enforces the same overall circulation direction of its branch. Its position relative to the heat exchanger is a design parameter because, when the valve is closed, it determines which cylinder remains hydraulically connected to the exchanger volume.
<!--T:432-->
The physical function of each heat exchanger is independent of the operating mode. What changes between refrigeration and motor operation is the external thermal reservoir connected to each exchanger.
<!--T:433-->
The cycle is described by four hydraulic/thermodynamic phases: compression, transfer through <math display="inline">H_o</math> from <math display="inline">L</math> to <math display="inline">S</math>, expansion, and transfer through <math display="inline">H_i</math> from <math display="inline">S</math> to <math display="inline">L</math>. In refrigeration operation, starting from the reference origin used in this study, these phases are traversed in that order. Motor operation reverses the crank kinematics. The resulting thermodynamic chronology must be recalculated with the unchanged check-valve orientations and the reversed reservoir assignment; it is detailed in §6.6.
<!--T:434-->
The phase boundaries describe the kinematics and the dominant thermodynamic regime. They are not check-valve events. Check-valve opening and closing are determined independently by the local pressure difference across each valve; mass transfer and heat transfer may therefore continue during compression or expansion, and a valve event may occur inside a kinematic phase.
<!--T:435-->
The two transfer phases are intended to be quasi-isobaric: one cylinder empties while the other fills, and the pressure variation is intended to remain small compared with the pressure change during compression and expansion. Compression and expansion may involve simultaneous motion of both pistons in the same volumetric direction, so both cylinders may contribute to the pressure-changing phase.
<!--T:436-->
For comparison with an ideal thermodynamic cycle, compression and expansion may be idealized as adiabatic transformations; if they are also reversible, they are isentropic. These are reference transformations only. The real machine does not impose zero heat transfer, zero mass transfer, or closed check valves during compression and expansion, and no construction capable of enforcing perfectly adiabatic phases is assumed here.
=== 1.1 First-level assumptions === <!--T:11-->
<!--T:12-->
The model is based on the following assumptions:
The model is based on the following assumptions:


<!--T:13-->
* single-phase, ideal and calorically perfect gas;
* single-phase, ideal and calorically perfect gas;
* constant properties <math display="inline">R</math>, <math display="inline">C_p</math>, <math display="inline">C_v</math>, <math display="inline">\gamma</math>, with <math display="inline">R=C_p-C_v</math> and <math display="inline">\gamma=C_p/C_v</math>;
* constant properties <math display="inline">R</math>, <math display="inline">C_p</math>, <math display="inline">C_v</math>, <math display="inline">\gamma</math>, with <math display="inline">R=C_p-C_v</math> and <math display="inline">\gamma=C_p/C_v</math>;
Line 40: Line 96:
* passive check valves controlled by the pressure difference.
* passive check valves controlled by the pressure difference.


== 2. Notation and conventions ==
== 2. Notation and conventions == <!--T:14-->


=== 2.1 Geometry and kinematics ===
=== 2.1 Geometry and kinematics === <!--T:15-->


For <math display="inline">i\in\{S,L\}</math>:
<!--T:16-->
For <math display="inline">k\in\{S,L\}</math>:


<math>V_{i,\min}>0,\qquad V_{i,\max}>V_{i,\min}.</math>
<!--T:17-->
<math>V_{k,\min}>0,\qquad V_{k,\max}>V_{k,\min}.</math>


<!--T:18-->
The swept volume is:
The swept volume is:


<math>V_{i,\mathrm{swept}}=V_{i,\max}-V_{i,\min}.</math>
<!--T:19-->
<math>V_{k,\mathrm{swept}}=V_{k,\max}-V_{k,\min}.</math>


<!--T:20-->
The thermodynamic volumes prescribed by the mechanism are:
The thermodynamic volumes prescribed by the mechanism are:


<!--T:21-->
<math>V_S=V_S(t),\qquad V_L=V_L(t),</math>
<math>V_S=V_S(t),\qquad V_L=V_L(t),</math>


<!--T:22-->
with their '''signed''' derivatives:
with their '''signed''' derivatives:


<!--T:23-->
<math>\dot V_S=\frac{dV_S}{dt},\qquad \dot V_L=\frac{dV_L}{dt}.</math>
<math>\dot V_S=\frac{dV_S}{dt},\qquad \dot V_L=\frac{dV_L}{dt}.</math>


If the crank rotates at constant angular speed <math display="inline">\omega</math>:
<!--T:354-->
The crank angular velocity is signed:


<math>\theta(t)=\omega t,\qquad \dot V_i=\omega\frac{dV_i}{d\theta}.</math>
<!--T:355-->
<math>\theta(t)=\omega t,\qquad
\dot V_k=\omega\frac{dV_k}{d\theta},
\qquad k\in\{S,L\}.</math>


<!--T:356-->
The driven refrigeration direction is chosen as positive:
<!--T:357-->
<math>\omega>0.</math>
<!--T:358-->
Motor operation uses the opposite crank direction:
<!--T:359-->
<math>\omega<0.</math>
<!--T:360-->
The geometric origin is identical in both modes:
<!--T:361-->
<math>t=0,\qquad \theta(0)=0,\qquad V_L(0)=V_{L,\max}.</math>
<!--T:26-->
When only the absolute value of the volumetric speed is useful:
When only the absolute value of the volumetric speed is useful:


<math>\nu_{V,i}=|\dot V_i|.</math>
<!--T:27-->
 
<math>\nu_{V,k}=|\dot V_k|.</math>
A '''quasi-stationary region''' denotes an interval in which the displacement or <math display="inline">|\dot V|</math> remains small compared with the transfer phases. This region corresponds to the “plateau” of the kinematic optimization, without assuming <math display="inline">\dot V=0</math> exactly.


=== 2.2 Kinematic closure fraction ===
=== 2.2 Kinematic closure fraction === <!--T:29-->


<!--T:30-->
To describe the normalized closure of a cylinder:
To describe the normalized closure of a cylinder:


<math>\Lambda_i(t)=\frac{V_{i,\max}-V_i(t)}{V_{i,\max}-V_{i,\min}},\qquad i\in\{S,L\}.</math>
<!--T:31-->
<math>\Lambda_k(t)=\frac{V_{k,\max}-V_k(t)}{V_{k,\max}-V_{k,\min}},\qquad k\in\{S,L\}.</math>


Thus <math display="inline">\Lambda_i=0</math> corresponds to maximum volume and <math display="inline">\Lambda_i=1</math> to minimum volume. The values <math display="inline">\Lambda_L^*</math> and <math display="inline">\Lambda_S^*</math> are nominal kinematic targets at the transitions. The value actually reached at a check-valve event is:
<!--T:32-->
Thus <math display="inline">\Lambda_k=0</math> corresponds to maximum volume and <math display="inline">\Lambda_k=1</math> to minimum volume. The values <math display="inline">\Lambda_L^*</math> and <math display="inline">\Lambda_S^*</math> may be used as nominal kinematic reference levels at selected phase boundaries. The value actually observed at a check-valve event may be recorded as:


<!--T:33-->
<math>\Lambda_{\mathrm{real}}=\Lambda(t_{\mathrm{event}}).</math>
<math>\Lambda_{\mathrm{real}}=\Lambda(t_{\mathrm{event}}).</math>


The physical transitions remain determined by the pressures; <math display="inline">\Lambda^*</math> is therefore not an imposed opening condition.
<!--T:34-->
Check-valve events are determined by the local pressure difference across the valve and are independent of the selected kinematic phase boundaries; <math display="inline">\Lambda^*</math> is therefore not an imposed opening condition.
 
=== 2.3 Thermodynamic variables === <!--T:35-->


=== 2.3 Thermodynamic variables ===
<!--T:36-->
For each volume <math display="inline">j\in\{S,L,i,o\}</math>:


For each volume <math display="inline">i\in\{S,L,C,H\}</math>:
<!--T:37-->
<math>m_j,\qquad U_j,\qquad T_j,\qquad P_j,\qquad V_j.</math>


<math>m_i,\qquad U_i,\qquad T_i,\qquad P_i,\qquad V_i.</math>
<!--T:362-->
The subscripts <math display="inline">i</math> and <math display="inline">o</math> denote respectively the gas contained in <math display="inline">H_i</math> and <math display="inline">H_o</math>.


<!--T:38-->
The complete state vector is chosen as:
The complete state vector is chosen as:


<math>\boxed{\mathbf X=(m_S,U_S,m_L,U_L,m_C,U_C,m_H,U_H)}.</math>
<!--T:39-->
<math>\mathbf X=(m_S,U_S,m_L,U_L,m_i,U_i,m_o,U_o).</math>


Temperatures and pressures are derived from it:
<!--T:40-->
Temperatures and pressures are derived from:


<math>T_i=\frac{U_i}{m_iC_v},\qquad P_i=\frac{m_iRT_i}{V_i}.</math>
<!--T:41-->
<math>T_j=\frac{U_j}{m_jC_v},\qquad
P_j=\frac{m_jRT_j}{V_j}.</math>


The volumes <math display="inline">V_S(t)</math> and <math display="inline">V_L(t)</math> are prescribed by the kinematics and are not independent thermodynamic state variables. The volumes <math display="inline">V_C</math> and <math display="inline">V_H</math> are constant.
<!--T:42-->
The volumes <math display="inline">V_S(t)</math> and <math display="inline">V_L(t)</math> are prescribed by the kinematics and are not independent thermodynamic state variables. The volumes <math display="inline">V_i</math> and <math display="inline">V_o</math> are constant.


=== 2.4 Energy sign convention ===
=== 2.4 Energy sign convention === <!--T:43-->


<!--T:44-->
Heat is positive when it is '''received by the gas'''. Work is positive when the '''gas delivers work''':
Heat is positive when it is '''received by the gas'''. Work is positive when the '''gas delivers work''':


<!--T:45-->
<math>\dot W=P\dot V.</math>
<math>\dot W=P\dot V.</math>


For the intended refrigeration operation:
<!--T:363-->
By definition of the two physical heat exchangers:
 
<!--T:364-->
<math>Q_i>0,\qquad Q_o<0</math>
 
<!--T:365-->
in the intended operating regime of both refrigeration and motor operation.
 
<!--T:366-->
The net cycle work distinguishes the two modes:
 
<!--T:367-->
<math>W_{\mathrm{cycle}}<0</math>
 
<!--T:368-->
for driven refrigeration operation, whereas:


<math>Q_C>0,\qquad Q_H<0,\qquad W_{\mathrm{cycle}}<0.</math>
<!--T:369-->
<math>W_{\mathrm{cycle}}>0</math>


== 3. Thermal closure and validity domain ==
<!--T:370-->
for motor operation.


=== 3.1 Exchange with the thermal reservoirs ===
== 3. Thermal closure and validity domain == <!--T:48-->


For a heat exchanger <math display="inline">HX\in\{C,H\}</math>:
=== 3.1 Exchange with the thermal reservoirs === <!--T:49-->


<math>\boxed{\dot Q_{HX}=(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX})}.</math>
<!--T:371-->
For the heat-in exchanger:


<math display="inline">T_{HX,\mathrm{res}}</math> is the temperature of the external thermal reservoir, prescribed and constant in the base model. <math display="inline">T_{HX}</math> is the mean 0D temperature of the gas in the heat exchanger. <math display="inline">(UA)_{HX}</math> represents the overall thermal conductance, which may combine convection, wall conduction, and contact resistances.
<!--T:372-->
<math>\dot Q_i=(UA)_i(T_{i,\mathrm{res}}-T_i).</math>


Cold side:
<!--T:373-->
In the intended operating regime:


<math>\dot Q_C=(UA)_C(T_{C,\mathrm{res}}-T_C).</math>
<!--T:374-->
<math>T_i<T_{i,\mathrm{res}}
\quad\Rightarrow\quad
\dot Q_i>0.</math>


In refrigeration operation, <math display="inline">T_C<T_{C,\mathrm{res}}</math> gives <math display="inline">\dot Q_C>0</math>.
<!--T:375-->
For the heat-out exchanger:


Hot side:
<!--T:376-->
<math>\dot Q_o=(UA)_o(T_{o,\mathrm{res}}-T_o).</math>


<math>\dot Q_H=(UA)_H(T_{H,\mathrm{res}}-T_H).</math>
<!--T:377-->
In the intended operating regime:


In refrigeration operation, <math display="inline">T_H>T_{H,\mathrm{res}}</math> gives <math display="inline">\dot Q_H<0</math>.
<!--T:378-->
<math>T_o>T_{o,\mathrm{res}}
\quad\Rightarrow\quad
\dot Q_o<0.</math>


A nominally isothermal phase therefore does not mean <math display="inline">T_{HX}=T_{HX,\mathrm{res}}</math>: a finite temperature difference is required to transfer finite thermal power when <math display="inline">UA</math> is finite.
<!--T:379-->
The reservoir temperatures depend on the operating mode.


An indicator of isothermal quality may be defined over a given phase by:
<!--T:380-->
For refrigeration operation:


<math>\varepsilon_T=\frac{T_{\max}-T_{\min}}{T_{\mathrm{ref}}}.</math>
<!--T:381-->
<math>T_{i,\mathrm{res}}=T_{\mathrm{cold}},\qquad
T_{o,\mathrm{res}}=T_{\mathrm{hot}}.</math>


=== 3.2 Thermophysical validity domain ===
<!--T:382-->
For motor operation:


<!--T:383-->
<math>T_{i,\mathrm{res}}=T_{\mathrm{hot}},\qquad
T_{o,\mathrm{res}}=T_{\mathrm{cold}}.</math>
<!--T:384-->
Thus the heat-transfer equations themselves are identical in both modes.
=== 3.2 Thermophysical validity domain === <!--T:62-->
<!--T:63-->
The base model assumes:
The base model assumes:


<!--T:64-->
<math>PV=mRT,\qquad Z=1,</math>
<math>PV=mRT,\qquad Z=1,</math>


<!--T:65-->
<math>C_p=\mathrm{const},\qquad C_v=\mathrm{const},\qquad \gamma=\mathrm{const}.</math>
<math>C_p=\mathrm{const},\qquad C_v=\mathrm{const},\qquad \gamma=\mathrm{const}.</math>


<!--T:66-->
Validity must be checked a posteriori over the entire cycle, notably through:
Validity must be checked a posteriori over the entire cycle, notably through:


<!--T:67-->
<math>|Z-1|\ll1,</math>
<math>|Z-1|\ll1,</math>


<!--T:68-->
and through small variations of the thermophysical properties, for example:
and through small variations of the thermophysical properties, for example:


<!--T:69-->
<math>\varepsilon_{C_p}=\frac{C_{p,\max}-C_{p,\min}}{C_{p,\mathrm{ref}}}\ll1.</math>
<math>\varepsilon_{C_p}=\frac{C_{p,\max}-C_{p,\min}}{C_{p,\mathrm{ref}}}\ll1.</math>


<!--T:70-->
The working fluid must remain single-phase and gaseous, and sufficiently far from any condensation or phase transition throughout the <math display="inline">(P,T)</math> domain traversed.
The working fluid must remain single-phase and gaseous, and sufficiently far from any condensation or phase transition throughout the <math display="inline">(P,T)</math> domain traversed.


<!--T:71-->
If these criteria become insufficient, an extension may use <math display="inline">Z(P,T)</math>, <math display="inline">C_p(T)</math>, <math display="inline">C_v(T)</math>, or a real-gas equation of state without changing the general architecture of the mass and energy balances.
If these criteria become insufficient, an extension may use <math display="inline">Z(P,T)</math>, <math display="inline">C_p(T)</math>, <math display="inline">C_v(T)</math>, or a real-gas equation of state without changing the general architecture of the mass and energy balances.


== 4. Reduced formulation of a quasi pressure-equalized pair ==
== 4. Reduced formulations for quasi-pressure-equalized connected volumes == <!--T:437-->
 
 
<!--T:438-->
The complete model treats the four gas volumes independently. In some operating conditions, however, a set of volumes connected through sufficiently low hydraulic resistance may remain close to a common pressure. Such a set can then be treated by a reduced analytical formulation.
 
 
<!--T:439-->
Let <math display="inline">\mathcal C</math> denote any connected set of gas volumes for which:
 
<!--T:440-->
<math>
P_j\approx P_{\mathcal C},
\qquad j\in\mathcal C.
</math>


When a cylinder and its heat exchanger are connected by a very low-resistance internal path, the approximation


<math>P_{\mathrm{cyl}}\approx P_{HX}=P_{\mathrm{pair}}.</math>
<!--T:441-->
The composition of <math display="inline">\mathcal C</math> is determined by the actual hydraulic connectivity and by the position and state of the check valves.


may be used. It is acceptable if:


<math>\boxed{\varepsilon_P=\frac{|\Delta P_{\mathrm{int}}|}{P_{\mathrm{pair}}}\ll1},\qquad \Delta P_{\mathrm{int}}=P_{\mathrm{cyl}}-P_{HX}.</math>
<!--T:442-->
A useful pressure-equalization criterion is:


<!--T:443-->
<math>
\varepsilon_{P,\mathcal C}
=
\max_{(a,b)\in\mathcal C}
\frac{|P_a-P_b|}{P_{\mathcal C}}
\ll1.
</math>
<!--T:444-->
A low internal Mach number provides an additional check:
A low internal Mach number provides an additional check:


<math>Ma_{\mathrm{int}}=\frac{|u_{\mathrm{int}}|}{a}\ll1,</math>
<!--T:445-->
<math>
Ma_{\mathrm{int}}=\frac{|u_{\mathrm{int}}|}{a}\ll1,
</math>


but it is not sufficient on its own to guarantee pressure equalization.
<!--T:446-->
but is not sufficient by itself to guarantee pressure equalization.


=== 4.1 Closed-pair case ===


For a closed pair, with fixed <math display="inline">V_{HX}</math> and <math display="inline">V=V_{\mathrm{cyl}}+V_{HX}</math>:
=== 4.1 Pressure equation for a connected set === <!--T:447-->
 
 
<!--T:448-->
Define the total volume:
 
<!--T:449-->
<math>
V_{\mathcal C}=\sum_{j\in\mathcal C}V_j.
</math>
 
 
<!--T:450-->
Only cylinder volumes vary, so:
 
<!--T:451-->
<math>
\dot V_{\mathcal C}
=
\sum_{k\in\mathcal C\cap\{S,L\}}\dot V_k.
</math>
 
 
<!--T:452-->
For a calorically perfect ideal gas at common pressure:
 
<!--T:453-->
<math>
U_{\mathcal C}
=
\sum_{j\in\mathcal C}m_jC_vT_j
=
\frac{P_{\mathcal C}V_{\mathcal C}}{\gamma-1}.
</math>
 
 
<!--T:454-->
Let the total heat received by the gas in the set be:
 
<!--T:455-->
<math>
\dot Q_{\mathcal C}
=
\sum_{j\in\mathcal C}\dot Q_j.
</math>
 
 
<!--T:456-->
Mass crossing the boundary of the set transports the enthalpy of its upstream state. Define the net external enthalpy flow into the set as:
 
<!--T:457-->
<math>
\dot H_{\mathcal C}^{\mathrm{ext}}
=
\sum_{\mathrm{in}}\dot m\,C_pT_u
-
\sum_{\mathrm{out}}\dot m\,C_pT_u.
</math>
 
 
<!--T:458-->
The first law for the complete connected set is then:
 
<!--T:459-->
<math>
\frac{dU_{\mathcal C}}{dt}
=
\dot Q_{\mathcal C}
+
\dot H_{\mathcal C}^{\mathrm{ext}}
-
P_{\mathcal C}\dot V_{\mathcal C}.
</math>
 
 
<!--T:460-->
Therefore:
 
<!--T:461-->
<math>
\dot P_{\mathcal C}
=
\frac{
(\gamma-1)
\left(
\dot Q_{\mathcal C}
+
\dot H_{\mathcal C}^{\mathrm{ext}}
\right)
-
\gamma P_{\mathcal C}\dot V_{\mathcal C}
}
{V_{\mathcal C}}
.
</math>
 
 
<!--T:462-->
The total mass of the set satisfies:
 
<!--T:463-->
<math>
\dot M_{\mathcal C}
=
\sum_{\mathrm{in}}\dot m
-
\sum_{\mathrm{out}}\dot m.
</math>
 
 
<!--T:464-->
Internal mass and enthalpy transfers between members of <math display="inline">\mathcal C</math> cancel from these global balances.
 
 
=== 4.2 Closed connected set === <!--T:465-->
 
 
<!--T:466-->
If no mass crosses the boundary of <math display="inline">\mathcal C</math>:
 
<!--T:467-->
<math>
\dot H_{\mathcal C}^{\mathrm{ext}}=0,
\qquad
\dot M_{\mathcal C}=0.
</math>
 
 
<!--T:468-->
The pressure equation becomes:
 
<!--T:469-->
<math>
\dot P_{\mathcal C}
=
\frac{
(\gamma-1)\dot Q_{\mathcal C}
-
\gamma P_{\mathcal C}\dot V_{\mathcal C}
}
{V_{\mathcal C}}.
</math>
 
 
<!--T:470-->
If the set is also adiabatic:
 
<!--T:471-->
<math>
\dot Q_{\mathcal C}=0,
</math>
 
<!--T:472-->
then:
 
<!--T:473-->
<math>
P_{\mathcal C}V_{\mathcal C}^{\gamma}
=
\mathrm{const}.
</math>
 
 
<!--T:474-->
This is a limiting analytical case. A compression or expansion phase of the complete machine does not require the corresponding connected set to be closed or adiabatic.
 
 
=== 4.3 Fixed-volume heat exchanger within a pressure-equalized set === <!--T:475-->
 
 
<!--T:476-->
For a heat exchanger <math display="inline">H_j</math> of fixed volume <math display="inline">V_j</math> belonging to <math display="inline">\mathcal C</math>:
 
<!--T:477-->
<math>
m_j=\frac{P_{\mathcal C}V_j}{RT_j}.
</math>
 
 
<!--T:478-->
Differentiation gives:
 
<!--T:479-->
<math>
\frac{\dot m_j}{m_j}
=
\frac{\dot P_{\mathcal C}}{P_{\mathcal C}}
-
\frac{\dot T_j}{T_j},
</math>
 
<!--T:480-->
hence:
 
<!--T:481-->
<math>
\dot T_j
=
\frac{T_j}{P_{\mathcal C}}\dot P_{\mathcal C}
-
\frac{RT_j^2}{P_{\mathcal C}V_j}\dot m_j
.
</math>
 
 
<!--T:482-->
The exchanger mass rate <math display="inline">\dot m_j</math> is the algebraic sum of the actual flows through all links connected to it. This relation is therefore independent of whether the check valve lies upstream or downstream of the exchanger.
 
 
<!--T:483-->
Its energy balance may equivalently be written:
 
<!--T:484-->
<math>
\frac{V_j}{\gamma-1}\dot P_{\mathcal C}
=
\dot Q_j
+
\sum_{\mathrm{in}}\dot m C_pT_u
-
\sum_{\mathrm{out}}\dot m C_pT_j.
</math>
 
 
<!--T:485-->
These equations determine the local mass redistribution and temperature evolution once the hydraulic flow rates are known.
 
 
=== 4.4 Two-volume cylinder–exchanger special case === <!--T:486-->


<math>\boxed{
\frac{dP}{dt}=
\frac{(\gamma-1)(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX})-\gamma P\dot V_{\mathrm{cyl}}}
{V_{\mathrm{cyl}}+V_{HX}}
}.</math>


When <math display="inline">(UA)_{HX}=0</math>:
<!--T:487-->
For the particular case of one cylinder and one heat exchanger connected at quasi-uniform pressure, with no other flow entering or leaving the exchanger directly, define the internal mass flow as positive from cylinder to heat exchanger.


<math>P(V_{\mathrm{cyl}}+V_{HX})^\gamma=\mathrm{const}.</math>


=== 4.2 Internal redistribution flow rate ===
<!--T:488-->
Let:


The internal flow rate is defined as positive from cylinder → heat exchanger. Let:
<!--T:489-->
<math>
N=
V_{HX}\dot P
+
(\gamma-1)(UA)_{HX}
(T_{HX}-T_{HX,\mathrm{res}}).
</math>


<math>N=V_{HX}\dot P+(\gamma-1)(UA)_{HX}(T_{HX}-T_{HX,\mathrm{res}}).</math>


The flow carries the enthalpy of the upstream state:
<!--T:490-->
The internal flow rate is:


<math>\boxed{
<!--T:491-->
\dot m_{\mathrm{int}}=
<math>
\dot m_{\mathrm{int}}
=
\begin{cases}
\begin{cases}
\dfrac{N}{\gamma R T_{\mathrm{cyl}}}, & N\ge0 \quad (\mathrm{cyl}\to HX),\\[6pt]
\dfrac{N}{\gamma RT_{\mathrm{cyl}}},
\dfrac{N}{\gamma R T_{HX}}, & N<0 \quad (HX\to\mathrm{cyl}).
& N\ge0
\quad(\mathrm{cyl}\to HX),\\[6pt]
\dfrac{N}{\gamma RT_{HX}},
& N<0
\quad(HX\to\mathrm{cyl}).
\end{cases}
\end{cases}
}</math>
</math>


The heat-exchanger temperature evolves according to:


<math>\boxed{
<!--T:492-->
\dot T_{HX}=\frac{T_{HX}}{P}\dot P-
The heat-exchanger temperature then satisfies:
\frac{RT_{HX}^2}{PV_{HX}}\dot m_{\mathrm{int}}
 
}.</math>
<!--T:493-->
<math>
\dot T_{HX}
=
\frac{T_{HX}}P\dot P
-
\frac{RT_{HX}^2}{PV_{HX}}
\dot m_{\mathrm{int}}.
</math>
 
 
<!--T:494-->
This special reduction must not be used when an additional external flow enters or leaves the heat exchanger directly; in that case the general balances of §4.1 and §4.3 apply.
 
 
=== 4.5 Single external-flow special cases === <!--T:495-->
 
 
<!--T:496-->
If a quasi-pressure-equalized connected set receives a single external flow <math display="inline">\dot m_{\mathrm{ext}}>0</math> at upstream temperature <math display="inline">T_{\mathrm{ext}}</math>:
 
<!--T:497-->
<math>
\dot P_{\mathcal C}
=
\frac{
\gamma RT_{\mathrm{ext}}\dot m_{\mathrm{ext}}
+
(\gamma-1)\dot Q_{\mathcal C}
-
\gamma P_{\mathcal C}\dot V_{\mathcal C}
}
{V_{\mathcal C}},
</math>
 
<!--T:498-->
with:
 
<!--T:499-->
<math>
\dot M_{\mathcal C}
=
\dot m_{\mathrm{ext}}.
</math>


=== 4.3 Open receiving pair ===


During an active phase, the external flow physically enters the '''receiving cylinder''', not directly its associated heat exchanger. If <math display="inline">\dot m_{\mathrm{ext}}>0</math> enters the cylinder at temperature <math display="inline">T_{\mathrm{ext}}</math>:
<!--T:500-->
If instead the set delivers a single external outflow <math display="inline">\dot m_{\mathrm{ext}}>0</math> from a boundary volume at temperature <math display="inline">T_{\mathrm{out}}</math>:


<math>\boxed{
<!--T:501-->
\dot P=
<math>
\frac{\gamma RT_{\mathrm{ext}}\dot m_{\mathrm{ext}}
\dot P_{\mathcal C}
+(\gamma-1)(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX})
=
-\gamma P\dot V_{\mathrm{cyl}}}
\frac{
{V_{\mathrm{cyl}}+V_{HX}}
-\gamma RT_{\mathrm{out}}\dot m_{\mathrm{ext}}
}.</math>
+
(\gamma-1)\dot Q_{\mathcal C}
-
\gamma P_{\mathcal C}\dot V_{\mathcal C}
}
{V_{\mathcal C}},
</math>


The masses satisfy:
<!--T:502-->
with:


<math>\dot m_{\mathrm{cyl}}=\dot m_{\mathrm{ext}}-\dot m_{\mathrm{int}},\qquad
<!--T:503-->
\dot m_{HX}=\dot m_{\mathrm{int}},</math>
<math>
\dot M_{\mathcal C}
=
-\dot m_{\mathrm{ext}}.
</math>


and therefore:


<math>\dot m_{\mathrm{pair}}=\dot m_{\mathrm{ext}}.</math>
<!--T:504-->
The location at which the external flow crosses the boundary of the connected set affects the local masses and temperatures, but not the summed pressure equation once the set <math display="inline">\mathcal C</math>, the boundary enthalpy flow, and its total heat and volume rates are specified.


The closed case is obtained immediately with <math display="inline">\dot m_{\mathrm{ext}}=0</math>.


== 5. Hydraulic closure ==
== 5. Hydraulic closure == <!--T:100-->


=== 5.1 Generic formulation ===
=== 5.1 Generic formulation === <!--T:101-->


<!--T:102-->
Any hydraulic connection is described by a generic law:
Any hydraulic connection is described by a generic law:


<math>\boxed{\dot m=\Phi(P_u,P_d,T_u,\mathcal G,\mathcal F)}</math>
<!--T:103-->
<math>\dot m=\Phi(P_u,P_d,T_u,\mathcal G,\mathcal F)</math>


<math display="inline">u</math> and <math display="inline">d</math> respectively denote the upstream and downstream states. The transported enthalpy is that of the upstream state:
<!--T:104-->
<math display="inline">u</math> and <math display="inline">d</math> respectively denote the instantaneous upstream and downstream states. The transported enthalpy is that of the upstream state:


<!--T:105-->
<math>\dot H_{\mathrm{mass}}=\dot m C_pT_u.</math>
<math>\dot H_{\mathrm{mass}}=\dot m C_pT_u.</math>


For a bidirectional connection, the upstream state is determined by the actual direction of the pressure gradient. For a check valve, reverse flow is prohibited.
<!--T:106-->
For a bidirectional connection, the upstream state is determined by the actual direction of the pressure gradient. For a check valve, reverse flow is prohibited. On each of the two hydraulic branches, the check valve may be placed on either side of the heat exchanger; the hydraulic law must therefore use the pressures immediately adjacent to the actual valve position.


=== 5.2 First-level closure using a compressible orifice ===
=== 5.2 First-level closure using a compressible orifice === <!--T:107-->


<!--T:108-->
A first approximation consists in using an effective hydraulic area:
A first approximation consists in using an effective hydraulic area:


<!--T:109-->
<math>(C_dA)_{\mathrm{eff}},</math>
<math>(C_dA)_{\mathrm{eff}},</math>


<!--T:110-->
which represents the overall ease of gas flow through the actual connection.
which represents the overall ease of gas flow through the actual connection.


<!--T:111-->
With:
With:


<!--T:112-->
<math>r=\frac{P_d}{P_u},\qquad
<math>r=\frac{P_d}{P_u},\qquad
r_{\mathrm{crit}}=\left(\frac{2}{\gamma+1}\right)^{\gamma/(\gamma-1)},</math>
r_{\mathrm{crit}}=\left(\frac{2}{\gamma+1}\right)^{\gamma/(\gamma-1)},</math>


<!--T:113-->
the unchoked flow rate, for <math display="inline">r>r_{\mathrm{crit}}</math>, is:
the unchoked flow rate, for <math display="inline">r>r_{\mathrm{crit}}</math>, is:


<math>\boxed{
<!--T:114-->
<math>
\dot m=(C_dA)_{\mathrm{eff}}P_u
\dot m=(C_dA)_{\mathrm{eff}}P_u
\sqrt{\frac{2\gamma}{RT_u(\gamma-1)}
\sqrt{\frac{2\gamma}{RT_u(\gamma-1)}
\left(r^{2/\gamma}-r^{(\gamma+1)/\gamma}\right)}
\left(r^{2/\gamma}-r^{(\gamma+1)/\gamma}\right)}
}.</math>
.</math>


<!--T:115-->
For <math display="inline">r\le r_{\mathrm{crit}}</math>:
For <math display="inline">r\le r_{\mathrm{crit}}</math>:


<math>\boxed{
<!--T:116-->
<math>
\dot m=(C_dA)_{\mathrm{eff}}P_u
\dot m=(C_dA)_{\mathrm{eff}}P_u
\sqrt{\frac{\gamma}{RT_u}}
\sqrt{\frac{\gamma}{RT_u}}
\left(\frac{2}{\gamma+1}\right)^{\frac{\gamma+1}{2(\gamma-1)}}
\left(\frac{2}{\gamma+1}\right)^{\frac{\gamma+1}{2(\gamma-1)}}
}.</math>
.</math>


<!--T:117-->
This closure is not essential to the model: it may later be replaced by a law that more faithfully represents the pressure losses of a real heat exchanger, pipe, or check valve.
This closure is not essential to the model: it may later be replaced by a law that more faithfully represents the pressure losses of a real heat exchanger, pipe, or check valve.


== 6. Complete thermodynamic cycle ==
== 6. Complete thermodynamic cycle == <!--T:505-->
 
 
<!--T:506-->
The cycle is described by four successive kinematic and thermodynamic regimes: compression, transfer through <math display="inline">H_o</math>, expansion, and transfer through <math display="inline">H_i</math>. These phases describe the dominant evolution of the machine; they are not defined by the state of the check valves. Valve opening and closing remain determined independently by the instantaneous pressure differences and may occur within a phase rather than exactly at a phase boundary.
 
 
<!--T:507-->
The numbering below follows the refrigeration direction <math display="inline">\omega>0</math>. Motor operation uses the same physical machine with reversed crank direction and is described in §6.6.
 
 
=== 6.1 Thermodynamic rationale of the four phases === <!--T:508-->
 
 
==== 6.1.1 Compression and expansion ==== <!--T:509-->
 
 
<!--T:510-->
Compression and expansion are primarily pressure-changing phases. In the intended kinematics, both cylinder volumes may decrease simultaneously during compression and increase simultaneously during expansion.
 
 
<!--T:511-->
The instantaneous work delivered by the gas is:
 
<!--T:512-->
<math>
\dot W=P_S\dot V_S+P_L\dot V_L.
</math>
 
 
<!--T:513-->
When the two cylinder pressures are of the same order, both piston contributions therefore add during a simultaneous expansion and both contribute to the work required during a simultaneous compression. This allows the swept volumes of both cylinders to participate in the pressure-changing parts of the cycle.
 
 
<!--T:514-->
In an ideal reversible reference cycle, compression and expansion may be considered adiabatic and reversible. This is not imposed on the real machine. The heat exchangers remain thermally coupled to the gas, mass redistribution may continue, and neither check valve is required to be closed during the whole compression or expansion phase.
 
 
==== 6.1.2 Exchange phases ==== <!--T:515-->
 
 
<!--T:516-->
During an exchange phase, gas is transferred from one cylinder to the other through one of the heat exchangers. Hydraulic resistance requires a finite pressure difference to produce a finite mass flow. This pressure difference is intrinsically irreversible.
 
 
<!--T:517-->
For the hydraulic-loss contribution idealized locally as an adiabatic, isenthalpic throttling process of a calorically perfect ideal gas:
 
<!--T:518-->
<math>
h_u=h_d
\quad\Rightarrow\quad
T_u=T_d,
</math>
 
<!--T:519-->
and therefore:
 
<!--T:520-->
<math>
\Delta s_{\mathrm{hyd}}
=
R\ln\left(\frac{P_u}{P_d}\right)>0
\qquad\text{for}\qquad P_u>P_d.
</math>
 
 
<!--T:521-->
The reversible limit is consequently:
 
<!--T:522-->
<math>
P_u-P_d\to0.
</math>
 
 
<!--T:523-->
The exchange phases therefore tend ideally toward quasi-pressure-equalized operation. A finite real machine retains a finite pressure difference because a finite flow must cross the hydraulic resistances.
 
 
<!--T:524-->
Pressure equalization between communicating volumes at a given instant does not, by itself, imply that their common pressure remains constant throughout the exchange. Let <math display="inline">\mathcal C</math> denote a closed set of communicating gas volumes that are approximately at a common pressure <math display="inline">P</math>. For an ideal gas:
 
<!--T:525-->
<math>
M_{\mathcal C}
=
\frac{P}{R}
\sum_{j\in\mathcal C}\frac{V_j}{T_j},
</math>
 
<!--T:526-->
and therefore:
 
<!--T:527-->
<math>
P=
\frac{M_{\mathcal C}R}
{\displaystyle\sum_{j\in\mathcal C}V_j/T_j}.
</math>
 
 
<!--T:528-->
At constant mass, an exactly isobaric evolution requires:
 
<!--T:529-->
<math>
\frac{d}{dt}
\left(
\sum_{j\in\mathcal C}\frac{V_j}{T_j}
\right)=0.
</math>
 
 
<!--T:530-->
Thus the piston motions and the temperature evolution must compensate each other. Equal cylinder-volume changes are neither required nor generally expected.
 
 
<!--T:531-->
The same condition can be expressed through the energy balance. For a quasi-pressure-equalized set:
 
<!--T:532-->
<math>
U_{\mathcal C}
=
\frac{P V_{\mathcal C}}{\gamma-1},
\qquad
V_{\mathcal C}=\sum_{j\in\mathcal C}V_j.
</math>
 
 
<!--T:533-->
Its first-law balance gives:
 
<!--T:534-->
<math>
V_{\mathcal C}\dot P
=
(\gamma-1)\dot Q_{\mathcal C}
-\gamma P\dot V_{\mathcal C}.
</math>
 
 
<!--T:535-->
An approximately isobaric exchange therefore satisfies:
 
<!--T:536-->
<math>
\gamma P\dot V_{\mathcal C}
\approx
(\gamma-1)\dot Q_{\mathcal C}.
</math>
 
 
<!--T:537-->
The volume evolution imposed by the pistons can consequently compensate the thermal expansion or contraction produced by heat transfer, allowing substantial mass transfer while the common pressure remains nearly constant.
 


=== 6.1 Phase I — check valves closed, nominally adiabatic: compression on the L side ===
<!--T:538-->
A useful first-order cylinder-sizing relation follows from the same condition. Over a sufficiently small part of an isobaric exchange, if the donor and receiver temperatures may be treated as locally constant and the temperature-storage terms of the fixed exchanger volumes are secondary, then:


Both check valves are closed. The <code>L+H</code> and <code>S+C</code> pairs are closed. The <code>L+H</code> side is nominally compressed; the motion of the small piston remains that provided by the actual kinematics.
<!--T:539-->
<math>
\frac{dV_r}{T_r}
\approx
-\frac{dV_d}{T_d},
</math>


For <code>L+H</code>:
<!--T:540-->
hence:


<math>\dot P_{LH}=
<!--T:541-->
\frac{(\gamma-1)(UA)_H(T_{H,\mathrm{res}}-T_H)-\gamma P_{LH}\dot V_L}
<math>
{V_L+V_H}.</math>
\frac{dV_r}{-dV_d}
\approx
\frac{T_r}{T_d}
.
</math>


For <code>S+C</code>:


<math>\dot P_{SC}=
<!--T:542-->
\frac{(\gamma-1)(UA)_C(T_{C,\mathrm{res}}-T_C)-\gamma P_{SC}\dot V_S}
The hotter side therefore requires a larger volume change for the same transferred gas mass at the same pressure. When the exchange uses comparable fractions of the available cylinder strokes and the gas temperatures remain close to characteristic working temperatures <math display="inline">T_h</math> and <math display="inline">T_c</math>, this gives the first-order geometric scaling:
{V_S+V_C}.</math>


The internal redistribution and temperature equations of §4 apply to both pairs.
<!--T:543-->
<math>


The transition to Phase II occurs when the <code>H → S</code> check valve satisfies its opening condition.
<!--T:544-->
\frac{V_{\mathrm{swept},h}}
{V_{\mathrm{swept},c}}
\sim
\frac{T_h}{T_c}
.
</math>


=== 6.2 Phase II — heat exchange, nominally isothermal: L → H → S ===


The gas leaves <code>L</code>, passes through the hot heat exchanger <code>H</code>, where it rejects heat, crosses the <code>H → S</code> check valve, and then enters the receiving cylinder <code>S</code>. The <code>S+C</code> pair remains quasi pressure-equalized if the criterion <math display="inline">\varepsilon_P\ll1</math> is satisfied.
<!--T:545-->
Temperatures must be expressed in kelvin. This relation is a sizing guide, not an exact design constraint: exchanger hold-up, clearance volumes, temperature evolution during the exchange, finite pressure losses, and the compression and expansion phases can all shift the optimum. When these effects are significant, the complete condition involving <math display="inline">\sum V_j/T_j</math> must be used instead.


==== 6.2.1 Donor cylinder L ====


The fundamental balance is:
<!--T:546-->
These relations explain why a low-loss exchange naturally tends toward both small pressure differences along the hydraulic path and, with suitable piston kinematics, a nearly constant pressure throughout the exchange. Exact isobaricity is not imposed as a thermodynamic constraint.


<math>\boxed{
\frac{d(m_LC_vT_L)}{dt}
=-P_L\dot V_L-\dot m_{L,\mathrm{out}}C_pT_L
}.</math>


The kinematics are designed to maintain an outflow from the donor cylinder. In this case, the analytical solution is:
==== 6.1.3 Balance equations valid throughout the cycle ==== <!--T:547-->


<math>\boxed{
\frac{T_L}{T_{L,\mathrm{ref}}}=
\left[\frac{m_L}{m_{L,\mathrm{ref}}}\frac{V_{L,\mathrm{ref}}}{V_L}\right]^{\gamma-1}
}</math>


and:
<!--T:548-->
The four control volumes remain <math display="inline">S</math>, <math display="inline">H_i</math>, <math display="inline">L</math>, and <math display="inline">H_o</math>. Define the signed mass flow rates:
 
<!--T:549-->
<math>
\dot m_{Si}: S\to H_i,\qquad
\dot m_{iL}: H_i\to L,
</math>
 
<!--T:550-->
<math>
\dot m_{Lo}: L\to H_o,\qquad
\dot m_{oS}: H_o\to S.
</math>
 
 
<!--T:551-->
The positive directions correspond to the permanent circulation directions of the two branches:
 
<!--T:552-->
<math>
S\to H_i\to L,
\qquad
L\to H_o\to S.
</math>
 
 
<!--T:553-->
Each branch contains one passive check valve. Its position relative to the heat exchanger is a design choice:
 
<!--T:554-->
<math>
S\to \mathrm{CV}_i\to H_i\to L
\quad\text{or}\quad
S\to H_i\to \mathrm{CV}_i\to L,
</math>
 
<!--T:555-->
<math>
L\to \mathrm{CV}_o\to H_o\to S
\quad\text{or}\quad
L\to H_o\to \mathrm{CV}_o\to S.
</math>
 
 
<!--T:556-->
The check valve constrains the link on which it is installed; the other link may be bidirectional according to its hydraulic law.
 
 
<!--T:557-->
Let <math display="inline">\dot H_{ab}</math> denote the signed enthalpy transport from volume <math display="inline">a</math> toward volume <math display="inline">b</math>. For a calorically perfect gas:
 
<!--T:558-->
<math>
\dot H_{ab}=
\begin{cases}
\dot m_{ab}C_pT_a, & \dot m_{ab}\ge0,\\[4pt]
\dot m_{ab}C_pT_b, & \dot m_{ab}<0.
\end{cases}
</math>
 
 
<!--T:559-->
The mass balances are then:
 
<!--T:560-->
<math>
\dot m_S=\dot m_{oS}-\dot m_{Si},
</math>
 
<!--T:561-->
<math>
\dot m_i=\dot m_{Si}-\dot m_{iL},
</math>
 
<!--T:562-->
<math>
\dot m_L=\dot m_{iL}-\dot m_{Lo},
</math>
 
<!--T:563-->
<math>
\dot m_o=\dot m_{Lo}-\dot m_{oS}.
</math>
 
 
<!--T:564-->
The corresponding energy balances are:
 
<!--T:565-->
<math>
\dot U_S
=
\dot H_{oS}-\dot H_{Si}
-P_S\dot V_S,
</math>
 
<!--T:566-->
<math>
\dot U_i
=
\dot H_{Si}-\dot H_{iL}
+\dot Q_i,
</math>
 
<!--T:567-->
<math>
\dot U_L
=
\dot H_{iL}-\dot H_{Lo}
-P_L\dot V_L,
</math>
 
<!--T:568-->
<math>
\dot U_o
=
\dot H_{Lo}-\dot H_{oS}
+\dot Q_o.
</math>
 
 
<!--T:569-->
These equations are valid during all four phases. The phase determines the prescribed piston motion and the dominant thermodynamic process; the hydraulic laws and pressure differences determine the actual flow rates and check-valve states.
 
 
=== 6.2 Phase I — compression === <!--T:570-->
 
 
<!--T:571-->
During compression, the two cylinder volumes may decrease simultaneously:
 
<!--T:572-->
<math>
\dot V_S<0,\qquad \dot V_L<0
</math>
 
<!--T:573-->
over the principal part of the phase.
 
 
<!--T:574-->
The pressure rises from the lower exchange-pressure region toward the higher one. Both pistons may contribute to the compression work.
 
 
<!--T:575-->
No closed-pair topology is imposed. A check valve may remain open during part of the compression, and gas may continue to move through the hydraulic network. In particular, a cylinder approaching its minimum volume may transfer its remaining gas toward the other cylinder. Heat transfer through <math display="inline">H_i</math> and <math display="inline">H_o</math> also remains active.
 
 
<!--T:576-->
The actual evolution is therefore calculated from the complete balances of §6.1.3. Adiabatic compression is only the reversible reference limit described in §6.1.1.
 
 
<!--T:577-->
The end of the compression phase is defined by the prescribed kinematic law, not by a check-valve event.
 
 
=== 6.3 Phase II — exchange through Ho: L → Ho → S === <!--T:578-->
 
 
<!--T:579-->
The dominant circulation is:
 
<!--T:580-->
<math>
L\to H_o\to S.
</math>
 
 
<!--T:581-->
The gas leaves the large-cylinder side, passes through the heat-out branch, and reaches the small-cylinder side. The passive check valve <math display="inline">\mathrm{CV}_o</math> may be located either before or after <math display="inline">H_o</math>; in both cases it enforces the same net branch direction.
 
 
<!--T:582-->
During the exchange, <math display="inline">L</math> acts predominantly as donor and <math display="inline">S</math> as receiver. Their volume changes need not have equal magnitudes. In the quasi-isobaric limit their first-order ratio follows the temperature relation derived in §6.1.2.
 
 
<!--T:583-->
The heat-out exchanger removes heat from the gas:
 
<!--T:584-->
<math>
\dot Q_o<0
</math>
 
<!--T:585-->
in the intended operating regime.
 
 
<!--T:586-->
The ideal exchange tends toward small pressure differences along the active path and an approximately constant pressure over the phase. The finite real pressure differences required to drive the flow are determined by the hydraulic closure of §5.
 
 
<!--T:587-->
The state of the other check valve and any secondary redistribution flow are determined by the instantaneous pressures; they are not prescribed by the phase definition.
 
 
=== 6.4 Phase III — expansion === <!--T:588-->
 
 
<!--T:589-->
During expansion, the two cylinder volumes may increase simultaneously:
 
<!--T:590-->
<math>
\dot V_S>0,\qquad \dot V_L>0
</math>
 
<!--T:591-->
over the principal part of the phase.
 
 
<!--T:592-->
The pressure decreases from the higher exchange-pressure region toward the lower one. Both pistons may then contribute simultaneously to the work delivered by the gas.


<math>\boxed{
P_L=P_{L,\mathrm{ref}}
\left[\frac{m_L}{m_{L,\mathrm{ref}}}\frac{V_{L,\mathrm{ref}}}{V_L}\right]^\gamma
}.</math>


One also obtains:
<!--T:593-->
As during compression, no zero-flow or closed-valve condition is imposed. Mass redistribution may continue and both heat exchangers remain thermally active. The complete balances of §6.1.3 therefore remain applicable.


<math>\frac{T_L}{T_{L,\mathrm{ref}}}=
\left(\frac{P_L}{P_{L,\mathrm{ref}}}\right)^{(\gamma-1)/\gamma},</math>


and the specific entropy of the remaining gas satisfies <math display="inline">ds=0</math> under these assumptions. If reverse flow occurs despite the kinematic design, the analytical solution is no longer applicable and the complete open-system balance in <math display="inline">(m_L,U_L)</math> must be used.
<!--T:594-->
Adiabatic expansion is the reversible reference limit, not a required operating condition of the real machine.


==== 6.2.2 Hot heat exchanger H ====


Mass conservation:
<!--T:595-->
The end of the expansion phase is determined by the prescribed kinematic law independently of the check-valve events.


<math>\boxed{\dot m_H=\dot m_{\mathrm{in}}-\dot m_{\mathrm{out}}}.</math>


Fundamental energy balance:
=== 6.5 Phase IV — exchange through Hi: S → Hi → L === <!--T:596-->


<math>\boxed{
\frac{d(m_HC_vT_H)}{dt}
=\dot m_{\mathrm{in}}C_pT_L
-\dot m_{\mathrm{out}}C_pT_H
+(UA)_H(T_{H,\mathrm{res}}-T_H)
}.</math>


In expanded form:
<!--T:597-->
The dominant circulation is:


<math>\boxed{
<!--T:598-->
\dot T_H=
<math>
\frac{\dot m_{\mathrm{in}}(C_pT_L-C_vT_H)
S\to H_i\to L.
-\dot m_{\mathrm{out}}RT_H
</math>
+(UA)_H(T_{H,\mathrm{res}}-T_H)}
{C_vm_H}
}.</math>


The flow rates are determined by the hydraulic laws:


<math>\dot m_{\mathrm{in}}=\Phi_{\mathrm{HX,H}}(P_L,P_H,T_L,\ldots),</math>
<!--T:599-->
The gas leaves the small-cylinder side, passes through the heat-in branch, and reaches the large-cylinder side. The passive check valve <math display="inline">\mathrm{CV}_i</math> may be located either before or after <math display="inline">H_i</math>; both arrangements impose the same net branch direction.


<math>\dot m_{\mathrm{out}}=\Phi_{\mathrm{valve,H}}(P_H,P_{SC},T_H,\ldots).</math>


==== 6.2.3 Receiving pair S+C ====
<!--T:600-->
During the exchange, <math display="inline">S</math> acts predominantly as donor and <math display="inline">L</math> as receiver. Their required volume changes depend on the temperatures of the gas on the two sides according to the relations of §6.1.2.


The flow from <code>H</code> enters '''S'''. The pair pressure satisfies:


<math>\boxed{
<!--T:601-->
\dot P_{SC}=
The heat-in exchanger supplies heat to the gas:
\frac{\gamma R\dot m_{\mathrm{out}}T_H
+(\gamma-1)(UA)_C(T_{C,\mathrm{res}}-T_C)
-\gamma P_{SC}\dot V_S}
{V_S+V_C}
}.</math>


The internal redistribution equations of §4 remain unchanged: the external flow acts on heat exchanger <code>C</code> indirectly through the evolution of the pair pressure.
<!--T:602-->
<math>
\dot Q_i>0
</math>


The transition to Phase III is the closing event of the <code>H → S</code> check valve.
<!--T:603-->
in the intended operating regime.


=== 6.3 Phase III — check valves closed, nominally adiabatic: expansion on the S side ===


Both check valves are closed. The <code>S+C</code> pair expands nominally; the <code>L+H</code> pair also remains closed. Neither piston is assumed to be strictly stationary.
<!--T:604-->
As in Phase II, the ideal exchange tends toward quasi-pressure-equalized and approximately isobaric operation, while the real mass flow requires finite hydraulic pressure differences.


For <code>S+C</code>:


<math>\dot P_{SC}=
<!--T:605-->
\frac{(\gamma-1)(UA)_C(T_{C,\mathrm{res}}-T_C)-\gamma P_{SC}\dot V_S}
After this phase, the prescribed kinematics return to the compression region and the four-phase sequence repeats. Thermodynamic closure nevertheless requires the complete state vector, and not only the piston geometry, to be periodic.
{V_S+V_C}.</math>


For <code>L+H</code>:


<math>\dot P_{LH}=
=== 6.6 Motor operation === <!--T:606-->
\frac{(\gamma-1)(UA)_H(T_{H,\mathrm{res}}-T_H)-\gamma P_{LH}\dot V_L}
{V_L+V_H}.</math>


The transition to Phase IV occurs when the <code>C → L</code> check valve satisfies its opening condition.


=== 6.4 Phase IV — heat exchange, nominally isothermal: S → C → L ===
<!--T:607-->
No second set of mass, energy, heat-transfer, or hydraulic equations is required for motor operation.


The gas leaves <code>S</code>, passes through the cold heat exchanger <code>C</code>, where it receives heat from the cold reservoir, crosses the <code>C → L</code> check valve, and then enters the receiving cylinder <code>L</code>. The <code>L+H</code> pair remains quasi pressure-equalized if the criterion <math display="inline">\varepsilon_P\ll1</math> is satisfied.


==== 6.4.1 Donor cylinder S ====
<!--T:608-->
The physical branch directions remain:


The fundamental balance is:
<!--T:609-->
<math>
S\to H_i\to L,
\qquad
L\to H_o\to S,
</math>


<math>\boxed{
<!--T:610-->
\frac{d(m_SC_vT_S)}{dt}
and the positions and orientations of the two passive check valves remain unchanged.
=-P_S\dot V_S-\dot m_{S,\mathrm{out}}C_pT_S
}.</math>


For outflow guaranteed by the kinematic design:


<math>\boxed{
<!--T:611-->
\frac{T_S}{T_{S,\mathrm{ref}}}=
Motor operation is obtained by reversing the crank direction:
\left[\frac{m_S}{m_{S,\mathrm{ref}}}\frac{V_{S,\mathrm{ref}}}{V_S}\right]^{\gamma-1}
}</math>


and:
<!--T:612-->
<math>
\omega<0,
</math>


<math>\boxed{
<!--T:613-->
P_S=P_{S,\mathrm{ref}}
and exchanging the external reservoirs connected to the two heat exchangers:
\left[\frac{m_S}{m_{S,\mathrm{ref}}}\frac{V_{S,\mathrm{ref}}}{V_S}\right]^\gamma
}.</math>


Reverse flow requires returning to the complete open-system balance in <math display="inline">(m_S,U_S)</math>.
<!--T:614-->
<math>
T_{i,\mathrm{res}}=T_{\mathrm{hot}},
\qquad
T_{o,\mathrm{res}}=T_{\mathrm{cold}}.
</math>


==== 6.4.2 Cold heat exchanger C ====


<math>\boxed{\dot m_C=\dot m_{\mathrm{in}}-\dot m_{\mathrm{out}}}.</math>
<!--T:615-->
The geometric cycle is therefore traversed in the opposite direction. Pressure histories, mass flow rates, check-valve events, and the periodic thermodynamic state must all be recalculated; the refrigeration valve chronology is not assumed simply to carry over.


The fundamental energy balance is:


<math>\boxed{
<!--T:616-->
\frac{d(m_CC_vT_C)}{dt}
In the intended refrigeration operation, the <math display="inline">L\to H_o\to S</math> transfer occurs on the high-pressure side of the cycle, whereas the <math display="inline">S\to H_i\to L</math> transfer occurs on the low-pressure side.
=\dot m_{\mathrm{in}}C_pT_S
-\dot m_{\mathrm{out}}C_pT_C
+(UA)_C(T_{C,\mathrm{res}}-T_C)
}.</math>


In expanded form:
<!--T:617-->
In the intended motor operation, reversal of the crank direction reverses these pressure roles: <math display="inline">L\to H_o\to S</math> becomes the low-pressure exchange, whereas <math display="inline">S\to H_i\to L</math> becomes the high-pressure exchange.


<math>\boxed{
<!--T:618-->
\dot T_C=
The physical thermal functions of the exchangers do not change: <math display="inline">H_i</math> always transfers heat into the gas and <math display="inline">H_o</math> always transfers heat out of the gas.
\frac{\dot m_{\mathrm{in}}(C_pT_S-C_vT_C)
-\dot m_{\mathrm{out}}RT_C
+(UA)_C(T_{C,\mathrm{res}}-T_C)}
{C_vm_C}
}.</math>


The flow rates are determined by:


<math>\dot m_{\mathrm{in}}=\Phi_{\mathrm{HX,C}}(P_S,P_C,T_S,\ldots),</math>
<!--T:619-->
The heat-in exchanger absorbs heat from the hot reservoir:


<math>\dot m_{\mathrm{out}}=\Phi_{\mathrm{valve,C}}(P_C,P_{LH},T_C,\ldots).</math>
<!--T:620-->
<math>
Q_i>0,
</math>


==== 6.4.3 Receiving pair L+H ====
<!--T:621-->
the heat-out exchanger rejects heat to the cold reservoir:


The flow from <code>C</code> enters '''L'''. The pair pressure satisfies:
<!--T:622-->
<math>
Q_o<0,
</math>


<math>\boxed{
<!--T:623-->
\dot P_{LH}=
and motor operation is obtained when:
\frac{\gamma R\dot m_{\mathrm{out}}T_C
+(\gamma-1)(UA)_H(T_{H,\mathrm{res}}-T_H)
-\gamma P_{LH}\dot V_L}
{V_L+V_H}
}.</math>


Closing the <code>C → L</code> check valve returns the system to Phase I. Geometric closure of the pistons alone is not sufficient to guarantee thermodynamic closure of the cycle.
<!--T:624-->
<math>
W_{\mathrm{cycle}}>0.
</math>


== 7. Physical transitions of the check valves ==
== 7. Physical transitions of the check valves == <!--T:184-->


<!--T:185-->
For a check valve oriented from upstream <math display="inline">u</math> to downstream <math display="inline">d</math>:
For a check valve oriented from upstream <math display="inline">u</math> to downstream <math display="inline">d</math>:


<!--T:186-->
<math>P_u-P_d\ge\Delta P_{\mathrm{open}}
<math>P_u-P_d\ge\Delta P_{\mathrm{open}}
\quad\Rightarrow\quad \text{opening},</math>
\quad\Rightarrow\quad \text{opening},</math>


<!--T:187-->
<math>P_u-P_d\le\Delta P_{\mathrm{close}}
<math>P_u-P_d\le\Delta P_{\mathrm{close}}
\quad\Rightarrow\quad \text{closing},</math>
\quad\Rightarrow\quad \text{closing},</math>


<!--T:188-->
with hysteresis, if present:
with hysteresis, if present:


<math>\boxed{\Delta P_{\mathrm{close}}\le\Delta P_{\mathrm{open}}}.</math>
<!--T:189-->
<math>\Delta P_{\mathrm{close}}\le\Delta P_{\mathrm{open}}.</math>


An opening or closing event changes the hydraulic topology and therefore the active equations; it does not cause any instantaneous jump in the thermodynamic state. For each volume:
<!--T:190-->
An opening or closing event changes the admissible hydraulic flow on the valve link; it does not define a kinematic phase boundary and it does not cause any instantaneous jump in the thermodynamic state. For each volume:


<math>m_i^+=m_i^-,\qquad U_i^+=U_i^-,\qquad V_i^+=V_i^-.</math>
<!--T:191-->
<math>m_j^+=m_j^-,\qquad U_j^+=U_j^-,\qquad V_j^+=V_j^-.</math>


<!--T:192-->
For an ideal gas:
For an ideal gas:


<math>T_i^+=T_i^-,\qquad P_i^+=P_i^-.</math>
<!--T:193-->
<math>T_j^+=T_j^-,\qquad P_j^+=P_j^-.</math>


<!--T:194-->
There is therefore no instantaneous pressure equalization when a check valve opens.
There is therefore no instantaneous pressure equalization when a check valve opens.


The values <math display="inline">\Lambda^*</math> serve as kinematic design targets; the values actually observed at the transitions are <math display="inline">\Lambda_{\mathrm{real}}=\Lambda(t_{\mathrm{event}})</math>.
<!--T:195-->
The values <math display="inline">\Lambda^*</math> may serve as kinematic reference levels at selected phase boundaries; the values actually observed at check-valve events are <math display="inline">\Lambda_{\mathrm{real}}=\Lambda(t_{\mathrm{event}})</math>.
 
<!--T:408-->
The two passive check valves have permanent branch orientations: one permits circulation along <math display="inline">L\to H_o\to S</math>, the other along <math display="inline">S\to H_i\to L</math>.
 
<!--T:409-->
Each valve may be installed upstream or downstream of its heat exchanger. Its opening and closing conditions therefore use the pressures immediately adjacent to its actual position.


== 8. Work, heat, and coefficient of performance ==
<!--T:410-->
The opening and closing laws are identical in both operating modes. Only the pressure histories change because the crank kinematics are reversed in motor operation.


The instantaneous work delivered by the gas on the two pistons is calculated during all phases:
== 8. Work, heat, and performance == <!--T:196-->


<math>\boxed{
<!--T:197-->
\dot W=P_S^\star\dot V_S+P_L^\star\dot V_L
The instantaneous work delivered by the gas on the two pistons is calculated during all phases from the actual cylinder pressures:
}.</math>


<math display="inline">P_S^\star</math> and <math display="inline">P_L^\star</math> denote the thermodynamic pressure effectively applied to the gas in each cylinder according to the phase topology: pair pressure when the cylinder belongs to a quasi pressure-equalized pair, and its own pressure when it is a hydraulically isolated donor.
<!--T:198-->
<math>
\dot W=P_S\dot V_S+P_L\dot V_L
.</math>


<!--T:200-->
The net work over the cycle is:
The net work over the cycle is:


<math>\boxed{
<!--T:201-->
<math>
W_{\mathrm{cycle}}=
W_{\mathrm{cycle}}=
\int_0^\tau
\int_0^\tau
\left(P_S^\star\dot V_S+P_L^\star\dot V_L\right)dt
\left(P_S\dot V_S+P_L\dot V_L\right)dt
}.</math>
.</math>
 
 
<!--T:625-->
When the two cylinder pressures are comparable during a pressure-changing phase,
 
<!--T:626-->
<math>
\dot W\approx P(\dot V_S+\dot V_L).
</math>
 
<!--T:627-->
If both cylinders contract during compression, or both expand during expansion, their work contributions therefore add instead of partly cancelling. This allows a larger fraction of the available swept volume to participate in compression and expansion for a comparable pressure history. It does not by itself prove a higher thermal efficiency, because the heat transfers and the resulting pressure history change at the same time.


<!--T:202-->
The exchanged heats are:
The exchanged heats are:


<math>Q_C=\int_0^\tau (UA)_C(T_{C,\mathrm{res}}-T_C)\,dt,</math>
<!--T:203-->
<math>Q_i=\int_0^\tau (UA)_i(T_{i,\mathrm{res}}-T_i)\,dt,</math>


<math>Q_H=\int_0^\tau (UA)_H(T_{H,\mathrm{res}}-T_H)\,dt.</math>
<!--T:204-->
<math>Q_o=\int_0^\tau (UA)_o(T_{o,\mathrm{res}}-T_o)\,dt.</math>


<!--T:205-->
In periodic steady operation:
In periodic steady operation:


<!--T:206-->
<math>\Delta U_{\mathrm{cycle}}=0,</math>
<math>\Delta U_{\mathrm{cycle}}=0,</math>


<!--T:207-->
and the first law gives:
and the first law gives:


<math>\boxed{Q_C+Q_H=W_{\mathrm{cycle}}}.</math>
<!--T:208-->
<math>Q_i+Q_o=W_{\mathrm{cycle}}.</math>


<!--T:209-->
The refrigeration COP is:
The refrigeration COP is:


<math>\boxed{COP_c=\frac{Q_C}{-W_{\mathrm{cycle}}}}.</math>
<!--T:210-->
<math>COP_c=\frac{Q_i}{-W_{\mathrm{cycle}}}.</math>


<!--T:211-->
The heat-pump COP is:
The heat-pump COP is:


<math>\boxed{COP_h=\frac{-Q_H}{-W_{\mathrm{cycle}}}=COP_c+1}.</math>
<!--T:212-->
<math>COP_h=\frac{-Q_o}{-W_{\mathrm{cycle}}}=COP_c+1.</math>
 
<!--T:213-->
The signs <math display="inline">Q_i>0</math>, <math display="inline">Q_o<0</math>, and <math display="inline">W_{\mathrm{cycle}}<0</math> provide checks of the intended refrigeration regime.


The signs <math display="inline">Q_C>0</math>, <math display="inline">Q_H<0</math>, and <math display="inline">W_{\mathrm{cycle}}<0</math> provide checks of the intended refrigeration regime.
<!--T:411-->
For motor operation:


The thermodynamic force exerted by the gas on a piston face may be written <math display="inline">F_{\mathrm{gas}}=PS</math>. Net mechanical force, inertia, and friction belong to the subsequent mechanical sizing stage.
<!--T:412-->
<math>Q_i>0,\qquad Q_o<0,\qquad W_{\mathrm{cycle}}>0.</math>


== 9. Gas charge and periodic regime ==
<!--T:413-->
The thermal efficiency is:


<!--T:414-->
<math>
\eta_{\mathrm{th}}
=
\frac{W_{\mathrm{cycle}}}{Q_i}
=
1+\frac{Q_o}{Q_i}.
</math>
<!--T:415-->
The mean thermodynamic motor power is:
<!--T:416-->
<math>
\overline{\dot W}
=
\frac{W_{\mathrm{cycle}}}{\tau}.
</math>
<!--T:214-->
The thermodynamic force exerted by the gas on a piston face may be written <math display="inline">F_{\mathrm{gas}}=PS</math>. Net mechanical force, inertia, and friction belong to the subsequent mechanical sizing phase.
== 9. Gas charge and periodic regime == <!--T:215-->
<!--T:216-->
The total amount of enclosed gas is a physical parameter:
The total amount of enclosed gas is a physical parameter:


<math>\boxed{M_{\mathrm{tot}}=m_S+m_L+m_C+m_H=\mathrm{const}}.</math>
<!--T:217-->
<math>M_{\mathrm{tot}}=m_S+m_L+m_i+m_o=\mathrm{const}.</math>


<!--T:218-->
It may be imposed directly or defined experimentally by a charging pressure and temperature. The chosen reference configuration is that at <math display="inline">t=0</math>, with the large cylinder at maximum volume. If all volumes communicate and are in uniform equilibrium during charging:
It may be imposed directly or defined experimentally by a charging pressure and temperature. The chosen reference configuration is that at <math display="inline">t=0</math>, with the large cylinder at maximum volume. If all volumes communicate and are in uniform equilibrium during charging:


<math>\boxed{
<!--T:219-->
<math>
M_{\mathrm{tot}}=
M_{\mathrm{tot}}=
\frac{P_{\mathrm{charge}}
\frac{P_{\mathrm{charge}}
\left[V_S(0)+V_{L,\max}+V_C+V_H\right]}
\left[V_S(0)+V_{L,\max}+V_i+V_o\right]}
{RT_{\mathrm{charge}}}
{RT_{\mathrm{charge}}}
}.</math>
.</math>


<!--T:220-->
<math display="inline">P_{\mathrm{charge}}</math> and <math display="inline">T_{\mathrm{charge}}</math> define the amount of gas charged; they are not conditions that the periodic cycle must recover.
<math display="inline">P_{\mathrm{charge}}</math> and <math display="inline">T_{\mathrm{charge}}</math> define the amount of gas charged; they are not conditions that the periodic cycle must recover.


The established periodic regime is a solution of the system such that, between two successive passages through the top position of the large cylinder with the same kinematic direction:
<!--T:221-->
The established periodic regime is a solution of the system such that, between two successive passages through the maximum volume of the large cylinder with the same kinematic direction:


<math>\boxed{\mathbf X(t+\tau)=\mathbf X(t)}.</math>
<!--T:222-->
<math>\mathbf X(t+\tau)=\mathbf X(t).</math>


<!--T:223-->
Geometric periodicity alone:
Geometric periodicity alone:


<math>V_i(t+\tau)=V_i(t)</math>
<!--T:224-->
<math>V_k(t+\tau)=V_k(t),\qquad k\in\{S,L\}.</math>


<!--T:225-->
is not sufficient to guarantee thermodynamic periodicity.
is not sufficient to guarantee thermodynamic periodicity.


<!--T:226-->
The numerical state used to initialize a calculation may be approximate; it must not be confused with a physical parameter of the machine. The future solver may search for the periodic fixed point by successive cycles, a shooting method, or a Newton method.
The numerical state used to initialize a calculation may be approximate; it must not be confused with a physical parameter of the machine. The future solver may search for the periodic fixed point by successive cycles, a shooting method, or a Newton method.


== 10. Parameters, design data, and results ==
== 10. Parameters, design data, and results == <!--T:227-->


=== 10.1 Prescribed data ===
=== 10.1 Prescribed data === <!--T:228-->


<!--T:229-->
* operating mode;
* reservoir temperatures <math display="inline">T_{\mathrm{cold}}</math> and  <math display="inline">T_{\mathrm{hot}}</math>;
* signed crank angular velocity <math display="inline">\omega</math>.
* working fluid and reference properties <math display="inline">R</math>, <math display="inline">C_p</math>, <math display="inline">C_v</math>, <math display="inline">\gamma</math>;
* working fluid and reference properties <math display="inline">R</math>, <math display="inline">C_p</math>, <math display="inline">C_v</math>, <math display="inline">\gamma</math>;
* reservoir temperatures <math display="inline">T_{C,\mathrm{res}}</math>, <math display="inline">T_{H,\mathrm{res}}</math>;
* total charge <math display="inline">M_{\mathrm{tot}}</math>, or equivalently <math display="inline">(P_{\mathrm{charge}},T_{\mathrm{charge}})</math> in the charging configuration defined in §9;
* total charge <math display="inline">M_{\mathrm{tot}}</math>, or equivalently <math display="inline">(P_{\mathrm{charge}},T_{\mathrm{charge}})</math> in the charging configuration defined in §9;
* kinematics <math display="inline">V_S(t)</math>, <math display="inline">V_L(t)</math>, and, where relevant, <math display="inline">\omega</math>.
* kinematics <math display="inline">V_S(t)</math>, <math display="inline">V_L(t)</math>.


=== 10.2 Design parameters ===
=== 10.2 Design parameters === <!--T:230-->


<!--T:231-->
* <math display="inline">V_{S,\min}</math>, <math display="inline">V_{S,\max}</math>, <math display="inline">V_{L,\min}</math>, <math display="inline">V_{L,\max}</math>;
* <math display="inline">V_{S,\min}</math>, <math display="inline">V_{S,\max}</math>, <math display="inline">V_{L,\min}</math>, <math display="inline">V_{L,\max}</math>;
* <math display="inline">V_C</math>, <math display="inline">V_H</math>;
* <math display="inline">V_i</math>, <math display="inline">V_o</math>;
* <math display="inline">(UA)_C</math>, <math display="inline">(UA)_H</math>;
* <math display="inline">(UA)_i</math>, <math display="inline">(UA)_o</math>;
* hydraulic parameters of the heat exchangers, pipes, and check valves, represented at first level by <math display="inline">(C_dA)_{\mathrm{eff}}</math>;
* hydraulic parameters of the heat exchangers, pipes, and check valves, represented at first level by <math display="inline">(C_dA)_{\mathrm{eff}}</math>;
* thresholds <math display="inline">\Delta P_{\mathrm{open}}</math>, <math display="inline">\Delta P_{\mathrm{close}}</math>;
* thresholds <math display="inline">\Delta P_{\mathrm{open}}</math>, <math display="inline">\Delta P_{\mathrm{close}}</math>;
* kinematic targets <math display="inline">\Lambda_L^*</math>, <math display="inline">\Lambda_S^*</math>.
* position of each check valve upstream or downstream of its heat exchanger;
* kinematic reference levels <math display="inline">\Lambda_L^*</math>, <math display="inline">\Lambda_S^*</math>, when used.


=== 10.3 Calculated variables and results ===
=== 10.3 Calculated variables and results === <!--T:232-->


* <math display="inline">m_i</math>, <math display="inline">U_i</math>, <math display="inline">T_i</math>, <math display="inline">P_i</math>;
<!--T:233-->
* <math display="inline">m_j,U_j,T_j,P_j,\qquad j\in\{S,L,i,o\}</math>;
* internal and external mass flow rates;
* internal and external mass flow rates;
* <math display="inline">\dot Q_C</math>, <math display="inline">\dot Q_H</math>, <math display="inline">Q_C</math>, <math display="inline">Q_H</math>;
* <math display="inline">\dot Q_i</math>, <math display="inline">\dot Q_o</math>, <math display="inline">Q_i</math>, <math display="inline">Q_o</math>;
* <math display="inline">W_{\mathrm{cycle}}</math>, <math display="inline">COP_c</math>, <math display="inline">COP_h</math>;
* <math display="inline">W_{\mathrm{cycle}}</math>, <math display="inline">COP_c</math>, <math display="inline">COP_h</math>;
* <math display="inline">\eta_{\mathrm{th}}</math> in motor operation.
* pressure, temperature, and flow-rate extrema;
* pressure, temperature, and flow-rate extrema;
* actual check-valve events and <math display="inline">\Lambda_{\mathrm{real}}</math>;
* actual check-valve events and <math display="inline">\Lambda_{\mathrm{real}}</math>;
* isothermal quality <math display="inline">\varepsilon_T</math>;
* validity criteria <math display="inline">\varepsilon_P</math>, <math display="inline">Ma</math>, <math display="inline">Z</math>, and property variations.
* validity criteria <math display="inline">\varepsilon_P</math>, <math display="inline">Ma</math>, <math display="inline">Z</math>, and property variations.


== 11. Global conservation checks ==
== 11. Global conservation checks == <!--T:234-->


=== 11.1 Mass conservation ===
=== 11.1 Mass conservation === <!--T:235-->


<!--T:236-->
The solver must satisfy:
The solver must satisfy:


<math>\boxed{\frac{dM_{\mathrm{tot}}}{dt}=0}.</math>
<!--T:237-->
<math>\frac{dM_{\mathrm{tot}}}{dt}=0.</math>


<!--T:238-->
A useful numerical residual is:
A useful numerical residual is:


<math>\boxed{\varepsilon_M(t)=M_{\mathrm{tot}}(t)-M_{\mathrm{tot}}(0)}.</math>
<!--T:239-->
<math>\varepsilon_M(t)=M_{\mathrm{tot}}(t)-M_{\mathrm{tot}}(0).</math>


=== 11.2 Global energy conservation ===
=== 11.2 Global energy conservation === <!--T:240-->


<!--T:241-->
Whatever the phase, the internal mass and enthalpy fluxes must cancel when the balances of all volumes are summed. The global balance must reduce to:
Whatever the phase, the internal mass and enthalpy fluxes must cancel when the balances of all volumes are summed. The global balance must reduce to:


<math>\boxed{
<!--T:242-->
<math>
\frac{dU_{\mathrm{tot}}}{dt}
\frac{dU_{\mathrm{tot}}}{dt}
=\dot Q_C+\dot Q_H
=\dot Q_i+\dot Q_o
-P_S^\star\dot V_S
-P_S\dot V_S
-P_L^\star\dot V_L
-P_L\dot V_L
}.</math>
.</math>


<!--T:243-->
A cumulative energy residual may be defined by:
A cumulative energy residual may be defined by:


<math>\boxed{
<!--T:244-->
<math>
\varepsilon_E(t)=
\varepsilon_E(t)=
U_{\mathrm{tot}}(t)-U_{\mathrm{tot}}(0)
U_{\mathrm{tot}}(t)-U_{\mathrm{tot}}(0)
-Q_C(0,t)-Q_H(0,t)+W(0,t)
-Q_i(0,t)-Q_o(0,t)+W(0,t)
}.</math>
.</math>
 
<!--T:417-->
Over a periodic cycle:


<!--T:418-->
<math>Q_i+Q_o=W_{\mathrm{cycle}}.</math>
<!--T:245-->
The solver must keep <math display="inline">\varepsilon_M</math> and <math display="inline">\varepsilon_E</math> close to zero to the expected numerical accuracy.
The solver must keep <math display="inline">\varepsilon_M</math> and <math display="inline">\varepsilon_E</math> close to zero to the expected numerical accuracy.


<!--T:246-->
----
----


= Appendix A — Symbolic derivations and validated checks =
== Appendix A — Symbolic derivations and validated checks == <!--T:247-->


== A.1 Pressure equation for a closed pair ==
=== A.1 Pressure equation for a closed pair === <!--T:248-->


<!--T:249-->
For a cylinder + heat-exchanger pair at quasi-uniform pressure:
For a cylinder + heat-exchanger pair at quasi-uniform pressure:


<!--T:250-->
<math>U=\frac{P(V_{\mathrm{cyl}}+V_{HX})}{\gamma-1}.</math>
<math>U=\frac{P(V_{\mathrm{cyl}}+V_{HX})}{\gamma-1}.</math>


<!--T:251-->
The first law gives:
The first law gives:


<!--T:252-->
<math>\frac{dU}{dt}=\dot Q-P\dot V_{\mathrm{cyl}},</math>
<math>\frac{dU}{dt}=\dot Q-P\dot V_{\mathrm{cyl}},</math>


<!--T:253-->
with:
with:


<!--T:254-->
<math>\dot Q=(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX}).</math>
<math>\dot Q=(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX}).</math>


<!--T:255-->
Differentiating <math display="inline">U</math>:
Differentiating <math display="inline">U</math>:


<!--T:256-->
<math>\frac{1}{\gamma-1}
<math>\frac{1}{\gamma-1}
\left[(V_{\mathrm{cyl}}+V_{HX})\dot P+P\dot V_{\mathrm{cyl}}\right]
\left[(V_{\mathrm{cyl}}+V_{HX})\dot P+P\dot V_{\mathrm{cyl}}\right]
=\dot Q-P\dot V_{\mathrm{cyl}}.</math>
=\dot Q-P\dot V_{\mathrm{cyl}}.</math>


<!--T:257-->
Hence:
Hence:


<math>\boxed{
<!--T:258-->
<math>
\dot P=
\dot P=
\frac{(\gamma-1)\dot Q-\gamma P\dot V_{\mathrm{cyl}}}
\frac{(\gamma-1)\dot Q-\gamma P\dot V_{\mathrm{cyl}}}
{V_{\mathrm{cyl}}+V_{HX}}
{V_{\mathrm{cyl}}+V_{HX}}
}.</math>
.</math>


<!--T:259-->
If <math display="inline">\dot Q=0</math>:
If <math display="inline">\dot Q=0</math>:


<!--T:260-->
<math>\frac{\dot P}{P}=-\gamma\frac{\dot V}{V},</math>
<math>\frac{\dot P}{P}=-\gamma\frac{\dot V}{V},</math>


<!--T:261-->
then:
then:


<math>\boxed{PV^\gamma=\mathrm{const}}.</math>
<!--T:262-->
<math>PV^\gamma=\mathrm{const}.</math>


== A.2 Internal flow rate of the pair ==
=== A.2 Internal flow rate of the pair === <!--T:263-->


<!--T:264-->
For the heat exchanger alone, at fixed volume:
For the heat exchanger alone, at fixed volume:


<!--T:265-->
<math>U_{HX}=\frac{PV_{HX}}{\gamma-1}.</math>
<math>U_{HX}=\frac{PV_{HX}}{\gamma-1}.</math>


<!--T:266-->
Therefore:
Therefore:


<!--T:267-->
<math>\frac{V_{HX}}{\gamma-1}\dot P
<math>\frac{V_{HX}}{\gamma-1}\dot P
=(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX})
=(UA)_{HX}(T_{HX,\mathrm{res}}-T_{HX})
+\dot m_{\mathrm{int}}C_pT_{\mathrm{up}}.</math>
+\dot m_{\mathrm{int}}C_pT_{\mathrm{up}}.</math>


<!--T:268-->
Using <math display="inline">C_p=\gamma R/(\gamma-1)</math>:
Using <math display="inline">C_p=\gamma R/(\gamma-1)</math>:


<!--T:269-->
<math>V_{HX}\dot P+(\gamma-1)(UA)_{HX}(T_{HX}-T_{HX,\mathrm{res}})
<math>V_{HX}\dot P+(\gamma-1)(UA)_{HX}(T_{HX}-T_{HX,\mathrm{res}})
=\gamma R T_{\mathrm{up}}\dot m_{\mathrm{int}}.</math>
=\gamma R T_{\mathrm{up}}\dot m_{\mathrm{int}}.</math>


<!--T:270-->
This recovers the definition of the numerator <math display="inline">N</math> and the selection of the upstream temperature according to the sign of the flow rate.
This recovers the definition of the numerator <math display="inline">N</math> and the selection of the upstream temperature according to the sign of the flow rate.


== A.3 Evolution of the heat-exchanger temperature within a pair ==
=== A.3 Evolution of the heat-exchanger temperature within a pair === <!--T:271-->


<!--T:272-->
For a fixed volume:
For a fixed volume:


<!--T:273-->
<math>m_{HX}=\frac{PV_{HX}}{RT_{HX}}.</math>
<math>m_{HX}=\frac{PV_{HX}}{RT_{HX}}.</math>


<!--T:274-->
Differentiating:
Differentiating:


<!--T:275-->
<math>\frac{\dot m_{HX}}{m_{HX}}
<math>\frac{\dot m_{HX}}{m_{HX}}
=\frac{\dot P}{P}-\frac{\dot T_{HX}}{T_{HX}}.</math>
=\frac{\dot P}{P}-\frac{\dot T_{HX}}{T_{HX}}.</math>


<!--T:276-->
With <math display="inline">\dot m_{HX}=\dot m_{\mathrm{int}}</math>:
With <math display="inline">\dot m_{HX}=\dot m_{\mathrm{int}}</math>:


<math>\boxed{
<!--T:277-->
<math>
\dot T_{HX}=\frac{T_{HX}}P\dot P-
\dot T_{HX}=\frac{T_{HX}}P\dot P-
\frac{RT_{HX}^2}{PV_{HX}}\dot m_{\mathrm{int}}
\frac{RT_{HX}^2}{PV_{HX}}\dot m_{\mathrm{int}}
}.</math>
.</math>


<!--T:278-->
This relation follows solely from mass conservation and the equation of state; it is valid for both flow directions.
This relation follows solely from mass conservation and the equation of state; it is valid for both flow directions.


== A.4 Open receiving pair ==
=== A.4 Open quasi-pressure-equalized pair === <!--T:279-->


For a pair receiving <math display="inline">\dot m_{\mathrm{ext}}</math> into its cylinder:
<!--T:280-->
For a pair receiving <math display="inline">\dot m_{\mathrm{ext}}</math> across its external boundary:


<!--T:281-->
<math>\frac{dU}{dt}=\dot m_{\mathrm{ext}}C_pT_{\mathrm{ext}}
<math>\frac{dU}{dt}=\dot m_{\mathrm{ext}}C_pT_{\mathrm{ext}}
+\dot Q-P\dot V_{\mathrm{cyl}}.</math>
+\dot Q-P\dot V_{\mathrm{cyl}}.</math>


<!--T:282-->
With <math display="inline">U=P(V_{\mathrm{cyl}}+V_{HX})/(\gamma-1)</math>:
With <math display="inline">U=P(V_{\mathrm{cyl}}+V_{HX})/(\gamma-1)</math>:


<math>\boxed{
<!--T:283-->
<math>
\dot P=
\dot P=
\frac{\gamma RT_{\mathrm{ext}}\dot m_{\mathrm{ext}}
\frac{\gamma RT_{\mathrm{ext}}\dot m_{\mathrm{ext}}
Line 725: Line 1,715:
-\gamma P\dot V_{\mathrm{cyl}}}
-\gamma P\dot V_{\mathrm{cyl}}}
{V_{\mathrm{cyl}}+V_{HX}}
{V_{\mathrm{cyl}}+V_{HX}}
}.</math>
.</math>


The local mass balance:
<!--T:284-->
If the external stream enters the cylinder and <math display="inline">\dot m_{\mathrm{int}}</math> is positive from cylinder to heat exchanger:


<!--T:285-->
<math>\dot m_{\mathrm{cyl}}=\dot m_{\mathrm{ext}}-\dot m_{\mathrm{int}},</math>
<math>\dot m_{\mathrm{cyl}}=\dot m_{\mathrm{ext}}-\dot m_{\mathrm{int}},</math>


<math>\dot m_{HX}=\dot m_{\mathrm{int}},</math>
<!--T:286-->
<math>\dot m_{HX}=\dot m_{\mathrm{int}}.</math>


immediately gives:
<!--T:287-->
If instead the external stream enters the heat exchanger first:


<math>\boxed{\dot m_{\mathrm{pair}}=\dot m_{\mathrm{ext}}}.</math>
<!--T:628-->
<math>\dot m_{\mathrm{cyl}}=-\dot m_{\mathrm{int}},\qquad
\dot m_{HX}=\dot m_{\mathrm{ext}}+\dot m_{\mathrm{int}}.</math>


== A.5 Analytical solution for the adiabatic donor cylinder ==
<!--T:288-->
In both cases:


<!--T:629-->
<math>\dot m_{\mathrm{pair}}=\dot m_{\mathrm{ext}}.</math>
=== A.5 Analytical solution for the adiabatic donor cylinder === <!--T:289-->
<!--T:290-->
For an adiabatic, well-mixed cylinder with outflow only:
For an adiabatic, well-mixed cylinder with outflow only:


<!--T:291-->
<math>\frac{d(mC_vT)}{dt}=-P\dot V-\dot m_{\mathrm{out}}C_pT,</math>
<math>\frac{d(mC_vT)}{dt}=-P\dot V-\dot m_{\mathrm{out}}C_pT,</math>


<!--T:292-->
and:
and:


<!--T:293-->
<math>\dot m=-\dot m_{\mathrm{out}}.</math>
<math>\dot m=-\dot m_{\mathrm{out}}.</math>


<!--T:294-->
Expanding:
Expanding:


<!--T:295-->
<math>C_vm\dot T+C_vT\dot m=-P\dot V+C_pT\dot m,</math>
<math>C_vm\dot T+C_vT\dot m=-P\dot V+C_pT\dot m,</math>


<!--T:296-->
thus:
thus:


<!--T:297-->
<math>C_vm\dot T=-P\dot V+RT\dot m.</math>
<math>C_vm\dot T=-P\dot V+RT\dot m.</math>


<!--T:298-->
With <math display="inline">P=mRT/V</math> and <math display="inline">R/C_v=\gamma-1</math>:
With <math display="inline">P=mRT/V</math> and <math display="inline">R/C_v=\gamma-1</math>:


<!--T:299-->
<math>\frac{dT}{T}=(\gamma-1)
<math>\frac{dT}{T}=(\gamma-1)
\left(\frac{dm}{m}-\frac{dV}{V}\right).</math>
\left(\frac{dm}{m}-\frac{dV}{V}\right).</math>


<!--T:300-->
After integration:
After integration:


<math>\boxed{
<!--T:301-->
<math>
\frac{T}{T_0}=
\frac{T}{T_0}=
\left[\frac{m}{m_0}\frac{V_0}{V}\right]^{\gamma-1}
\left[\frac{m}{m_0}\frac{V_0}{V}\right]^{\gamma-1}
}.</math>
.</math>


<!--T:302-->
Then, using <math display="inline">PV=mRT</math>:
Then, using <math display="inline">PV=mRT</math>:


<math>\boxed{
<!--T:303-->
<math>
P=P_0\left[\frac{m}{m_0}\frac{V_0}{V}\right]^\gamma
P=P_0\left[\frac{m}{m_0}\frac{V_0}{V}\right]^\gamma
}.</math>
.</math>


<!--T:304-->
and:
and:


<math>\boxed{
<!--T:305-->
<math>
\frac{T}{T_0}=
\frac{T}{T_0}=
\left(\frac{P}{P_0}\right)^{(\gamma-1)/\gamma}
\left(\frac{P}{P_0}\right)^{(\gamma-1)/\gamma}
}.</math>
.</math>


<!--T:306-->
Under these assumptions, the specific entropy of the remaining gas is constant: <math display="inline">ds=0</math>. The total entropy of the gas contained in the cylinder is not constant because its mass varies.
Under these assumptions, the specific entropy of the remaining gas is constant: <math display="inline">ds=0</math>. The total entropy of the gas contained in the cylinder is not constant because its mass varies.


== A.6 Active heat exchanger: expanded balance ==
=== A.6 Active heat exchanger: expanded balance === <!--T:307-->


<!--T:308-->
Fundamental balance:
Fundamental balance:


<!--T:309-->
<math>\frac{d(mC_vT)}{dt}
<math>\frac{d(mC_vT)}{dt}
=\dot m_{\mathrm{in}}C_pT_{\mathrm{in}}
=\dot m_{\mathrm{in}}C_pT_{\mathrm{in}}
Line 791: Line 1,812:
+\dot Q.</math>
+\dot Q.</math>


<!--T:310-->
Expanding the left-hand side and using:
Expanding the left-hand side and using:


<!--T:311-->
<math>\dot m=\dot m_{\mathrm{in}}-\dot m_{\mathrm{out}},</math>
<math>\dot m=\dot m_{\mathrm{in}}-\dot m_{\mathrm{out}},</math>


<!--T:312-->
one obtains:
one obtains:


<math>\boxed{
<!--T:313-->
<math>
\dot T=
\dot T=
\frac{\dot m_{\mathrm{in}}(C_pT_{\mathrm{in}}-C_vT)
\frac{\dot m_{\mathrm{in}}(C_pT_{\mathrm{in}}-C_vT)
-\dot m_{\mathrm{out}}RT+\dot Q}
-\dot m_{\mathrm{out}}RT+\dot Q}
{C_vm}
{C_vm}
}.</math>
.</math>


<!--T:314-->
Limiting checks:
Limiting checks:


<!--T:315-->
* with no flow, the equation recovers the thermal relaxation of a closed volume;
* with no flow, the equation recovers the thermal relaxation of a closed volume;
* with equal steady inlet/outlet flow rates, it recovers <math display="inline">mC_v\dot T=\dot mC_p(T_{\mathrm{in}}-T)+\dot Q</math>;
* with equal steady inlet/outlet flow rates, it recovers <math display="inline">mC_v\dot T=\dot mC_p(T_{\mathrm{in}}-T)+\dot Q</math>;
* if <math display="inline">T_{\mathrm{in}}=T</math> and <math display="inline">\dot m_{\mathrm{in}}=\dot m_{\mathrm{out}}</math>, the net contribution of the flow to <math display="inline">\dot T</math> vanishes.
* if <math display="inline">T_{\mathrm{in}}=T</math> and <math display="inline">\dot m_{\mathrm{in}}=\dot m_{\mathrm{out}}</math>, the net contribution of the flow to <math display="inline">\dot T</math> vanishes.


== A.7 Global mass test during an active phase ==
=== A.7 Global mass test === <!--T:630-->
 
<!--T:631-->
Using the signed link flows defined in §6:
 
<!--T:632-->
<math>\dot m_S=-\dot m_{Si}+\dot m_{oS},</math>
 
<!--T:633-->
<math>\dot m_L=\dot m_{iL}-\dot m_{Lo},</math>


For Phase II:
<!--T:634-->
<math>\dot m_i=\dot m_{Si}-\dot m_{iL},</math>


<math>\dot m_L=-\dot m_{\mathrm{in}},</math>
<!--T:635-->
<math>\dot m_o=\dot m_{Lo}-\dot m_{oS}.</math>


<math>\dot m_H=\dot m_{\mathrm{in}}-\dot m_{\mathrm{out}},</math>


<math>\dot m_{SC}=\dot m_{\mathrm{out}}.</math>
<!--T:636-->
Summing the four equations cancels every internal mass flow exactly:


Summing:
<!--T:637-->
<math>\dot M_{\mathrm{tot}}=0.</math>


<math>\boxed{\dot M_{\mathrm{tot}}=0}.</math>


Phase IV gives exactly the same result by symmetry.
<!--T:638-->
This result is independent of the active phase, the flow directions on bidirectional links, and the positions of the two check valves.


== A.8 Global energy test during an active phase ==


For Phase II:
=== A.8 Global energy test === <!--T:639-->


<math>\dot U_L=-P_L\dot V_L-\dot m_{\mathrm{in}}h_L,</math>
<!--T:640-->
Using the signed enthalpy fluxes defined in §6:


<math>\dot U_H=\dot m_{\mathrm{in}}h_L-\dot m_{\mathrm{out}}h_H+\dot Q_H,</math>
<!--T:641-->
<math>\dot U_S=-P_S\dot V_S-\dot H_{Si}+\dot H_{oS},</math>


<math>\dot U_{SC}=\dot m_{\mathrm{out}}h_H+\dot Q_C-P_{SC}\dot V_S.</math>
<!--T:642-->
<math>\dot U_L=-P_L\dot V_L+\dot H_{iL}-\dot H_{Lo},</math>


The internal enthalpy fluxes cancel exactly:
<!--T:643-->
<math>\dot U_i=\dot H_{Si}-\dot H_{iL}+\dot Q_i,</math>


<math>-\dot m_{\mathrm{in}}h_L+\dot m_{\mathrm{in}}h_L=0,</math>
<!--T:644-->
<math>\dot U_o=\dot H_{Lo}-\dot H_{oS}+\dot Q_o.</math>


<math>-\dot m_{\mathrm{out}}h_H+\dot m_{\mathrm{out}}h_H=0.</math>


What remains is:
<!--T:645-->
All internal enthalpy fluxes cancel exactly when the four balances are summed:


<math>\boxed{
<!--T:646-->
<math>
\dot U_{\mathrm{tot}}
\dot U_{\mathrm{tot}}
=\dot Q_C+\dot Q_H
=\dot Q_i+\dot Q_o
-P_L\dot V_L-P_{SC}\dot V_S
-P_S\dot V_S-P_L\dot V_L
}.</math>
.</math>


Phase IV provides the symmetric relation. In the closed phases, the same structure follows directly from summing the balances of the two pairs. Hence, for any phase:


<math>\boxed{
<!--T:647-->
\dot U_{\mathrm{tot}}
Integrated over a periodic cycle:
=\dot Q_C+\dot Q_H
-P_S^\star\dot V_S-P_L^\star\dot V_L
}.</math>


Integrated over a periodic cycle, this relation gives:
<!--T:648-->
<math>Q_i+Q_o=W_{\mathrm{cycle}}.</math>


<math>\boxed{Q_C+Q_H=W_{\mathrm{cycle}}}.</math>


== A.9 Continuity at transitions ==
=== A.9 Continuity at transitions === <!--T:338-->


<!--T:339-->
At the instant of a check-valve event, no finite mass or energy can be transferred in zero time. The conserved variables and geometry are therefore continuous:
At the instant of a check-valve event, no finite mass or energy can be transferred in zero time. The conserved variables and geometry are therefore continuous:


<math>m_i^+=m_i^-,\qquad U_i^+=U_i^-,\qquad V_i^+=V_i^-.</math>
<!--T:340-->
<math>\qquad j\in\{S,L,i,o\}</math>
 
<!--T:419-->
<math>m_j^+=m_j^-,\qquad U_j^+=U_j^-,\qquad V_j^+=V_j^-.</math>


<!--T:341-->
For an ideal gas:
For an ideal gas:


<math>T_i=\frac{U_i}{m_iC_v},\qquad P_i=\frac{m_iRT_i}{V_i},</math>
<!--T:342-->
<math>T_j=\frac{U_j}{m_jC_v},\qquad P_j=\frac{m_jRT_j}{V_j},</math>


<!--T:343-->
which implies:
which implies:


<math>\boxed{T_i^+=T_i^-,\qquad P_i^+=P_i^-}.</math>
<!--T:344-->
<math>T_j^+=T_j^-,\qquad P_j^+=P_j^-.</math>


The event only creates a change in hydraulic topology and in the active system of equations.
<!--T:345-->
The event only changes the admissible hydraulic flow on the valve link; the thermodynamic state remains continuous.
</translate>
</translate>

Latest revision as of 02:01, 21 September 2026

1. Scope and method

This study describes the complete thermodynamic cycle of the Dada engine in symbolic form, in both refrigeration and motor operation. The model couples prescribed kinematics of the two pistons, well-mixed gas volumes, 0D heat exchangers, passive check valves, and a generic compressible hydraulic closure model.

The cycle origin is set with the large cylinder at maximum volume, with:

t=0,θ(0)=0,VL(0)=VL,max.

The four gas volumes are:

  • S: small cylinder;
  • L: large cylinder;
  • Hi: heat-in exchanger, located on the S→L hydraulic path and transferring heat into the gas;
  • Ho: heat-out exchanger, located on the L→S hydraulic path and transferring heat out of the gas.

The two hydraulic branches have fixed circulation orientations:

S→Hi→L,

L→Ho→S.


Each branch contains one passive check valve. The check valve may be installed on either side of its heat exchanger. The two admissible arrangements for the heat-in branch are:

S→CVi→Hi→L,

or:

S→Hi→CVi→L.


Likewise, the heat-out branch may be arranged as:

L→CVo→Ho→S,

or:

L→Ho→CVo→S.


In all cases the check valve enforces the same overall circulation direction of its branch. Its position relative to the heat exchanger is a design parameter because, when the valve is closed, it determines which cylinder remains hydraulically connected to the exchanger volume.


The physical function of each heat exchanger is independent of the operating mode. What changes between refrigeration and motor operation is the external thermal reservoir connected to each exchanger.


The cycle is described by four hydraulic/thermodynamic phases: compression, transfer through Ho from L to S, expansion, and transfer through Hi from S to L. In refrigeration operation, starting from the reference origin used in this study, these phases are traversed in that order. Motor operation reverses the crank kinematics. The resulting thermodynamic chronology must be recalculated with the unchanged check-valve orientations and the reversed reservoir assignment; it is detailed in §6.6.


The phase boundaries describe the kinematics and the dominant thermodynamic regime. They are not check-valve events. Check-valve opening and closing are determined independently by the local pressure difference across each valve; mass transfer and heat transfer may therefore continue during compression or expansion, and a valve event may occur inside a kinematic phase.


The two transfer phases are intended to be quasi-isobaric: one cylinder empties while the other fills, and the pressure variation is intended to remain small compared with the pressure change during compression and expansion. Compression and expansion may involve simultaneous motion of both pistons in the same volumetric direction, so both cylinders may contribute to the pressure-changing phase.


For comparison with an ideal thermodynamic cycle, compression and expansion may be idealized as adiabatic transformations; if they are also reversible, they are isentropic. These are reference transformations only. The real machine does not impose zero heat transfer, zero mass transfer, or closed check valves during compression and expansion, and no construction capable of enforcing perfectly adiabatic phases is assumed here.


1.1 First-level assumptions

The model is based on the following assumptions:

  • single-phase, ideal and calorically perfect gas;
  • constant properties R, Cp, Cv, γ, with R=Cp−Cv and γ=Cp/Cv;
  • each gas volume is uniform and well mixed;
  • gas kinetic and potential energies are neglected in the 0D balances;
  • fixed heat-exchanger volumes;
  • prescribed piston kinematics;
  • no mechanical friction in the thermodynamic model;
  • heat exchange represented by an overall conductance UA;
  • passive check valves controlled by the pressure difference.

2. Notation and conventions

2.1 Geometry and kinematics

For k∈{S,L}:

Vk,min>0,Vk,max>Vk,min.

The swept volume is:

Vk,swept=Vk,max−Vk,min.

The thermodynamic volumes prescribed by the mechanism are:

VS=VS(t),VL=VL(t),

with their signed derivatives:

V˙S=dVSdt,V˙L=dVLdt.

The crank angular velocity is signed:

θ(t)=ωt,V˙k=ωdVkdθ,k∈{S,L}.

The driven refrigeration direction is chosen as positive:

ω>0.

Motor operation uses the opposite crank direction:

ω<0.

The geometric origin is identical in both modes:

t=0,θ(0)=0,VL(0)=VL,max.

When only the absolute value of the volumetric speed is useful:

νV,k=|V˙k|.

2.2 Kinematic closure fraction

To describe the normalized closure of a cylinder:

Λk(t)=Vk,max−Vk(t)Vk,max−Vk,min,k∈{S,L}.

Thus Λk=0 corresponds to maximum volume and Λk=1 to minimum volume. The values ΛL∗ and ΛS∗ may be used as nominal kinematic reference levels at selected phase boundaries. The value actually observed at a check-valve event may be recorded as:

Λreal=Λ(tevent).

Check-valve events are determined by the local pressure difference across the valve and are independent of the selected kinematic phase boundaries; Λ∗ is therefore not an imposed opening condition.

2.3 Thermodynamic variables

For each volume j∈{S,L,i,o}:

mj,Uj,Tj,Pj,Vj.

The subscripts i and o denote respectively the gas contained in Hi and Ho.

The complete state vector is chosen as:

𝐗=(mS,US,mL,UL,mi,Ui,mo,Uo).

Temperatures and pressures are derived from:

Tj=UjmjCv,Pj=mjRTjVj.

The volumes VS(t) and VL(t) are prescribed by the kinematics and are not independent thermodynamic state variables. The volumes Vi and Vo are constant.

2.4 Energy sign convention

Heat is positive when it is received by the gas. Work is positive when the gas delivers work:

W˙=PV˙.

By definition of the two physical heat exchangers:

Qi>0,Qo<0

in the intended operating regime of both refrigeration and motor operation.

The net cycle work distinguishes the two modes:

Wcycle<0

for driven refrigeration operation, whereas:

Wcycle>0

for motor operation.

3. Thermal closure and validity domain

3.1 Exchange with the thermal reservoirs

For the heat-in exchanger:

Q˙i=(UA)i(Ti,res−Ti).

In the intended operating regime:

Ti<Ti,res⇒Q˙i>0.

For the heat-out exchanger:

Q˙o=(UA)o(To,res−To).

In the intended operating regime:

To>To,res⇒Q˙o<0.

The reservoir temperatures depend on the operating mode.

For refrigeration operation:

Ti,res=Tcold,To,res=Thot.

For motor operation:

Ti,res=Thot,To,res=Tcold.

Thus the heat-transfer equations themselves are identical in both modes.


3.2 Thermophysical validity domain

The base model assumes:

PV=mRT,Z=1,

Cp=const,Cv=const,γ=const.

Validity must be checked a posteriori over the entire cycle, notably through:

|Z−1|≪1,

and through small variations of the thermophysical properties, for example:

εCp=Cp,max−Cp,minCp,ref≪1.

The working fluid must remain single-phase and gaseous, and sufficiently far from any condensation or phase transition throughout the (P,T) domain traversed.

If these criteria become insufficient, an extension may use Z(P,T), Cp(T), Cv(T), or a real-gas equation of state without changing the general architecture of the mass and energy balances.

4. Reduced formulations for quasi-pressure-equalized connected volumes

The complete model treats the four gas volumes independently. In some operating conditions, however, a set of volumes connected through sufficiently low hydraulic resistance may remain close to a common pressure. Such a set can then be treated by a reduced analytical formulation.


Let 𝒞 denote any connected set of gas volumes for which:

Pj≈P𝒞,j∈𝒞.


The composition of 𝒞 is determined by the actual hydraulic connectivity and by the position and state of the check valves.


A useful pressure-equalization criterion is:

εP,𝒞=max(a,b)∈𝒞|Pa−Pb|P𝒞≪1.


A low internal Mach number provides an additional check:

Maint=|uint|a≪1,

but is not sufficient by itself to guarantee pressure equalization.


4.1 Pressure equation for a connected set

Define the total volume:

V𝒞=∑j∈𝒞Vj.


Only cylinder volumes vary, so:

V˙𝒞=∑k∈𝒞∩{S,L}V˙k.


For a calorically perfect ideal gas at common pressure:

U𝒞=∑j∈𝒞mjCvTj=P𝒞V𝒞γ−1.


Let the total heat received by the gas in the set be:

Q˙𝒞=∑j∈𝒞Q˙j.


Mass crossing the boundary of the set transports the enthalpy of its upstream state. Define the net external enthalpy flow into the set as:

H˙𝒞ext=∑inm˙CpTu−∑outm˙CpTu.


The first law for the complete connected set is then:

dU𝒞dt=Q˙𝒞+H˙𝒞ext−P𝒞V˙𝒞.


Therefore:

P˙𝒞=(γ−1)(Q˙𝒞+H˙𝒞ext)−γP𝒞V˙𝒞V𝒞.


The total mass of the set satisfies:

M˙𝒞=∑inm˙−∑outm˙.


Internal mass and enthalpy transfers between members of 𝒞 cancel from these global balances.


4.2 Closed connected set

If no mass crosses the boundary of 𝒞:

H˙𝒞ext=0,M˙𝒞=0.


The pressure equation becomes:

P˙𝒞=(γ−1)Q˙𝒞−γP𝒞V˙𝒞V𝒞.


If the set is also adiabatic:

Q˙𝒞=0,

then:

P𝒞V𝒞γ=const.


This is a limiting analytical case. A compression or expansion phase of the complete machine does not require the corresponding connected set to be closed or adiabatic.


4.3 Fixed-volume heat exchanger within a pressure-equalized set

For a heat exchanger Hj of fixed volume Vj belonging to 𝒞:

mj=P𝒞VjRTj.


Differentiation gives:

m˙jmj=P˙𝒞P𝒞−T˙jTj,

hence:

T˙j=TjP𝒞P˙𝒞−RTj2P𝒞Vjm˙j.


The exchanger mass rate m˙j is the algebraic sum of the actual flows through all links connected to it. This relation is therefore independent of whether the check valve lies upstream or downstream of the exchanger.


Its energy balance may equivalently be written:

Vjγ−1P˙𝒞=Q˙j+∑inm˙CpTu−∑outm˙CpTj.


These equations determine the local mass redistribution and temperature evolution once the hydraulic flow rates are known.


4.4 Two-volume cylinder–exchanger special case

For the particular case of one cylinder and one heat exchanger connected at quasi-uniform pressure, with no other flow entering or leaving the exchanger directly, define the internal mass flow as positive from cylinder to heat exchanger.


Let:

N=VHXP˙+(γ−1)(UA)HX(THX−THX,res).


The internal flow rate is:

m˙int={NγRTcyl,N≥0(cyl→HX),NγRTHX,N<0(HX→cyl).


The heat-exchanger temperature then satisfies:

T˙HX=THXPP˙−RTHX2PVHXm˙int.


This special reduction must not be used when an additional external flow enters or leaves the heat exchanger directly; in that case the general balances of §4.1 and §4.3 apply.


4.5 Single external-flow special cases

If a quasi-pressure-equalized connected set receives a single external flow m˙ext>0 at upstream temperature Text:

P˙𝒞=γRTextm˙ext+(γ−1)Q˙𝒞−γP𝒞V˙𝒞V𝒞,

with:

M˙𝒞=m˙ext.


If instead the set delivers a single external outflow m˙ext>0 from a boundary volume at temperature Tout:

P˙𝒞=−γRToutm˙ext+(γ−1)Q˙𝒞−γP𝒞V˙𝒞V𝒞,

with:

M˙𝒞=−m˙ext.


The location at which the external flow crosses the boundary of the connected set affects the local masses and temperatures, but not the summed pressure equation once the set 𝒞, the boundary enthalpy flow, and its total heat and volume rates are specified.


5. Hydraulic closure

5.1 Generic formulation

Any hydraulic connection is described by a generic law:

m˙=Φ(Pu,Pd,Tu,𝒢,ℱ)

u and d respectively denote the instantaneous upstream and downstream states. The transported enthalpy is that of the upstream state:

H˙mass=m˙CpTu.

For a bidirectional connection, the upstream state is determined by the actual direction of the pressure gradient. For a check valve, reverse flow is prohibited. On each of the two hydraulic branches, the check valve may be placed on either side of the heat exchanger; the hydraulic law must therefore use the pressures immediately adjacent to the actual valve position.

5.2 First-level closure using a compressible orifice

A first approximation consists in using an effective hydraulic area:

(CdA)eff,

which represents the overall ease of gas flow through the actual connection.

With:

r=PdPu,rcrit=(2γ+1)γ/(γ−1),

the unchoked flow rate, for r>rcrit, is:

m˙=(CdA)effPu2γRTu(γ−1)(r2/γ−r(γ+1)/γ).

For r≤rcrit:

m˙=(CdA)effPuγRTu(2γ+1)γ+12(γ−1).

This closure is not essential to the model: it may later be replaced by a law that more faithfully represents the pressure losses of a real heat exchanger, pipe, or check valve.

6. Complete thermodynamic cycle

The cycle is described by four successive kinematic and thermodynamic regimes: compression, transfer through Ho, expansion, and transfer through Hi. These phases describe the dominant evolution of the machine; they are not defined by the state of the check valves. Valve opening and closing remain determined independently by the instantaneous pressure differences and may occur within a phase rather than exactly at a phase boundary.


The numbering below follows the refrigeration direction ω>0. Motor operation uses the same physical machine with reversed crank direction and is described in §6.6.


6.1 Thermodynamic rationale of the four phases

6.1.1 Compression and expansion

Compression and expansion are primarily pressure-changing phases. In the intended kinematics, both cylinder volumes may decrease simultaneously during compression and increase simultaneously during expansion.


The instantaneous work delivered by the gas is:

W˙=PSV˙S+PLV˙L.


When the two cylinder pressures are of the same order, both piston contributions therefore add during a simultaneous expansion and both contribute to the work required during a simultaneous compression. This allows the swept volumes of both cylinders to participate in the pressure-changing parts of the cycle.


In an ideal reversible reference cycle, compression and expansion may be considered adiabatic and reversible. This is not imposed on the real machine. The heat exchangers remain thermally coupled to the gas, mass redistribution may continue, and neither check valve is required to be closed during the whole compression or expansion phase.


6.1.2 Exchange phases

During an exchange phase, gas is transferred from one cylinder to the other through one of the heat exchangers. Hydraulic resistance requires a finite pressure difference to produce a finite mass flow. This pressure difference is intrinsically irreversible.


For the hydraulic-loss contribution idealized locally as an adiabatic, isenthalpic throttling process of a calorically perfect ideal gas:

hu=hd⇒Tu=Td,

and therefore:

Δshyd=Rln⁡(PuPd)>0forPu>Pd.


The reversible limit is consequently:

Pu−Pd→0.


The exchange phases therefore tend ideally toward quasi-pressure-equalized operation. A finite real machine retains a finite pressure difference because a finite flow must cross the hydraulic resistances.


Pressure equalization between communicating volumes at a given instant does not, by itself, imply that their common pressure remains constant throughout the exchange. Let 𝒞 denote a closed set of communicating gas volumes that are approximately at a common pressure P. For an ideal gas:

M𝒞=PR∑j∈𝒞VjTj,

and therefore:

P=M𝒞R∑j∈𝒞Vj/Tj.


At constant mass, an exactly isobaric evolution requires:

ddt(∑j∈𝒞VjTj)=0.


Thus the piston motions and the temperature evolution must compensate each other. Equal cylinder-volume changes are neither required nor generally expected.


The same condition can be expressed through the energy balance. For a quasi-pressure-equalized set:

U𝒞=PV𝒞γ−1,V𝒞=∑j∈𝒞Vj.


Its first-law balance gives:

V𝒞P˙=(γ−1)Q˙𝒞−γPV˙𝒞.


An approximately isobaric exchange therefore satisfies:

γPV˙𝒞≈(γ−1)Q˙𝒞.


The volume evolution imposed by the pistons can consequently compensate the thermal expansion or contraction produced by heat transfer, allowing substantial mass transfer while the common pressure remains nearly constant.


A useful first-order cylinder-sizing relation follows from the same condition. Over a sufficiently small part of an isobaric exchange, if the donor and receiver temperatures may be treated as locally constant and the temperature-storage terms of the fixed exchanger volumes are secondary, then:

dVrTr≈−dVdTd,

hence:

dVr−dVd≈TrTd.


The hotter side therefore requires a larger volume change for the same transferred gas mass at the same pressure. When the exchange uses comparable fractions of the available cylinder strokes and the gas temperatures remain close to characteristic working temperatures Th and Tc, this gives the first-order geometric scaling:

Vswept,hVswept,c∼ThTc.


Temperatures must be expressed in kelvin. This relation is a sizing guide, not an exact design constraint: exchanger hold-up, clearance volumes, temperature evolution during the exchange, finite pressure losses, and the compression and expansion phases can all shift the optimum. When these effects are significant, the complete condition involving ∑Vj/Tj must be used instead.


These relations explain why a low-loss exchange naturally tends toward both small pressure differences along the hydraulic path and, with suitable piston kinematics, a nearly constant pressure throughout the exchange. Exact isobaricity is not imposed as a thermodynamic constraint.


6.1.3 Balance equations valid throughout the cycle

The four control volumes remain S, Hi, L, and Ho. Define the signed mass flow rates:

m˙Si:S→Hi,m˙iL:Hi→L,

m˙Lo:L→Ho,m˙oS:Ho→S.


The positive directions correspond to the permanent circulation directions of the two branches:

S→Hi→L,L→Ho→S.


Each branch contains one passive check valve. Its position relative to the heat exchanger is a design choice:

S→CVi→Hi→LorS→Hi→CVi→L,

L→CVo→Ho→SorL→Ho→CVo→S.


The check valve constrains the link on which it is installed; the other link may be bidirectional according to its hydraulic law.


Let H˙ab denote the signed enthalpy transport from volume a toward volume b. For a calorically perfect gas:

H˙ab={m˙abCpTa,m˙ab≥0,m˙abCpTb,m˙ab<0.


The mass balances are then:

m˙S=m˙oS−m˙Si,

m˙i=m˙Si−m˙iL,

m˙L=m˙iL−m˙Lo,

m˙o=m˙Lo−m˙oS.


The corresponding energy balances are:

U˙S=H˙oS−H˙Si−PSV˙S,

U˙i=H˙Si−H˙iL+Q˙i,

U˙L=H˙iL−H˙Lo−PLV˙L,

U˙o=H˙Lo−H˙oS+Q˙o.


These equations are valid during all four phases. The phase determines the prescribed piston motion and the dominant thermodynamic process; the hydraulic laws and pressure differences determine the actual flow rates and check-valve states.


6.2 Phase I — compression

During compression, the two cylinder volumes may decrease simultaneously:

V˙S<0,V˙L<0

over the principal part of the phase.


The pressure rises from the lower exchange-pressure region toward the higher one. Both pistons may contribute to the compression work.


No closed-pair topology is imposed. A check valve may remain open during part of the compression, and gas may continue to move through the hydraulic network. In particular, a cylinder approaching its minimum volume may transfer its remaining gas toward the other cylinder. Heat transfer through Hi and Ho also remains active.


The actual evolution is therefore calculated from the complete balances of §6.1.3. Adiabatic compression is only the reversible reference limit described in §6.1.1.


The end of the compression phase is defined by the prescribed kinematic law, not by a check-valve event.


6.3 Phase II — exchange through Ho: L → Ho → S

The dominant circulation is:

L→Ho→S.


The gas leaves the large-cylinder side, passes through the heat-out branch, and reaches the small-cylinder side. The passive check valve CVo may be located either before or after Ho; in both cases it enforces the same net branch direction.


During the exchange, L acts predominantly as donor and S as receiver. Their volume changes need not have equal magnitudes. In the quasi-isobaric limit their first-order ratio follows the temperature relation derived in §6.1.2.


The heat-out exchanger removes heat from the gas:

Q˙o<0

in the intended operating regime.


The ideal exchange tends toward small pressure differences along the active path and an approximately constant pressure over the phase. The finite real pressure differences required to drive the flow are determined by the hydraulic closure of §5.


The state of the other check valve and any secondary redistribution flow are determined by the instantaneous pressures; they are not prescribed by the phase definition.


6.4 Phase III — expansion

During expansion, the two cylinder volumes may increase simultaneously:

V˙S>0,V˙L>0

over the principal part of the phase.


The pressure decreases from the higher exchange-pressure region toward the lower one. Both pistons may then contribute simultaneously to the work delivered by the gas.


As during compression, no zero-flow or closed-valve condition is imposed. Mass redistribution may continue and both heat exchangers remain thermally active. The complete balances of §6.1.3 therefore remain applicable.


Adiabatic expansion is the reversible reference limit, not a required operating condition of the real machine.


The end of the expansion phase is determined by the prescribed kinematic law independently of the check-valve events.


6.5 Phase IV — exchange through Hi: S → Hi → L

The dominant circulation is:

S→Hi→L.


The gas leaves the small-cylinder side, passes through the heat-in branch, and reaches the large-cylinder side. The passive check valve CVi may be located either before or after Hi; both arrangements impose the same net branch direction.


During the exchange, S acts predominantly as donor and L as receiver. Their required volume changes depend on the temperatures of the gas on the two sides according to the relations of §6.1.2.


The heat-in exchanger supplies heat to the gas:

Q˙i>0

in the intended operating regime.


As in Phase II, the ideal exchange tends toward quasi-pressure-equalized and approximately isobaric operation, while the real mass flow requires finite hydraulic pressure differences.


After this phase, the prescribed kinematics return to the compression region and the four-phase sequence repeats. Thermodynamic closure nevertheless requires the complete state vector, and not only the piston geometry, to be periodic.


6.6 Motor operation

No second set of mass, energy, heat-transfer, or hydraulic equations is required for motor operation.


The physical branch directions remain:

S→Hi→L,L→Ho→S,

and the positions and orientations of the two passive check valves remain unchanged.


Motor operation is obtained by reversing the crank direction:

ω<0,

and exchanging the external reservoirs connected to the two heat exchangers:

Ti,res=Thot,To,res=Tcold.


The geometric cycle is therefore traversed in the opposite direction. Pressure histories, mass flow rates, check-valve events, and the periodic thermodynamic state must all be recalculated; the refrigeration valve chronology is not assumed simply to carry over.


In the intended refrigeration operation, the L→Ho→S transfer occurs on the high-pressure side of the cycle, whereas the S→Hi→L transfer occurs on the low-pressure side.

In the intended motor operation, reversal of the crank direction reverses these pressure roles: L→Ho→S becomes the low-pressure exchange, whereas S→Hi→L becomes the high-pressure exchange.

The physical thermal functions of the exchangers do not change: Hi always transfers heat into the gas and Ho always transfers heat out of the gas.


The heat-in exchanger absorbs heat from the hot reservoir:

Qi>0,

the heat-out exchanger rejects heat to the cold reservoir:

Qo<0,

and motor operation is obtained when:

Wcycle>0.

7. Physical transitions of the check valves

For a check valve oriented from upstream u to downstream d:

Pu−Pd≥ΔPopen⇒opening,

Pu−Pd≤ΔPclose⇒closing,

with hysteresis, if present:

ΔPclose≤ΔPopen.

An opening or closing event changes the admissible hydraulic flow on the valve link; it does not define a kinematic phase boundary and it does not cause any instantaneous jump in the thermodynamic state. For each volume:

mj+=mj−,Uj+=Uj−,Vj+=Vj−.

For an ideal gas:

Tj+=Tj−,Pj+=Pj−.

There is therefore no instantaneous pressure equalization when a check valve opens.

The values Λ∗ may serve as kinematic reference levels at selected phase boundaries; the values actually observed at check-valve events are Λreal=Λ(tevent).

The two passive check valves have permanent branch orientations: one permits circulation along L→Ho→S, the other along S→Hi→L.

Each valve may be installed upstream or downstream of its heat exchanger. Its opening and closing conditions therefore use the pressures immediately adjacent to its actual position.

The opening and closing laws are identical in both operating modes. Only the pressure histories change because the crank kinematics are reversed in motor operation.

8. Work, heat, and performance

The instantaneous work delivered by the gas on the two pistons is calculated during all phases from the actual cylinder pressures:

W˙=PSV˙S+PLV˙L.

The net work over the cycle is:

Wcycle=∫0τ(PSV˙S+PLV˙L)dt.


When the two cylinder pressures are comparable during a pressure-changing phase,

W˙≈P(V˙S+V˙L).

If both cylinders contract during compression, or both expand during expansion, their work contributions therefore add instead of partly cancelling. This allows a larger fraction of the available swept volume to participate in compression and expansion for a comparable pressure history. It does not by itself prove a higher thermal efficiency, because the heat transfers and the resulting pressure history change at the same time.

The exchanged heats are:

Qi=∫0τ(UA)i(Ti,res−Ti)dt,

Qo=∫0τ(UA)o(To,res−To)dt.

In periodic steady operation:

ΔUcycle=0,

and the first law gives:

Qi+Qo=Wcycle.

The refrigeration COP is:

COPc=Qi−Wcycle.

The heat-pump COP is:

COPh=−Qo−Wcycle=COPc+1.

The signs Qi>0, Qo<0, and Wcycle<0 provide checks of the intended refrigeration regime.

For motor operation:

Qi>0,Qo<0,Wcycle>0.

The thermal efficiency is:

ηth=WcycleQi=1+QoQi.

The mean thermodynamic motor power is:

W˙‾=Wcycleτ.


The thermodynamic force exerted by the gas on a piston face may be written Fgas=PS. Net mechanical force, inertia, and friction belong to the subsequent mechanical sizing phase.

9. Gas charge and periodic regime

The total amount of enclosed gas is a physical parameter:

Mtot=mS+mL+mi+mo=const.

It may be imposed directly or defined experimentally by a charging pressure and temperature. The chosen reference configuration is that at t=0, with the large cylinder at maximum volume. If all volumes communicate and are in uniform equilibrium during charging:

Mtot=Pcharge[VS(0)+VL,max+Vi+Vo]RTcharge.

Pcharge and Tcharge define the amount of gas charged; they are not conditions that the periodic cycle must recover.

The established periodic regime is a solution of the system such that, between two successive passages through the maximum volume of the large cylinder with the same kinematic direction:

𝐗(t+τ)=𝐗(t).

Geometric periodicity alone:

Vk(t+τ)=Vk(t),k∈{S,L}.

is not sufficient to guarantee thermodynamic periodicity.

The numerical state used to initialize a calculation may be approximate; it must not be confused with a physical parameter of the machine. The future solver may search for the periodic fixed point by successive cycles, a shooting method, or a Newton method.

10. Parameters, design data, and results

10.1 Prescribed data

  • operating mode;
  • reservoir temperatures Tcold and Thot;
  • signed crank angular velocity ω.
  • working fluid and reference properties R, Cp, Cv, γ;
  • total charge Mtot, or equivalently (Pcharge,Tcharge) in the charging configuration defined in §9;
  • kinematics VS(t), VL(t).

10.2 Design parameters

  • VS,min, VS,max, VL,min, VL,max;
  • Vi, Vo;
  • (UA)i, (UA)o;
  • hydraulic parameters of the heat exchangers, pipes, and check valves, represented at first level by (CdA)eff;
  • thresholds ΔPopen, ΔPclose;
  • position of each check valve upstream or downstream of its heat exchanger;
  • kinematic reference levels ΛL∗, ΛS∗, when used.

10.3 Calculated variables and results

  • mj,Uj,Tj,Pj,j∈{S,L,i,o};
  • internal and external mass flow rates;
  • Q˙i, Q˙o, Qi, Qo;
  • Wcycle, COPc, COPh;
  • ηth in motor operation.
  • pressure, temperature, and flow-rate extrema;
  • actual check-valve events and Λreal;
  • validity criteria εP, Ma, Z, and property variations.

11. Global conservation checks

11.1 Mass conservation

The solver must satisfy:

dMtotdt=0.

A useful numerical residual is:

εM(t)=Mtot(t)−Mtot(0).

11.2 Global energy conservation

Whatever the phase, the internal mass and enthalpy fluxes must cancel when the balances of all volumes are summed. The global balance must reduce to:

dUtotdt=Q˙i+Q˙o−PSV˙S−PLV˙L.

A cumulative energy residual may be defined by:

εE(t)=Utot(t)−Utot(0)−Qi(0,t)−Qo(0,t)+W(0,t).

Over a periodic cycle:

Qi+Qo=Wcycle.

The solver must keep εM and εE close to zero to the expected numerical accuracy.


Appendix A — Symbolic derivations and validated checks

A.1 Pressure equation for a closed pair

For a cylinder + heat-exchanger pair at quasi-uniform pressure:

U=P(Vcyl+VHX)γ−1.

The first law gives:

dUdt=Q˙−PV˙cyl,

with:

Q˙=(UA)HX(THX,res−THX).

Differentiating U:

1γ−1[(Vcyl+VHX)P˙+PV˙cyl]=Q˙−PV˙cyl.

Hence:

P˙=(γ−1)Q˙−γPV˙cylVcyl+VHX.

If Q˙=0:

P˙P=−γV˙V,

then:

PVγ=const.

A.2 Internal flow rate of the pair

For the heat exchanger alone, at fixed volume:

UHX=PVHXγ−1.

Therefore:

VHXγ−1P˙=(UA)HX(THX,res−THX)+m˙intCpTup.

Using Cp=γR/(γ−1):

VHXP˙+(γ−1)(UA)HX(THX−THX,res)=γRTupm˙int.

This recovers the definition of the numerator N and the selection of the upstream temperature according to the sign of the flow rate.

A.3 Evolution of the heat-exchanger temperature within a pair

For a fixed volume:

mHX=PVHXRTHX.

Differentiating:

m˙HXmHX=P˙P−T˙HXTHX.

With m˙HX=m˙int:

T˙HX=THXPP˙−RTHX2PVHXm˙int.

This relation follows solely from mass conservation and the equation of state; it is valid for both flow directions.

A.4 Open quasi-pressure-equalized pair

For a pair receiving m˙ext across its external boundary:

dUdt=m˙extCpText+Q˙−PV˙cyl.

With U=P(Vcyl+VHX)/(γ−1):

P˙=γRTextm˙ext+(γ−1)Q˙−γPV˙cylVcyl+VHX.

If the external stream enters the cylinder and m˙int is positive from cylinder to heat exchanger:

m˙cyl=m˙ext−m˙int,

m˙HX=m˙int.

If instead the external stream enters the heat exchanger first:

m˙cyl=−m˙int,m˙HX=m˙ext+m˙int.

In both cases:

m˙pair=m˙ext.

A.5 Analytical solution for the adiabatic donor cylinder

For an adiabatic, well-mixed cylinder with outflow only:

d(mCvT)dt=−PV˙−m˙outCpT,

and:

m˙=−m˙out.

Expanding:

CvmT˙+CvTm˙=−PV˙+CpTm˙,

thus:

CvmT˙=−PV˙+RTm˙.

With P=mRT/V and R/Cv=γ−1:

dTT=(γ−1)(dmm−dVV).

After integration:

TT0=[mm0V0V]γ−1.

Then, using PV=mRT:

P=P0[mm0V0V]γ.

and:

TT0=(PP0)(γ−1)/γ.

Under these assumptions, the specific entropy of the remaining gas is constant: ds=0. The total entropy of the gas contained in the cylinder is not constant because its mass varies.

A.6 Active heat exchanger: expanded balance

Fundamental balance:

d(mCvT)dt=m˙inCpTin−m˙outCpT+Q˙.

Expanding the left-hand side and using:

m˙=m˙in−m˙out,

one obtains:

T˙=m˙in(CpTin−CvT)−m˙outRT+Q˙Cvm.

Limiting checks:

  • with no flow, the equation recovers the thermal relaxation of a closed volume;
  • with equal steady inlet/outlet flow rates, it recovers mCvT˙=m˙Cp(Tin−T)+Q˙;
  • if Tin=T and m˙in=m˙out, the net contribution of the flow to T˙ vanishes.

A.7 Global mass test

Using the signed link flows defined in §6:

m˙S=−m˙Si+m˙oS,

m˙L=m˙iL−m˙Lo,

m˙i=m˙Si−m˙iL,

m˙o=m˙Lo−m˙oS.


Summing the four equations cancels every internal mass flow exactly:

M˙tot=0.


This result is independent of the active phase, the flow directions on bidirectional links, and the positions of the two check valves.


A.8 Global energy test

Using the signed enthalpy fluxes defined in §6:

U˙S=−PSV˙S−H˙Si+H˙oS,

U˙L=−PLV˙L+H˙iL−H˙Lo,

U˙i=H˙Si−H˙iL+Q˙i,

U˙o=H˙Lo−H˙oS+Q˙o.


All internal enthalpy fluxes cancel exactly when the four balances are summed:

U˙tot=Q˙i+Q˙o−PSV˙S−PLV˙L.


Integrated over a periodic cycle:

Qi+Qo=Wcycle.


A.9 Continuity at transitions

At the instant of a check-valve event, no finite mass or energy can be transferred in zero time. The conserved variables and geometry are therefore continuous:

j∈{S,L,i,o}

mj+=mj−,Uj+=Uj−,Vj+=Vj−.

For an ideal gas:

Tj=UjmjCv,Pj=mjRTjVj,

which implies:

Tj+=Tj−,Pj+=Pj−.

The event only changes the admissible hydraulic flow on the valve link; the thermodynamic state remains continuous.