antioch-0.4.0
kinetics_theory_viscosity_building.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // Antioch - A Gas Dynamics Thermochemistry Library
5 //
6 // Copyright (C) 2014-2016 Paul T. Bauman, Benjamin S. Kirk,
7 // Sylvain Plessis, Roy H. Stonger
8 //
9 // Copyright (C) 2013 The PECOS Development Team
10 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the Version 2.1 GNU Lesser General
13 // Public License as published by the Free Software Foundation.
14 //
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
23 // Boston, MA 02110-1301 USA
24 //
25 //-----------------------------------------------------------------------el-
26 
27 #include "antioch_config.h"
28 #ifdef ANTIOCH_HAVE_GSL // if we do not have it, we don't even define the stuff
29 
30 #ifndef ANTIOCH_KINETICS_THEORY_BUILDING_H
31 #define ANTIOCH_KINETICS_THEORY_BUILDING_H
32 
33 // Antioch
36 
37 // C++
38 #include <iostream>
39 #include <vector>
40 
41 
42 namespace Antioch
43 {
44 
45  template <typename Scalar>
46  class TransportMixture;
47 
48  template<class NumericType, class SplineType>
49  void build_kinetics_theory_viscosity( MixtureViscosity<KineticsTheoryViscosity<NumericType,SplineType>,NumericType >& mu);
50 
51  // ----------------------------------------- //
52 
53  template<class NumericType, class SplineType>
54  void build_kinetics_theory_viscosity( MixtureViscosity<KineticsTheoryViscosity<NumericType,SplineType>,NumericType >& mu)
55  {
56  for(unsigned int s = 0; s < mu.mixture().n_species(); s++)
57  {
58  std::vector<NumericType> coeffs(4,0);
59  coeffs[0] = mu.mixture().transport_species()[s]->LJ_depth();
60  coeffs[1] = mu.mixture().transport_species()[s]->LJ_diameter();
61  coeffs[2] = mu.mixture().transport_species()[s]->dipole_moment();
62  coeffs[3] = mu.mixture().transport_species()[s]->M() / Constants::Avogadro<NumericType>();
63  mu.add(mu.mixture().species_inverse_name_map().at(s),coeffs);
64  }
65  }
66 
67 }
68 
69 #endif // ANTIOCH_KINETICS_THEORY_BUILDING_H
70 
71 #endif // ANTIOCH_HAVE_GSL
The parameters are reduced parameters.

Generated on Thu Jul 7 2016 11:09:45 for antioch-0.4.0 by  doxygen 1.8.8