antioch-0.4.0
read_reaction_set_data.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // Antioch - A Gas Dynamics Thermochemistry Library
5 //
6 // Copyright (C) 2014-2016 Paul T. Bauman, Benjamin S. Kirk,
7 // Sylvain Plessis, Roy H. Stonger
8 //
9 // Copyright (C) 2013 The PECOS Development Team
10 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the Version 2.1 GNU Lesser General
13 // Public License as published by the Free Software Foundation.
14 //
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
23 // Boston, MA 02110-1301 USA
24 //
25 //-----------------------------------------------------------------------el-
26 
27 
28 #ifndef ANTIOCH_READ_REACTION_SET_DATA_H
29 #define ANTIOCH_READ_REACTION_SET_DATA_H
30 
31 // Antioch
33 #include "antioch/units.h"
34 #include "antioch/parsing_enum.h"
35 
36 // C++
37 #include <string>
38 #include <vector>
39 
40 namespace Antioch
41 {
42 
43  template <typename NumericType>
44  class ASCIIParser;
45 
46  template <typename NumericType>
47  class ChemKinParser;
48 
49  template <typename NumericType>
50  class XMLParser;
51 
52  template <typename NumericType>
53  class ReactionSet;
54 
114  template<class NumericType>
115  void read_reaction_set_data_xml( const std::string& filename,
116  const bool verbose,
117  ReactionSet<NumericType>& reaction_set );
118 
119  template<class NumericType>
120  void read_reaction_set_data_chemkin( const std::string& filename,
121  const bool verbose,
122  ReactionSet<NumericType>& reaction_set );
123 
124 
125  template<typename NumericType>
126  void read_reaction_set_data(const std::string &filename,
127  const bool verbose,
128  ReactionSet<NumericType>& reaction_set,
129  ParsingType type = ASCII );
130 
131  template <typename NumericType>
132  void verify_unit_of_parameter(Units<NumericType> & default_unit, const std::string & provided_unit,
133  const std::vector<std::string> & accepted_unit,
134  const std::string & equation, const std::string & parameter_name);
135 
136 
137  /* ------------------------- Inline Functions -------------------------*/
138  template<class NumericType>
139  inline
140  void read_reaction_set_data_xml( const std::string& filename,
141  const bool verbose,
142  ReactionSet<NumericType>& reaction_set )
143  {
144  read_reaction_set_data<NumericType >(filename,verbose,reaction_set,XML);
145  }
146 
147  template<class NumericType>
148  inline
149  void read_reaction_set_data_chemkin( const std::string& filename,
150  const bool verbose,
151  ReactionSet<NumericType>& reaction_set )
152  {
153  read_reaction_set_data<NumericType>(filename,verbose,reaction_set,CHEMKIN);
154  }
155 
156 } // end namespace Antioch
157 
158 #endif // ANTIOCH_READ_REACTION_SET_DATA_H
void read_reaction_set_data_chemkin(const std::string &filename, const bool verbose, ReactionSet< NumericType > &reaction_set)
This class encapsulates all the reaction mechanisms considered in a chemical nonequilibrium simulatio...
void read_reaction_set_data_xml(const std::string &filename, const bool verbose, ReactionSet< NumericType > &reaction_set)
Advanced unit class.
Nothing is stored, this parser is based on the tinyxml2 implementation.
void read_reaction_set_data(const std::string &filename, const bool verbose, ReactionSet< NumericType > &reaction_set, ParsingType type=ASCII)
The parameters are reduced parameters.
An advanced unit class.
Definition: units.h:111
void verify_unit_of_parameter(Units< NumericType > &default_unit, const std::string &provided_unit, const std::vector< std::string > &accepted_unit, const std::string &equation, const std::string &parameter_name)

Generated on Thu Jul 7 2016 11:09:45 for antioch-0.4.0 by  doxygen 1.8.8