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
16
namespace
Dumux
{
17
25
template
<
class
TypeTag>
26
class
BalanceEquationOptions
27
{
28
public
:
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
Dumux::BalanceEquationOptions
Traits class to set options used by the local residual when when evaluating the balance equations.
Definition:
common/balanceequationopts.hh:27
Dumux::BalanceEquationOptions::mainComponentIsBalanced
static constexpr bool mainComponentIsBalanced(int phaseIdx)
If a certain component is balanced in this model.
Definition:
common/balanceequationopts.hh:34
Dumux
Definition:
adapt.hh:17
dumux
common
balanceequationopts.hh
© Copyright 2010-
DuMux project contributors
(doc pages:
CC-BY 4.0
/ code examples:
GPLv3 or later
)
3.10-dev Generated by
1.9.3