Skip to content
Snippets Groups Projects
Commit 4fade8a0 authored by Norbert Grunwald's avatar Norbert Grunwald Committed by Dmitri Naumov
Browse files

[MPL] Add concentration property type.

parent a8d60615
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ enum PropertyType : int ...@@ -46,6 +46,7 @@ enum PropertyType : int
critical_temperature, critical_temperature,
compressibility, compressibility,
/// used to specify decay rate of a substance. /// used to specify decay rate of a substance.
concentration,
decay_rate, decay_rate,
density, density,
diffusion, diffusion,
...@@ -154,6 +155,10 @@ inline PropertyType convertStringToProperty(std::string const& inString) ...@@ -154,6 +155,10 @@ inline PropertyType convertStringToProperty(std::string const& inString)
{ {
return PropertyType::compressibility; return PropertyType::compressibility;
} }
if (boost::iequals(inString, "concentration"))
{
return PropertyType::concentration;
}
if (boost::iequals(inString, "decay_rate")) if (boost::iequals(inString, "decay_rate"))
{ {
return PropertyType::decay_rate; return PropertyType::decay_rate;
...@@ -363,6 +368,7 @@ static const std::array<std::string, PropertyType::number_of_properties> ...@@ -363,6 +368,7 @@ static const std::array<std::string, PropertyType::number_of_properties>
"critical_pressure", "critical_pressure",
"critical_temperature", "critical_temperature",
"compressibility", "compressibility",
"concentration",
"decay_rate", "decay_rate",
"density", "density",
"diffusion", "diffusion",
......
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