GRINS-0.7.0
antioch_mixture_averaged_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-2016 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 
30 // This class
32 
33 // Antioch
34 #include "antioch/default_filename.h"
35 
36 // libMesh
37 #include "libmesh/getpot.h"
38 
39 namespace GRINS
40 {
41  template<typename T, typename V, typename C, typename D>
43  const std::string& material )
44  : AntiochMixture(input,material)
45  {
46  std::string transport_data_filename = input( "Materials/"+material+"/GasMixture/Antioch/transport_data", "default" );
47  if( transport_data_filename == std::string("default") )
48  transport_data_filename = Antioch::DefaultInstallFilename::transport_mixture();
49 
50  bool verbose_transport_read = input( "Materials/"+material+"/GasMixture/Antioch/verbose_transport_read", false );
51 
52  _trans_mixture.reset( new Antioch::TransportMixture<libMesh::Real>( *(_antioch_gas.get()),
53  transport_data_filename,
54  verbose_transport_read,
55  Antioch::ParsingType::ASCII ) );
56 
57  _wilke_mixture.reset( new Antioch::MixtureAveragedTransportMixture<libMesh::Real>(*(_trans_mixture.get()) ) );
58 
59  this->build_thermo( input );
60 
61  this->build_viscosity( input, material );
62 
63  this->build_conductivity( input );
64 
65  this->build_diffusivity( input, material );
66 
67  return;
68  }
69 
70  template<typename T, typename V, typename C, typename D>
72  {
73  return;
74  }
75 
76 } // end namespace GRINS
77 
78 #endif // GRINS_HAVE_ANTIOCH
libMesh::UniquePtr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
GRINS namespace.
Wrapper class for storing state for Antioch thermo and kinetics.
void build_viscosity(const GetPot &input, const std::string &material)
libMesh::UniquePtr< Antioch::TransportMixture< libMesh::Real > > _trans_mixture
libMesh::UniquePtr< Antioch::MixtureAveragedTransportMixture< libMesh::Real > > _wilke_mixture
void build_diffusivity(const GetPot &input, const std::string &material)

Generated on Thu Jun 2 2016 21:52:28 for GRINS-0.7.0 by  doxygen 1.8.10