version 3.11-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts

Two-phase, two-component Darcy flow. More...

Description

Properties for a two-phase, two-component model for flow in porous media.

This model implements two-phase two-component flow of two compressible and partially miscible fluids α{w,n} composed of the two components κ{κw,κn}, where κw and κn are the main components of the wetting and nonwetting phases, respectively. The governing equations are the mass or the mole conservation equations of the two components, depending on the property UseMoles. The mass balance equations are given as

(αϕραXακSα)tα{ραXακvα}αFdiff,mass,ακαqακ=0κ{κw,κn},α{w,n}.

The mole balance is given as

(αϕϱm,αxακSα)t+α{ϱm,αxακvα}+αFdiff,mole,ακαqακ=0κ{κw,κn},α{w,n},

where:

Boundary conditions and sources have to be defined by the user in the corresponding units. The default setting for the property UseMoles can be found in the 2pnc model.

Per default, the Darcy's and Fick's law are used for the fluid phase velocities and the diffusive fluxes, respectively. See dumux/flux/darcyslaw.hh and dumux/flux/fickslaw.hh for more details.

By using constitutive relations for the capillary pressure pc=pnpw and relative permeability krα and taking advantage of the fact that Sw+Sn=1 and xακw+xακn=1, the number of unknowns can be reduced to two. In single-phase regimes, the used primary variables are either pw and Sn (default) or pn and Sw. The formulation which ought to be used can be specified by setting the Formulation property to either TwoPTwoCFormulation::pwsn or TwoPTwoCFormulation::pnsw.

In two-phase flow regimes the second primary variable depends on the phase state and is the mole or mass fraction (depending on the property UseMoles). The following cases can be distinguished:

Files

file  porousmediumflow/2p2c/model.hh
 Properties for a two-phase, two-component model for flow in porous media.
 
file  porousmediumflow/2p2c/volumevariables.hh
 Contains the quantities which are constant within a finite volume in the two-phase two-component model.
 

Classes

class  Dumux::TwoPTwoCVolumeVariablesBase< Traits, Impl >
 Contains the quantities which are constant within a finite volume in the two-phase two-component model. This is the base class for a 2p2c model with and without chemical nonequilibrium. More...
 
class  Dumux::TwoPTwoCVolumeVariablesImplementation< Traits, false, useConstraintSolver >
 Contains the quantities which are constant within a finite volume in the two-phase two-component model. Specialization for chemical equilibrium. More...
 
class  Dumux::TwoPTwoCVolumeVariablesImplementation< Traits, true, useConstraintSolver >
 Contains the quantities which are constant within a finite volume in the two-phase two-component model. Specialization for chemical non-equilibrium. The equilibrium mole fraction is calculated using Henry's and Raoult's law. More...
 

Typedefs

template<class Traits , bool useConstraintSolver = true>
using Dumux::TwoPTwoCVolumeVariables = TwoPTwoCVolumeVariablesImplementation< Traits, Traits::ModelTraits::enableChemicalNonEquilibrium(), useConstraintSolver >
 Contains the quantities which are constant within a finite volume in the two-phase two-component model. More...
 

Typedef Documentation

◆ TwoPTwoCVolumeVariables

template<class Traits , bool useConstraintSolver = true>
using Dumux::TwoPTwoCVolumeVariables = typedef TwoPTwoCVolumeVariablesImplementation<Traits, Traits::ModelTraits::enableChemicalNonEquilibrium(), useConstraintSolver>