From charlesreid1

Revision as of 18:35, 12 August 2014 by Admin (talk | contribs) (Created page with "The following instructions describe how to implement a new C++ class in Cantera 2.1 and make it accessible via Python. =Overview= To add a new C++ class in Cantera, you will ne...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The following instructions describe how to implement a new C++ class in Cantera 2.1 and make it accessible via Python.

Overview

To add a new C++ class in Cantera, you will need to follow a couple of steps:

1. Add the C++ code for the class

2. Wrap the new C++ code with the C API

3. Create a Python object that calls the C API code

4. Create a Cython object

This fourth step is new to Cantera 2.1.