# Mass Injection Flow

Mass injection flow refers to inviscid, adiabatic flow through a constant area duct where the effect of mass addition is considered. For this model, the duct area remains constant, the flow is assumed to be steady and one-dimensional, and mass is added within the duct. Because the flow is adiabatic, unlike in Rayleigh flow, the stagnation temperature is a constant. Compressibility effects often come into consideration, though this flow model also applies to incompressible flow.
For supersonic flow (an upstream Mach number greater than 1), deceleration occurs with mass addition to the duct and the flow can become choked. Conversely, for subsonic flow (an upstream Mach number less than 1), acceleration occurs and the flow can become choked given sufficient mass addition. Therefore, mass addition will cause both supersonic and subsonic Mach numbers to approach Mach 1, resulting in choked flow.

## Theory

The 1D mass injection flow model begins with a mass-velocity relation derived for mass injection into a steady, adiabatic, frictionless, constant area flow of calorically perfect gas:
$\ {\frac {dm}{m}}=-{\frac {du}{u}}\left(M^{2}-1\right)$
where $m$ represents a mass flux, $m={\dot {m}}/A$. This expression describes how velocity will change with a change in mass flux (i.e. how a change in mass flux $dm$ drives a change in velocity $du$). From this relation, two distinct modes of behavior are seen:
* When flow is subsonic ($M<1$) the quantity $[M^{2}-1]$ is negative, so the right-hand side of the equation becomes positive. This indicates that increasing mass flux will increase subsonic flow velocity toward Mach 1.
* When flow is supersonic ($M>1$) the quantity $[M^{2}-1]$ is positive, so the right-hand side of the equation becomes negative. This indicates that increasing mass flux will decrease supersonic flow velocity towards Mach 1.
From the mass-velocity relation, an explicit mass-Mach relation may be derived:
${\frac {dm}{m}}={\frac {1-M^{2}}{M+{\frac {1}{2}}M^{3}(\gamma -1)}}dM$

## Derivations

Although Fanno flow and Rayleigh flow are covered in detail in many textbooks, mass injection flow is not. For this reason, derivations of fundamental mass flow properties are given here. In the following derivations, the constant $R$ is used to denote the specific gas constant (i.e. $R={\bar {R}}/M$).

### Mass-Velocity Relation

We begin by establishing a relationship between the differential enthalpy, pressure, and density of a calorically perfect gas:
    ${\begin{aligned}h&=c_{p}T\\h&=c_{p}\left({\frac {pv}{R}}\right)\\dh&={\frac {c_{p}}{R}}d(pdv+vdp)\\{\frac {dh}{h}}&=\left({\frac {\cancel {R}}{{\cancel {c_{p}}}pv}}\right){\cancel {\frac {c_{p}}{R}}}(pdv+vdp)\\{\frac {dh}{h}}&={\frac {dp}{p}}+{\frac {dv}{v}}\\{\frac {dh}{h}}&={\frac {dp}{p}}-{\frac {d\rho }{\rho }}\\\end{aligned}}$ (1)
From the adiabatic energy equation ($dh_{0}=0$) we find:
    ${\begin{aligned}h+{\frac {u^{2}}{2}}&=h_{0}\\dh+{\frac {1}{2}}d(uu)&={\cancel {dh_{0}}}\\dh+{\frac {1}{2}}(udu+udu)&=0\\dh+udu&=0\\{\frac {dh}{h}}+{\frac {udu}{h}}&=0\end{aligned}}$ (2)
Substituting the enthalpy-pressure-density relation (1) into the adiabatic energy relation (2) yields
    ${\begin{aligned}{\frac {dp}{p}}-{\frac {d\rho }{\rho }}+{\frac {udu}{h}}&=0\end{aligned}}$ (3)
Next, we find a relationship between differential density, mass flux ($m={\dot {m}}/A$), and velocity:
    ${\begin{aligned}{\dot {m}}&=\rho uA\\m&=\rho u\\\rho &={\frac {m}{u}}\\d\rho &={\frac {udm-mdu}{u^{2}}}\\{\frac {d\rho }{\rho }}&={\frac {dm}{m}}-{\frac {du}{u}}\end{aligned}}$ (4)
Substituting the density-mass-velocity relation (4) into the modified energy relation (3) yields
    ${\begin{aligned}{\frac {dp}{p}}-{\frac {dm}{m}}+{\frac {du}{u}}+{\frac {udu}{h}}&=0\end{aligned}}$ (5)
Substituting the 1D steady flow momentum conservation equation (see also the Euler equations) of the form $dp=-\rho udu$ into (5) yields
    ${\begin{aligned}0&={\frac {-\rho udu}{p}}-{\frac {dm}{m}}+{\frac {du}{u}}+{\frac {udu}{h}}\\{\frac {dm}{m}}&={\frac {-\rho udu}{p}}+{\frac {du}{u}}+{\frac {udu}{h}}\\&={\frac {du}{u}}\left({\frac {-\rho u^{2}}{p}}+{\frac {u^{2}}{h}}+1\right)\\{\frac {dm}{m}}&={\frac {du}{u}}\left[\left({\frac {1}{h}}-{\frac {\rho }{p}}\right)u^{2}+1\right]\end{aligned}}$ (6)
From the ideal gas law we find,
    ${\frac {\rho }{p}}={\frac {1}{RT}}$ (7)
and from the definition of a calorically perfect gas we find,
    $h=c_{p}T=\left({\frac {\gamma R}{\gamma -1}}\right)T$ (8)
Substituting expressions (7) and (8) into the combined equation (6) yields
    ${\begin{aligned}{\frac {dm}{m}}&={\frac {du}{u}}\left[\left({\frac {\gamma -1}{\gamma RT}}-{\frac {1}{RT}}\right)u^{2}+1\right]\\{\frac {dm}{m}}&={\frac {du}{u}}\left[\left({\frac {-1}{\gamma RT}}\right)u^{2}+1\right]\end{aligned}}$ (9)
Using the speed of sound in an ideal gas ($a^{2}=\gamma RT$) and the definition of the Mach number ($M=u/a$) yields
    ${\begin{aligned}{\frac {dm}{m}}&={\frac {du}{u}}\left[\left({\frac {-u^{2}}{a^{2}}}\right)+1\right]\end{aligned}}$ (10)
${\frac {dm}{m}}=-{\frac {du}{u}}[M^{2}-1]$
This is the mass-velocity relationship for mass injection into a steady, adiabatic, frictionless, constant area flow of calorically perfect gas.

### Mass-Mach Relation

To find a relationship between differential mass and Mach number, we will find an expression for $du/u$ solely in terms of the Mach number, $M$. We can then substitute this expression into the mass-velocity relation to yield a mass-Mach relation. We begin by relating differential velocity, mach number, and speed of sound:
    ${\begin{aligned}u&=Ma\\du&=adM+Mda\end{aligned}}$ (11)
We can now re-express $da$ in terms of $dT$:
    ${\begin{aligned}a&=(\gamma RT)^{1/2}\\da&={\frac {1}{2}}(\gamma RT)^{-1/2}\cdot \gamma RdT\\da&={\frac {\gamma R}{2a}}dT\end{aligned}}$ (12)
Substituting (12) into (11) yields,
    ${\begin{aligned}du&=adM+M{\frac {\gamma R}{2a}}dT\\{\frac {du}{u}}&={\frac {dM}{M}}+{\frac {\gamma R}{2a^{2}}}dT\\&={\frac {dM}{M}}+{\frac {\cancel {\gamma R}}{2{\cancel {\gamma R}}T}}dT\\{\frac {du}{u}}&={\frac {dM}{M}}+{\frac {1}{2}}{\frac {dT}{T}}\end{aligned}}$ (13)
We can now re-express $dT$ in terms of $du$:
    ${\begin{aligned}h_{0}&=c_{p}T+{\frac {1}{2}}u^{2}\\{\cancel {dh_{0}}}&=c_{p}dT+udu=0\\dT&=-udu\left({\frac {1}{c_{p}}}\right)\\{\frac {dT}{T}}&={\frac {-udu}{T}}\left({\frac {\gamma -1}{\gamma R}}\right)\\&={\frac {-udu}{a^{2}}}(\gamma -1)\\&={\frac {-uduM^{2}}{u^{2}}}(\gamma -1)\\{\frac {dT}{T}}&=-M^{2}(\gamma -1){\frac {du}{u}}\end{aligned}}$ (14)
By substituting (14) into (13), we can create an expression completely in terms of $du$ and $dM$. Performing this substitution and solving for $du/u$ yields,
    ${\begin{aligned}{\frac {du}{u}}&={\frac {dM}{M}}-{\frac {M^{2}(\gamma -1)}{2}}{\frac {du}{u}}\\{\frac {dM}{M}}&={\frac {du}{u}}\left(1+{\frac {M^{2}(\gamma -1)}{2}}\right)\\{\frac {du}{u}}&={\frac {dM}{M}}\left(1+{\frac {M^{2}(\gamma -1)}{2}}\right)^{-1}\end{aligned}}$ (15)
Finally, expression (15) for $du/u$ in terms of $dM$ may be substituted directly into the mass-velocity relation (10):
    ${\begin{aligned}{\frac {dm}{m}}&=-\left[{\frac {dM}{M}}\left(1+{\frac {M^{2}(\gamma -1)}{2}}\right)^{-1}\right]\cdot [M^{2}-1]\end{aligned}}$ (16)
${\frac {dm}{m}}={\frac {1-M^{2}}{M+{\frac {1}{2}}M^{3}(\gamma -1)}}dM$
This is the mass-Mach relationship for mass injection into a steady, adiabatic, frictionless, constant area flow of calorically perfect gas.