GRINS-0.6.0
antioch_mixture.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 
26 #ifndef GRINS_ANTIOCH_MIXTURE_H
27 #define GRINS_ANTIOCH_MIXTURE_H
28 
29 #include "grins_config.h"
30 
31 #ifdef GRINS_HAVE_ANTIOCH
32 
33 // GRINS
35 #include "grins/property_types.h"
36 
37 // libMesh
38 #include "libmesh/libmesh_common.h"
39 
40 // Antioch
41 #include "antioch/vector_utils_decl.h"
42 #include "antioch/vector_utils.h"
43 #include "antioch/chemical_mixture.h"
44 #include "antioch/cea_mixture.h"
45 #include "antioch/reaction_set.h"
46 
47 // Boost
48 #include "boost/scoped_ptr.hpp"
49 
50 // libMesh forward declarations
51 class GetPot;
52 
53 namespace GRINS
54 {
56 
64  {
65  public:
66 
67  AntiochMixture( const GetPot& input );
68 
69  virtual ~AntiochMixture();
70 
71  const Antioch::ReactionSet<libMesh::Real>& reaction_set() const;
72 
73  const Antioch::CEAThermoMixture<libMesh::Real>& cea_mixture() const;
74 
75  libMesh::Real h_stat_mech_ref_correction( unsigned int species ) const;
76 
77  protected:
78 
79  boost::scoped_ptr<Antioch::ReactionSet<libMesh::Real> > _reaction_set;
80 
81  boost::scoped_ptr<Antioch::CEAThermoMixture<libMesh::Real> > _cea_mixture;
82 
83  std::vector<libMesh::Real> _h_stat_mech_ref_correction;
84 
86 
87  private:
88 
90 
91  };
92 
93  /* ------------------------- Inline Functions -------------------------*/
94  inline
95  const Antioch::ReactionSet<libMesh::Real>& AntiochMixture::reaction_set() const
96  {
97  return *_reaction_set.get();
98  }
99 
100  inline
101  const Antioch::CEAThermoMixture<libMesh::Real>& AntiochMixture::cea_mixture() const
102  {
103  return *_cea_mixture.get();
104  }
105 
106  inline
107  libMesh::Real AntiochMixture::h_stat_mech_ref_correction( unsigned int species ) const
108  {
109  return _h_stat_mech_ref_correction[species];
110  }
111 
112 } // end namespace GRINS
113 
114 #endif // GRINS_HAVE_ANTIOCH
115 
116 #endif // GRINS_ANTIOCH_MIXTURE_H
boost::scoped_ptr< Antioch::CEAThermoMixture< libMesh::Real > > _cea_mixture
libMesh::Real h_stat_mech_ref_correction(unsigned int species) const
Wrapper class for Antioch::ChemicalMixture.
const Antioch::CEAThermoMixture< libMesh::Real > & cea_mixture() const
boost::scoped_ptr< Antioch::ReactionSet< libMesh::Real > > _reaction_set
GRINS namespace.
void build_stat_mech_ref_correction()
const Antioch::ReactionSet< libMesh::Real > & reaction_set() const
std::vector< libMesh::Real > _h_stat_mech_ref_correction
Wrapper class for storing state for Antioch thermo and kinetics.

Generated on Mon Jun 22 2015 21:32:20 for GRINS-0.6.0 by  doxygen 1.8.9.1