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
The enthalpy of the electron species in PlasmaPhase is calculated incorrectly, such that the enthalpy of the electron depends on both the electron temperature and the temperature of the non-electron species. This appears to be a result of calculating the non-dimensional enthalpy using the electron temperature in the overridden updateThermo method, but then dimensionalizing it using the gas temperature in IdealGasPhase::getPartialMolarEnthalpies (which is not overridden).
I think some system thermodynamic parameter might not be applicable for plasma. Ex. G = H - T S. But for convenience, it might be good to have a option to neglect the contribution of electron so that the system thermodynamics can still be obtained.
Yes, you're right, some of the bulk properties will not satisfy those relationships when the electron temperature is different from the gas species, but I think at least g_electron = h_electron - T_electron * s_electron should still be true.
Problem description
The enthalpy of the electron species in
PlasmaPhase
is calculated incorrectly, such that the enthalpy of the electron depends on both the electron temperature and the temperature of the non-electron species. This appears to be a result of calculating the non-dimensional enthalpy using the electron temperature in the overriddenupdateThermo
method, but then dimensionalizing it using the gas temperature inIdealGasPhase::getPartialMolarEnthalpies
(which is not overridden).Steps to reproduce
Behavior
The molar enthalpy for a phase of pure electrons should only depend on
Te
, notT
.System information
main
at 8fbb4bcAttachments
Additional context
This was discovered as part of #1299, which implements Cantera/enhancements#114.
The text was updated successfully, but these errors were encountered: