antioch-0.4.0
diffusion_traits.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_DIFFUSION_TRAITS_H
28 #define ANTIOCH_DIFFUSION_TRAITS_H
29 
34 
35 namespace Antioch
36 {
38 
42  template<typename DiffModel>
44 
45  template<typename CoeffType>
47  {
48  static bool const is_species_diffusion = true;
49  static bool const is_binary_diffusion = false;
50  };
51 
52 #ifdef ANTIOCH_HAVE_GSL
53  template<typename CoeffType, typename Interpolator>
54  struct DiffusionTraits<MolecularBinaryDiffusion<CoeffType,Interpolator> >
55  {
56  static bool const is_species_diffusion = false;
57  static bool const is_binary_diffusion = true;
58  };
59 #endif // ANTIOCH_HAVE_GSL
60 
61  // Anything defined in AntiochPrivate is not meant for the user and is subject
62  // to change without notice.
63  namespace AntiochPrivate
64  {
66  template<typename Diffusion>
67  struct diffusion_tag;
68 
70 
76  template<typename Diffusion, typename CoeffType>
77  struct diffusion_tag<SpeciesDiffusionBase<Diffusion,CoeffType> >{};
78 
79  template<typename CoeffType>
81  : public diffusion_tag<SpeciesDiffusionBase<ConstantLewisDiffusivity<CoeffType>,CoeffType> >{};
82 
83 
85 
91  template<typename Diffusion, typename CoeffType>
92  struct diffusion_tag<BinaryDiffusionBase<Diffusion,CoeffType> >{};
93 
94 #ifdef ANTIOCH_HAVE_GSL
95  template<typename CoeffType, typename Interpolator>
96  struct diffusion_tag<MolecularBinaryDiffusion<CoeffType,Interpolator> >
97  : public diffusion_tag<BinaryDiffusionBase<MolecularBinaryDiffusion<CoeffType,Interpolator>,CoeffType> >{};
98 #endif // ANTIOCH_HAVE_GSL
99 
100  }
101 
102 } // end namespace Antioch
103 
104 #endif // ANTIOCH_DIFFUSION_TRAITS_H
Base class for species diffusion models.
Compute species diffusivity based on constant Lewis number.
Base class for binary diffusion models.
Characteristics of various diffusion models.
The parameters are reduced parameters.
We use these tags to force operator overloading based on Diffusion type.

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