You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Historically, ThermoPhase and Kinetics objects were instantiated in the clib API via thermo_newFromFile and kin_newFromFile. Cantera/cantera#1448 introduced access for Solution objects to clib, which can now be instantiated via soln_newSolution (and soln_newInterface).
The historic instantiation route was important for the (now removed) legacy MATLAB toolbox, but is also still actively used in the Fortran and .NET interfaces. The main advantage of the new clib API functions is that they (i) allow for handling that is consistent with other parts of Cantera, and (ii) take care of all configuration steps.
Motivation
Describe the need for the proposed change:
What problem is it trying to solve? ... make handling of Solution consistent across all interfaces
Who is affected by the change? ... users of clib and derived APIs (e.g .NET)
Why is this a good solution? ... removes legacy code
Edit: Fortran is not affected by CLib, as it reimplements the _newFromFile routines separately.
Possible Solutions
Remove all instances of thermo_newFromFile and kin_newFromFile, and replace them by single call to soln_newSolution. Inclusion of surface kinetics in .NET requires resolution of Cantera/cantera#1450.
Abstract
Historically,
ThermoPhase
andKinetics
objects were instantiated in the clib API viathermo_newFromFile
andkin_newFromFile
. Cantera/cantera#1448 introduced access forSolution
objects to clib, which can now be instantiated viasoln_newSolution
(andsoln_newInterface
).The historic instantiation route was important for the (now removed) legacy MATLAB toolbox, but is also still actively used in the Fortran and .NET interfaces. The main advantage of the new clib API functions is that they (i) allow for handling that is consistent with other parts of Cantera, and (ii) take care of all configuration steps.
Motivation
Describe the need for the proposed change:
Solution
consistent across all interfacesEdit: Fortran is not affected by CLib, as it reimplements the
_newFromFile
routines separately.Possible Solutions
Remove all instances of
thermo_newFromFile
andkin_newFromFile
, and replace them by single call tosoln_newSolution
. Inclusion of surface kinetics in .NET requires resolution of Cantera/cantera#1450.References
The text was updated successfully, but these errors were encountered: