Skip to content

Question: equivalent of composite Python classes in C++ #695

Closed
@ischoegl

Description

@ischoegl

Cantera version

2.5.0a3

Expected Behavior

It would be useful to have C++ equivalents of composite classes that are defined in Python (i.e. Solution, Interface, etc.). A replication of those classes would clarify origin and structure of thermo/kinetics/transport managers that are instantiated from the Python composite class (the same holds true for Matlab).

This does not mean the replication of double/triple inheritance within C++. Rather, the C++ classes would receive pointers to previously allocated managers, as well as hold type information (which is currently lost in C++) and a uniquely assignable name.

The motivation is that a common root for composite objects appears to be necessary for serialization within the C++ layer. A direct mapping of Python to C++ objects would also clarify the overall structure of cantera.

Actual Behavior

There is no replication of composite classes within C++

Steps to reproduce

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions