GRINS-0.8.0
antioch_mixture_averaged_transport_mixture_builder.C
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 #include "grins_config.h"
26 
27 #ifdef GRINS_HAVE_ANTIOCH
28 
29 // This class
31 
32 namespace GRINS
33 {
34  libMesh::UniquePtr<Antioch::TransportMixture<libMesh::Real> >
36  build_transport_mixture( const GetPot & input, const std::string & material,
37  const Antioch::ChemicalMixture<libMesh::Real> & chem_mix )
38  {
39  std::string transport_data_filename =
40  input( "Materials/"+material+"/GasMixture/Antioch/transport_data", "default" );
41 
42  if( transport_data_filename == std::string("default") )
43  transport_data_filename = Antioch::DefaultInstallFilename::transport_mixture();
44 
45  bool verbose_transport_read =
46  input( "Materials/"+material+"/GasMixture/Antioch/verbose_transport_read", false );
47 
48  return libMesh::UniquePtr<Antioch::TransportMixture<libMesh::Real> >
49  ( new Antioch::TransportMixture<libMesh::Real>( chem_mix,
50  transport_data_filename,
51  verbose_transport_read,
52  Antioch::ParsingType::ASCII ) );
53  }
54 
55 } // end namespace GRINS
56 
57 #endif // GRINS_HAVE_ANTIOCH
GRINS namespace.
libMesh::UniquePtr< Antioch::TransportMixture< libMesh::Real > > build_transport_mixture(const GetPot &input, const std::string &material, const Antioch::ChemicalMixture< libMesh::Real > &chem_mix)

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