TransientPSR#

class ansys.chemkin.core.stirreactors.transient_PSR.TransientPSR(reactor_condition: ansys.chemkin.core.inlet.Stream, label: str = '')#

Bases: ansys.chemkin.core.batchreactors.batchreactor.BatchReactors

Generic transient perfectly-stirred reactor model.

Overview#

set_inlet

Add an external inlet to the reactor.

reset_inlet

Reset the properties of an existing external inlet.

remove_inlet

Delete an existing external inlet from the reactor by the inlet name.

set_inlet_keywords

Set up inlet keywords.

set_initial_conditions

Reset the initial reactor gas mixture.

reset_initial_temperature

Reset the initial reactor gas temperature.

reset_initial_composition

Reset the initial reactor gas composition.

validate_inputs

Validate the keywords.

run

Perform common steps to run a Chemkin reactor model.

residence_time

Get reactor residence time.

net_mass_flowrate

Get the net external inlet mass flow rate.

net_vol_flowrate

Get the net external volumetric flow rate.

number_external_inlets

Get the number of external inlets to the reactor.

Import detail#

from ansys.chemkin.core.stirreactors.transient_PSR import TransientPSR

Property detail#

property TransientPSR.residence_time: float#

Get reactor residence time.

property TransientPSR.net_mass_flowrate: float#

Get the net external inlet mass flow rate.

property TransientPSR.net_vol_flowrate: float#

Get the net external volumetric flow rate.

property TransientPSR.number_external_inlets: int#

Get the number of external inlets to the reactor.

Attribute detail#

TransientPSR.ireac#
TransientPSR.standalone = True#
TransientPSR.numbexternalinlets = 0#
TransientPSR.externalinlets: dict[str, ansys.chemkin.core.inlet.Stream]#
TransientPSR.totalmassflowrate = 0.0#

Method detail#

TransientPSR.set_inlet(extinlet: ansys.chemkin.core.inlet.Stream)#

Add an external inlet to the reactor.

TransientPSR.reset_inlet(new_stream: ansys.chemkin.core.inlet.Stream)#

Reset the properties of an existing external inlet.

TransientPSR.remove_inlet(name: str)#

Delete an existing external inlet from the reactor by the inlet name.

TransientPSR.set_inlet_keywords() int#

Set up inlet keywords.

TransientPSR.set_initial_conditions(option: str, guess_temp: float | None = None)#

Reset the initial reactor gas mixture.

TransientPSR.reset_initial_temperature(temp: float)#

Reset the initial reactor gas temperature.

TransientPSR.reset_initial_composition(fraction: numpy.typing.NDArray[numpy.double] | list[tuple[str, float]], mode: str = 'mole')#

Reset the initial reactor gas composition.

TransientPSR.validate_inputs() int#

Validate the keywords.

TransientPSR.run() int#

Perform common steps to run a Chemkin reactor model.