Flow123d
release_3.0.0-1073-g8f35d56
|
#include <substance.hh>
Public Member Functions | |
Substance () | |
Default constructor. More... | |
Substance (const Input::Record &in_rec) | |
Initialization from input tree. More... | |
std::string | name () const |
Getter for substance name. More... | |
double | molar_mass () const |
Getter for molar mass. More... | |
Static Public Member Functions | |
static const Input::Type::Record & | get_input_type () |
Input type for a substance. More... | |
Protected Attributes | |
std::string | name_ |
Name of a chemical substance. More... | |
double | molar_mass_ |
Molar mass [kg/mol] of the substance. More... | |
Friends | |
class | SubstanceList |
Class Substance is a storage for data which are specific for a (chemical) substance. The purpose is to easily share them among equations (e.g. between transport and reactions).
Definition at line 32 of file substance.hh.
Substance::Substance | ( | ) |
Default constructor.
Definition at line 40 of file substance.cc.
Substance::Substance | ( | const Input::Record & | in_rec | ) |
Initialization from input tree.
Definition at line 46 of file substance.cc.
|
static |
Input type for a substance.
Definition at line 29 of file substance.cc.
|
inline |
Getter for molar mass.
Definition at line 46 of file substance.hh.
|
inline |
Getter for substance name.
Definition at line 43 of file substance.hh.
|
friend |
Definition at line 60 of file substance.hh.
|
protected |
Molar mass [kg/mol] of the substance.
Definition at line 58 of file substance.hh.
|
protected |
Name of a chemical substance.
Definition at line 55 of file substance.hh.