version 3.8
nonequilibriummass.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_NONEQUILIBRIUM_MASS_FLUID_STATE_HH
15#define DUMUX_NONEQUILIBRIUM_MASS_FLUID_STATE_HH
16
17#include <dune/common/exceptions.hh>
19
20namespace Dumux {
21
31template <class ScalarType, class FluidSystem>
33: public NonEquilibriumFluidState<ScalarType, FluidSystem>
34{
36public:
37 static constexpr int numPhases = FluidSystem::numPhases;
38 static constexpr int numComponents = FluidSystem::numComponents;
39
41 using Scalar = ScalarType;
42
43 using ParentType::ParentType;
44
45 /*****************************************************
46 * Setter methods. Note that these are not part of the
47 * generic FluidState interface but specific for each
48 * implementation...
49 *****************************************************/
50
56 void setTemperature(const int phaseIdx, const Scalar value)
57 { DUNE_THROW(Dune::NotImplemented, "This is a fluidstate for *chemical* non-equilibrium, not thermal!"); }
58};
59
60} // end namespace Dumux
61
62#endif
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system witho...
Definition: nonequilibrium.hh:31
ScalarType Scalar
export the scalar type
Definition: nonequilibrium.hh:37
void setTemperature(int phaseIdx, Scalar value)
Set the temperature of a fluid phase.
Definition: nonequilibrium.hh:237
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system.
Definition: nonequilibriummass.hh:34
void setTemperature(const int phaseIdx, const Scalar value)
Set the temperature of a fluid phase.
Definition: nonequilibriummass.hh:56
static constexpr int numPhases
Definition: nonequilibriummass.hh:37
static constexpr int numComponents
Definition: nonequilibriummass.hh:38
Definition: adapt.hh:17
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system witho...