-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
[thermo] fix plasma enthalpy_mole #1323
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1323 +/- ##
==========================================
+ Coverage 70.79% 70.82% +0.02%
==========================================
Files 373 373
Lines 53873 53949 +76
Branches 17579 17587 +8
==========================================
+ Hits 38141 38208 +67
- Misses 13331 13339 +8
- Partials 2401 2402 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
0f7a04c
to
4c7202e
Compare
4c7202e
to
fed3779
Compare
@BangShiuh … do you have any updates on this PR? |
fed3779
to
7f0fefd
Compare
@ischoegl There are some issues defining the thermodynamic properties of plasma. I am still working on it. |
7f0fefd
to
3341b1c
Compare
ebcc7a8
to
e165f0d
Compare
@speth The consistency test is very helpful to get the thermodynamics correct. However, I still failed for case gk_eq_hk_minus_T_sk. Also in the case hk_eq_uk_plus_P_vk, I use RTe instead of p * vk[k] because I am not sure how to define a partial molar volume for electrons. |
For In the second case, is there a problem with using the same definition of the partial molar volume as used for the gas phase species (which is just the inverse of the mixture molar density, for all species)? I guess the question becomes whether the distinct electron temperature is being considered in the equation of state or not. |
e165f0d
to
c79287c
Compare
437787a
to
409b983
Compare
@speth Any thought on this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates to this, @BangShiuh. The main parts of the implementation all look reasonable to me. I just had a few questions / suggestions for your consideration.
test/thermo/thermoToYaml.cpp
Outdated
roundtrip("oxygen-plasma.yaml", "isotropic-electron-energy-plasma"); | ||
compareThermo(800, 2*OneAtm); | ||
auto origPlasma = std::dynamic_pointer_cast<PlasmaPhase>(original); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this comparison have to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixture thermal properties like enthalpy_mole() are not applicable for PlasmaPhase because it has gas and electron temperature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initial point of this PR was to provide a working implementation of enthalpy_mole
, though. I pushed an alternative that selectively disables the two methods called by compareThermo
that are not implemented in PlasmaPhase
(cp_mole
and entropy_mole
).
409b983
to
ac71043
Compare
c5f6d5f
to
b940d27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. @ischoegl - I'd like to leave final approval of this to you, since I stuck a commit of my own in here and don't want to be just approving my own code, even if it is relatively minor.
Fix issue #1306
Checklist
scons build
&scons test
) and unit tests address code coverage