Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlasmaPhase electron enthalpy depends on gas temperature #1306

Closed
speth opened this issue Jun 2, 2022 · 3 comments
Closed

PlasmaPhase electron enthalpy depends on gas temperature #1306

speth opened this issue Jun 2, 2022 · 3 comments

Comments

@speth
Copy link
Member

speth commented Jun 2, 2022

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 overridden updateThermo method, but then dimensionalizing it using the gas temperature in IdealGasPhase::getPartialMolarEnthalpies (which is not overridden).

Steps to reproduce

>>>[1]: import cantera as ct
>>>[2]: p = ct.Solution('test/data/oxygen-plasma.yaml',
                        'discretized-electron-energy-plasma', transport_model='None')
>>>[3]: p.TPX = 300, 101325, 'E: 1'
>>>[4]: p.Te
379740.6337340625
>>>[5]: p.enthalpy_mole
6230904.132044763
>>>[6]: p.TP = 301, None
>>>[7]: p.enthalpy_mole
6251673.8124849135
>>>[8]: p.Te
379740.6337340625

Behavior

The molar enthalpy for a phase of pure electrons should only depend on Te, not T.

System information

  • Cantera version: 2.6.0 or main at 8fbb4bc

Attachments

Additional context

This was discovered as part of #1299, which implements Cantera/enhancements#114.

@BangShiuh
Copy link
Contributor

BangShiuh commented Jun 7, 2022

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.

@speth
Copy link
Member Author

speth commented Jun 7, 2022

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.

@ischoegl
Copy link
Member

Fixed by #1323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants