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

Add option for GMST output #4060

Merged
merged 1 commit into from
May 13, 2024
Merged

Add option for GMST output #4060

merged 1 commit into from
May 13, 2024

Conversation

totto82
Copy link
Member

@totto82 totto82 commented May 10, 2024

GMST output the stranded CO2 in the gas phase as discussed in https://docs.opengosim.com/theory/residual_and_stranded/

@totto82
Copy link
Member Author

totto82 commented May 10, 2024

jenkins build this opm-simulators=5344 please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes look good apart from a couple of minor issues. I do have one organisational remark though: If these are OPM-specific summary vectors, then they should really be defined/declared in 900_OPM/F/FIELD_PROBE_OPM and 900_OPM/R/REGION_PROBE_OPM instead of in the "compatible" section.

@@ -40,6 +40,7 @@
"RGCDI",
"RGCDM",
"RGDEN",
"RFMST",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean RGMST instead of RFMST here?

@@ -233,6 +233,8 @@ const std::vector<Inplace::Phase>& Inplace::mixingPhases()
Inplace::Phase::CO2MassInGasPhaseMob,
Inplace::Phase::CO2MassInGasPhaseInMobKrg,
Inplace::Phase::CO2MassInGasPhaseMobKrg,
Inplace::Phase::CO2MassInGasPhaseEffectiveTrapped,
Inplace::Phase::CO2MassInGasPhaseMaksimumTrapped,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could spell this as MaximumTrapped instead of MaksimumTrapped?

@totto82 totto82 marked this pull request as draft May 10, 2024 10:21
@totto82
Copy link
Member Author

totto82 commented May 10, 2024

The value of CO2MassInGasPhaseMaximumTrapped /GMTR are much higher than expected. (even higher than the total mass of co2 in gas) I temporary set make this draft while investigating.

@totto82 totto82 marked this pull request as ready for review May 10, 2024 10:59
@totto82
Copy link
Member Author

totto82 commented May 10, 2024

I had to rename GMTR as summary keywords ending with TR are used for tracers.

@totto82
Copy link
Member Author

totto82 commented May 10, 2024

jenkins build this opm-simulators=5344 please

1 similar comment
@bska
Copy link
Member

bska commented May 10, 2024

jenkins build this opm-simulators=5344 please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I have one suggested simplification if you're changing the nearby area anyway.

@@ -606,7 +610,7 @@ class EclHysteresisTwoPhaseLawParams : public EnsureFinalized
// for non WAG hysteresis we still keep track of the process
// for output purpose.
if (!gasOilHysteresisWAG()) {
if (krnSw < krnSwMdc_) {
if (krnSw <= krnSwMdc_) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're changing this anyway, you might as well just write

this->isDrain_ = ! (krnSw > this->krnSwMdc_);

instead.

[FR]GMST output the effective trapped CO2 in the gas phase
[FR]GMUS output the effective untrapped CO2 in gas phase

Also rename GMTR to GMIM as endings with TR is used for tracers
@totto82
Copy link
Member Author

totto82 commented May 13, 2024

jenkins build this opm-simulators=5344 please

1 similar comment
@bska
Copy link
Member

bska commented May 13, 2024

jenkins build this opm-simulators=5344 please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good. I'll merge into master.

@bska bska merged commit e194fa1 into OPM:master May 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants