What does globalCompFraction mean in GEOSX? #1457
Replies: 4 comments 17 replies
-
Hello Deming,
|
Beta Was this translation helpful? Give feedback.
-
Hello @wdmhouston, I attached your updated file for which I verified that the injection rate matches the amount of CO2 in the reservoir. |
Beta Was this translation helpful? Give feedback.
-
Francois,
That is what I expected. Let me try again.
Regards,
Deming
…On Tue, Aug 17, 2021 at 12:27 PM Francois Hamon ***@***.***> wrote:
@wdmhouston <https://github.com/wdmhouston> Here is what the simulator
actually computes, checked by outputting values to the terminal:
-
Total co2 mass injected = co2Density * injectionVolRate * totalTime
= 647.006 kg.m^-3 * 0.00002 m3.s^-1 * 2592000 s = 33,541 kg.
-
Total co2 mass in the reservoir = co2Saturation * co2PhaseDensity +
co2InBrinePhaseCompFraction * brineSaturation * brinePhaseDensity = =
33,541 kg.
(note: co2InCo2PhaseCompFraction = 1 in our PVT model)
So with the very tight Newton tolerance that I put in the xml I sent you
(10^-9), we obtain a very good match.
The problem, if any, must be in the output. Can you please explain again
how you grab the values to make your calculations? From the VTK file? At
what time? Do you use the hdf5 output at all (I can show you how)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1457 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AETQFWABQF4QPAWHLKIHDYTT5KLZJANCNFSM46OXKYRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
--
Deming Wang
***@***.***
|
Beta Was this translation helpful? Give feedback.
-
Francois,
I found an error in my old calculation(misunderstanding about co2
solubility unit in brine), and corrected it. Now the value is very close.
I used that 1E-9 converge criteria and calculated in paraview this way:
Calculator:
DissolvedCO2 =
elementVolume*referencePorosity*phaseVolumeFraction_water*fluid_phaseCompFraction_water/co2*fluid_phaseMassDensity_water
Python Calculator:
DissolvedCO2Total = sum(DissolvedCO2) = 7949.6 kg
CO2:
Calculator:
CO2 =
elementVolume*referencePorosity*phaseVolumeFraction_gas*fluid_phaseCompFraction_gas/co2*fluid_phaseMassDensity_gas
Python Calculator:
CO2Total = sum(NonDissolvedCO2) = 25403.8 kg
Total CO2 in reservoir = 7949.6 kg + 25403.8 kg = 33353.4 kg.
It's very close to 33,541 kg.
You mentioned you calculated using hdf5 with 100% matched, can you
show me how to do it?
Regards,
Deming
…On Tue, Aug 17, 2021 at 12:38 PM Deming Wang ***@***.***> wrote:
Francois,
That is what I expected. Let me try again.
Regards,
Deming
On Tue, Aug 17, 2021 at 12:27 PM Francois Hamon ***@***.***>
wrote:
> @wdmhouston <https://github.com/wdmhouston> Here is what the simulator
> actually computes, checked by outputting values to the terminal:
>
> -
>
> Total co2 mass injected = co2Density * injectionVolRate * totalTime
> = 647.006 kg.m^-3 * 0.00002 m3.s^-1 * 2592000 s = 33,541 kg.
> -
>
> Total co2 mass in the reservoir = co2Saturation * co2PhaseDensity +
> co2InBrinePhaseCompFraction * brineSaturation * brinePhaseDensity = =
> 33,541 kg.
>
> (note: co2InCo2PhaseCompFraction = 1 in our PVT model)
>
> So with the very tight Newton tolerance that I put in the xml I sent you
> (10^-9), we obtain a very good match.
>
> The problem, if any, must be in the output. Can you please explain again
> how you grab the values to make your calculations? From the VTK file? At
> what time? Do you use the hdf5 output at all (I can show you how)?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1457 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AETQFWABQF4QPAWHLKIHDYTT5KLZJANCNFSM46OXKYRA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
> .
>
--
Deming Wang
***@***.***
--
Deming Wang
***@***.***
|
Beta Was this translation helpful? Give feedback.
-
Hi expert,
geosx_co2mass.zip
CO2 was injected at specified surface condition(same as initial reservoir condition, 14432381.756 Pa and 368.15Kelvin) and well is under rate control(0.001m3/s, 5e6 seconds). I'm trying to calculate the total CO2 dissolved in water. I remember Francois mentioned that CompFraction isn't exported to vtk file due to some technical issue of 4d array, but I find globalCompFraction with values. What does this globalCompFraction mean? Can I use this to calculate total dissolved CO2 mass?
In test example, I tried another way to calculate:
Total CO2 injected:
Injection rate* time* density = 0.001(m3/s)* 5e6(s)* 331.17(kg/m3)= 1655850 kg
CO2 mass calculated from paraview:
ElementVolume* ReferencePorosoity* PhaseVolumeFraction_X* Fluid_PhaseMassDensity_X= 978267kg
So the dissolved CO2 in water: = 1655850kg - 978267kg = 677583kg
Is this correct? If no, can you advise me the right method to calculate the dissolved CO2 in GEOSX?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions