Dear Dmitry,

2p2c can handle gas, yes. As for the equilibrium (I suppose you want to fix mass fractions), you can have a look at the fluidsystem brineco2 and how the fugacityCoefficient() method can be manipulated to fix mass fractions to a certain value:

https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/blob/master/dumux/material/fluidsystems/brineco2.hh

Dumux calculates equilibrium mole fractions by setting the fugacity of a component in one phase equal to the fugacity of the same component in the other phase. For two components that results in two equations with four unknowns (i.e., the mole fractions). To close the system of equation the sum of the mole fractions of a phase has to be one.

I hope that answers your question.

Best wishes,

Beatrix


On 17.03.21 11:50 AM, Dmitry Pavlov wrote:
Hello,

After a series of useful simulations of oil + water + some soluble components, I am now facing a task of oil + gas simulation. It is a simplification, but, as far as I understand, a more-or-less common one: water is considered immobile (hence nonexistent), gas in injected into oil; some gas gets immediately dissolved in oil, and the ratio of "gas in gas phase" / "gas in oil phase" is constant everywhere at all times. I call this an equilibrium, hoping this is the correct term. No temperature is considered.

I would be very grateful for pointers as to what DuMux models and classes I can use for this task.

Can 2p2c model handle gas? Is there an easy way to naturally write the aforementioned equilibrium into the equations? Should I deal with the fugacityCoefficient() method (which I honestly do not fully understand now) to have the equilibrium maintained?

Best regards,

Dmitry


_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

--
*******************************************************

Beatrix Becker

Department of Hydromechanics and Modelling of Hydrosystems (LH2)
Institute for Modelling Hydraulic and Environmental Systems (IWS), University 
of Stuttgart
www.hydrosys.uni-stuttgart.de
email: [email protected]
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-60500

_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to