OGS
MassMoleFractions.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "Base.h"
8
9namespace ProcessLib::TH2M
10{
12{
14{
15 double xnCG = nan;
16 double xmCG = nan;
17 double xnWL = nan;
18 double xmWL = nan;
19
20 static auto reflect()
21 {
22 using Self = MassMoleFractionsData;
23 namespace R = ProcessLib::Reflection;
24
25 return std::tuple{
26 R::makeReflectionData("mole_fraction_liquid", &Self::xnWL),
27 R::makeReflectionData("mass_fraction_liquid", &Self::xmWL),
28 R::makeReflectionData("mole_fraction_gas", &Self::xnCG),
29 R::makeReflectionData("mass_fraction_gas", &Self::xmCG)};
30 }
31};
32
33} // namespace ConstitutiveRelations
34} // namespace ProcessLib::TH2M
static constexpr double nan
Convenience alias for not a number.