version 3.8.0
Loading...
Searching...
No Matches
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
16
namespace
Dumux
{
17
23
template
<
class
Flu
id
System>
24
struct
RichardsBalanceEquationOptions
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
Dumux
Definition
adapt.hh:17
Dumux::RichardsBalanceEquationOptions
Traits class to set options used by the local residual when when evaluating the balance equations.
Definition
porousmediumflow/richards/balanceequationopts.hh:25
Dumux::RichardsBalanceEquationOptions::mainComponentIsBalanced
static constexpr bool mainComponentIsBalanced(int phaseIdx)
Definition
porousmediumflow/richards/balanceequationopts.hh:31
dumux
porousmediumflow
richards
balanceequationopts.hh
© Copyright 2010-
DuMux project contributors
(doc pages:
CC-BY 4.0
/ code examples:
GPLv3 or later
)
3.8.0 Generated by
1.9.8