PDSim.recip package

Submodules

PDSim.recip.core module

class PDSim.recip.core.Recip[source]

Bases: PDSimCore, _Recip

Recip is derived from PDSimCore.

functions V_dV and heat_transfer_callback are provided in _Recip Cython class

Discharge(FlowPath, **kwargs)[source]
Inlet(FlowPath, **kwargs)[source]
PistonLeakage(FlowPath, **kwargs)[source]
Suction(FlowPath, **kwargs)[source]
TubeCode(Tube, **kwargs)[source]
V_dV(theta)[source]

A thin wrapper around Cython code for pickling purposes

V_shell(theta)[source]
Vdisp()[source]

Returns displacement of compressor in m\(^3\)/revolution

ambient_heat_transfer()[source]

The ambient heat transfer for the compressor in kW

Returns a positive value if heat is added to the compressor

heat_transfer_callback(theta)[source]

A thin wrapper of the Cython code for pickling purposes

lump_energy_balance_callback()[source]
mechanical_losses()[source]

Mathematical Analysis:

\[x = {L_c}\cos \theta + \sqrt {L_1^2 - L_c^2{{\left( {\sin \theta } \right)}^2}}\]
\[\dot x = - {L_c}\sin \theta \dot \theta + \frac{{ - L_c^2\sin 2\theta }}{{2\sqrt {L_1^2 - L_c^2{{\left( {\sin \theta } \right)}^2}} }}\dot \theta\]
\[\bar \dot x = - \frac{{\dot \theta }}{\pi }\int_0^\pi {\left[ { - {L_c}\sin \theta + \frac{{ - L_c^2\sin 2\theta }}{{2\sqrt {L_1^2 - L_c^2{{\left( {\sin \theta } \right)}^2}} }}} \right]d\theta }\]
\[\bar \dot x = - \frac{{\dot \theta }}{\pi }\left[ {{L_c}\cos \theta } \right]_0^\pi = - \frac{{{L_c}\dot \theta }}{\pi }( - 1 - 1) = \frac{{2{L_c}\dot \theta }}{\pi }\]
pre_solve()[source]

Other calculations that are an indirect result of the inputs

Module contents