Include the libCellML library in your project¶
If you’ve followed the instructions for installing libCellML then the library is available for use as shown below.
Note that this doesn’t invoke the libCellML namespace, so classes are accessed using the libcellml:: prefix.
// main.cpp
#include <libcellml>
auto model = libcellml::Model::create();
In Python classes can be imported individually as required, or the whole library imported at once.
# main.py
import libcellml # import the entire library, or
from libcellml import Model, Variable # import specific classes as needed