ShockTubeReactors#

class ansys.chemkin.core.shock.shocktubereactors.ShockTubeReactors(reactor_condition: ansys.chemkin.core.inlet.Stream, label: str)#

Bases: ansys.chemkin.core.reactormodel.ReactorModel

Generic Chemkin 0-D transient shock tube reactor model.

Overview#

set_inlet_viscosity

Set the initial gas viscocity.

set_solver_max_timestep_size

Set the maximum time step size.

set_solution_printing_timestep_size

Set the timestep size for solution printing.

get_solution_size

Get solution size.

process_solution

Post-process solution to extract the raw solution variable data.

get_solution_variable_profile

Get the solution profile.

create_solution_streams

Create a list of Streams at the solution time points.

get_solution_stream

Get the solution stream at the given time.

get_solution_stream_at_index

Get solution stream at given solution time index.

get_inductionlength_size

Get number of induction length.

get_induction_lengths

Get induction lengths and local maximum total thermicities.

get_single_point_solution

Get the value of single point solution variable.

time

Get simulation end time.

starttime

Get simulation start time.

diameter

Get shock tube diameter.

tolerances

Get transient solver tolerances.

Import detail#

from ansys.chemkin.core.shock.shocktubereactors import ShockTubeReactors

Property detail#

property ShockTubeReactors.time: float#

Get simulation end time.

property ShockTubeReactors.starttime: float#

Get simulation start time.

property ShockTubeReactors.diameter: float#

Get shock tube diameter.

property ShockTubeReactors.tolerances: tuple#

Get transient solver tolerances.

Attribute detail#

ShockTubeReactors.bl_correction = 0#
ShockTubeReactors.reactor_diameter#
ShockTubeReactors.init_visc#
ShockTubeReactors.i_type#
ShockTubeReactors.pfr_like = False#
ShockTubeReactors.soln_parameters_list = ['P', 'T', 'RHO', 'V', 'A', 'MA', 'CDET']#

Method detail#

ShockTubeReactors.set_inlet_viscosity(visc: float)#

Set the initial gas viscocity.

ShockTubeReactors.set_solver_max_timestep_size(size: float)#

Set the maximum time step size.

ShockTubeReactors.set_solution_printing_timestep_size(delta_time: float)#

Set the timestep size for solution printing.

ShockTubeReactors.get_solution_size() int#

Get solution size.

ShockTubeReactors.process_solution()#

Post-process solution to extract the raw solution variable data.

ShockTubeReactors.get_solution_variable_profile(varname: str) numpy.typing.NDArray[numpy.double]#

Get the solution profile.

ShockTubeReactors.create_solution_streams(specfrac: numpy.typing.NDArray[numpy.double]) int#

Create a list of Streams at the solution time points.

ShockTubeReactors.get_solution_stream(time: float) ansys.chemkin.core.inlet.Stream#

Get the solution stream at the given time.

ShockTubeReactors.get_solution_stream_at_index(solution_index: int) ansys.chemkin.core.inlet.Stream#

Get solution stream at given solution time index.

ShockTubeReactors.get_inductionlength_size() int#

Get number of induction length.

ShockTubeReactors.get_induction_lengths(npoints: int) tuple[numpy.typing.NDArray[numpy.double], numpy.typing.NDArray[numpy.double]]#

Get induction lengths and local maximum total thermicities.

ShockTubeReactors.get_single_point_solution(varname: str) float#

Get the value of single point solution variable.