-
Notifications
You must be signed in to change notification settings - Fork 91
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
refactor: mixture density computation in multiphase poromechanics solvers #3342
Conversation
We should decide whether we want to refer to the expression: as mixture density or bulk density, and be consistent everywhere. |
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.
❤️
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3342 +/- ##
===========================================
+ Coverage 56.30% 56.32% +0.01%
===========================================
Files 1065 1065
Lines 90227 90210 -17
===========================================
+ Hits 50805 50807 +2
+ Misses 39422 39403 -19 ☔ View full report in Codecov by Sentry. |
|
||
for( integer ip = 0; ip < m_numPhases; ++ip ) | ||
{ | ||
dTotalMassDensity_dTemperature += dPhaseVolFrac( ip, Deriv::dT ) * phaseMassDensity( ip ) |
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.
I suppose this means that these terms cancel out and we should end up with a value that is numerically close to zero?
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.
If we highlight in the body force term the dependencies on the primary variables we have:
We have a direct dependency on temperature exclusively on porosity at the moment -- eventually on the solid phase density dTotalMassDensity_dTemperature = 0
.
can we call this |
Looking at the code, IMO, what we call |
I agree it is confusing. Often, in the poromechanics literature authors refer to mixture including the solid phase, for example: "... a three-phase mixture composed of a solid matrix whose voids are continuous and filled In my opinion, we should agree on consistent naming for:
Also the notation used in the documentation should be updated accordingly. |
...Components/physicsSolvers/multiphysics/poromechanicsKernels/MultiphasePoromechanics_impl.hpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/multiphysics/poromechanicsKernels/MultiphasePoromechanics.hpp
Outdated
Show resolved
Hide resolved
I mean, I think the definition of mixture is quite broad so technically one could see the solid + fluids as a mixture. However, since we are often interested in the properties of just the fluid mixture I think that it is more straightforward to call:
|
i would say |
yeah, I actually don't like the name |
This PR modifies the computation of the mixture (solid + fluid) density favoring use of primary variables over secondary variables.