GRINS-0.8.0
List of all members | Public Member Functions | Protected Member Functions
GRINS::PowerLawCatalycityFactoryOldStyle Class Reference

#include <catalycity_factories_old_style.h>

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

Public Member Functions

 PowerLawCatalycityFactoryOldStyle (const std::string &physics_name)
 
 ~PowerLawCatalycityFactoryOldStyle ()
 
- Public Member Functions inherited from GRINS::CatalycityFactoryOldStyleBase
 CatalycityFactoryOldStyleBase (const std::string &physics_name)
 
 ~CatalycityFactoryOldStyleBase ()
 
- 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 ()
 
- Public Member Functions inherited from GRINS::FactoryAbstract< CatalycityBase >
virtual ~FactoryAbstract ()
 

Protected Member Functions

virtual libMesh::UniquePtr< CatalycityBasebuild_catalycity_old_style (const GetPot &input, const std::string &section, const std::string &reactant_str, const std::string &bc_id_string)
 
- Protected Member Functions inherited from GRINS::CatalycityFactoryOldStyleBase
virtual libMesh::UniquePtr< CatalycityBasebuild_catalycity (const GetPot &input, const std::string &section)
 
virtual void check_state () const
 Helper function to reduce code duplication. More...
 
virtual void reset_state ()
 Helper function to reduce code duplication. More...
 
- Protected Member Functions inherited from GRINS::FactoryAbstract< CatalycityBase >
 FactoryAbstract (const std::string &name)
 Constructor is protected. Use the build() method to construct Base objects. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GRINS::CatalycityFactoryOldStyleBase
static void set_reactant (const std::string &reactant)
 
static void set_bc_id (const std::string &bc_id)
 
- 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 Public Member Functions inherited from GRINS::FactoryAbstract< CatalycityBase >
static libMesh::UniquePtr< CatalycityBasebuild (const std::string &name)
 Use this method to build objects of type Base. More...
 
- Static Protected Member Functions inherited from GRINS::FactoryAbstract< CatalycityBase >
static FactoryAbstract< CatalycityBase > & get_factory (const std::string &name)
 Helper method that looks up the factory and returns it if present, or error if it's not. More...
 
static DerivedType & get_factory_subclass (const std::string &name)
 Like get_factory, but will downcast to DerivedType. More...
 
static std::map< std::string, FactoryAbstract< CatalycityBase > * > & factory_map ()
 
- Static Protected Attributes inherited from GRINS::CatalycityFactoryOldStyleBase
static std::string _reactant_str = std::string("DIE!")
 
static std::string _bc_id_str = std::string("DIE!")
 
- 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_old_style.h.

Constructor & Destructor Documentation

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

Definition at line 101 of file catalycity_factories_old_style.h.

102  : CatalycityFactoryOldStyleBase(physics_name)
103  {}
CatalycityFactoryOldStyleBase(const std::string &physics_name)
GRINS::PowerLawCatalycityFactoryOldStyle::~PowerLawCatalycityFactoryOldStyle ( )
inline

Definition at line 105 of file catalycity_factories_old_style.h.

105 {};

Member Function Documentation

virtual libMesh::UniquePtr<CatalycityBase> GRINS::PowerLawCatalycityFactoryOldStyle::build_catalycity_old_style ( const GetPot &  input,
const std::string &  section,
const std::string &  reactant_str,
const std::string &  bc_id_string 
)
inlineprotectedvirtual

Implements GRINS::CatalycityFactoryOldStyleBase.

Definition at line 109 of file catalycity_factories_old_style.h.

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

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

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