OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Attributes | List of all members
FuelCellShop::Layer::SGL24BA< dim > Class Template Reference

This class defines a SGL-24-BA GDL, for which effective transport properties are constant. More...

#include <SGL_24_BA.h>

Inheritance diagram for FuelCellShop::Layer::SGL24BA< dim >:
Inheritance graph
[legend]
Collaboration diagram for FuelCellShop::Layer::SGL24BA< dim >:
Collaboration graph
[legend]

Public Member Functions

Accessors and info
void effective_gas_diffusivity (Table< 2, Tensor< 2, dim > > &) const
 Returns the effective diffusivity of the media.
 
void effective_electron_conductivity (Tensor< 2, dim > &) const
 Returns the effective electron conductivity of the media.
 
void effective_thermal_conductivity (Tensor< 2, dim > &) const
 Returns the effective thermal conductivity of the media.
 
- Public Member Functions inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
virtual void set_diffusion_species_name (std::string &name)
 Member function used by some applications such as dummyGDL in order to know which value to return.
 
const std::type_info & get_base_type () const
 This member function returns a type_info object with the name of the base layer type the inherited class belongs to, i.e.
 
virtual void test_class () const
 Class test.
 
virtual void effective_gas_diffusivity (const double &, double &) const
 Return the effective diffusivty in the GDL.
 
virtual void effective_gas_diffusivity (const double &, Tensor< 2, dim > &) const
 Return the effective diffusivty in the GDL.
 
virtual void effective_gas_diffusivity (Table< 2, double > &D_eff) const
 Return the effective diffusivty in the GDL for all the gases assigned to the layer using set_gases_and_compute.
 
virtual void derivative_effective_gas_diffusivity (std::vector< Table< 2, Tensor< 2, dim > > > &) const
 Return the derivative of the effective gas diffusion in the GDL with respect to either the solution or design parameters for all the gases assigned to the layer using set_gases_and_compute.
 
virtual void effective_electron_conductivity (double &) const
 Compute the effective electron conductivity in the GDL.
 
virtual void effective_electron_conductivity (const double &, double &) const
 Compute the effective electron conductivity in the GDL.
 
virtual void effective_electron_conductivity (const double &, Tensor< 2, dim > &) const
 Compute the effective electron conductivity in the GDL.
 
virtual void derivative_effective_electron_conductivity (std::vector< Tensor< 2, dim > > &) const
 Compute the derivative of the effective electron conductivity in the GDL with respect to either the solution or design parameters.
 
virtual void gas_permeablity (double &) const
 Compute the GDL gas permeability.
 
virtual void gas_permeablity (Tensor< 2, dim > &) const
 Compute the GDL gas permeability.
 
virtual void derivative_gas_permeablity (std::vector< Tensor< 2, dim > > &) const
 Compute the derivative of the effective gas permeability in the GDL with respect to either the solution or design parameters.
 
virtual void liquid_permeablity (double &) const
 Compute the GDL liquid permeability.
 
virtual void liquid_permeablity (Tensor< 2, dim > &) const
 Compute the GDL liquid permeability.
 
virtual void derivative_liquid_permeablity (std::vector< Tensor< 2, dim > > &) const
 Compute the derivative of the effective gas diffusion in the GDL with respect to either the solution or design parameters.
 
- Public Member Functions inherited from FuelCellShop::Layer::PorousLayer< dim >
void set_gases_and_compute (std::vector< FuelCellShop::Material::PureGas * > &gases_in, const double &pressure_in, const double &temperature_in)
 Member function used to store all the gases that are in the pore space in the gas diffusion layer as well as their temperature [Kelvin] and total pressure [atm].
 
void compute_gas_diffusion (FuelCellShop::Material::PureGas *solute_gas, FuelCellShop::Material::PureGas *solvent_gas)
 Member function used to compute bulk diffusion coefficients and derivatives w.r.t temperature for non-isothermal case and store inside the layer.
 
