17 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media,
18 std::string phase_name)
21 auto const medium = media.begin()->second;
22 return medium->phase(phase_name).numberOfComponents();
26 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media,
30 auto const medium = media.begin()->second;
31 auto const& phase = medium->phase(phase_name);
34 for (std::size_t
c = 0;
c < phase.numberOfComponents();
c++)
36 if (phase.component(
c).hasProperty(property_type))
49 "PhaseTransitionModel: findComponentIndex() could not find the "
50 "specified property type '{:s}' in phase '{:s}'.",
static const std::array< std::string, PropertyType::number_of_properties > property_enum_to_string
int numberOfComponents(std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media, std::string phase_name)
int findComponentIndex(std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media, std::string phase_name, MaterialPropertyLib::PropertyType property_type)