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

#include <catalycity_factories.h>

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

Public Member Functions

 PowerLawCatalycityFactory (const std::string &physics_name)
 
 ~PowerLawCatalycityFactory ()
 
- 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 97 of file catalycity_factories.h.

Constructor & Destructor Documentation

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

Definition at line 101 of file catalycity_factories.h.

102  : CatalycityFactoryAbstract(physics_name)
103  {}
CatalycityFactoryAbstract(const std::string &physics_name)
GRINS::PowerLawCatalycityFactory::~PowerLawCatalycityFactory ( )
inline

Definition at line 105 of file catalycity_factories.h.

105 {};

Member Function Documentation

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

Implements GRINS::CatalycityFactoryAbstract.

Definition at line 110 of file catalycity_factories.h.

111  {
112  std::string gamma_str = section+"/PowerLawCatalycity/gamma0";
113  if( !input.have_variable(gamma_str) )
114  libmesh_error_msg("ERROR: Could not find input "+gamma_str+" for ArrheniusCatalycity!\n");
115 
116  std::string Tref_str = section+"/PowerLawCatalycity/Tref";
117  if( !input.have_variable(Tref_str) )
118  libmesh_error_msg("ERROR: Could not find input "+Tref_str+" for PowerLawCatalycity!\n");
119 
120  std::string alpha_str = section+"/PowerLawCatalycity/alpha";
121  if( !input.have_variable(alpha_str) )
122  libmesh_error_msg("ERROR: Could not find input "+alpha_str+" for PowerLawCatalycity!\n");
123 
124  libMesh::Real gamma = input(gamma_str, std::numeric_limits<libMesh::Real>::max());
125  libMesh::Real Tref = input(Tref_str, std::numeric_limits<libMesh::Real>::max());
126  libMesh::Real alpha = input(alpha_str, std::numeric_limits<libMesh::Real>::max());
127 
128  return libMesh::UniquePtr<CatalycityBase>( new PowerLawCatalycity( gamma, Tref, alpha ) );
129  }

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

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