rizer.boulder_plugin.shell#

Zero-RHS Cantera reactor shell for rizer’s Boulder kinds.

Boulder builds each stage’s integrator from the non-reservoir reactors of the graph and, after the solve, a visualisation cantera.ReactorNet from the same list. A rizer kind whose physics is integrated by its own network (the NRP case reactor, the adaptive composite) therefore still needs a genuine cantera.ReactorBase in the graph: PlasmaShellNode shares the case’s plasma Solution (clone=False), mirrors its state and has an identically zero right-hand side, so the visualisation advance(0.0) leaves the final state untouched.

Classes#

PlasmaShellNode

Placeholder reactor mirroring a plasma Solution at constant mass.

Module Contents#

class rizer.boulder_plugin.shell.PlasmaShellNode(contents: cantera.Solution, *, name: str, **kwargs: Any)#

Bases: cantera.ExtensibleReactor

Placeholder reactor mirroring a plasma Solution at constant mass.

Parameters:
  • contents (cantera.Solution) – The plasma phase the represented model integrates. Shared, not cloned: cloning a Solution carrying Python ExtensibleRate rates is unreliable in Cantera 4.0a2.

  • name (str) – Boulder node id.

NETWORK_CLASS: Any = None#
mass_kg#
last_network: Any = None#
set_geometry(mass: float, volume: float) → None#

Set the mirrored plasma mass [kg] and volume [m^3].

replace_get_state(y: numpy.ndarray) → None#
replace_update_state(y: numpy.ndarray) → None#
replace_eval(t: float, LHS: numpy.ndarray, RHS: numpy.ndarray) → None#