void set_gases (std::vector< FuelCellShop::Material::PureGas * > &gases_in, const double &pressure_in)
 Member function used to store all the gases that are in the pore space in the porous layer.
 
void set_temperature (const SolutionVariable &T_in)
 Member function used to set the temperature ]Kelvin] at every quadrature point inside the cell.
 
FuelCellShop::Material::PureGasget_gas_pointer (int index) const
 Return the FuelCellShop::Material::PureGas pointer that is stored inside the class in the ith position.
 
std::vector
< FuelCellShop::Material::PureGas * > 
get_gases () const
 Returns the vector of FuelCellShop::Material::PureGas pointers stored in the porous layer.
 
void get_gas_index (FuelCellShop::Material::PureGas *gas_type, int &index) const
 Return the gas index in the GDL class.
 
void get_T_and_p (double &T, double &p) const
 Return the constant temperature [Kelvin] and constant pressure [atm] inside the layer.
 
void get_p (double &p) const
 Return the constant pressure [atm] inside the layer.
 
virtual void print_layer_properties () const
 This member function is a virtual class that can be used to output to screen information from the layer.
 
virtual bool test_layer () const
 This virtual class should be used for any derived class to be able to test the functionality of the class.
 
- Public Member Functions inherited from FuelCellShop::Layer::BaseLayer< dim >
virtual void set_derivative_flags (const std::vector< VariableNames > &flags)
 Set the variables for which you would like to compute the derivatives.
 
void set_position (std::vector< Point< dim > > &p)
 Member function used by some applications such as dummyGDL in order to know which value to return.
 
virtual void set_constant_solution (const double &value, const VariableNames &name)
 Set those solution variables which are constant in the particular application.
 
virtual void set_solution (const std::vector< SolutionVariable > &)
 If the effective properties in the layer depend on the solution, the solution for a given cell should be passed to the class using this member function.
 
bool belongs_to_material (const char material_id)
 Check if a given cell belongs to the catalyst layer.
 
const std::string & name_material ()
 Return the name of the layer.
 
virtual bool test_layer ()
 This virtual class should be used for any derived class to be able to test the functionality of the class.
 
unsigned int get_material_id ()
 Return the material id of the layer.
 

Static Public Attributes

static const std::string concrete_name
 Concrete name used for objects of this class.
 
- Static Public Attributes inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
static const std::string concrete_name
 Concrete name used for objects of this class.
 

Private Attributes

Internal variables
Tensor< 2, dimporosity_over_tortuosity
 Tensor of effective porosity over tortuosity used for gas diffusivity.
 
double porosity_over_tortuosity_X
 Effective porosity over tortuosity used for gas diffusivity in X direction.
 
double porosity_over_tortuosity_Y
 Effective porosity over tortuosity used for gas diffusivity in Y direction.
 
double porosity_over_tortuosity_Z
 Effective porosity over tortuosity used for gas diffusivity in Z direction.
 
Tensor< 2, dimelectron_conductivity
 Tensor storing the effective electronic conductivity.
 
double electron_conductivity_X
 Effective electronic conductivity in X direction.
 
double electron_conductivity_Y
 Effective electronic conductivity in Y direction.
 
double electron_conductivity_Z
 Effective electronic conductivity in Z direction.
 
Tensor< 2, dimthermal_conductivity
 Effective thermal conductivity (W/m-K) in X direction.
 
double thermal_conductivity_X
 Effective thermal conductivity (W/m-K) in X direction.
 
double thermal_conductivity_Y
 Effective thermal conductivity (W/m-K) in Y direction.
 
double thermal_conductivity_Z
 Effective thermal conductivity (W/m-K) in Z direction.
 

Constructors, destructor, and initalization

 SGL24BA ()
 Replica Constructors.
 
 SGL24BA (const std::string &name)
 Constructor.
 
 ~SGL24BA ()
 Destructor.
 
void declare_parameters (ParameterHandler &param) const
 
