Flow123d
JS_before_hm-1804-gf2ad740aa
|
Go to the documentation of this file.
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());
Substance()
Default constructor.
std::shared_ptr< std::vector< Substance > > substances_
The actual list of substances.
std::string name_
Name of a chemical substance.
Classes for storing substance data.
std::string name() const
Getter for substance name.
void initialize(const Input::Array &in_array)
Read from input array.
const std::vector< std::string > & names()
static const Input::Type::Record & get_input_type()
Input type for a substance.
double molar_mass_
Molar mass [kg/mol] of the substance.
std::shared_ptr< std::vector< std::string > > names_
Auxiliary list of substance names used in some classes.