30 return Record(
"Substance",
"Chemical substance.")
48 name_ = in_rec.
val<std::string>(
"name");
60 substances_ = std::make_shared<std::vector<Substance> >();
61 names_ = std::make_shared<std::vector<std::string> >();
66 (*substances_).push_back(s);
67 (*names_).push_back(s.
name());
80 substances_ = std::make_shared<std::vector<Substance> >();
81 names_ = std::make_shared<std::vector<std::string> >(
names);
84 (*substances_).resize(
names.size());
std::shared_ptr< std::vector< std::string > > names_
Auxiliary list of substance names used in some classes.
void initialize(const Input::Array &in_array)
Read from input array.
std::shared_ptr< std::vector< Substance > > substances_
The actual list of substances.
const std::vector< std::string > & names()
std::string name() const
Getter for substance name.
double molar_mass_
Molar mass [kg/mol] of the substance.
static const Input::Type::Record & get_input_type()
Input type for a substance.
Substance()
Default constructor.
std::string name_
Name of a chemical substance.
Classes for storing substance data.