OGS
CreateSpecificHeatCapacityWithLatentHeat.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<SpecificHeatCapacityWithLatentHeat>
14{
16 config.checkConfigParameter("type", "SpecificHeatCapacityWithLatentHeat");
17
18 // Second access for storage.
20 auto property_name = config.peekConfigParameter<std::string>("name");
21
22 DBUG("Create temperature dependent specific heat capacity {:s}.",
23 property_name);
24
25 auto const l =
27 config.getConfigParameter<double>("specific_latent_heat");
28
29 return std::make_unique<
31 std::move(property_name), l);
32}
33} // 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< SpecificHeatCapacityWithLatentHeat > createSpecificHeatCapacityWithLatentHeat(BaseLib::ConfigTree const &config)