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

#include <constant_catalycity.h>

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

Public Member Functions

 ConstantCatalycity (const libMesh::Real gamma)
 
virtual ~ConstantCatalycity ()
 
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 _gamma
 

Private Member Functions

 ConstantCatalycity ()
 

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 constant_catalycity.h.

Constructor & Destructor Documentation

GRINS::ConstantCatalycity::ConstantCatalycity ( const libMesh::Real  gamma)

Definition at line 30 of file constant_catalycity.C.

31  : _gamma(gamma)
32  {
33  return;
34  }
GRINS::ConstantCatalycity::~ConstantCatalycity ( )
virtual

Definition at line 36 of file constant_catalycity.C.

37  {
38  return;
39  }
GRINS::ConstantCatalycity::ConstantCatalycity ( )
private

Referenced by clone().

Member Function Documentation

CatalycityBase * GRINS::ConstantCatalycity::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 60 of file constant_catalycity.C.

References ConstantCatalycity().

61  {
62  return new ConstantCatalycity( *this );
63  }
libMesh::Real GRINS::ConstantCatalycity::dT ( const libMesh::Real  T) const
virtual

Implements GRINS::CatalycityBase.

Definition at line 46 of file constant_catalycity.C.

Referenced by main().

47  {
48  return 0.0;
49  }
libMesh::Real GRINS::ConstantCatalycity::operator() ( const libMesh::Real  T) const
virtual

Implements GRINS::CatalycityBase.

Definition at line 41 of file constant_catalycity.C.

References _gamma.

42  {
43  return _gamma;
44  }
void GRINS::ConstantCatalycity::set_parameters ( const GetPot &  input,
const std::string &  param_base 
)
virtual

Sets parameters for use in sensitivity analysis.

Implements GRINS::CatalycityBase.

Definition at line 65 of file constant_catalycity.C.

References _gamma, and GRINS::ParameterUser::set_parameter().

66  {
67  std::string gamma_str = param_base+"gamma";
68  this->set_parameter(_gamma,input,gamma_str,_gamma);
69  }
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::ConstantCatalycity::set_params ( const std::vector< libMesh::Real > &  params)
virtual

Implements GRINS::CatalycityBase.

Definition at line 51 of file constant_catalycity.C.

References _gamma.

Referenced by main().

52  {
53  libmesh_assert_equal_to( params.size(), 1 );
54 
55  _gamma = params[0];
56 
57  return;
58  }

Member Data Documentation

libMesh::Real GRINS::ConstantCatalycity::_gamma
protected

Definition at line 56 of file constant_catalycity.h.

Referenced by 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