34 Medium(
int const material_id,
35 std::vector<std::unique_ptr<Phase>>&& phases,
36 std::unique_ptr<PropertyArray>&& properties);
42 Phase const&
phase(std::string
const& phase_name)
const;
45 bool hasPhase(std::string
const& phase_name)
const;
94 std::vector<std::unique_ptr<Phase>>
const phases_;
110 std::span<PropertyType const>
const required_properties);
T value(PropertyType const p, VariableArray const &variable_array) const
std::size_t numberOfPhases() const
Phase const & phase(std::size_t index) const
Medium(int const material_id, std::vector< std::unique_ptr< Phase > > &&phases, std::unique_ptr< PropertyArray > &&properties)
std::vector< std::unique_ptr< Phase > > const phases_
The vector that holds the phases.
bool hasPhase(std::string const &phase_name) const
A query for a named phase.
T value(PropertyType const p) const
PropertyArray properties_
T d2Value(PropertyType const p, VariableArray const &variable_array, Variable const variable1, Variable const variable2) const
Property const & property(PropertyType const &p) const
bool hasProperty(PropertyType const &p) const
Property const & operator[](PropertyType const &p) const
T dValue(PropertyType const p, VariableArray const &variable_array, Variable const variable) const
std::string description() const
Short description of the medium.
void checkRequiredProperties(Component const &c, std::span< PropertyType const > const required_properties)
std::array< std::unique_ptr< Property >, PropertyType::number_of_properties > PropertyArray
Phase const & fluidPhase(Medium const &medium)
Returns a gas or aqueous liquid phase of the given medium.