-
Notifications
You must be signed in to change notification settings - Fork 95
feat: Add enthalpy to PVT Driver output #3704
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3704 +/- ##
========================================
Coverage 57.80% 57.80%
========================================
Files 1248 1248
Lines 107846 107862 +16
========================================
+ Hits 62342 62354 +12
- Misses 45504 45508 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/coreComponents/constitutiveDrivers/fluid/multiFluid/PVTDriverRunTest.hpp
Outdated
Show resolved
Hide resolved
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.
Not much for me to review here, but looks fine.
integer const PHASE_FRACTION = TEMP + 2 + (outputCompressibility ? 1 : 0); | ||
integer const PHASE_DENSITY = PHASE_FRACTION + numPhases; | ||
integer const PHASE_VISCOSITY = outputMassDensity ? PHASE_DENSITY + 2*numPhases : PHASE_DENSITY + numPhases; | ||
integer const PHASE_COMP = PHASE_VISCOSITY + numPhases; | ||
integer const PHASE_MASS_DENSITY = PHASE_DENSITY + (outputMassDensity ? numPhases : 0); | ||
integer const PHASE_VISCOSITY = PHASE_MASS_DENSITY + numPhases; | ||
integer const PHASE_ENTHALPY = PHASE_VISCOSITY + (outputEnthalpy ? numPhases : 0); | ||
integer const PHASE_COMP = PHASE_ENTHALPY + numPhases; |
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.
As this code passes unit tests I may be wrong, but I still have the feeling that PHASE_ENTHALPY
and PHASE_COMP
are not well defined. If those variables are the start indexes, shouldn't PHASE_ENTHALPY
only be offset by the end of viscosity values? (PHASE_VISCOSITY + numPhases
?)
And by the same design, shouldn't PHASE_COMP
be at the end of enthalpies, which are enabled by outputEnthalpy
? (which would give PHASE_ENTHALPY + (outputEnthalpy ? numPhases : 0)
)
Adds the enthalpy to the output of the
PVTDriver
if the fluid is thermal.