GRINS-0.7.0
antioch_mixture_averaged_transport_evaluator.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 // GRINS
34 #include "grins/cached_values.h"
35 
36 namespace GRINS
37 {
38  template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
40  : AntiochEvaluator<Thermo>( mixture ),
41  _wilke_evaluator( new Antioch::MixtureAveragedTransportEvaluator<Diffusivity,Viscosity,Conductivity,libMesh::Real>( mixture.wilke_mixture(), mixture.diffusivity(), mixture.viscosity(), mixture.conductivity() ) ),
42  _diffusivity( mixture.diffusivity() )
43  {}
44 
45  template<typename Th, typename V, typename C, typename D>
46  libMesh::Real AntiochMixtureAveragedTransportEvaluator<Th,V,C,D>::mu( const libMesh::Real T,
47  const libMesh::Real /*P*/,
48  const std::vector<libMesh::Real>& Y )
49  {
50  return _wilke_evaluator->mu( T, Y );
51  }
52 
53  template<typename Th, typename V, typename C, typename D>
54  libMesh::Real AntiochMixtureAveragedTransportEvaluator<Th,V,C,D>::k( const libMesh::Real /*T*/,
55  const libMesh::Real /*P*/,
56  const std::vector<libMesh::Real>& /*Y*/ )
57  {
58  libmesh_error();
59  return 0.0;//_wilke_evaluator->k( T, Y );
60  }
61 
62  template<typename Th, typename V, typename C, typename Diff>
64  const libMesh::Real rho,
65  const libMesh::Real cp,
66  const std::vector<libMesh::Real>& Y,
67  libMesh::Real& mu, libMesh::Real& k,
68  std::vector<libMesh::Real>& D )
69  {
70  typename Antioch::MixtureAveragedTransportEvaluator<Diff,V,C,libMesh::Real>::DiffusivityType
71  diff_type = Antioch::MixtureAveragedTransportEvaluator<Diff,V,C,libMesh::Real>::DiffusivityType::MASS_FLUX_MASS_FRACTION;
72 
73  _wilke_evaluator->mu_and_k_and_D( T, rho, cp, Y, mu, k, D, diff_type );
74  }
75 
76 } // end namespace GRINS
77 
78 #endif // GRINS_HAVE_ANTIOCH
libMesh::Real mu(const libMesh::Real T, const libMesh::Real P, const std::vector< libMesh::Real > &Y)
Wrapper class for evaluating chemistry and thermo properties using Antioch.
libMesh::Real k(const libMesh::Real T, const libMesh::Real P, const std::vector< libMesh::Real > &Y)
Wrapper class for storing state for computing Wilke transport properties using Antioch.
GRINS namespace.
void mu_and_k_and_D(const libMesh::Real T, const libMesh::Real rho, const libMesh::Real cp, const std::vector< libMesh::Real > &Y, libMesh::Real &mu, libMesh::Real &k, std::vector< libMesh::Real > &D)

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