17 #ifndef _FUELCELLSHOP__TAFEL_KINETICS_H
18 #define _FUELCELLSHOP__TAFEL_KINETICS_H
25 #include <base/parameter_handler.h>
26 #include <base/point.h>
27 #include <base/function.h>
28 #include <lac/vector.h>
29 #include <fe/fe_values.h>
35 using namespace dealii;
37 namespace FuelCellShop
100 virtual void set_parameters(
const std::vector<std::string>&,
101 const std::vector<double>&,
102 ParameterHandler&)
const{};
134 virtual void current_density (std::vector<double> &);
142 virtual void derivative_current (std::map<
VariableNames, std::vector<double> > &);
154 virtual boost::shared_ptr<FuelCellShop::Kinetics::BaseKinetics > create_replica ()
170 virtual void init_kin_param()
172 Assert( !kin_param_initialized, ExcInternalError() );
173 Assert( catalyst != NULL, ExcMessage(
"Catalyst object not initialized in the TafelKinetics object.") );
174 Assert( phi_m.is_initialized() && phi_s.is_initialized() && T.is_initialized(), ExcMessage(
"Either phi_m/phi_s/T is not set in the TafelKinetics object.") );
175 Assert( reactants_map.size()>0, ExcMessage(
"Atleast one reactant should be set in the TafelKinetics object, using set_reactant_concentrations method.") );
177 std::vector<VariableNames> names;
178 for ( std::map< VariableNames, SolutionVariable >::const_iterator iter=reactants_map.begin(); iter!=reactants_map.end(); ++iter )
179 names.push_back(iter->first);
181 catalyst->reference_concentration(names, ref_conc);
182 catalyst->reaction_order(names, gamma);
183 catalyst->alpha_cathodic(alpha_c);
185 kin_param_initialized =
true;
201 std::map< VariableNames, double >
gamma;
210 #endif //_FUELCELLSHOP__TAFEL_KINETICS_H