GRINS-0.8.0
antioch_constant_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 Thermo, typename Conductivity>
39  AntiochConstantTransportEvaluator<Thermo,Conductivity>::AntiochConstantTransportEvaluator( const AntiochConstantTransportMixture<Conductivity>& mixture )
40  : AntiochEvaluator<Antioch::CEACurveFit<libMesh::Real>,Thermo>( mixture ),
41  _mu( mixture.mu() ),
42  _conductivity( mixture.conductivity() ),
43  _diffusivity( mixture.diffusivity() )
44  {
45  return;
46  }
47 
48  template<typename Thermo, typename Conductivity>
50  {
51  return;
52  }
53 
54  template<typename Thermo, typename Conductivity>
55  libMesh::Real AntiochConstantTransportEvaluator<Thermo,Conductivity>::mu( const libMesh::Real /*T*/,
56  const libMesh::Real /*P*/,
57  const std::vector<libMesh::Real>& /*Y*/ )
58  {
59  return _mu;
60  }
61 
62  template<typename Thermo, typename Conductivity>
63  libMesh::Real AntiochConstantTransportEvaluator<Thermo,Conductivity>::k( const libMesh::Real T,
64  const libMesh::Real /*P*/,
65  const std::vector<libMesh::Real>& Y )
66  {
67  // Second T is dummy
68  const libMesh::Real cp = this->cp( T, T, Y );
69 
70  return _conductivity( _mu, cp );
71  }
72 
73  template<typename Thermo, typename Conductivity>
75  const libMesh::Real rho,
76  const libMesh::Real cp,
77  const std::vector<libMesh::Real>& /*Y*/,
78  libMesh::Real& mu, libMesh::Real& k,
79  std::vector<libMesh::Real>& D )
80  {
81  mu = _mu;
82 
83  k = _conductivity( _mu, cp );
84 
85  std::fill( D.begin(), D.end(), _diffusivity.D(rho,cp,k) );
86  }
87 
88 } // end namespace GRINS
89 
90 #endif // GRINS_HAVE_ANTIOCH
void mu_and_k_and_D(const libMesh::Real, const libMesh::Real rho, const libMesh::Real cp, const std::vector< libMesh::Real > &, libMesh::Real &mu, libMesh::Real &k, std::vector< libMesh::Real > &D)
GRINS namespace.
libMesh::Real mu(const libMesh::Real, const libMesh::Real, const std::vector< libMesh::Real > &)
libMesh::Real k(const libMesh::Real T, const libMesh::Real, const std::vector< libMesh::Real > &Y)

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