version 3.10-dev
common/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 BALANCE_EQUATION_OPTIONS_HH
14#define BALANCE_EQUATION_OPTIONS_HH
15
16namespace Dumux {
17
25template <class TypeTag>
27{
28public:
29
31 // per default all phases are balanced. See e.g. Richards for an example where
32 // the air component exists but is not balanced. Or the tracer model where the
33 // carrier phase main component exists but is not balanced.
34 static constexpr bool mainComponentIsBalanced(int phaseIdx)
35 { return true; }
36};
37
38} // end namespace Dumux
39
40#endif
Traits class to set options used by the local residual when when evaluating the balance equations.
Definition: common/balanceequationopts.hh:27
static constexpr bool mainComponentIsBalanced(int phaseIdx)
If a certain component is balanced in this model.
Definition: common/balanceequationopts.hh:34
Definition: adapt.hh:17