GRINS-0.6.0
antioch_constant_transport_mixture.C
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 #include "grins_config.h"
27 
28 #ifdef GRINS_HAVE_ANTIOCH
29 
31 
32 namespace GRINS
33 {
34  template<typename Thermo>
36  : AntiochMixture(input),
37  _mu( input("Materials/Viscosity/mu", 0.0) ),
38  _conductivity(NULL),
39  _diffusivity( new Antioch::ConstantLewisDiffusivity<libMesh::Real>( input("Physics/Antioch/Le", 0.0) ) )
40  {
41  if( !input.have_variable("Materials/Viscosity/mu") )
42  {
43  std::cerr << "Error: Must specify viscosity value for constant viscosity model!" << std::endl;
44  libmesh_error();
45  }
46 
47  if( !input.have_variable("Physics/Antioch/Le") )
48  {
49  std::cerr << "Error: Must provide Lewis number for constant_lewis diffusivity model."
50  << std::endl;
51  libmesh_error();
52  }
53 
54  this->build_conductivity(input);
55 
56  return;
57  }
58 
59  template<typename Thermo>
61  {
62  return;
63  }
64 
65 } // end namespace GRINS
66 
67 #endif // GRINS_HAVE_ANTIOCH
GRINS namespace.
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