antioch-0.4.0
constant_lewis_diffusivity_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 #ifndef ANTIOCH_CONSTANT_LEWIS_DIFFUSIVITY_BUILDING_H
28 #define ANTIOCH_CONSTANT_LEWIS_DIFFUSIVITY_BUILDING_H
29 
30 // Antioch
33 
34 // C++
35 #include <iostream>
36 #include <vector>
37 
38 namespace Antioch
39 {
40 
41  //
42  template <typename NumericType>
43  class ChemicalMixture;
44 
45  template<class NumericType>
47  {
48  std::vector<NumericType> coeffs(1, Le);
49  for(unsigned int s = 0; s < D.mixture().n_species(); s++)
50  {
51  D.add_species_diffusion(s,coeffs);
52  }
53  }
54 
55  template<class NumericType>
56  void build_constant_lewis_diffusivity( MixtureDiffusion<ConstantLewisDiffusivity<NumericType>,NumericType>& D, const std::vector<NumericType>& Le )
57  {
58  for(unsigned int s = 0; s < D.mixture().n_species(); s++)
59  {
60  std::vector<NumericType> coeffs(1, Le[s]);
61  D.add_species_diffusion(s,coeffs);
62  }
63  }
64 }
65 
66 #endif
Compute species diffusivity based on constant Lewis number.
Container class for species binary diffusion models.
void build_constant_lewis_diffusivity(MixtureDiffusion< ConstantLewisDiffusivity< NumericType >, NumericType > &D, const NumericType Le)
The parameters are reduced parameters.

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