void declare_parameters (const std::string &name, ParameterHandler &param) const
 Declare parameters for a parameter file.
 

Instance Delivery

static SGL24BA< dim > const * PROTOTYPE
 Create prototype for the layer.
 
virtual boost::shared_ptr
< FuelCellShop::Layer::GasDiffusionLayer
< dim > > 
create_replica (const std::string &name)
 This member function is used to create an object of type gas diffusion layer.
 

Additional Inherited Members

- Static Public Member Functions inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
static void declare_GasDiffusionLayer_parameters (const std::string &gld_section_name, ParameterHandler &param)
 Function used to declare all the data necessary in the parameter files for all GasDiffusionLayer children.
 
static void set_GasDiffusionLayer_parameters (const std::vector< std::string > &name_dvar, const std::vector< double > &value_dvar, std::string gld_section_name, ParameterHandler &param)
 
static boost::shared_ptr
< FuelCellShop::Layer::GasDiffusionLayer
< dim > > 
create_GasDiffusionLayer (const std::string &gld_section_name, ParameterHandler &param)
 Function used to select the appropriate GasDiffusionLayer type as specified in the ParameterHandler under line.
 
- Protected Types inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
typedef std::map< std::string,
GasDiffusionLayer< dim > * > 
_mapFactory
 This object is used to store all objects of type GasDiffusionLayer.
 
- Protected Member Functions inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
 GasDiffusionLayer ()
 Replica Constructors.
 
 ~GasDiffusionLayer ()
 Destructor.
 
 GasDiffusionLayer (const std::string &name)
 Constructor.
 
virtual void set_parameters (const std::vector< std::string > &name_dvar, const std::vector< double > &value_dvar, const std::string &name, ParameterHandler &param) const
 Member function used to set new parameters values in the optimization loop.
 
void initialize (ParameterHandler &param)
 Member function used to read in data and initialize the necessary data to compute the coefficients.
 
- Static Protected Member Functions inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
static _mapFactoryget_mapFactory ()
 
