OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
This class characterizes a gas diffusion layer and uses this information to compute effective transport properties. More...
#include <solid_layer.h>
Public Member Functions | |
SolidLayer (std::string name) | |
Constructor. | |
~SolidLayer () | |
Destructor. | |
void | declare_parameters (ParameterHandler ¶m) const |
Declare parameters for a parameter file. | |
void | set_parameters (const std::vector< std::string > &name_dvar, const std::vector< double > &value_dvar, ParameterHandler ¶m) |
Member function used to set new parameters values in the optimization loop. | |
void | initialize (ParameterHandler ¶m) |
Member function used to read in data and initialize the necessary data to compute the coefficients. | |
void | set_solid_and_compute (FuelCellShop::Material::FiberBase *, double) |
Member function that sets the material in the layer and the temperature. | |
virtual void | effective_electron_conductivity (double &) const |
Compute the effective electron conductivity in the Solid. | |
virtual void | effective_electron_conductivity (Tensor< 2, dim > &) const |
Compute the effective electron conductivity in the solid. | |
virtual void | effective_electron_conductivity (const double &, Tensor< 2, dim > &) const |
Compute the effective electron conductivity in the solid. | |
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 | effective_thermal_conductivity (double &) const |
Compute the effective thermal conductivity (isotropic) in the GDL. | |
virtual void | effective_thermal_conductivity (Tensor< 2, dim > &) const |
Compute the effective thermal conductivity (anisotropic) in the GDL. | |
virtual void | effective_thermal_conductivity (const double &, const double &, double &) const |
Compute the effective thermal conductivity (isotropic) in the GDL. | |
virtual void | effective_thermal_conductivity (std::vector< Tensor< 2, dim > > &) const |
Compute the effective thermal conductivity (anisotropic) in the GDL, dependent on various solution variables, eg: Temperature. | |
virtual void | derivative_effective_thermal_conductivity (std::vector< Tensor< 2, dim > > &) const |
Compute the derivative of the effective thermal conductivity in the GDL with respect to either the solution or design parameters. | |
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 () |
Class test. | |
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 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 () |
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. | |
Protected Attributes | |
std::vector< unsigned int > | boundary_ids |
Boundary ids. | |
double | temperature |
Temperature used to compute gases. | |
FuelCellShop::Material::FiberBase * | solid |
Data member that stores the solid material the layer is made of. | |
double | electrical_conductivity |
Variable to store electcical conducivity. | |
Protected Attributes inherited from FuelCellShop::Layer::BaseLayer< dim > | |
const std::string | name |
Name of the layer. | |
unsigned int | material_id |
Identification number. | |
std::vector< Point< dim > > | point |
Coordinates of the point where we would like to compute the effective properties. | |
std::vector< VariableNames > | derivative_flags |
Flags for derivatives: These flags are used to request derivatives. | |
std::map< VariableNames, double > | constant_solutions |
Map storing values of solution variables constant in a particular application. | |
Additional Inherited Members | |
Protected Member Functions inherited from FuelCellShop::Layer::BaseLayer< dim > | |
BaseLayer () | |
Constructor. | |
BaseLayer (const std::string &name) | |
Constructor. | |
virtual | ~BaseLayer () |
Destructor. | |
virtual void | declare_parameters (const std::string &object_name, ParameterHandler ¶m) const |
Declare parameters for a parameter file. | |
virtual void | set_parameters (const std::string &object_name, const std::vector< std::string > &name_dvar, const std::vector< double > &value_dvar, ParameterHandler ¶m) |
Member function used to change the values in the parameter file for a given list of parameters. | |
This class characterizes a gas diffusion layer and uses this information to compute effective transport properties.
It is use to store an identification number for the layer and its boundary conditions as well as the geometry of the layer.
!!!!! UNDER CONSTRUCTION !!!!!!!
FuelCellShop::Layer::SolidLayer< dim >::SolidLayer | ( | std::string | name | ) |
Constructor.
FuelCellShop::Layer::SolidLayer< dim >::~SolidLayer | ( | ) |
Destructor.
|
virtual |
Declare parameters for a parameter file.
The parameters that need to be declared are
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
inlinevirtual |
Compute the derivative of the effective electron conductivity in the GDL with respect to either the solution or design parameters.
The parameters with respect to which the derivatives are computed are setup in FuelCellShop::Layer::set_derivative_flags()
|
inlinevirtual |
Compute the derivative of the effective thermal conductivity in the GDL with respect to either the solution or design parameters.
The parameters with respect to which the derivatives are computed are setup in FuelCellShop::Layer::set_derivative_flags()
|
virtual |
Compute the effective electron conductivity in the Solid.
|
inlinevirtual |
Compute the effective electron conductivity in the solid.
|
inlinevirtual |
Compute the effective electron conductivity in the solid.
|
inlinevirtual |
Compute the effective thermal conductivity (isotropic) in the GDL.
|
inlinevirtual |
Compute the effective thermal conductivity (anisotropic) in the GDL.
|
inlinevirtual |
Compute the effective thermal conductivity (isotropic) in the GDL.
|
inlinevirtual |
Compute the effective thermal conductivity (anisotropic) in the GDL, dependent on various solution variables, eg: Temperature.
|
inlinevirtual |
This member function returns a type_info object with the name of the base layer type the inherited class belongs to, i.e.
Note that this is necessary if we want to find out not the name of the actual class which can be obtain using
but the name of the parent class.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
virtual |
Member function used to read in data and initialize the necessary data to compute the coefficients.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
virtual |
Member function used to set new parameters values in the optimization loop.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
void FuelCellShop::Layer::SolidLayer< dim >::set_solid_and_compute | ( | FuelCellShop::Material::FiberBase * | , |
double | |||
) |
Member function that sets the material in the layer and the temperature.
|
virtual |
Class test.
|
protected |
Boundary ids.
|
protected |
Variable to store electcical conducivity.
|
protected |
Data member that stores the solid material the layer is made of.
|
protected |
Temperature used to compute gases.