antioch-0.4.0
species_diffusion_base.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_SPECIES_DIFFUSION_BASE_H
28 #define ANTIOCH_SPECIES_DIFFUSION_BASE_H
29 
30 //C++
31 #include <vector>
32 
33 // Antioch
34 #include "antioch/metaprogramming_decl.h" // ANTIOCH_AUTO*
35 
36 namespace Antioch
37 {
39 
47  template<typename Subclass, typename CoeffType>
49  {
50  public:
51 
53 
54  virtual ~SpeciesDiffusionBase(){};
55 
57  void reset_coeffs( std::vector<CoeffType>& coeffs );
58 
60  template<typename StateType>
61  ANTIOCH_AUTO(StateType)
62  D( const StateType& rho, const StateType& cp, const StateType& k ) const
63  ANTIOCH_AUTOFUNC(StateType, static_cast<const Subclass*>(this)->D_impl(rho,cp,k) )
64 
65  };
66 
67  template<typename Subclass, typename CoeffType>
68  void SpeciesDiffusionBase<Subclass,CoeffType>::reset_coeffs( std::vector<CoeffType>& coeffs )
69  {
70  static_cast<const Subclass*>(this)->reset_coeffs_impl(coeffs);
71  }
72 
73 } // end namespace Antioch
74 
75 #endif // ANTIOCH_SPECIES_DIFFUSION_BASE_H
Base class for species diffusion models.
Scalar cp(Scalar T, Scalar a0, Scalar a1, Scalar a2, Scalar a3, Scalar a4, Scalar a5, Scalar a6)
void reset_coeffs(std::vector< CoeffType > &coeffs)
Reset model coefficients.
D(const StateType &rho, const StateType &cp, const StateType &k) const ANTIOCH_AUTOFUNC(StateType
Compute species diffusivity.
#define ANTIOCH_AUTOFUNC(Type, Expr)
const ANTIOCH_AUTO(StateType) KineticsTheoryThermalConductivity< ThermoEvaluator
The parameters are reduced parameters.

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