OGS
CreateVolumeFractionAverage.cpp
Go to the documentation of this file.
1
10#include "BaseLib/ConfigTree.h"
12
13namespace MaterialPropertyLib
14{
15std::unique_ptr<VolumeFractionAverage> createVolumeFractionAverage(
16 BaseLib::ConfigTree const& config)
17{
19 config.checkConfigParameter("type", "VolumeFractionAverage");
20
21 // Second access for storage.
23 auto property_name = config.peekConfigParameter<std::string>("name");
24
26 DBUG("Create volume fraction average {:s}.", property_name);
27
28 // no input parameters required here (taken from phase properties)
29
30 return std::make_unique<MaterialPropertyLib::VolumeFractionAverage>(
31 std::move(property_name));
32}
33} // namespace MaterialPropertyLib
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
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)