3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
fvspatialparamsnonequilibrium.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef DUMUX_POROUS_MEDIUM_FLOW_FV_SPATIAL_PARAMS_NONEQUILIBRIUM_HH
26#define DUMUX_POROUS_MEDIUM_FLOW_FV_SPATIAL_PARAMS_NONEQUILIBRIUM_HH
27
28#include "fvspatialparamsmp.hh"
29
30namespace Dumux {
31
36template<class GridGeometry, class Scalar, class Implementation>
38: public FVPorousMediumFlowSpatialParamsMP<GridGeometry, Scalar, Implementation>
39{
41 using GridView = typename GridGeometry::GridView;
42 using FVElementGeometry = typename GridGeometry::LocalView;
43 using SubControlVolume = typename GridGeometry::SubControlVolume;
44 using Element = typename GridView::template Codim<0>::Entity;
45 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
46
47public:
49 using AwnSurfaceParams = Scalar;
50 using AwsSurfaceParams = Scalar;
51 using AnsSurfaceParams = Scalar;
52
55 {}
56
63 template<class ElementSolution>
64 const Scalar characteristicLength(const Element & element,
65 const SubControlVolume &scv,
66 const ElementSolution &elemSol) const
67
68 { return this->asImp_().characteristicLengthAtPos(scv.dofPosition()); }
69
75 const Scalar characteristicLengthAtPos(const GlobalPosition& globalPos) const
76 {
77 DUNE_THROW(Dune::InvalidStateException,
78 "The spatial parameters do not provide "
79 "a characteristicLengthAtPos() method.");
80 }
81
88 template<class ElementSolution>
89 const Scalar factorEnergyTransfer(const Element& element,
90 const SubControlVolume& scv,
91 const ElementSolution& elemSol) const
92 { return this->asImp_().factorEnergyTransferAtPos(scv.dofPosition()); }
93
98 const Scalar factorEnergyTransferAtPos(const GlobalPosition& globalPos) const
99 {
100 DUNE_THROW(Dune::InvalidStateException,
101 "The spatial parameters do not provide "
102 "a factorEnergyTransferAtPos() method.");
103 }
104
111 template<class ElementSolution>
112 const Scalar factorMassTransfer(const Element& element,
113 const SubControlVolume& scv,
114 const ElementSolution& elemSol) const
115 { return this->asImp_().factorMassTransferAtPos(scv.dofPosition()); }
116
117
122 const Scalar factorMassTransferAtPos(const GlobalPosition& globalPos) const
123 {
124 DUNE_THROW(Dune::InvalidStateException,
125 "The spatial parameters do not provide "
126 "a factorMassTransferAtPos() method.");
127 }
128};
129
130} // end namespace Dumux
131
132#endif
The base class for spatial parameters in multi-phase porous-medium-flow problems.
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
The base class for spatial parameters used with finite-volume schemes.
Definition: common/fvspatialparams.hh:46
Implementation & asImp_()
Returns the implementation of the spatial parameters (static polymorphism)
Definition: common/fvspatialparams.hh:147
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvspatialparams.hh:142
The base class for spatial parameters of multi-phase problems.
Definition: fvspatialparamsmp.hh:61
Definition of the spatial parameters for non-equilibrium.
Definition: fvspatialparamsnonequilibrium.hh:39
Scalar AnsSurfaceParams
Definition: fvspatialparamsnonequilibrium.hh:51
const Scalar factorEnergyTransferAtPos(const GlobalPosition &globalPos) const
Return the pre factor the the energy transfer.
Definition: fvspatialparamsnonequilibrium.hh:98
const Scalar factorEnergyTransfer(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the pre-factor the the energy transfer.
Definition: fvspatialparamsnonequilibrium.hh:89
FVPorousMediumFlowSpatialParamsNonEquilibrium(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: fvspatialparamsnonequilibrium.hh:53
Scalar AwnSurfaceParams
export the types used for interfacial area calculations
Definition: fvspatialparamsnonequilibrium.hh:49
const Scalar characteristicLengthAtPos(const GlobalPosition &globalPos) const
Return the characteristic length for the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:75
const Scalar factorMassTransfer(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the pre-factor the the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:112
const Scalar factorMassTransferAtPos(const GlobalPosition &globalPos) const
Return the pre-factor the the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:122
Scalar AwsSurfaceParams
Definition: fvspatialparamsnonequilibrium.hh:50
const Scalar characteristicLength(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Return the characteristic length for the mass transfer.
Definition: fvspatialparamsnonequilibrium.hh:64