PerfectlyStirredReactor#

class ansys.chemkin.core.stirreactors.PSR.PerfectlyStirredReactor(guessedmixture: ansys.chemkin.core.inlet.Stream, label: str | None = None)#

Bases: ansys.chemkin.core.stirreactors.openreactor.OpenReactor

Generic perfectly-stirred reactor model.

Overview#

set_inlet_keywords

Set up inlet keywords.

set_reactor_index

Assign the reactor index/number.

set_estimate_conditions

Reset the initial/guessed reactor gas mixture.

reset_estimate_temperature

Reset the estimated reactor gas temperature.

reset_estimate_composition

Reset the estimated reactor gas composition.

validate_inputs

Validate the keywords.

set_ss_solver_keywords

Add steady-state solver parameter keywoprds to the keyword list.

cluster_process_keywords

Process input keywords for the reactor model in cluster network mode.

run

Perform common steps to run a Chemkin reactor model.

process_solution

Post-process solution.

area

Get reactive surface area.

volume

Get reactor volume.

residence_time

Get reactor residence time.

Import detail#

from ansys.chemkin.core.stirreactors.PSR import PerfectlyStirredReactor

Property detail#

property PerfectlyStirredReactor.area: float#

Get reactive surface area.

property PerfectlyStirredReactor.volume: float#

Get reactor volume.

property PerfectlyStirredReactor.residence_time: float#

Get reactor residence time.

Attribute detail#

PerfectlyStirredReactor.HTarea = 0.0#
PerfectlyStirredReactor.standalone = True#
PerfectlyStirredReactor.ireac#

Method detail#

PerfectlyStirredReactor.set_inlet_keywords() int#

Set up inlet keywords.

PerfectlyStirredReactor.set_reactor_index(reactorindex: int)#

Assign the reactor index/number.

PerfectlyStirredReactor.set_estimate_conditions(option: str, guess_temp: float | None = None)#

Reset the initial/guessed reactor gas mixture.

PerfectlyStirredReactor.reset_estimate_temperature(temp: float)#

Reset the estimated reactor gas temperature.

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

Reset the estimated reactor gas composition.

PerfectlyStirredReactor.validate_inputs() int#

Validate the keywords.

PerfectlyStirredReactor.set_ss_solver_keywords()#

Add steady-state solver parameter keywoprds to the keyword list.

PerfectlyStirredReactor.cluster_process_keywords() int#

Process input keywords for the reactor model in cluster network mode.

PerfectlyStirredReactor.run() int#

Perform common steps to run a Chemkin reactor model.

PerfectlyStirredReactor.process_solution() ansys.chemkin.core.inlet.Stream#

Post-process solution.