OGS
CreateVapourDiffusionFEBEX.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
9
10namespace MaterialPropertyLib
11{
12std::unique_ptr<Property> createVapourDiffusionFEBEX(
13 BaseLib::ConfigTree const& config)
14{
16 config.checkConfigParameter("type", "VapourDiffusionFEBEX");
17 DBUG("Create VapourDiffusionFEBEX phase property");
18
19 // Second access for storage.
21 auto property_name = config.peekConfigParameter<std::string>("name");
22
23 double const base_diffusion_coefficient =
25 config.getConfigParameter<double>("base_diffusion_coefficient",
26 2.16e-5);
27
28 double const exponent =
30 config.getConfigParameter<double>("exponent", 1.8);
31
32 return std::make_unique<VapourDiffusionFEBEX>(
33 std::move(property_name), base_diffusion_coefficient, exponent);
34}
35} // namespace MaterialPropertyLib
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
T peekConfigParameter(std::string const &param) const
T getConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< Property > createVapourDiffusionFEBEX(BaseLib::ConfigTree const &config)