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
use DENSITY in CO2STORE runs #3879
base: master
Are you sure you want to change the base?
Conversation
jenkins build this please |
1 similar comment
jenkins build this please |
f21df76
to
31ab342
Compare
jenkins build this please |
const Scalar MmNaCl = 58.44e-3; // molar mass of NaCl [kg/mol] | ||
// convert to mass fraction | ||
salinity_[regionIdx] = 1 / ( 1 + 1 / (molality*MmNaCl)); | ||
|
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 sets the salinity used by the brine module to compute the fraction of vaporized water in the gas phase. This makes the brine module consistent with the CO2 module. Test is also the reason for the test failure.
In the current version, what is the value of surface density that is calculated? |
It is shown in the top of the .PRT file. (It computes it from pressure and temperature in STCOND(usually defaulted)) |
In the current implementation the surface density is computed internally using pressure and temperature at stcond and thus DENSITY is ignored. Sometimes it may be beneficial for the user to set the surface density themselves. For instance to make sure that injection rates are consistent etc. This PR changes the behavior of the CO2STORE such that it reads and uses the given surface density from the DENSITY keyword and only compute it internally if DENSITY is not given.