18 #ifndef _FUELCELLSHOP__DUMMY_CL__H
19 #define _FUELCELLSHOP__DUMMY_CL__H
22 #include<base/parameter_handler.h>
23 #include<base/point.h>
24 #include <base/function.h>
25 #include <lac/vector.h>
26 #include <fe/fe_values.h>
38 namespace FuelCellShop
105 virtual void initialize (ParameterHandler ¶m);
172 virtual void current_density(std::vector<double>& current, std::vector<double>& effectiveness)
175 effectiveness.assign(current.size(), 1.0);
192 ParameterHandler ¶m)
const
197 param.enter_subsection(
"Fuel cell data");
199 param.enter_subsection(name);
203 param.declare_entry (
"Oxygen diffusion coefficient, [cm^2/s]",
205 Patterns::Map( Patterns::Integer(0,255), Patterns::Double(0) ),
206 "Oxygen diffusion coefficient given by experiment");
207 param.declare_entry (
"Water vapour diffusion coefficient, [cm^2/s]",
209 Patterns::Map( Patterns::Integer(0,255), Patterns::Double(0) ),
210 "Water vapour diffusion coefficient given by experiment");
211 param.declare_entry (
"Electrical conductivity, [S/cm]",
213 Patterns::Map( Patterns::Integer(0,255), Patterns::Double(0) ),
214 "Effective cond. if given is used, otherwise conductivity of the raw material. Units [S/cm]");
215 param.declare_entry (
"Protonic conductivity, [S/cm]",
217 Patterns::Map( Patterns::Integer(0,255), Patterns::Double(0) ),
218 "Effective cond. if given is used, otherwise conductivity of the raw material. Units [S/cm]");
219 param.declare_entry (
"Active area [cm^2/cm^3]",
221 Patterns::Map( Patterns::Integer(0,255), Patterns::Double(0)));
223 param.leave_subsection();
226 param.leave_subsection();
228 param.leave_subsection();
242 virtual boost::shared_ptr<FuelCellShop::Layer::CatalystLayer<dim> >
create_replica (
const std::string &
name)
255 std::map< unsigned int, double >
D_O2;
257 std::map< unsigned int, double >
D_wv;
263 std::map< unsigned int, double >
Av;
virtual void current_density(std::vector< double > &)
This member function will use a FuelCellShop::Kinetics class in order to compute the current density ...
void set_cell_id(const unsigned int &)
This routine is not used for this layer.
Definition: dummy_CL.h:156
DummyCL()
Prototype Constructor.
static const std::string concrete_name
Concrete name used for objects of this class.
Definition: dummy_CL.h:74
virtual void effective_proton_conductivity(double &) const
Compute the effective proton conductivity in the CL.
virtual void current_density(std::vector< double > ¤t, std::vector< double > &effectiveness)
This member function computes the current density production in the CL.
Definition: dummy_CL.h:172
void declare_parameters(const std::string &name, ParameterHandler ¶m) const
Declare parameters for a parameter file.
Definition: dummy_CL.h:191
std::map< unsigned int, double > D_O2
Oxygen diffusion coefficient.
Definition: dummy_CL.h:255
VariableNames
The enumeration containing the names of some of the available FCST solution variables and their deriv...
Definition: system_management.h:62
virtual void declare_parameters(const std::string &name, ParameterHandler ¶m) const
Default virtual declare parameters for a parameter file.
const std::string name
Name of the layer.
Definition: base_layer.h:336
virtual void effective_gas_diffusivity(Table< 2, Tensor< 2, dim > > &) const
Compute the effective diffusivty in the CL.
virtual void derivative_current_density(std::map< VariableNames, std::vector< double > > &)
This member function will use a FuelCellShop::Kinetics class in order to compute the derivative of th...
std::map< unsigned int, double > Av
Active area of catalyst per unit volume of catalyst layer.
Definition: dummy_CL.h:263
virtual void derivative_effective_proton_conductivity(std::map< VariableNames, std::vector< double > > &) const
Compute the derivative of the effective proton conductivity in the CL with respect to either the solu...
This class characterizes a macro-homogeneous catalyst layer and should be used in the case of constan...
Definition: dummy_CL.h:53
double get_active_area_Pt() const
Get the active area of platinum per unit volume of CL.
Definition: dummy_CL.h:151
static DummyCL< dim > const * PROTOTYPE
Definition: dummy_CL.h:249
virtual void declare_parameters(ParameterHandler ¶m) const
Declare all necessary parameters in order to compute the coefficients.
Definition: dummy_CL.h:96
std::map< unsigned int, double > sigma_e
Solid network conductivity.
Definition: dummy_CL.h:259
virtual boost::shared_ptr< FuelCellShop::Layer::CatalystLayer< dim > > create_replica(const std::string &name)
This member function is used to create an object of type gas diffusion layer.
Definition: dummy_CL.h:242
std::map< unsigned int, double > sigma_m
Membrane phase conductivity.
Definition: dummy_CL.h:261
unsigned int local_material_id() const
Return the local material id of the layer, performs a check.
Definition: base_layer.h:215
std::map< unsigned int, double > D_wv
Water vapour diffusion coefficient.
Definition: dummy_CL.h:257
virtual void initialize(ParameterHandler ¶m)
Member function used to read in data and initialize the necessary data to compute the coefficients...
Virtual class used to provide the interface for all CatalystLayer children.
Definition: catalyst_layer.h:130
virtual void effective_electron_conductivity(double &) const
Compute the effective electron conductivity in the CL.