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

#include <arrhenius_catalycity.h>

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

Public Member Functions

 ArrheniusCatalycity (const libMesh::Real gamma0, const libMesh::Real Ta)
 
virtual ~ArrheniusCatalycity ()
 
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 _Ta
 

Private Member Functions

 ArrheniusCatalycity ()
 

Detailed Description

Definition at line 33 of file arrhenius_catalycity.h.

Constructor & Destructor Documentation

GRINS::ArrheniusCatalycity::ArrheniusCatalycity ( const libMesh::Real  gamma0,
const libMesh::Real  Ta 
)

Definition at line 33 of file arrhenius_catalycity.C.

35  : _gamma0(gamma0),
36  _Ta(Ta)
37  {
38  return;
39  }
GRINS::ArrheniusCatalycity::~ArrheniusCatalycity ( )
virtual

Definition at line 41 of file arrhenius_catalycity.C.

42  {
43  return;
44  }
GRINS::ArrheniusCatalycity::ArrheniusCatalycity ( )
private

Referenced by clone().

Member Function Documentation

CatalycityBase * GRINS::ArrheniusCatalycity::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 67 of file arrhenius_catalycity.C.

References ArrheniusCatalycity().

68  {
69  return new ArrheniusCatalycity( *this );
70  }
libMesh::Real GRINS::ArrheniusCatalycity::dT ( const libMesh::Real  T) const
virtual

Implements GRINS::CatalycityBase.

Definition at line 51 of file arrhenius_catalycity.C.

References _gamma0, and _Ta.

Referenced by main().

52  {
53  return _gamma0*_Ta/(T*T)*std::exp(-_Ta/T);
54  }
libMesh::Real GRINS::ArrheniusCatalycity::operator() ( const libMesh::Real  T) const
virtual

Implements GRINS::CatalycityBase.

Definition at line 46 of file arrhenius_catalycity.C.

References _gamma0, and _Ta.

47  {
48  return _gamma0*std::exp(-_Ta/T);
49  }
void GRINS::ArrheniusCatalycity::set_params ( const std::vector< libMesh::Real > &  params)
virtual

Implements GRINS::CatalycityBase.

Definition at line 56 of file arrhenius_catalycity.C.

References _gamma0, and _Ta.

Referenced by main().

57  {
58  libmesh_assert_equal_to( params.size(), 2 );
59 
60  _gamma0 = params[0];
61 
62  _Ta = params[1];
63 
64  return;
65  }

Member Data Documentation

libMesh::Real GRINS::ArrheniusCatalycity::_gamma0
protected

Definition at line 54 of file arrhenius_catalycity.h.

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

libMesh::Real GRINS::ArrheniusCatalycity::_Ta
protected

Definition at line 56 of file arrhenius_catalycity.h.

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


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

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