Closed jonnymaserati closed 3 years ago
Hi Jonny, Everything looks good to me. Vapor/liquid designations are arbitrary past the supercritical point; and you are well past that of methane. The phase id algorithm used by the EOS object is documented here: https://chemicals.readthedocs.io/chemicals.utils.html#chemicals.utils.phase_identification_parameter I suspect you thought the rho_l attribute was a mass density; it is actually a molar density, in mol/m^3. The EOS objects don't have MW as an input and don't do anything with mass. You can convert get the mass density with "Vm_to_rho(eos.V_l, influx.MW)", after importing Vm_to_rho from the chemicals library. Sincerely, Caleb
Thanks @CalebBell!
That makes sense and indeed I get a value that is close to that indicated in the top post.
And the eos.Z_l
value is reasonable at about 1.33 although these are not the same as the top post... different models?
If I have a gas relative density (say SG=0.7) but don't know exactly what it's made up of (other than it being close to a "natural gas" with some oil condenstate), how could I model this? Would I have to create a Chemical
?
Thermo is a library with a focus on real chemicals. I have no intention of adding pseudo component support. I don't have any advice for your new question.
Thanks @CalebBell, understood!
What am I doing wrong here? I'm trying to find the z factor and density for a gas influx when drilling a well. The downhole reservoir pressure is 9735 psi and the temperature is 120 deg C.
This runs fine, but the result should be in the gas phase... this is about what I'm expecing:
But
eos.phase
returns 'l' andeos.rho_l
returns a crazy high value.Any suggestions?