version 3.10-dev
h2on2kinetic.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//
12#ifndef DUMUX_H2O_N2_FLUID_SYSTEM_KINETIC_HH
13#define DUMUX_H2O_N2_FLUID_SYSTEM_KINETIC_HH
14
20
22
25
26namespace Dumux {
27namespace FluidSystems {
28
34template <class Scalar, class Policy = H2ON2DefaultPolicy<>>
36 public FluidSystems::H2ON2<Scalar, Policy>
37{
38private:
40
42public:
45
52 template <class FluidState>
53 static Scalar componentEnthalpy(FluidState &fluidState,
54 const int phaseIdx,
55 const int compIdx)
56 {
57 const Scalar T = fluidState.temperature(phaseIdx);
58 const Scalar p = fluidState.pressure(phaseIdx);
59
60 switch (phaseIdx) {
62 switch(compIdx) {
66 return ParentType::N2::gasEnthalpy(T, p); // TODO: should be liquid enthalpy
67 default:
68 DUNE_THROW(Dune::NotImplemented, "wrong index");
69 }
71 switch(compIdx) {
75 return ParentType::N2::gasEnthalpy(T, p);
76 default:
77 DUNE_THROW(Dune::NotImplemented, "wrong index");
78 }
79 default:
80 DUNE_THROW(Dune::NotImplemented, "wrong index");
81 }
82 }
83
89 {
91 }
92
98 {
100 }
101};
102} // end namespace Fluidsystem
103} // end namespace Dumux
104
105#endif
static Scalar henry(Scalar temperature)
Henry coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:36
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of pure nitrogen gas. Shomate Equation is used for a temperature range of 100K to ...
Definition: n2.hh:168
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the gas .
Definition: tabulatedcomponent.hh:817
static const Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the liquid .
Definition: tabulatedcomponent.hh:835
static Scalar vaporPressure(Scalar T)
The vapor pressure in of the component at a given temperature.
Definition: tabulatedcomponent.hh:790
Scalar Scalar
export the scalar type
Definition: fluidsystems/base.hh:36
A two-phase fluid system with two components water Nitrogen for non-equilibrium models.
Definition: h2on2.hh:57
static constexpr int liquidPhaseIdx
index of the liquid phase
Definition: h2on2.hh:72
static constexpr int N2Idx
Definition: h2on2.hh:78
static constexpr int gasPhaseIdx
index of the gas phase
Definition: h2on2.hh:73
static constexpr int H2OIdx
Definition: h2on2.hh:77
A two-phase fluid system with two components water Nitrogen for non-equilibrium models....
Definition: h2on2kinetic.hh:37
static Scalar vaporPressure(Scalar temperature)
Return the vapor pressure of a component above one phase. .
Definition: h2on2kinetic.hh:97
static Scalar henry(Scalar temperature)
Return the Henry constant for a component in a phase. .
Definition: h2on2kinetic.hh:88
static Scalar componentEnthalpy(FluidState &fluidState, const int phaseIdx, const int compIdx)
Return the enthalpy of a component in a phase.
Definition: h2on2kinetic.hh:53
Relations valid for an ideal gas.
Definition: idealgas.hh:25
The a parameter cache which does nothing.
Definition: nullparametercache.hh:22
Fluid system base class.
Material properties of pure water .
Binary coefficients for water and nitrogen.
Relations valid for an ideal gas.
Properties of pure molecular nitrogen .
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
Definition: adapt.hh:17
A simple implementation of pure water.
Tabulates all thermodynamic properties of a given untabulated chemical species.