OGS
CreateVolumeFractionAverage.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
6
8{
9std::unique_ptr<VolumeFractionAverage> createVolumeFractionAverage(
10 BaseLib::ConfigTree const& config)
11{
13 config.checkConfigParameter("type", "VolumeFractionAverage");
14
15 // Second access for storage.
17 auto property_name = config.peekConfigParameter<std::string>("name");
18
20 DBUG("Create volume fraction average {:s}.", property_name);
21
22 // no input parameters required here (taken from phase properties)
23
24 return std::make_unique<MaterialPropertyLib::VolumeFractionAverage>(
25 std::move(property_name));
26}
27} // namespace MaterialPropertyLib
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
T peekConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< VolumeFractionAverage > createVolumeFractionAverage(BaseLib::ConfigTree const &config)