OGS
FluidDensity.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 // gas phase density
16 double rho_GR = nan;
17
18 // liquid phase density
19 double rho_LR = nan;
20
21 static auto reflect()
22 {
23 using Self = FluidDensityData;
24 namespace R = ProcessLib::Reflection;
25
26 return std::tuple{
27 R::makeReflectionData("gas_density", &Self::rho_GR),
28 R::makeReflectionData("liquid_density", &Self::rho_LR)};
29 }
30};
31
32} // namespace ConstitutiveRelations
33} // namespace ProcessLib::TH2M
static constexpr double nan
Convenience alias for not a number.