OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
This class describes a channel and stores pointers to. More...
#include <channel.h>
Public Member Functions | |
Constructors, destructor, and initialization | |
Channel (const std::string &name) | |
Constructor. More... | |
Channel (const std::string &name, FuelCellShop::Material::ExperimentalFluid &fluid) | |
Constructor. More... | |
Channel (const std::string &name, FuelCellShop::Material::GasMixture &gas_mixture) | |
Constructor. More... | |
virtual | ~Channel () |
Destructor. More... | |
void | initialize (FuelCellShop::Material::ExperimentalFluid &rfluid) |
Initialize fluid . More... | |
void | initialize (FuelCellShop::Material::GasMixture &rgas_mixture) |
Initialize gas_mixture . More... | |
virtual void | declare_parameters (ParameterHandler ¶m) const |
Declare parameters. More... | |
virtual void | initialize (ParameterHandler ¶m) |
Initialize parameters. More... | |
Accessors and info | |
const FuelCellShop::Material::ExperimentalFluid *const | get_fluid () const |
This function returns fluid . More... | |
const FuelCellShop::Material::GasMixture *const | get_gas_mixture () const |
This function returns gas_mixture . More... | |
const double & | get_roughness () const |
This function returns roughness [cm]. More... | |
const Tensor< 2, dim > & | get_effective_electronic_conductivity () const |
This function returns effective_electronic_conductivity [S/cm]. More... | |
const std::type_info & | get_base_type () const |
This function returns typeid of this class. More... | |
virtual void | print_layer_properties () const |
This function prints out the layer properties. More... | |
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. More... | |
void | set_position (const std::vector< Point< dim > > &p) |
Member function used by some applications such as dummyGDL in order to know which value to return. More... | |
virtual void | set_local_material_id (const unsigned int &id) |
Function for setting local material id, for unit testing purposes. More... | |
void | unset_local_material_id () |
Function for unsetting local material id, so that it isn't incorrectly used later Once the key is "unset" to some invalid value, an error will be thrown if the key is requested again without being set. More... | |
virtual void | set_constant_solution (const double &value, const VariableNames &name) |
Set those solution variables which are constant in the particular application. More... | |
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. More... | |
bool | belongs_to_material (const unsigned int material_id) |
Check if a given cell belongs to the catalyst layer and assign. More... | |
const std::string & | name_layer () const |
Return the name of the layer. More... | |
virtual bool | test_layer () |
This virtual class should be used for any derived class to be able to test the functionality of the class. More... | |
std::vector< unsigned int > | get_material_ids () |
Return the local material id of the layer. More... | |
unsigned int | local_material_id () const |
Return the local material id of the layer, performs a check. More... | |
Protected Attributes | |
Layer properties | |
FuelCellShop::Material::ExperimentalFluid * | fluid |
FuelCellShop::Material::GasMixture * | gas_mixture |
Gas mixture. More... | |
double | roughness |
Roughness, cm. More... | |
Tensor< 2, dim > | effective_electronic_conductivity |
Effective electronic conductivity, . More... | |
Protected Attributes inherited from FuelCellShop::Layer::BaseLayer< dim > | |
const std::string | name |
Name of the layer. More... | |
std::vector< unsigned int > | material_ids |
List of material IDs that belong to the layer. More... | |
std::vector< Point< dim > > | point |
Coordinates of the point where we would like to compute the effective properties. More... | |
std::vector< VariableNames > | derivative_flags |
Flags for derivatives: These flags are used to request derivatives. More... | |
std::map< VariableNames, double > | constant_solutions |
Map storing values of solution variables constant in a particular application. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from FuelCellShop::Layer::BaseLayer< dim > | |
BaseLayer () | |
Constructor. More... | |
BaseLayer (const std::string &name) | |
Constructor. More... | |
virtual | ~BaseLayer () |
Destructor. More... | |
virtual void | declare_parameters (const std::string &object_name, ParameterHandler ¶m) const |
Declare parameters for a parameter file. More... | |
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. More... | |
virtual void | set_parameters (const std::vector< std::string > &name_dvar, const std::vector< double > &value_dvar, ParameterHandler ¶m) |
Set parameters in parameter file. More... | |
This class describes a channel and stores pointers to.
ExperimentalFluid
object,GasMixture
object.This class also stores the roughness of the channel walls and effective electronic conductivity of solid plates.
The functionality of this class can be extended if needed.
FuelCellShop::Layer::Channel< dim >::Channel | ( | const std::string & | name | ) |
Constructor.
FuelCellShop::Layer::Channel< dim >::Channel | ( | const std::string & | name, |
FuelCellShop::Material::ExperimentalFluid & | fluid | ||
) |
Constructor.
FuelCellShop::Layer::Channel< dim >::Channel | ( | const std::string & | name, |
FuelCellShop::Material::GasMixture & | gas_mixture | ||
) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Declare parameters.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
inlinevirtual |
This function returns typeid
of this class.
All classes derived from this class must share the same typeid
for dynamic swapping.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
inline |
This function returns effective_electronic_conductivity
[S/cm].
References FuelCellShop::Layer::Channel< dim >::effective_electronic_conductivity.
|
inline |
This function returns fluid
.
References FuelCellShop::Layer::Channel< dim >::fluid.
|
inline |
This function returns gas_mixture
.
References FuelCellShop::Layer::Channel< dim >::gas_mixture.
|
inline |
This function returns roughness
[cm].
References FuelCellShop::Layer::Channel< dim >::roughness.
|
inline |
Initialize fluid
.
|
inline |
Initialize gas_mixture
.
|
virtual |
Initialize parameters.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
virtual |
This function prints out the layer properties.
Reimplemented from FuelCellShop::Layer::BaseLayer< dim >.
|
protected |
Effective electronic conductivity, .
Referenced by FuelCellShop::Layer::Channel< dim >::get_effective_electronic_conductivity().
|
protected |
fluid.
Referenced by FuelCellShop::Layer::Channel< dim >::get_fluid().
|
protected |
Gas mixture.
Referenced by FuelCellShop::Layer::Channel< dim >::get_gas_mixture().
|
protected |
Roughness, cm.
Referenced by FuelCellShop::Layer::Channel< dim >::get_roughness().