3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | List of all members
Dumux::MimeticPressure2PAdaptive< TypeTag > Class Template Reference

Mimetic method for the pressure equation. More...

#include <dumux/porousmediumflow/2p/sequential/diffusion/mimetic/pressureadaptive.hh>

Description

template<class TypeTag>
class Dumux::MimeticPressure2PAdaptive< TypeTag >

Mimetic method for the pressure equation.

Provides a mimetic implementation for the evaluation of equations of the form

\[\text{div}\, \boldsymbol{v}_{total} = q.\]

The definition of the total velocity \(\boldsymbol{v}_total\) depends on the kind of pressure chosen. This could be a wetting (w) phase pressure leading to

\[ - \text{div}\, \left[\lambda \boldsymbol{K} \left(\text{grad}\, p_w + f_n \text{grad}\, p_c + \sum f_\alpha \rho_\alpha g \text{grad}\, z\right)\right] = q, \]

a non-wetting (n) phase pressure yielding

\[ - \text{div}\, \left[\lambda \boldsymbol{K} \left(\text{grad}\, p_n - f_w \text{grad}\, p_c + \sum f_\alpha \rho_\alpha g \text{grad}\, z\right)\right] = q, \]

or a global pressure leading to

\[ - \text{div}\, \left[\lambda \boldsymbol{K} \left(\text{grad}\, p_{global} + \sum f_\alpha \rho_\alpha g \text{grad}\, z\right)\right] = q.\]

Here, \(p\) denotes a pressure, \(\boldsymbol{K}\) the absolute permeability, \(\lambda\) the total mobility, possibly depending on the saturation, \(f\) the fractional flow function of a phase, \(\rho\) a phase density, \(g\) the gravity constant and \(q\) the source term. For all cases, \(p = p_D\) on \(\Gamma_{Neumann}\), and \(\boldsymbol{v}_{total} = q_N\) on \(\Gamma_{Dirichlet}\).

Template Parameters
TypeTagThe Type Tag

Public Member Functions

void updateMaterialLaws ()
 Constitutive functions are initialized and stored in the variables object. More...
 
void initialize (bool solveTwice=true)
 Initializes the model. More...
 
void adapt ()
 
void updateVelocity ()
 Velocity update. More...
 
void update ()
 updates the model More...
 
template<class MultiWriter >
void addOutputVtkFields (MultiWriter &writer)
 Write data file. More...
 
void serializeEntity (std::ostream &outstream, const Element &element)
 General method for serialization, output. More...
 
void deserializeEntity (std::istream &instream, const Element &element)
 General method for deserialization. More...
 
 MimeticPressure2PAdaptive (Problem &problem)
 Constructs a MimeticPressure2PAdaptive object. More...
 

Constructor & Destructor Documentation

◆ MimeticPressure2PAdaptive()

template<class TypeTag >
Dumux::MimeticPressure2PAdaptive< TypeTag >::MimeticPressure2PAdaptive ( Problem &  problem)
inline

Constructs a MimeticPressure2PAdaptive object.

Parameters
problemThe Dumux problem

Member Function Documentation

◆ adapt()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::adapt ( )
inline

◆ addOutputVtkFields()

template<class TypeTag >
template<class MultiWriter >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::addOutputVtkFields ( MultiWriter &  writer)
inline

Write data file.

Template Parameters
MultiWriterClass defining the output writer
Parameters
writerThe output writer (usually a VTKMultiWriter object)

◆ deserializeEntity()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::deserializeEntity ( std::istream &  instream,
const Element &  element 
)
inline

General method for deserialization.

Parameters
instreamThe input stream
elementThe grid element

◆ initialize()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::initialize ( bool  solveTwice = true)
inline

Initializes the model.

Function initializes the sparse matrix to solve the global system of equations and sets/calculates the initial pressure.

Parameters
solveTwiceIndicates if more than one iteration is allowed to get an initial pressure solution

◆ serializeEntity()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::serializeEntity ( std::ostream &  outstream,
const Element &  element 
)
inline

General method for serialization, output.

Function needed for restart option.

Parameters
outstreamThe output stream
elementThe grid element

◆ update()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::update ( )
inline

updates the model

◆ updateMaterialLaws()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::updateMaterialLaws

Constitutive functions are initialized and stored in the variables object.

Constitutive functions are updated once if new saturations are calculated and stored in the variables object.

◆ updateVelocity()

template<class TypeTag >
void Dumux::MimeticPressure2PAdaptive< TypeTag >::updateVelocity ( )
inline

Velocity update.

Reset the velocities in the cellData.


The documentation for this class was generated from the following file: