pub struct SmrCase {
pub methane_feed: f64,
pub steam_to_carbon: f64,
pub temperature: f64,
pub pressure: f64,
pub volume: f64,
pub forward: [ForwardRate; 2],
}Expand description
A fully-specified steady-state SMR CSTR case.
Fields§
§methane_feed: f64Inlet methane molar flow [mol/s].
steam_to_carbon: f64Steam-to-carbon ratio S/C [-] — inlet steam per inlet methane.
Industrial reforming runs 2.5–3.5 to suppress carbon laydown; this
model has no carbon chemistry, so a low S/C here is merely
optimistic rather than visibly wrong.
temperature: f64Reactor temperature [K], held constant (see the module’s scope note).
pressure: f64Reactor pressure [Pa]. Enters only through the ideal-gas volumetric flow.
volume: f64Tank volume V [m³].
forward: [ForwardRate; 2]Forward Arrhenius pairs, in SmrReaction::BOTH order.
Implementations§
Source§impl SmrCase
impl SmrCase
Sourcepub fn inlet_flows(&self) -> Vec<f64>
pub fn inlet_flows(&self) -> Vec<f64>
Inlet molar flows, by Species::index. Only methane and steam are
fed; the rest start at zero.
Sourcepub fn volumetric_flow(&self) -> f64
pub fn volumetric_flow(&self) -> f64
Inlet volumetric flow Q [m³/s] from the ideal gas law,
Q = Σ F · R T / P.
Held constant through the reactor, which is the inherited assumption this model does not fix — see the module scope note.
Sourcepub fn feed(&self) -> ReactorFeed
pub fn feed(&self) -> ReactorFeed
Assemble the reactor feed.
Sourcepub fn residence_time(&self) -> f64
pub fn residence_time(&self) -> f64
Nominal residence time τ = V/Q [s].
Sourcepub fn solve(&self) -> Result<SmrOutcome, ReactorError>
pub fn solve(&self) -> Result<SmrOutcome, ReactorError>
Solve the steady-state CSTR.
§Errors
Propagates ReactorError from the underlying Newton solve — a
non-positive volumetric flow, or failure to converge.