#include <catalycity_factories.h>
|
static void | set_section (const std::string §ion) |
|
static void | set_getpot (const GetPot &input) |
|
static std::string | _section = std::string("DIE!") |
|
static const GetPot * | _input |
| We store only a raw pointer here because we can't make a copy. More...
|
|
Definition at line 97 of file catalycity_factories.h.
GRINS::PowerLawCatalycityFactory::PowerLawCatalycityFactory |
( |
const std::string & |
physics_name | ) |
|
|
inline |
GRINS::PowerLawCatalycityFactory::~PowerLawCatalycityFactory |
( |
| ) |
|
|
inline |
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.
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");
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");
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");
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());
128 return libMesh::UniquePtr<CatalycityBase>(
new PowerLawCatalycity( gamma, Tref, alpha ) );
The documentation for this class was generated from the following file: