| 
    H2 Combustion
   
    
   
   | 
  
  
  
 
This stucture unifies all informations about a chemical compound. More...

Public Member Functions | |
| void | readComposition (std::string filename) | 
| Reads in the quantities for the substances from a file.   | |
| void | readReactions (std::string filename) | 
| Reads in the available reaction using a ReactionParser.   | |
Public Attributes | |
| 
std::unordered_map< Substance  *, double >  | ingredients | 
| std::vector< Reaction * > | reactions | 
| double | Temperature | 
It manages in which quantities substances are contained in the compound at a given moment. It also stores the temperature. Thus it gives a complete chemical state.
Furthermore it contains all reaction that are allowed to happen between the substances. It allows the information to be read in.
| void readComposition | ( | std::string | filename | ) | 
| filename | The name of file to read the quantities from. | 
The file is expected to be of the form containing alternating the name of the substance and the quantity, seperated by whitespaces: substance quantity [substance quantity ...] 
| void readReactions | ( | std::string | filename | ) | 
| filename | The name of file to read the reactions from. For the format, see ReactionParser. |