OGS
CreateVapourDiffusionPMQ.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
4
#include "
CreateVapourDiffusionPMQ.h
"
5
6
#include "
BaseLib/ConfigTree.h
"
7
#include "
MaterialLib/MPL/Property.h
"
8
#include "
VapourDiffusionPMQ.h
"
9
10
namespace
MaterialPropertyLib
11
{
12
std::unique_ptr<Property>
createVapourDiffusionPMQ
(
13
BaseLib::ConfigTree
const
& config)
14
{
16
config.
checkConfigParameter
(
"type"
,
"VapourDiffusionPMQ"
);
17
DBUG
(
"Create VapourDiffusionPMQ phase property"
);
18
20
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
21
22
double
const
base_diffusion_coefficient =
24
config.
getConfigParameter
<
double
>(
"base_diffusion_coefficient"
,
25
2.16e-5);
26
27
double
const
exponent =
29
config.
getConfigParameter
<
double
>(
"exponent"
, 1.8);
30
32
return
std::make_unique<VapourDiffusionPMQ>(
33
std::move(property_name), base_diffusion_coefficient, exponent);
34
}
35
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateVapourDiffusionPMQ.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:22
Property.h
VapourDiffusionPMQ.h
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:116
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:35
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:166
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::createVapourDiffusionPMQ
std::unique_ptr< Property > createVapourDiffusionPMQ(BaseLib::ConfigTree const &config)
Definition
CreateVapourDiffusionPMQ.cpp:12
MaterialLib
MPL
Properties
VapourDiffusion
CreateVapourDiffusionPMQ.cpp
Generated by
1.14.0