version 3.10-dev
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
14#ifndef DUMUX_MINERALIZATION_VOLUME_VARIABLES_HH
15#define DUMUX_MINERALIZATION_VOLUME_VARIABLES_HH
16
17namespace Dumux {
18
24template <class Traits, class NonMineralizationVolVars>
25class MineralizationVolumeVariables : public NonMineralizationVolVars
26{
27 using ParentType = NonMineralizationVolVars;
28 using Scalar = typename Traits::PrimaryVariables::value_type;
29 using ModelTraits = typename Traits::ModelTraits;
30 using SolidState = typename Traits::SolidState;
31
32public:
33 using SolidSystem = typename Traits::SolidSystem;
34
41 Scalar solidVolumeFraction(int sCompIdx) const
42 { return this->solidState_.volumeFraction(sCompIdx); }
43
49 Scalar solidComponentDensity(int sCompIdx) const
50 {
51 return SolidSystem::density(this->solidState_, sCompIdx);
52 }
53
59 Scalar solidComponentMolarDensity(int sCompIdx) const
60 {
61 return SolidSystem::molarDensity(this->solidState_, sCompIdx);
62 }
63
64};
65} // end namespace Dumux
66
67#endif
Contains the quantities which are are constant within a sub-control volume of the finite volume grid ...
Definition: porousmediumflow/mineralization/volumevariables.hh:26
typename Traits::SolidSystem SolidSystem
Definition: porousmediumflow/mineralization/volumevariables.hh:33
Scalar solidComponentDensity(int sCompIdx) const
Returns the density of the phase for all fluid and solid phases.
Definition: porousmediumflow/mineralization/volumevariables.hh:49
Scalar solidComponentMolarDensity(int sCompIdx) const
Returns the density of the phase for all fluid and solid phases.
Definition: porousmediumflow/mineralization/volumevariables.hh:59
Scalar solidVolumeFraction(int sCompIdx) const
Returns the volume fraction of the precipitate (solid phase) for the given phaseIdx.
Definition: porousmediumflow/mineralization/volumevariables.hh:41
std::string molarDensity(int phaseIdx) noexcept
I/O name of molar density for multiphase systems.
Definition: name.hh:71
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:53
Definition: adapt.hh:17