Skip to content
Snippets Groups Projects
Commit 4147b6c8 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MPL] Parse and create exponential property.

parent f366cd59
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,38 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty(
reference_value, iv);
}
if (property_type == "Exponential")
{
auto const reference_value =
//! \ogs_file_param{properties__property__ExponentialProperty__reference_value}
config.getConfigParameter<double>("reference_value");
auto const& exponent_data_config =
//! //\ogs_file_param{properties__property__ExponentialProperty__exponent}
config.getConfigSubtree("exponent");
auto const& variable_name =
//! \ogs_file_param{properties__property__ExponentialProperty__exponent__variable_name}
exponent_data_config.getConfigParameter<std::string>(
"variable_name");
auto const reference_condition =
//! \ogs_file_param{properties__property__ExponentialProperty__exponent__reference_condition}
exponent_data_config.getConfigParameter<double>(
"reference_condition");
auto const factor =
//! \ogs_file_param{properties__property__ExponentialProperty__exponent__factor}
exponent_data_config.getConfigParameter<double>("factor");
MaterialPropertyLib::Variable exp_data_type =
MaterialPropertyLib::convertStringToVariable(variable_name);
MaterialPropertyLib::ExponentData const exp_data{
exp_data_type, reference_condition, factor};
return std::make_unique<MaterialPropertyLib::ExponentialProperty>(
reference_value, exp_data);
}
/* TODO Additional properties go here, for example:
if (boost::iequals(property_type, "BilinearTemperaturePressure"))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment