#include <catalycity_factories.h>
Definition at line 104 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 117 of file catalycity_factories.h.
119 std::string param_base = section+
"/PowerLawCatalycity/";
121 std::string gamma_str = param_base+
"gamma0";
122 if( !input.have_variable(gamma_str) )
123 libmesh_error_msg(
"ERROR: Could not find input "+gamma_str+
" for ArrheniusCatalycity!\n");
125 std::string Tref_str = param_base+
"Tref";
126 if( !input.have_variable(Tref_str) )
127 libmesh_error_msg(
"ERROR: Could not find input "+Tref_str+
" for PowerLawCatalycity!\n");
129 std::string alpha_str = param_base+
"alpha";
130 if( !input.have_variable(alpha_str) )
131 libmesh_error_msg(
"ERROR: Could not find input "+alpha_str+
" for PowerLawCatalycity!\n");
133 libMesh::Real gamma = input(gamma_str, std::numeric_limits<libMesh::Real>::max());
134 libMesh::Real Tref = input(Tref_str, std::numeric_limits<libMesh::Real>::max());
135 libMesh::Real alpha = input(alpha_str, std::numeric_limits<libMesh::Real>::max());
137 libMesh::UniquePtr<CatalycityBase> catalycity(
new PowerLawCatalycity( gamma, Tref, alpha ) );
138 catalycity->set_parameters(input,param_base);
The documentation for this class was generated from the following file: