PSRCluster#

class ansys.chemkin.core.stirreactors.PSRcluster.PSRCluster(config: list[ansys.chemkin.core.stirreactors.PSR.PerfectlyStirredReactor], label: str | None = None)#

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

A cluster of perfectly-stirred reactors.

Overview#

numb_external_inlet

Get the number of external inlet to a reactor.

get_reactor_label

Get the PSR name/label.

set_recycling_stream

Set outflowing stream connectivity of a reactor.

set_recycling_keywords

Add outflow recycling connectivity keywords.

add_heat_exchange

Add heat exchange connection between two reactors.

set_heat_exchange_keywords

Add heat exchange connectivity keywords.

run

Run the reactor network simulation.

get_cluster_run_status

Get cluster run status.

get_reactor_stream

Get the solution Stream object.

get_cluster_solutionstatus

Get post-process status.

process_cluster_solution

Post-process cluster solution.

get_cluster_outlet_flowrate

Get the net/total outlet mass flow rate.

numb_psrs

Get the number of PSR.

total_numb_external_inlets

Get the total number of external inlet to the network.

total_inlet_mass_flow_rate

Get the total external inlet mass flow rate to the network.

Import detail#

from ansys.chemkin.core.stirreactors.PSRcluster import PSRCluster

Property detail#

property PSRCluster.numb_psrs: int#

Get the number of PSR.

property PSRCluster.total_numb_external_inlets: int#

Get the total number of external inlet to the network.

property PSRCluster.total_inlet_mass_flow_rate: float#

Get the total external inlet mass flow rate to the network.

Attribute detail#

PSRCluster.total_external_inlets = 0#
PSRCluster.total_mass_flow_rate = 0.0#
PSRCluster.npsrs = 0#
PSRCluster.psr_map: dict[str, int]#
PSRCluster.psr_objects: dict[int, ansys.chemkin.core.stirreactors.PSR.PerfectlyStirredReactor]#
PSRCluster.psr_solutions: dict[int, ansys.chemkin.core.inlet.Stream]#
PSRCluster.numb_recycling_streams = 0#
PSRCluster.recycling_connections: dict[int, list[tuple[str, float]]]#
PSRCluster.cluster_run_status = -100#
PSRCluster.outlet_mass_flow_rate = 0.0#
PSRCluster.numb_heat_exchange_pairs = 0#
PSRCluster.heat_exchange_pair: list[tuple[int, int]] = []#
PSRCluster.heat_exchange_coeffcients: list[float] = []#
PSRCluster.heat_exchange_areas: list[float] = []#

Method detail#

PSRCluster.numb_external_inlet(name: str) int#

Get the number of external inlet to a reactor.

PSRCluster.get_reactor_label(reactor_index: int) str#

Get the PSR name/label.

PSRCluster.set_recycling_stream(source_psr: str, connections: list[tuple[str, float]])#

Set outflowing stream connectivity of a reactor.

PSRCluster.set_recycling_keywords()#

Add outflow recycling connectivity keywords.

PSRCluster.add_heat_exchange(reactor1: str, reactor2: str, heat_transfer_coeff: float, heat_transfer_area: float)#

Add heat exchange connection between two reactors.

PSRCluster.set_heat_exchange_keywords()#

Add heat exchange connectivity keywords.

PSRCluster.run() int#

Run the reactor network simulation.

PSRCluster.get_cluster_run_status() int#

Get cluster run status.

PSRCluster.get_reactor_stream(reactor_name: str) ansys.chemkin.core.inlet.Stream#

Get the solution Stream object.

PSRCluster.get_cluster_solutionstatus() bool#

Get post-process status.

PSRCluster.process_cluster_solution() int#

Post-process cluster solution.

PSRCluster.get_cluster_outlet_flowrate() float#

Get the net/total outlet mass flow rate.