From 3d737c29526d0e036875f88b07d1edb75c2b651c Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Wed, 3 Nov 2010 13:52:57 +0000 Subject: [PATCH] handbook: Add automatically extracted model desctiptions for the fully coupled models also improve the description of the richards model so that it is ready for the handbook --- doc/handbook/Makefile.am | 10 ---------- .../ModelDescriptions/1p2cboxmodel.tex | 17 ++++++++++++++++ doc/handbook/ModelDescriptions/1pboxmodel.tex | 9 +++++++++ .../ModelDescriptions/2p2cboxmodel.tex | 20 +++++++++++++++++++ .../ModelDescriptions/2p2cniboxmodel.tex | 18 +++++++++++++++++ doc/handbook/ModelDescriptions/2pboxmodel.tex | 13 ++++++++++++ .../ModelDescriptions/2pniboxmodel.tex | 13 ++++++++++++ .../ModelDescriptions/richardsboxmodel.tex | 13 ++++++++++++ 8 files changed, 103 insertions(+), 10 deletions(-) create mode 100644 doc/handbook/ModelDescriptions/1p2cboxmodel.tex create mode 100644 doc/handbook/ModelDescriptions/1pboxmodel.tex create mode 100644 doc/handbook/ModelDescriptions/2p2cboxmodel.tex create mode 100644 doc/handbook/ModelDescriptions/2p2cniboxmodel.tex create mode 100644 doc/handbook/ModelDescriptions/2pboxmodel.tex create mode 100644 doc/handbook/ModelDescriptions/2pniboxmodel.tex create mode 100644 doc/handbook/ModelDescriptions/richardsboxmodel.tex diff --git a/doc/handbook/Makefile.am b/doc/handbook/Makefile.am index a3e431d13..2e713e712 100644 --- a/doc/handbook/Makefile.am +++ b/doc/handbook/Makefile.am @@ -53,16 +53,6 @@ dumux-handbook.html: $(DOCSOURCE) dune.cfg tex4ht.env $(TEX) dumux-handbook.tex dumux-handbook.pdf: -# mkdir ModelDescriptions - cat ../doxygen/latex/classDune_1_1OnePBoxModel.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/1pboxmodel.tex - cat ../doxygen/latex/classDune_1_1OnePTwoCBoxModel.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/1p2cboxmodel.tex - cat ../doxygen/latex/classDune_1_1RichardsBoxModel.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/richardsboxmodel.tex - cat ../doxygen/latex/classDune_1_1TwoPBoxModel.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/2pboxmodel.tex - cat ../doxygen/latex/classDune_1_1TwoPNIBoxModel.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/2pniboxmodel.tex - cat ../doxygen/latex/classDune_1_1TwoPTwoCBoxModelBase.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/2p2cboxmodel.tex - cat ../doxygen/latex/classDune_1_1TwoPTwoCNIBoxModel.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/2p2cniboxmodel.tex - cat ../doxygen/latex/classDune_1_1IMPES.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/2pdecoupledmodel.tex - cat ../doxygen/latex/classDune_1_1Decoupled2p2c.tex | ../../util/scripts/extractDetailedDescription.py >ModelDescriptions/decoupled2p2c.tex latex dumux-handbook.tex bibtex dumux-handbook latex dumux-handbook.tex diff --git a/doc/handbook/ModelDescriptions/1p2cboxmodel.tex b/doc/handbook/ModelDescriptions/1p2cboxmodel.tex new file mode 100644 index 000000000..73b3afc7a --- /dev/null +++ b/doc/handbook/ModelDescriptions/1p2cboxmodel.tex @@ -0,0 +1,17 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% This file has been autogenerated from the LaTeX part of the % +% doxygen documentation; DO NOT EDIT IT! Change the model's .hh % +% file instead!! % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +Adaption of the BOX scheme to the one-\/phase two-\/component flow model. This model implements an one-\/phase flow of an incompressible fluid, that consists of two components, using a standard Darcy approach (neglecting gravitation) as the equation for the conservation of momentum: \[ v_{D} = - \frac{K}{\mu} \left(\text{grad} p - \varrho g \right) \] + +By inserting this into the continuity equation, one gets \[ - \text{div} \left\{ \varrho \frac{K}{\mu} \left(\text{grad} p - \varrho g \right) \right\} = q \;, \] + +The transport of the components is described by the following equation: \[ \Phi \varrho \frac{ \partial x}{\partial t} - \text{div} \left( \varrho \frac{K x}{\mu} \left( \text{grad} p - \varrho g \right) + \varrho \tau \Phi D \text{grad} x \right) = q. \] + +All equations are discretized using a fully-\/coupled vertex centered finite volume (box) scheme as spatial and the implicit Euler method as time discretization. + +The primary variables are the pressure $p$ and the mole fraction of dissolved component $x$. + diff --git a/doc/handbook/ModelDescriptions/1pboxmodel.tex b/doc/handbook/ModelDescriptions/1pboxmodel.tex new file mode 100644 index 000000000..91b93512e --- /dev/null +++ b/doc/handbook/ModelDescriptions/1pboxmodel.tex @@ -0,0 +1,9 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% This file has been autogenerated from the LaTeX part of the % +% doxygen documentation; DO NOT EDIT IT! Change the model's .hh % +% file instead!! % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +Adaption of the BOX scheme to the single phase isothermal flow model. Single phase compressible isothermal flow model, \begin{align*} \phi \frac{\partial \varrho}{\partial t} + \vec{\nabla} \cdot (- \varrho \frac{\bar{\bar{K}}}{\mu} ( \nabla p -\varrho \vec{g})) = q, \end{align*} discretized using a vertex centered finite volume (box) scheme as spatial and the implicit Euler method as time discretization. Of course, the model can also be used for incompressible single phase flow modeling, if in the problem file a fluid with constant density is chosen. + diff --git a/doc/handbook/ModelDescriptions/2p2cboxmodel.tex b/doc/handbook/ModelDescriptions/2p2cboxmodel.tex new file mode 100644 index 000000000..e0f5bad76 --- /dev/null +++ b/doc/handbook/ModelDescriptions/2p2cboxmodel.tex @@ -0,0 +1,20 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% This file has been autogenerated from the LaTeX part of the % +% doxygen documentation; DO NOT EDIT IT! Change the model's .hh % +% file instead!! % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +Adaption of the BOX scheme to the two-\/phase two-\/component flow model. 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 \{ w, a \}$. The standard multiphase Darcy approach is used as the equation for the conservation of momentum: \[ v_\alpha = - \frac{k_{r\alpha}}{\mu_\alpha} K \left(\text{grad} p_\alpha - \varrho_{\alpha} \boldsymbol{g} \right) \] + +By inserting this into the equations for the conservation of the components, one gets one transport equation for each component \begin{eqnarray*} && \phi \frac{\partial (\sum_\alpha \varrho_\alpha X_\alpha^\kappa S_\alpha )} {\partial t} - \sum_\alpha \nabla \cdot \left\{ \varrho_\alpha X_\alpha^\kappa \frac{k_{r\alpha}}{\mu_\alpha} \mbox{\bf K} ({\bf \nabla} p_\alpha - \varrho_{\alpha} \mbox{\bf g}) \right\} \nonumber \\ \nonumber \\ &-& \sum_\alpha \nabla \cdot \left\{{\bf D_{pm}^\kappa} \varrho_{\alpha} {\bf \nabla} X^\kappa_{\alpha} \right\} - \sum_\alpha q_\alpha^\kappa = \quad 0 \qquad \kappa \in \{w, a\} \, , \alpha \in \{w, g\} \end{eqnarray*} + +This is discretized using a fully-\/coupled vertex centered finite volume (box) scheme as spatial and the implicit Euler method as temporal discretization. + +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 + X^\kappa_n = 1$, the number of unknowns can be reduced to two. The used primary variables are, like in the two-\/phase model, either $p_w$ and $S_n$ or $p_n$ and $S_w$. The formulation which ought to be used can be specified by setting the {\ttfamily Formulation} property to either TwoPTwoCIndices::pWsN or TwoPTwoCIndices::pNsW. By default, the model uses $p_w$ and $S_n$. Moreover, the second primary variable depends on the phase state, since a primary variable switch is included. The phase state is stored for all nodes of the system. Following cases can be distinguished: +\begin{itemize} +\item Both phases are present: The saturation is used (either $S_n$ or $S_w$, dependent on the chosen {\ttfamily Formulation}), as long as $ 0 < S_\alpha < 1$. +\item Only wetting phase is present: The mass fraction of, e.g., air in the wetting phase $X^a_w$ is used, as long as the maximum mass fraction is not exceeded ($X^a_w