elements.catalog.mass_flow_inlet
elements.catalog.mass_flow_inlet(
mdot,
Tt,
composition=None,
basis='mole',
name='inlet',
perturbation_bc=None,
marker=0.0,
)Prescribed mass-flow inlet feeding a stream of the given composition.
Tt is the total (stagnation) temperature. The transported total enthalpy is h_t = h(Tt) – the mixture’s enthalpy evaluated at Tt – so the static temperature T < Tt is recovered on the edge from h = h_t - u^2/2; no kinetic energy is double-counted. composition states what the inlet feeds, read per the reacting model’s stream mode: in "auto" mode a named species mixture ({species: fraction}) – e.g. dry air as {"O2": 0.21, "N2": 0.79} – and in "declared" mode a blend over the declared streams ({stream_label: amount}, e.g. {"air": 20.0, "H2": 1.0} for a premix that keeps air and H2 separate, so their ratio is a live composition degree of freedom). basis gives the units of its amounts.
This is an inflow boundary: mdot must be non-negative (>= 0). A positive value injects the feed stream; mdot = 0 is a quiescent (closed) inlet. Reverse flow (a negative prescribed mass rate, i.e. suction out through the inlet) is not permitted – use a :func:mass_flow_outlet for an outflow with a prescribed mass flow rate.
marker (default 0.0, fresh reactant) is the injected burnt-marker value of the marker-gated reacting closure; set 1.0 to feed already-burnt gas (e.g. exhaust-gas recirculation), forcing the equilibrium closure downstream. It is only accepted on a marker-gated network (equilibrium-flame reacting, no explicit per-edge closure); a non-zero value elsewhere is rejected at build time.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| mdot | float | Prescribed inflow mass rate [kg/s] (>= 0). |
required |
| Tt | float | Total (stagnation) temperature [K] of the feed. | required |
| composition | dict or array_like | What the inlet feeds – a named species mixture {species: fraction} ("auto" mode), a blend {stream_label: amount} over the declared streams ("declared" mode), or raw passive-scalar values for a perfect gas. None -> zeros. |
None |
| basis | (mole, mass) | Units of composition’s amounts (default "mole"). |
"mole" |
| name | str | Element label. | 'inlet' |
| perturbation_bc | PerturbationBC | Acoustic termination; None inherits the linearized inlet reflection. |
None |
| marker | float | Injected burnt marker (0.0 fresh, default; 1.0 burnt); marker-gated networks only. |
0.0 |
Returns
| Name | Type | Description |
|---|---|---|
| ElementSpec |