3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/mineralization/volumevariables.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 *****************************************************************************/
26#ifndef DUMUX_MINERALIZATION_VOLUME_VARIABLES_HH
27#define DUMUX_MINERALIZATION_VOLUME_VARIABLES_HH
28
29namespace Dumux {
30
36template <class Traits, class NonMineralizationVolVars>
37class MineralizationVolumeVariables : public NonMineralizationVolVars
38{
39 using ParentType = NonMineralizationVolVars;
40 using Scalar = typename Traits::PrimaryVariables::value_type;
41 using ModelTraits = typename Traits::ModelTraits;
42 using SolidState = typename Traits::SolidState;
43
44public:
45 using SolidSystem = typename Traits::SolidSystem;
46
53 Scalar solidVolumeFraction(int sCompIdx) const
54 { return this->solidState_.volumeFraction(sCompIdx); }
55
61 Scalar solidComponentDensity(int sCompIdx) const
62 {
63 return SolidSystem::density(this->solidState_, sCompIdx);
64 }
65
71 Scalar solidComponentMolarDensity(int sCompIdx) const
72 {
73 return SolidSystem::molarDensity(this->solidState_, sCompIdx);
74 }
75
76};
77} // end namespace Dumux
78
79#endif
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
std::string molarDensity(int phaseIdx) noexcept
I/O name of molar density for multiphase systems.
Definition: name.hh:83
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Contains the quantities which are are constant within a sub-control volume of the finite volume grid ...
Definition: porousmediumflow/mineralization/volumevariables.hh:38
typename Traits::SolidSystem SolidSystem
Definition: porousmediumflow/mineralization/volumevariables.hh:45
Scalar solidComponentDensity(int sCompIdx) const
Returns the density of the phase for all fluid and solid phases.
Definition: porousmediumflow/mineralization/volumevariables.hh:61
Scalar solidComponentMolarDensity(int sCompIdx) const
Returns the density of the phase for all fluid and solid phases.
Definition: porousmediumflow/mineralization/volumevariables.hh:71
Scalar solidVolumeFraction(int sCompIdx) const
Returns the volume fraction of the precipitate (solid phase) for the given phaseIdx.
Definition: porousmediumflow/mineralization/volumevariables.hh:53