Question about Gas_Density in "gas_injection" regression test.

37 views
Skip to first unread message

Rahul S

unread,
Sep 3, 2025, 11:28:22 AMSep 3
to pflotran-users
Dear Glenn and Pflotran community,

I am testing the "gas_injection.in" regression test file for various gases (CH4, H2), by modifying the input file and adding EOS block for H2 and CH4, and outputting various variables. I observe a puzzling result with the output variable GAS_DENSITY, it is similar for both the gases.

I guess the Gas Phase density (GAS_DENSITY) is being calculated as summation of mass fractions of components in gas phase multiplied by the component densities. I observe that the molar and mass fractions of liquid in gas phase are small, so I expect the gas phase density to be closer to the actual gas density. However, I see the Gas_Density to be almost similar for both.

Could you help me in understanding why the gas phase densities are coming out to be similar. What am I missing? Also, what is the default gas (the regression file does not have EOS block)?

Attached is a presentation slides based on the results from the regression test, as well as the input files I used.

Best,
Rahul.

Testing_gas_injection_regresion.pptx
gas_injection_h2.in
gas_injection_default.in
gas_injection_ch4.in

Rahul S

unread,
Sep 8, 2025, 11:36:46 AMSep 8
to pflotran-users
Hello all,

I guess, I have solved the issue, and I am getting the desired results.

I added "GAS_COMPONENT_FORMULA_WEIGHT" in the OPTIONS for "SUBSURFACE_FLOW" block.

Please see the updated slides (6,7,8) in the attached presentation.

Best,
Rahul.
Testing_gas_injection_regresion.pptx

Glenn Hammond

unread,
Sep 17, 2025, 12:29:19 AM (8 days ago) Sep 17
to pflotran-users
Rahul,

My apologies. Both of the emails below are being filtered out on my computer, perhaps due to the attachements.

May I once again confirm that you are receiving the correct results?

Glenn

Rahul S

unread,
Sep 17, 2025, 9:20:18 AM (8 days ago) Sep 17
to pflotran-users
Hello Glenn,

Thanks for the reply.
Yes, I get the correct results.

Best,
Rahul.
Reply all
Reply to author
Forward
0 new messages