Thermodynamic and Mechanical Study

From dada-engine.org
Revision as of 14:09, 7 September 2026 by E.dada (talk | contribs)

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;
  • H_i: heat-in exchanger, located on the S → L hydraulic path and transferring heat into the gas;
  • H_o: heat-out exchanger, located on the L → S hydraulic path and transferring heat out of the gas.

The hydraulic topology is fixed:

SHiL,

LHoS.

The passive check valves therefore always allow:

HiL,HoS.

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 comprises four hydraulic/thermodynamic phases:

  • Phase I — check valves closed, nominally adiabatic: compression on the L+H_o side;
  • Phase II — heat exchange, nominally isothermal: transfer L → H_o → S, with heat removed from the gas;
  • Phase III — check valves closed, nominally adiabatic: expansion on the S+H_i side;
  • Phase IV — heat exchange, nominally isothermal: transfer S → H_i → L, with heat supplied to the gas.

These phase definitions describe the permanent physical topology of the machine. The external reservoir associated with each heat exchanger depends on the operating mode.

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

The model is based on the following assumptions:

  • single-phase, ideal and calorically perfect gas;
  • constant properties R, Cp, Cv, γ, with R=CpCv 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 i{S,L}:

Vi,min>0,Vi,max>Vi,min.

The swept volume is:

Vi,swept=Vi,maxVi,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,i=|V˙i|.

A quasi-stationary region denotes an interval in which the displacement or |V˙| remains small compared with the transfer phases. This region corresponds to the “plateau” of the kinematic optimization, without assuming V˙=0 exactly.

2.2 Kinematic closure fraction

To describe the normalized closure of a cylinder:

Λi(t)=Vi,maxVi(t)Vi,maxVi,min,i{S,L}.

Thus Λi=0 corresponds to maximum volume and Λi=1 to minimum volume. The values ΛL and ΛS are nominal kinematic targets at the transitions. The value actually reached at a check-valve event is:

Λreal=Λ(tevent).

The physical transitions remain determined by the pressures; Λ 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,resTi).

In the intended operating regime:

Ti<Ti,resQ˙i>0.

For the heat-out exchanger:

Q˙o=(UA)o(To,resTo).

In the intended operating regime:

To>To,resQ˙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.


A nominally isothermal phase therefore does not mean THX=THX,res: a finite temperature difference is required to transfer finite thermal power when UA is finite.

An indicator of isothermal quality may be defined over a given phase by:

εT=TmaxTminTref.

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:

|Z1|1,

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

εCp=Cp,maxCp,minCp,ref1.

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 formulation of a quasi-pressure-equalized pair

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

PcylPHX=Ppair.

may be used. It is acceptable if:

εP=|ΔPint|Ppair1,ΔPint=PcylPHX.

A low internal Mach number provides an additional check:

Maint=|uint|a1,

but it is not sufficient on its own to guarantee pressure equalization.

4.1 Closed-pair case

For a closed pair, with fixed VHX and V=Vcyl+VHX:

dPdt=(γ1)(UA)HX(THX,resTHX)γPV˙cylVcyl+VHX.

When (UA)HX=0:

P(Vcyl+VHX)γ=const.

4.2 Internal redistribution flow rate

The internal flow rate is defined as positive from cylinder → heat exchanger. Let:

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

The flow carries the enthalpy of the upstream state:

m˙int={NγRTcyl,N0(cylHX),NγRTHX,N<0(HXcyl).

The heat-exchanger temperature evolves according to:

T˙HX=THXPP˙RTHX2PVHXm˙int.

4.3 Open receiving pair

During an active phase, the external flow physically enters the receiving cylinder, not directly its associated heat exchanger. If m˙ext>0 enters the cylinder at temperature Text:

P˙=γRTextm˙ext+(γ1)(UA)HX(THX,resTHX)γPV˙cylVcyl+VHX.

The masses satisfy:

m˙cyl=m˙extm˙int,m˙HX=m˙int,

and therefore:

m˙pair=m˙ext.

The closed case is obtained immediately with m˙ext=0.

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 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.

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 rrcrit:

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

6.1 Phase I — check valves closed, nominally adiabatic: compression on the L side

Both check valves are closed. The L+H_o and S+H_i pairs are closed. The L+H_o side is nominally compressed; the motion of the small piston remains that provided by the actual kinematics.

For L+H_o:

P˙Lo=(γ1)(UA)o(To,resTo)γPLoV˙LVL+Vo.

For S+H_i:

P˙Si=(γ1)(UA)i(Ti,resTi)γPSiV˙SVS+Vi.

The internal redistribution and temperature equations of §4 apply to both pairs.

The transition to Phase II occurs when the H_o→ S check valve satisfies its opening condition.

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

The gas leaves L, passes through the heat-out exchanger H_o, where it rejects heat, crosses the H_o → S check valve, and then enters the receiving cylinder S. The S+H_i pair remains quasi-pressure-equalized if the criterion εP1 is satisfied.

6.2.1 Donor cylinder L

The fundamental balance is:

d(mLCvTL)dt=PLV˙Lm˙L,outCpTL.

The kinematics are designed to maintain an outflow from the donor cylinder. In this case, the analytical solution is:

TLTL,ref=[mLmL,refVL,refVL]γ1

and:

PL=PL,ref[mLmL,refVL,refVL]γ.

One also obtains:

TLTL,ref=(PLPL,ref)(γ1)/γ,

and the specific entropy of the remaining gas satisfies ds=0 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 (mL,UL) must be used.

6.2.2 Heat-out exchanger H_o

Mass conservation:

m˙o=m˙inm˙out.

Fundamental energy balance:

d(moCvTo)dt=m˙inCpTLm˙outCpTo+(UA)o(To,resTo).

In expanded form:

T˙o=m˙in(CpTLCvTo)m˙outRTo+(UA)o(To,resTo)Cvmo.

The flow rates are determined by the hydraulic laws:

m˙in=ΦHX,o(PL,Po,TL,),

m˙out=Φvalve,o(Po,PSi,To,).

6.2.3 Receiving pair S+H_i

The flow from H_o enters S. The pair pressure satisfies:

P˙Si=γRm˙outTo+(γ1)(UA)i(Ti,resTi)γPSiV˙SVS+Vi.

The internal redistribution equations of §4 remain unchanged: the external flow acts on heat exchanger H_i indirectly through the evolution of the pair pressure.

The transition to Phase III is the closing event of the H_o→ S check valve.

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

Both check valves are closed. The S+H_i pair expands nominally; the L+H_o pair also remains closed. Neither piston is assumed to be strictly stationary.

For S+H_i:

P˙Si=(γ1)(UA)i(Ti,resTi)γPSiV˙SVS+Vi.

For L+H_o:

P˙Lo=(γ1)(UA)o(To,resTo)γPLoV˙LVL+Vo.

The transition to Phase IV occurs when the H_i→ L check valve satisfies its opening condition.

6.4 Phase IV — heat exchange, nominally isothermal: S → H_i→ L

The gas leaves S, passes through the heat-in exchanger H_i, where it receives heat from its external reservoir, crosses the H_i → L check valve, and then enters the receiving cylinder L. The L+H_o pair remains quasi-pressure-equalized if the criterion εP1 is satisfied.

6.4.1 Donor cylinder S

The fundamental balance is:

d(mSCvTS)dt=PSV˙Sm˙S,outCpTS.

For outflow guaranteed by the kinematic design:

TSTS,ref=[mSmS,refVS,refVS]γ1

and:

PS=PS,ref[mSmS,refVS,refVS]γ.

Reverse flow requires returning to the complete open-system balance in (mS,US).

6.4.2 Heat-in exchanger H_i

m˙i=m˙inm˙out.

The fundamental energy balance is:

d(miCvTi)dt=m˙inCpTSm˙outCpTi+(UA)i(Ti,resTi).

In expanded form:

T˙i=m˙in(CpTSCvTi)m˙outRTi+(UA)i(Ti,resTi)Cvmi.

The flow rates are determined by:

m˙in=ΦHX,i(PS,Pi,TS,),

m˙out=Φvalve,i(Pi,PLo,Ti,).

6.4.3 Receiving pair L+H_o

The flow from H_i enters L. The pair pressure satisfies:

P˙Lo=γRm˙outTi+(γ1)(UA)o(To,resTo)γPLoV˙LVL+Vo.

Closing the H_i → L check valve returns the system to Phase I. Geometric closure of the pistons alone is not sufficient to guarantee thermodynamic closure of the cycle.

6.5 Motor operation

No second set of thermodynamic balance equations is required for motor operation.

The physical hydraulic topology remains:

LHoS,SHiL.

The check-valve directions remain:

HoS,HiL.

Motor operation is obtained by:

  1. reversing the crank direction,
  2. exchanging the external reservoirs connected to Hi and Ho.

Thus:

ω<0,

with the same cycle origin:

VL(0)=VL,max.

The thermal-reservoir assignment becomes:

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

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

Qi>0,

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

Qo<0.

The pressure histories, mass flow rates, check-valve events, and periodic thermodynamic state must be recalculated with the reversed kinematics.

The motor regime is obtained when:

Wcycle>0.

7. Physical transitions of the check valves

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

PuPdΔPopenopening,

PuPdΔPcloseclosing,

with hysteresis, if present:

ΔPcloseΔPopen.

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:

mi+=mi,Ui+=Ui,Vi+=Vi.

For an ideal gas:

Ti+=Ti,Pi+=Pi.

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

The values Λ serve as kinematic design targets; the values actually observed at the transitions are Λreal=Λ(tevent).

The two passive check valves have permanent physical orientations:

HoS,HiL.

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

8. Work, heat, and coefficient of performance

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

W˙=PSV˙S+PLV˙L.

PS and PL 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.

The net work over the cycle is:

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

The exchanged heats are:

Qi=0τ(UA)i(Ti,resTi)dt,

Qo=0τ(UA)o(To,resTo)dt.

In periodic steady operation:

ΔUcycle=0,

and the first law gives:

Qi+Qo=Wcycle.

The refrigeration COP is:

COPc=QiWcycle.

The heat-pump COP is:

COPh=QoWcycle=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 stage.

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:

Vi(t+τ)=Vi(t)

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), and, where relevant, ω.

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;
  • kinematic targets ΛL, ΛS.

