GRINS-0.8.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-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 
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 KT, typename T, typename V, typename C, typename D>
40  ( const AntiochMixtureAveragedTransportMixture<KT,T,V,C,D> & mixture )
41  : AntiochEvaluator<KT,T>( mixture ),
42  _wilke_evaluator( new Antioch::MixtureAveragedTransportEvaluator<D,V,C,libMesh::Real>(mixture.wilke_mixture(),
43  mixture.diffusivity(),
44  mixture.viscosity(),
45  mixture.conductivity()) ),
46  _diffusivity( mixture.diffusivity() )
47  {}
48 
49  template<typename KT, typename Th, typename V, typename C, typename D>
50  libMesh::Real AntiochMixtureAveragedTransportEvaluator<KT,Th,V,C,D>::mu( const libMesh::Real T,
51  const libMesh::Real /*P*/,
52  const std::vector<libMesh::Real>& Y )
53  {
54  return _wilke_evaluator->mu( T, Y );
55  }
56 
57  template<typename KT, typename Th, typename V, typename C, typename D>
58  libMesh::Real AntiochMixtureAveragedTransportEvaluator<KT,Th,V,C,D>::k( const libMesh::Real /*T*/,
59  const libMesh::Real /*P*/,
60  const std::vector<libMesh::Real>& /*Y*/ )
61  {
62  libmesh_error();
63  return 0.0;//_wilke_evaluator->k( T, Y );
64  }
65 
66  template<typename KT, typename Th, typename V, typename C, typename Diff>
68  const libMesh::Real rho,
69  const libMesh::Real cp,
70  const std::vector<libMesh::Real>& Y,
71  libMesh::Real& mu, libMesh::Real& k,
72  std::vector<libMesh::Real>& D )
73  {
74  typename Antioch::MixtureAveragedTransportEvaluator<Diff,V,C,libMesh::Real>::DiffusivityType diff_type =
75  Antioch::MixtureAveragedTransportEvaluator<Diff,V,C,libMesh::Real>::DiffusivityType::MASS_FLUX_MASS_FRACTION;
76 
77  _wilke_evaluator->mu_and_k_and_D( T, rho, cp, Y, mu, k, D, diff_type );
78  }
79 
80 } // end namespace GRINS
81 
82 #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 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 Tue Dec 19 2017 12:47:28 for GRINS-0.8.0 by  doxygen 1.8.9.1