The inlet.py module#

Summary#

Stream

Generic inlet stream object for Chemkin open reactor models.

clone_stream

Copy the properties of the source Stream to the target Stream.

compare_streams

Compare properties of stream B against those of stream A.

adiabatic_mixing_streams

Create a new Stream object by mixing two streams adiabatically.

create_stream_from_mixture

Create a new Stream object from the given Mixture object.

Description#

Chemkin reactor inlet/stream utilities.

Module detail#

inlet.clone_stream(source: Stream, target: Stream)#

Copy the properties of the source Stream to the target Stream.

inlet.compare_streams(stream_a: Stream, stream_b: Stream, atol: float = 1e-10, rtol: float = 0.001, mode: str = 'mass') tuple[bool, float, float]#

Compare properties of stream B against those of stream A.

inlet.adiabatic_mixing_streams(stream_a: Stream, stream_b: Stream) Stream#

Create a new Stream object by mixing two streams adiabatically.

inlet.create_stream_from_mixture(chem: ansys.chemkin.core.chemistry.Chemistry, mixture: ansys.chemkin.core.mixture.Mixture, flow_rate: float = 0.0, mode: str = 'mass') Stream#

Create a new Stream object from the given Mixture object.