10.3 Calculated variables and results

  • mi, Ui, Ti, Pi;
  • 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;
  • isothermal quality εT;
  • 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˙oPSV˙SPLV˙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,resTHX).

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,resTHX)+m˙intCpTup.

Using Cp=γR/(γ1):

VHXP˙+(γ1)(UA)HX(THXTHX,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˙PT˙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 receiving pair

For a pair receiving m˙ext into its cylinder:

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

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

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

The local mass balance:

m˙cyl=m˙extm˙int,

m˙HX=m˙int,

immediately gives:

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)(dmmdVV).

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˙inCpTinm˙outCpT+Q˙.

Expanding the left-hand side and using:

m˙=m˙inm˙out,

one obtains:

T˙=m˙in(CpTinCvT)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(TinT)+Q˙;
  • if Tin=T and m˙in=m˙out, the net contribution of the flow to T˙ vanishes.

= A.7 Global mass test during an active phase

For Phase II:

m˙L=m˙in,

m˙o=m˙inm˙out,

m˙SC=m˙out.

Summing:

M˙tot=0.

Phase IV gives exactly the same result by symmetry.

= A.8 Global energy test during an active phase

For Phase II:

U˙L=PLV˙Lm˙inhL,

U˙o=m˙inhLm˙outhH+Q˙o,

U˙SC=m˙outhH+Q˙iPSiV˙S.

The internal enthalpy fluxes cancel exactly:

m˙inhL+m˙inhL=0,

m˙outhH+m˙outhH=0.

What remains is:

U˙tot=Q˙i+Q˙oPLV˙LPSiV˙S.

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:

U˙tot=Q˙i+Q˙oPSV˙SPLV˙L.

Integrated over a periodic cycle, this relation gives:

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:

mi+=mi,Ui+=Ui,Vi+=Vi.

For an ideal gas:

Ti=UimiCv,Pi=miRTiVi,

which implies:

Ti+=Ti,Pi+=Pi.

The event only creates a change in hydraulic topology and in the active system of equations.