ShockTubeReactors#
- class ansys.chemkin.core.shock.shocktubereactors.ShockTubeReactors(reactor_condition: ansys.chemkin.core.inlet.Stream, label: str)#
Bases:
ansys.chemkin.core.reactormodel.ReactorModelGeneric Chemkin 0-D transient shock tube reactor model.
Overview#
Set the initial gas viscocity. |
|
Set the maximum time step size. |
|
Set the timestep size for solution printing. |
|
Get solution size. |
|
Post-process solution to extract the raw solution variable data. |
|
Get the solution profile. |
|
Create a list of Streams at the solution time points. |
|
Get the solution stream at the given time. |
|
Get solution stream at given solution time index. |
|
Get number of induction length. |
|
Get induction lengths and local maximum total thermicities. |
|
Get the value of single point solution variable. |
Get simulation end time. |
|
Get simulation start time. |
|
Get shock tube diameter. |
|
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.