GRINS-0.7.0
List of all members | Public Member Functions | Protected Member Functions
GRINS::ArrheniusCatalycityFactory Class Reference

#include <catalycity_factories.h>

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

Public Member Functions

 ArrheniusCatalycityFactory (const std::string &physics_name)
 
 ~ArrheniusCatalycityFactory ()
 
- Public Member Functions inherited from GRINS::CatalycityFactoryAbstract
 CatalycityFactoryAbstract (const std::string &physics_name)
 
 ~CatalycityFactoryAbstract ()
 
- Public Member Functions inherited from GRINS::FactoryWithGetPot< CatalycityBase >
 FactoryWithGetPot (const std::string &name)
 
 ~FactoryWithGetPot ()
 

Protected Member Functions

virtual libMesh::UniquePtr< CatalycityBasebuild_catalycity (const GetPot &input, const std::string &section)
 
- Protected Member Functions inherited from GRINS::CatalycityFactoryAbstract
virtual void check_state () const
 Helper function to reduce code duplication. More...
 
virtual void reset_state ()
 Helper function to reduce code duplication. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GRINS::CatalycityFactoryAbstract
static void set_section (const std::string &section)
 
- Static Public Member Functions inherited from GRINS::FactoryWithGetPot< CatalycityBase >
static void set_getpot (const GetPot &input)
 
- Static Protected Attributes inherited from GRINS::CatalycityFactoryAbstract
static std::string _section = std::string("DIE!")
 
- Static Protected Attributes inherited from GRINS::FactoryWithGetPot< CatalycityBase >
static const GetPot * _input
 We store only a raw pointer here because we can't make a copy. More...
 

Detailed Description

Definition at line 66 of file catalycity_factories.h.

Constructor & Destructor Documentation

GRINS::ArrheniusCatalycityFactory::ArrheniusCatalycityFactory ( const std::string &  physics_name)
inline

Definition at line 70 of file catalycity_factories.h.

71  : CatalycityFactoryAbstract(physics_name)
72  {}
CatalycityFactoryAbstract(const std::string &physics_name)
GRINS::ArrheniusCatalycityFactory::~ArrheniusCatalycityFactory ( )
inline

Definition at line 74 of file catalycity_factories.h.

74 {};

Member Function Documentation

virtual libMesh::UniquePtr<CatalycityBase> GRINS::ArrheniusCatalycityFactory::build_catalycity ( const GetPot &  input,
const std::string &  section 
)
inlineprotectedvirtual

Implements GRINS::CatalycityFactoryAbstract.

Definition at line 79 of file catalycity_factories.h.

80  {
81  std::string gamma_str = section+"/ArrheniusCatalycity/gamma0";
82  if( !input.have_variable(gamma_str) )
83  libmesh_error_msg("ERROR: Could not find input "+gamma_str+" for ArrheniusCatalycity!\n");
84 
85  std::string Ta_str = section+"/ArrheniusCatalycity/Ta";
86  if( !input.have_variable(Ta_str) )
87  libmesh_error_msg("ERROR: Could not find input "+Ta_str+" for ArrheniusCatalycity!\n");
88 
89  libMesh::Real gamma = input(gamma_str, std::numeric_limits<libMesh::Real>::max());
90  libMesh::Real Ta = input(Ta_str, std::numeric_limits<libMesh::Real>::max());
91 
92  return libMesh::UniquePtr<CatalycityBase>( new ArrheniusCatalycity( gamma, Ta ) );
93  }

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

Generated on Thu Jun 2 2016 21:52:30 for GRINS-0.7.0 by  doxygen 1.8.10