3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Namespaces
porousmediumflow/2p2c/model.hh File Reference

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

#include <array>
#include <dumux/common/properties.hh>
#include <dumux/porousmediumflow/2pnc/model.hh>
#include <dumux/porousmediumflow/2p/formulation.hh>
#include <dumux/porousmediumflow/nonisothermal/model.hh>
#include <dumux/porousmediumflow/nonisothermal/iofields.hh>
#include <dumux/porousmediumflow/nonequilibrium/model.hh>
#include <dumux/porousmediumflow/nonequilibrium/volumevariables.hh>
#include <dumux/material/fluidmatrixinteractions/2p/thermalconductivity/somerton.hh>
#include <dumux/material/fluidmatrixinteractions/2p/thermalconductivity/simplefluidlumping.hh>
#include "volumevariables.hh"

Go to the source code of this file.

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 \(\alpha \in \{ w, n \}\) composed of the two components \(\kappa \in \{ \kappa_w, \kappa_n \}\), where \(\kappa_w\) and \(\kappa_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:

\[ \phi \frac{\partial (\sum_\alpha \rho_\alpha X_\alpha^\kappa S_\alpha)}{\partial t} - \sum_\alpha \text{div} \left\{ \rho_\alpha X_\alpha^\kappa v_\alpha \right\} - \sum_\alpha \text{div} \mathbf{F}_{\mathrm{diff, mass}, \alpha}^\kappa - \sum_\alpha q_\alpha^\kappa = 0 \qquad \kappa \in \{\kappa_w, \kappa_n\} \, , \alpha \in \{w, n\}, \]

using the mass fractions \(X_\alpha^\kappa\) and the mass densities \(\rho_\alpha\), while the mole balance equations use the mole fractions \(x_\alpha^\kappa\) and molar densities \(\varrho_{m, \alpha}\):

\[ \phi \frac{\partial (\sum_\alpha \varrho_{m, \alpha} x_\alpha^\kappa S_\alpha)}{\partial t} + \sum_\alpha \text{div} \left\{ \varrho_{m, \alpha} x_\alpha^\kappa v_\alpha \right\} + \sum_\alpha \text{div} \mathbf{F}_{\mathrm{diff, mole}, \alpha}^\kappa - \sum_\alpha q_\alpha^\kappa = 0 \qquad \kappa \in \{\kappa_w, \kappa_n\} \, , \alpha \in \{w, n\}. \]

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 \(p_c = p_n - p_w\) and relative permeability \(k_{r\alpha}\) and taking advantage of the fact that \(S_w + S_n = 1\) and \(x^{\kappa_w}_\alpha + x^{\kappa_n}_\alpha = 1\), the number of unknowns can be reduced to two. In single-phase regimes, the used primary variables are either \(p_w\) and \(S_n\) (default) or \(p_n\) and \(S_w\). 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:

Classes

struct  Dumux::Properties::TTag::TwoPTwoC
 
struct  Dumux::Properties::TTag::TwoPTwoCNI
 
struct  Dumux::Properties::BaseModelTraits< TypeTag, TTag::TwoPTwoC >
 Set the model traits property. More...
 
struct  Dumux::Properties::ModelTraits< TypeTag, TTag::TwoPTwoC >
 
struct  Dumux::Properties::VolumeVariables< TypeTag, TTag::TwoPTwoC >
 Use the 2p2c VolumeVariables. More...
 
struct  Dumux::Properties::UseConstraintSolver< TypeTag, TTag::TwoPTwoC >
 Determines whether the constraint solver is used. More...
 
struct  Dumux::Properties::ModelTraits< TypeTag, TTag::TwoPTwoCNI >
 Set the non-isothermal model traits. More...
 
struct  Dumux::Properties::VolumeVariables< TypeTag, TTag::TwoPTwoCNI >
 Set the volume variables property. More...
 
struct  Dumux::Properties::IOFields< TypeTag, TTag::TwoPTwoCNI >
 Set non-isothermal output fields. More...
 
struct  Dumux::Properties::ThermalConductivityModel< TypeTag, TTag::TwoPTwoCNI >
 Somerton is used as default model to compute the effective thermal heat conductivity. More...
 
struct  Dumux::TwoPTwoCUnconstrainedModelTraits< TwoPTwoCModelTraits >
 
struct  Dumux::Properties::TTag::TwoPTwoCNonEquil
 
struct  Dumux::Properties::EquilibriumLocalResidual< TypeTag, TTag::TwoPTwoCNonEquil >
 
struct  Dumux::Properties::EquilibriumIOFields< TypeTag, TTag::TwoPTwoCNonEquil >
 Set the vtk output fields specific to this model. More...
 
struct  Dumux::Properties::ModelTraits< TypeTag, TTag::TwoPTwoCNonEquil >
 
struct  Dumux::Properties::EquilibriumModelTraits< TypeTag, TTag::TwoPTwoCNonEquil >
 Set equilibrium model traits. More...
 
struct  Dumux::Properties::ThermalConductivityModel< TypeTag, TTag::TwoPTwoCNonEquil >
 
struct  Dumux::Properties::VolumeVariables< TypeTag, TTag::TwoPTwoCNonEquil >
 Use the nonequilibrium volume variables together with the 2p2c vol vars. More...
 
struct  Dumux::Properties::TTag::TwoPTwoCNINonEquil
 
struct  Dumux::Properties::ModelTraits< TypeTag, TTag::TwoPTwoCNINonEquil >
 Set the non-isothermal model traits with the nonequilibrium model traits as isothermal traits. More...
 
struct  Dumux::Properties::EquilibriumIOFields< TypeTag, TTag::TwoPTwoCNINonEquil >
 Set the equilibrium IO fields which are in that case the nonisothermal io fields. More...
 
struct  Dumux::Properties::VolumeVariables< TypeTag, TTag::TwoPTwoCNINonEquil >
 Use the nonequilibrium volume variables together with the 2p2c vol vars. More...
 
struct  Dumux::Properties::ThermalConductivityModel< TypeTag, TTag::TwoPTwoCNINonEquil >
 Somerton is used as default model to compute the effective thermal heat conductivity. More...
 

Namespaces

namespace  Dumux
 Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
 
namespace  Dumux::Properties
 
namespace  Dumux::Properties::TTag
 Type tag for numeric models.
 
Include dependency graph for porousmediumflow/2p2c/model.hh: