:orphan: Python Examples =============== .. seealso:: To find examples covering a specific topic, see the :ref:`index of example tags `. .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Thermodynamics -------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_mixing_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_mixing.py` .. raw:: html
Mixing using Quantity objects
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_critical_properties_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_critical_properties.py` .. raw:: html
Critical state properties
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_sound_speed_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_sound_speed.py` .. raw:: html
Sound speeds
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_rankine_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_rankine.py` .. raw:: html
Rankine cycle
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_isentropic_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_isentropic.py` .. raw:: html
Isentropic, adiabatic flow
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_sound_speed_units_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_sound_speed_units.py` .. raw:: html
Sound speeds (with units)
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_rankine_units_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_rankine_units.py` .. raw:: html
Rankine cycle (with units)
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_isentropic_units_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_isentropic_units.py` .. raw:: html
Isentropic, adiabatic flow (with units)
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_vapordome_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_vapordome.py` .. raw:: html
Vapor Dome
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_equivalenceRatio_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_equivalenceRatio.py` .. raw:: html
Equivalence ratio
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_coverage_dependent_surf_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_coverage_dependent_surf.py` .. raw:: html
Surface with coverage-dependent thermo
.. raw:: html
.. only:: html .. image:: /examples/python/thermo/images/thumb/sphx_glr_equations_of_state_thumb.png :alt: :ref:`sphx_glr_examples_python_thermo_equations_of_state.py` .. raw:: html
Non-ideal equations of state
.. thumbnail-parent-div-close .. raw:: html
Kinetics -------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/kinetics/images/thumb/sphx_glr_reaction_path_thumb.png :alt: :ref:`sphx_glr_examples_python_kinetics_reaction_path.py` .. raw:: html
Viewing a reaction path diagram
.. raw:: html
.. only:: html .. image:: /examples/python/kinetics/images/thumb/sphx_glr_mechanism_reduction_thumb.png :alt: :ref:`sphx_glr_examples_python_kinetics_mechanism_reduction.py` .. raw:: html
Mechanism reduction
.. raw:: html
.. only:: html .. image:: /examples/python/kinetics/images/thumb/sphx_glr_extract_submechanism_thumb.png :alt: :ref:`sphx_glr_examples_python_kinetics_extract_submechanism.py` .. raw:: html
Extracting a sub-mechanism
.. raw:: html
.. only:: html .. image:: /examples/python/kinetics/images/thumb/sphx_glr_blowers_masel_thumb.png :alt: :ref:`sphx_glr_examples_python_kinetics_blowers_masel.py` .. raw:: html
Blowers-Masel reaction rates
.. raw:: html
.. only:: html .. image:: /examples/python/kinetics/images/thumb/sphx_glr_custom_reactions_thumb.png :alt: :ref:`sphx_glr_examples_python_kinetics_custom_reactions.py` .. raw:: html
Custom reaction rates
.. thumbnail-parent-div-close .. raw:: html
Transport --------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/transport/images/thumb/sphx_glr_dusty_gas_thumb.png :alt: :ref:`sphx_glr_examples_python_transport_dusty_gas.py` .. raw:: html
Porous media transport using the dusty gas model
.. raw:: html
.. only:: html .. image:: /examples/python/transport/images/thumb/sphx_glr_multiprocessing_viscosity_thumb.png :alt: :ref:`sphx_glr_examples_python_transport_multiprocessing_viscosity.py` .. raw:: html
Parallelizing transport property calculations
.. thumbnail-parent-div-close .. raw:: html
Reactor networks ---------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_reactor1_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_reactor1.py` .. raw:: html
Constant-pressure, adiabatic kinetics simulation
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_plasma_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_plasma.py` .. raw:: html
Plasma Reactor
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_mix1_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_mix1.py` .. raw:: html
Mixing two streams
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_custom_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_custom.py` .. raw:: html
Integrating constant pressure ignition using SciPy
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_sensitivity1_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_sensitivity1.py` .. raw:: html
Constant-pressure, adiabatic kinetics simulation with sensitivity analysis
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_surf_pfr_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_surf_pfr.py` .. raw:: html
Plug flow reactor with surface chemistry
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_piston_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_piston.py` .. raw:: html
Reactors separated by a moving piston
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_periodic_cstr_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_periodic_cstr.py` .. raw:: html
Continuously stirred tank reactor with periodic behavior
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_fuel_injection_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_fuel_injection.py` .. raw:: html
Soot precursor formation with time-varying mass flow rate
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_combustor_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_combustor.py` .. raw:: html
Combustor residence time
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_custom2_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_custom2.py` .. raw:: html
Using ExtensibleReactor to implement wall inertia
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_preconditioned_integration_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_preconditioned_integration.py` .. raw:: html
Acceleration of reactor integration using a sparse preconditioned solver
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_reactor2_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_reactor2.py` .. raw:: html
Reactors with walls and heat transfer
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_surf_pfr_chain_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_surf_pfr_chain.py` .. raw:: html
Plug flow reactor modeled as a chain of well stirred reactors
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_pfr_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_pfr.py` .. raw:: html
Plug flow reactor modeling approaches
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_continuous_reactor_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_continuous_reactor.py` .. raw:: html
Continuously Stirred Tank Reactor
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_ic_engine_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_ic_engine.py` .. raw:: html
Diesel-type internal combustion engine simulation with gaseous fuel
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_interactive_path_diagram_thumb.svg :alt: :ref:`sphx_glr_examples_python_reactors_interactive_path_diagram.py` .. raw:: html
Interactive Reaction Path Diagrams
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_NonIdealShockTube_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_NonIdealShockTube.py` .. raw:: html
Ignition delay time using the Redlich-Kwong real gas model
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_1D_packed_bed_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_1D_packed_bed.py` .. raw:: html
One-dimensional packed-bed, catalytic-membrane reactor
.. raw:: html
.. only:: html .. image:: /examples/python/reactors/images/thumb/sphx_glr_PorousMediaBurner_thumb.png :alt: :ref:`sphx_glr_examples_python_reactors_PorousMediaBurner.py` .. raw:: html
Reactor cascade model for reactive flows in inert porous media
.. thumbnail-parent-div-close .. raw:: html
1D reacting flows ----------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_ion_burner_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_ion_burner_flame.py` .. raw:: html
Burner-stabilized flame including ionized species
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_burner_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_burner_flame.py` .. raw:: html
Burner-stabilized flame
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_ion_free_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_ion_free_flame.py` .. raw:: html
Freely-propagating flame with charged species
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_premixed_counterflow_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_premixed_counterflow_flame.py` .. raw:: html
Opposed-flow premixed strained flame
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_adiabatic_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_adiabatic_flame.py` .. raw:: html
Laminar flame speed calculation
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_stagnation_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_stagnation_flame.py` .. raw:: html
Detached flat flame stabilized at a stagnation point
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_diffusion_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_diffusion_flame.py` .. raw:: html
Counterflow diffusion flame
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_flamespeed_sensitivity_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_flamespeed_sensitivity.py` .. raw:: html
Laminar flame speed sensitivity analysis
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_flame_fixed_T_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_flame_fixed_T.py` .. raw:: html
Burner-stabilized flame with imposed temperature profile
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_premixed_counterflow_twin_flame_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_premixed_counterflow_twin_flame.py` .. raw:: html
Symmetric premixed twin flame
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_flame_initial_guess_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_flame_initial_guess.py` .. raw:: html
Saving, loading, and restarting 1D calculations
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_diffusion_flame_extinction_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_diffusion_flame_extinction.py` .. raw:: html
Diffusion flame extinction strain rate
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_diffusion_flame_batch_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_diffusion_flame_batch.py` .. raw:: html
Scaling of diffusion flames with pressure and strain rate
.. raw:: html
.. only:: html .. image:: /examples/python/onedim/images/thumb/sphx_glr_flame_speed_convergence_analysis_thumb.png :alt: :ref:`sphx_glr_examples_python_onedim_flame_speed_convergence_analysis.py` .. raw:: html
Flame Speed with Convergence Analysis
.. thumbnail-parent-div-close .. raw:: html
Surface chemistry ----------------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/surface_chemistry/images/thumb/sphx_glr_diamond_cvd_thumb.png :alt: :ref:`sphx_glr_examples_python_surface_chemistry_diamond_cvd.py` .. raw:: html
Growth of diamond film using CVD
.. raw:: html
.. only:: html .. image:: /examples/python/surface_chemistry/images/thumb/sphx_glr_1D_pfr_surfchem_thumb.png :alt: :ref:`sphx_glr_examples_python_surface_chemistry_1D_pfr_surfchem.py` .. raw:: html
Plug flow reactor: silicon nitride deposition
.. raw:: html
.. only:: html .. image:: /examples/python/surface_chemistry/images/thumb/sphx_glr_catalytic_combustion_thumb.png :alt: :ref:`sphx_glr_examples_python_surface_chemistry_catalytic_combustion.py` .. raw:: html
Catalytic combustion of methane on platinum
.. raw:: html
.. only:: html .. image:: /examples/python/surface_chemistry/images/thumb/sphx_glr_lithium_ion_battery_thumb.png :alt: :ref:`sphx_glr_examples_python_surface_chemistry_lithium_ion_battery.py` .. raw:: html
Lithium Ion Battery Discharge Curve
.. raw:: html
.. only:: html .. image:: /examples/python/surface_chemistry/images/thumb/sphx_glr_sofc_thumb.png :alt: :ref:`sphx_glr_examples_python_surface_chemistry_sofc.py` .. raw:: html
Solid oxide fuel cell using elementary kinetics
.. thumbnail-parent-div-close .. raw:: html
Multiphase ---------- .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/python/multiphase/images/thumb/sphx_glr_plasma_equilibrium_thumb.png :alt: :ref:`sphx_glr_examples_python_multiphase_plasma_equilibrium.py` .. raw:: html
Equilibrium with charged species and multiple condensed phases
.. raw:: html
.. only:: html .. image:: /examples/python/multiphase/images/thumb/sphx_glr_adiabatic_thumb.png :alt: :ref:`sphx_glr_examples_python_multiphase_adiabatic.py` .. raw:: html
Adiabatic flame temperature including solid carbon formation
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /examples/python/thermo/index.rst /examples/python/kinetics/index.rst /examples/python/transport/index.rst /examples/python/reactors/index.rst /examples/python/onedim/index.rst /examples/python/surface_chemistry/index.rst /examples/python/multiphase/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: python_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: python_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_