antioch-0.4.0
List of all members | Public Member Functions
Antioch::SpeciesDiffusionBase< Subclass, CoeffType > Class Template Reference

Base class for species diffusion models. More...

#include <species_diffusion_base.h>

Public Member Functions

 SpeciesDiffusionBase ()
 
virtual ~SpeciesDiffusionBase ()
 
void reset_coeffs (std::vector< CoeffType > &coeffs)
 Reset model coefficients. More...
 
template<typename StateType >
 D (const StateType &rho, const StateType &cp, const StateType &k) const ANTIOCH_AUTOFUNC(StateType
 Compute species diffusivity. More...
 

Detailed Description

template<typename Subclass, typename CoeffType>
class Antioch::SpeciesDiffusionBase< Subclass, CoeffType >

Base class for species diffusion models.

Species diffusion models are those that directly compute species diffusion coefficients (in constrast to binary diffusion models that are used to compute binary diffusion matrix). We use the curiously recurring template pattern; subclasses need to implement D_impl - computes species diffusion coefficient reset_coeffs_impl - reset model coefficients

Definition at line 48 of file species_diffusion_base.h.

Constructor & Destructor Documentation

template<typename Subclass, typename CoeffType>
Antioch::SpeciesDiffusionBase< Subclass, CoeffType >::SpeciesDiffusionBase ( )
inline

Definition at line 52 of file species_diffusion_base.h.

52 {};
template<typename Subclass, typename CoeffType>
virtual Antioch::SpeciesDiffusionBase< Subclass, CoeffType >::~SpeciesDiffusionBase ( )
inlinevirtual

Definition at line 54 of file species_diffusion_base.h.

54 {};

Member Function Documentation

template<typename Subclass, typename CoeffType>
template<typename StateType >
Antioch::SpeciesDiffusionBase< Subclass, CoeffType >::D ( const StateType &  rho,
const StateType &  cp,
const StateType &  k 
) const

Compute species diffusivity.

template<typename Subclass , typename CoeffType>
void Antioch::SpeciesDiffusionBase< Subclass, CoeffType >::reset_coeffs ( std::vector< CoeffType > &  coeffs)

Reset model coefficients.

Definition at line 68 of file species_diffusion_base.h.

69  {
70  static_cast<const Subclass*>(this)->reset_coeffs_impl(coeffs);
71  }

The documentation for this class was generated from the following file:

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