GRINS-0.8.0
cantera_test_base.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2017 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 #ifndef GRINS_CANTERA_TEST_BASE_H
26 #define GRINS_CANTERA_TEST_BASE_H
27 
28 #include "grins_config.h"
29 
30 #ifdef GRINS_HAVE_CANTERA
31 
32 // GRINS
33 #include "grins/cantera_mixture.h"
34 
35 // libMesh
36 #include "libmesh/libmesh_common.h"
37 #include "libmesh/getpot.h"
38 
39 namespace GRINSTesting
40 {
42  {
43  public:
44 
45  void init_cantera(const std::string& input_file, const std::string& material_name)
46  {
47  GetPot input(input_file);
48 
49  _cantera_mixture.reset( new GRINS::CanteraMixture(input,material_name) );
50  }
51 
52  protected:
53 
54  libMesh::UniquePtr<GRINS::CanteraMixture> _cantera_mixture;
55  };
56 
57 } // end namespace GRINSTesting
58 
59 #endif // GRINS_HAVE_CANTERA
60 
61 #endif // GRINS_CANTERA_TEST_BASE_H
libMesh::UniquePtr< GRINS::CanteraMixture > _cantera_mixture
Wrapper class for storing state for computing thermochemistry and transport properties using Cantera...
void init_cantera(const std::string &input_file, const std::string &material_name)

Generated on Tue Dec 19 2017 12:47:29 for GRINS-0.8.0 by  doxygen 1.8.9.1