version 3.8
porousmediumflow/richards/balanceequationopts.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//
13#ifndef DUMUX_POROUSMEDIUMFLOW_RICHARDS_BALANCE_EQUATION_OPTIONS_HH
14#define DUMUX_POROUSMEDIUMFLOW_RICHARDS_BALANCE_EQUATION_OPTIONS_HH
15
16namespace Dumux {
17
23template <class FluidSystem>
25{
26 /*
27 * The main component in the liquid phase (phase 0) is always balanced
28 * and the main component in the gas phase (phase 1) is never balanced
29 * For the index convention see RichardsVolumeVariables.
30 */
31 static constexpr bool mainComponentIsBalanced(int phaseIdx)
32 { return phaseIdx == FluidSystem::phase0Idx; }
33};
34
35} // end namespace Dumux
36
37#endif
Definition: adapt.hh:17
Traits class to set options used by the local residual when when evaluating the balance equations.
Definition: porousmediumflow/richards/balanceequationopts.hh:25
static constexpr bool mainComponentIsBalanced(int phaseIdx)
Definition: porousmediumflow/richards/balanceequationopts.hh:31