- Protected Attributes inherited from FuelCellShop::Layer::GasDiffusionLayer< dim >
std::string diffusion_species_name
 If GDL properties are stored inside the class (e.g.
 
double porosity
 Porosity of the GDL.
 
Tensor< 2, dimtortuosity_tensor
 Tortuosity tensor of the GDL.
 
double electron_conductivity
 Double storing the electric conductivity of the GDL is the layer is isotropic.
 
Tensor< 2, dimelectron_conductivity_tensor
 Tensor storing the effective electronic conductivity of the layer.
 

Detailed Description

template<int dim>
class FuelCellShop::Layer::SGL24BA< dim >

This class defines a SGL-24-BA GDL, for which effective transport properties are constant.

Todo:
Effective electron and thermal properties are estimates. Better values need to be obtained from the literature for accurate use of this class. The values for the electron and thermal conducitivities should be added to the constructor (lines 26-34 in SGL_24_BA.cc)
Todo:
Premeability values also needed.

Constructor & Destructor Documentation

template<int dim>
FuelCellShop::Layer::SGL24BA< dim >::SGL24BA ( )

Replica Constructors.

Warning
For internal use only.

Constructor used only to create a prototype. Do not use in general since this will not include the name of the section in the parameter file you need.

template<int dim>
FuelCellShop::Layer::SGL24BA< dim >::SGL24BA ( const std::string &  name)

Constructor.

Note
Eventually, I would like to make this private.
Deprecated:
Use create_GasDiffusionLayer
template<int dim>
FuelCellShop::Layer::SGL24BA< dim >::~SGL24BA ( )
inline

Destructor.

Member Function Documentation

template<int dim>
virtual boost::shared_ptr<FuelCellShop::Layer::GasDiffusionLayer<dim> > FuelCellShop::Layer::SGL24BA< dim >::create_replica ( const std::string &  name)
inlineprivatevirtual

This member function is used to create an object of type gas diffusion layer.

Warning
This class MUST be redeclared in every child.

Reimplemented from FuelCellShop::Layer::GasDiffusionLayer< dim >.

template<int dim>
void FuelCellShop::Layer::SGL24BA< dim >::declare_parameters ( ParameterHandler &  param) const
inlinevirtual
Note
Eventually, I would like to make this private.
Deprecated:
Use declare_all_GasDiffusionLayer_parameters

Reimplemented from FuelCellShop::Layer::GasDiffusionLayer< dim >.

template<int dim>
void FuelCellShop::Layer::SGL24BA< dim >::declare_parameters ( const std::string &  name,
ParameterHandler &  param 
) const
privatevirtual

Declare parameters for a parameter file.

Nothing to declare here other than the declaration of the base layer. However, the member function must be implemented so that the layer has the same structure as other layers.

Reimplemented from FuelCellShop::Layer::GasDiffusionLayer< dim >.

template<int dim>
void FuelCellShop::Layer::SGL24BA< dim >::effective_electron_conductivity ( Tensor< 2, dim > &  ) const
virtual

Returns the effective electron conductivity of the media.

Reimplemented from FuelCellShop::Layer::GasDiffusionLayer< dim >.

template<int dim>
void FuelCellShop::Layer::SGL24BA< dim >::effective_gas_diffusivity ( Table< 2, Tensor< 2, dim > > &  ) const
virtual

Returns the effective diffusivity of the media.

Reimplemented from FuelCellShop::Layer::GasDiffusionLayer< dim >.

template<int dim>
void FuelCellShop::Layer::SGL24BA< dim >::effective_thermal_conductivity ( Tensor< 2, dim > &  ) const

Returns the effective thermal conductivity of the media.

Member Data Documentation

template<int dim>
const std::string FuelCellShop::Layer::SGL24BA< dim >::concrete_name
static

Concrete name used for objects of this class.

This name is used when setting up the subsection where the data is stored in the input file.

The data will be store under

subsection name_specified_in_constructor
set Material id = 2
set Gas diffusion layer type = DummyGDL # <-here I select the type of object of type GasDiffusionLayer
subsection DummyGDL # <- this is the concrete_name for this class
set all info relevant to this object
end
end
template<int dim>
Tensor<2, dim> FuelCellShop::Layer::SGL24BA< dim >::electron_conductivity
private

Tensor storing the effective electronic conductivity.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::electron_conductivity_X
private

Effective electronic conductivity in X direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::electron_conductivity_Y
private

Effective electronic conductivity in Y direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::electron_conductivity_Z
private

Effective electronic conductivity in Z direction.

template<int dim>
Tensor<2, dim> FuelCellShop::Layer::SGL24BA< dim >::porosity_over_tortuosity
private

Tensor of effective porosity over tortuosity used for gas diffusivity.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::porosity_over_tortuosity_X
private

Effective porosity over tortuosity used for gas diffusivity in X direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::porosity_over_tortuosity_Y
private

Effective porosity over tortuosity used for gas diffusivity in Y direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::porosity_over_tortuosity_Z
private

Effective porosity over tortuosity used for gas diffusivity in Z direction.

template<int dim>
SGL24BA<dim> const* FuelCellShop::Layer::SGL24BA< dim >::PROTOTYPE
staticprivate

Create prototype for the layer.

template<int dim>
Tensor<2, dim> FuelCellShop::Layer::SGL24BA< dim >::thermal_conductivity
private

Effective thermal conductivity (W/m-K) in X direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::thermal_conductivity_X
private

Effective thermal conductivity (W/m-K) in X direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::thermal_conductivity_Y
private

Effective thermal conductivity (W/m-K) in Y direction.

template<int dim>
double FuelCellShop::Layer::SGL24BA< dim >::thermal_conductivity_Z
private

Effective thermal conductivity (W/m-K) in Z direction.


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