GRINS-0.6.0
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
GRINS::PowerLawCatalycity Class Reference

#include <power_law_catalycity.h>

Inheritance diagram for GRINS::PowerLawCatalycity:
Inheritance graph
[legend]
Collaboration diagram for GRINS::PowerLawCatalycity:
Collaboration graph
[legend]

Public Member Functions

 PowerLawCatalycity (const libMesh::Real gamma0, const libMesh::Real Ta, const libMesh::Real alpha)
 
virtual ~PowerLawCatalycity ()
 
virtual libMesh::Real operator() (const libMesh::Real T) const
 
virtual libMesh::Real dT (const libMesh::Real T) const
 
virtual void set_params (const std::vector< libMesh::Real > &params)
 
virtual CatalycityBaseclone () const
 Creates a new copy of the current class. More...
 

Protected Attributes

libMesh::Real _gamma0
 
libMesh::Real _Tref
 
libMesh::Real _alpha
 

Private Member Functions

 PowerLawCatalycity ()
 

Detailed Description

Definition at line 33 of file power_law_catalycity.h.

Constructor & Destructor Documentation

GRINS::PowerLawCatalycity::PowerLawCatalycity ( const libMesh::Real  gamma0,
const libMesh::Real  Ta,
const libMesh::Real  alpha 
)

Definition at line 33 of file power_law_catalycity.C.

36  : _gamma0(gamma0),
37  _Tref(Tref),
38  _alpha(alpha)
39  {
40  return;
41  }
GRINS::PowerLawCatalycity::~PowerLawCatalycity ( )
virtual

Definition at line 43 of file power_law_catalycity.C.

44  {
45  return;
46  }
GRINS::PowerLawCatalycity::PowerLawCatalycity ( )
private

Referenced by clone().

Member Function Documentation

CatalycityBase * GRINS::PowerLawCatalycity::clone ( ) const
virtual

Creates a new copy of the current class.

A raw pointer is returned and it is assumed the user will take ownership and worry about memory management.

Implements GRINS::CatalycityBase.

Definition at line 71 of file power_law_catalycity.C.

References PowerLawCatalycity().

72  {
73  return new PowerLawCatalycity( *this );
74  }
libMesh::Real GRINS::PowerLawCatalycity::dT ( const libMesh::Real  T) const
virtual

Implements GRINS::CatalycityBase.

Definition at line 53 of file power_law_catalycity.C.

References _alpha.

Referenced by main().

54  {
55  return (*this)(T)*_alpha/T;
56  }
libMesh::Real GRINS::PowerLawCatalycity::operator() ( const libMesh::Real  T) const
virtual

Implements GRINS::CatalycityBase.

Definition at line 48 of file power_law_catalycity.C.

References _alpha, _gamma0, and _Tref.

49  {
50  return _gamma0*std::pow( T/_Tref, _alpha);
51  }
void GRINS::PowerLawCatalycity::set_params ( const std::vector< libMesh::Real > &  params)
virtual

Implements GRINS::CatalycityBase.

Definition at line 58 of file power_law_catalycity.C.

References _alpha, _gamma0, and _Tref.

Referenced by main().

59  {
60  libmesh_assert_equal_to( params.size(), 3 );
61 
62  _gamma0 = params[0];
63 
64  _Tref = params[1];
65 
66  _alpha = params[2];
67 
68  return;
69  }

Member Data Documentation

libMesh::Real GRINS::PowerLawCatalycity::_alpha
protected

Definition at line 58 of file power_law_catalycity.h.

Referenced by dT(), operator()(), and set_params().

libMesh::Real GRINS::PowerLawCatalycity::_gamma0
protected

Definition at line 54 of file power_law_catalycity.h.

Referenced by operator()(), and set_params().

libMesh::Real GRINS::PowerLawCatalycity::_Tref
protected

Definition at line 56 of file power_law_catalycity.h.

Referenced by operator()(), and set_params().


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

Generated on Mon Jun 22 2015 21:32:24 for GRINS-0.6.0 by  doxygen 1.8.9.1