ImmiscibleFlash.hpp File Reference Determines the pressures and saturations of all fluid phases given the total mass of all components. More... #include <opm/common/ErrorMacros.hpp> #include <opm/common/Exceptions.hpp> #include <opm/material/common/Valgrind.hpp> #include <dune/common/fvector.hh> #include <dune/common/fmatrix.hh> #include <limits> #include <iostream>
Include dependency graph for ImmiscibleFlash.hpp:
Go to the source code of this file.
Detailed DescriptionDetermines the pressures and saturations of all fluid phases given the total mass of all components. In a N-phase, N-component context, we have the following unknowns if assuming immiscibility:
This sums up to 2*N unknowns. On the equations side of things, we have:
this also sums up to 2*N. We include the capillary pressures and the sum of the saturations explicitly. This means that we only solve for the first pressure and N-1 saturations. If a fluid phase is incompressible, the pressure cannot determined by this, though. In this case the original pressure is kept, and the saturation of the phase is calculated by dividing the global molarity of the component by the phase density. |
||||||||||||||