GRINS-0.8.0
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
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...
 
virtual void set_parameters (const GetPot &input, const std::string &param_base)
 Sets parameters for use in sensitivity analysis. More...
 
- Public Member Functions inherited from GRINS::CatalycityBase
 CatalycityBase ()
 
virtual ~CatalycityBase ()
 
- Public Member Functions inherited from GRINS::ParameterUser
 ParameterUser (const std::string &user_name)
 
virtual ~ParameterUser ()
 
virtual void set_parameter (libMesh::Number &param_variable, const GetPot &input, const std::string &param_name, libMesh::Number param_default)
 Each subclass can simultaneously read a parameter value from. More...
 
virtual void set_parameter (libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &func, const GetPot &input, const std::string &func_param_name, const std::string &param_default)
 Each subclass can simultaneously read a parsed function from. More...
 
virtual void set_parameter (libMesh::ParsedFEMFunction< libMesh::Number > &func, const GetPot &input, const std::string &func_param_name, const std::string &param_default)
 Each subclass can simultaneously read a parsed function from. More...
 
virtual void move_parameter (const libMesh::Number &old_parameter, libMesh::Number &new_parameter)
 When cloning an object, we need to update parameter pointers. More...
 
virtual void move_parameter (const libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &old_func, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &new_func)
 When cloning an object, we need to update parameter pointers. More...
 
virtual void move_parameter (const libMesh::ParsedFEMFunction< libMesh::Number > &old_func, libMesh::ParsedFEMFunction< libMesh::Number > &new_func)
 When cloning an object, we need to update parameter pointers. More...
 
virtual void register_parameter (const std::string &param_name, libMesh::ParameterMultiAccessor< libMesh::Number > &param_pointer) const
 Each subclass will register its copy of an independent. More...
 

Protected Attributes

libMesh::Real _gamma0
 
libMesh::Real _Ta
 

Private Member Functions

 ArrheniusCatalycity ()
 

Additional Inherited Members

- Static Public Attributes inherited from GRINS::ParameterUser
static std::string zero_vector_function = std::string("{0}")
 A parseable function string with LIBMESH_DIM components, all 0. More...
 

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_parameters ( const GetPot &  input,
const std::string &  param_base 
)
virtual

Sets parameters for use in sensitivity analysis.

Implements GRINS::CatalycityBase.

Definition at line 72 of file arrhenius_catalycity.C.

References _gamma0, _Ta, and GRINS::ParameterUser::set_parameter().

73  {
74  std::string gamma0_str = param_base+"gamma0";
75  this->set_parameter(_gamma0,input,gamma0_str,_gamma0);
76 
77  std::string Ta_str = param_base+"Ta";
78  this->set_parameter(_Ta,input,Ta_str,_Ta);
79  }
virtual void set_parameter(libMesh::Number &param_variable, const GetPot &input, const std::string &param_name, libMesh::Number param_default)
Each subclass can simultaneously read a parameter value from.
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 56 of file arrhenius_catalycity.h.

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

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

Definition at line 58 of file arrhenius_catalycity.h.

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


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

Generated on Tue Dec 19 2017 12:47:30 for GRINS-0.8.0 by  doxygen 1.8.9.1