:orphan:

C (legacy) Examples
========================

These examples demonstrate the usage of Cantera's legacy C interface library,
``clib``, which can also be used to call Cantera from other languages that are able to
call C functions.

.. caution::
    The CLib interface is an experimental part of the Cantera API and may be changed
    or removed without notice.



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This program illustrates using Cantera&#x27;s legacy C-library interface to compute thermodynamic, kinetic, and transport properties of a gas mixture. In addition, a simple reactor network simulation is illustrated.">

.. only:: html

  .. image:: /examples/clib_legacy/images/thumb/sphx_glr_demo_thumb.png
    :alt:

  :ref:`sphx_glr_examples_clib_legacy_demo.c`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Legacy CLib Demo</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /examples/clib_legacy/demo


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples as source code: clib_legacy.zip </examples/clib_legacy/clib_legacy.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
