Hello,
I am implementing my own custom reaction, and I have an issue that come down to how cantera handle the dimension 'quantity'. I get a 'non-unity conversion factor' error as long as I don't use 'kmol'.
I am using cantera 3.0.1 and python 3.10.14
You can simply reproduce the error with:
a = ct.Units('mol')
"""CanteraError:
*******************************************************************************
CanteraError thrown by Units::Units(string):
Detected non-unity conversion factor:
input 'mol' is equivalent to '0.001 kmol' where the conversion factor is '0.001'
*******************************************************************************"""
The same happens for 'molec'.
Also, on a side note, in the method "get_parameters(self, params)" that one must define in a custom reaction, would it be possible to have a way to modify 'params.units'?
When creating the reaction with a yaml string, I can write 'units: {myCustomUnitSystem}', but I would like to have this same unitSystem when the ct.Solution.write_yaml(f"{name}.yaml") is called.
Thanks in advance for helping out!
Kind regards,
Clément Soulié