OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
Virtual class used to provide the interface for all material classes. More...
#include <base_material.h>
Public Member Functions | |
Initalization | |
virtual void | initialize (ParameterHandler &) |
Member function used to read in data and initialize the necessary data to compute the coefficients. | |
void | set_derivative_flags (const std::vector< VariableNames > &flags) |
Set the variables for which you would like to compute the derivatives. | |
Accessors and info | |
const std::string & | name_material () |
Return the name of the layer. | |
virtual void | print_material_properties () const |
This function prints out the material properties. | |
Protected Member Functions | |
Constructors, destructor, and parameter initalization | |
BaseMaterial () | |
Constructor. | |
BaseMaterial (const std::string &name) | |
Constructor. | |
virtual | ~BaseMaterial () |
Destructor. | |
virtual void | declare_parameters (ParameterHandler &) const |
Declare parameters for a parameter file. | |
virtual void | set_parameters (const std::vector< std::string > &, const std::vector< double > &, ParameterHandler &) |
Member function used to change the values in the parameter file for a given list of parameters. | |
Protected Attributes | |
Internal variables | |
const std::string | name |
Name of the layer. | |
std::vector< VariableNames > | derivative_flags |
Flags for derivatives: These flags are used to request derivatives. | |
Virtual class used to provide the interface for all material classes.
No object of type BaseMaterial should ever be created.
|
inlineprotected |
Constructor.
|
inlineprotected |
Constructor.
|
inlineprotectedvirtual |
Destructor.
|
inlineprotectedvirtual |
Declare parameters for a parameter file.
Reimplemented in FuelCellShop::Material::PolymerElectrolyteBase, FuelCellShop::Material::CatalystBase, FuelCellShop::Material::CatalystSupportBase, FuelCellShop::Material::Nafion, FuelCellShop::Material::CarbonBlack, FuelCellShop::Material::Platinum, FuelCellShop::Material::MaterialPlateBase, FuelCellShop::Material::MaterialPlateGraphite, FuelCellShop::Material::FiberBase, and FuelCellShop::Material::CarbonFiber.
References name.
Referenced by FuelCellShop::Material::FiberBase::declare_parameters(), and FuelCellShop::Material::MaterialPlateBase::declare_parameters().
|
inlinevirtual |
Member function used to read in data and initialize the necessary data to compute the coefficients.
Reimplemented in FuelCellShop::Material::PolymerElectrolyteBase, FuelCellShop::Material::CatalystBase, FuelCellShop::Material::CatalystSupportBase, FuelCellShop::Material::Nafion, FuelCellShop::Material::CarbonBlack, FuelCellShop::Material::Platinum, FuelCellShop::Material::MaterialPlateBase, FuelCellShop::Material::MaterialPlateGraphite, FuelCellShop::Material::FiberBase, and FuelCellShop::Material::CarbonFiber.
Referenced by FuelCellShop::Material::FiberBase::initialize(), and FuelCellShop::Material::MaterialPlateBase::initialize().
|
inline |
Return the name of the layer.
|
inlinevirtual |
This function prints out the material properties.
|
inline |
Set the variables for which you would like to compute the derivatives.
|
inlineprotectedvirtual |
Member function used to change the values in the parameter file for a given list of parameters.
Reimplemented in FuelCellShop::Material::PolymerElectrolyteBase, FuelCellShop::Material::CatalystBase, FuelCellShop::Material::CatalystSupportBase, FuelCellShop::Material::Nafion, FuelCellShop::Material::CarbonBlack, FuelCellShop::Material::Platinum, FuelCellShop::Material::MaterialPlateBase, FuelCellShop::Material::MaterialPlateGraphite, FuelCellShop::Material::FiberBase, and FuelCellShop::Material::CarbonFiber.
Referenced by FuelCellShop::Material::FiberBase::set_parameters(), and FuelCellShop::Material::MaterialPlateBase::set_parameters().
|
protected |
Flags for derivatives: These flags are used to request derivatives.
|
protected |
Name of the layer.
This value is used as a header in a subsection for the parameter file where all the information concerning this layer is held
Referenced by FuelCellShop::Kinetics::BaseKinetics::current_density(), declare_parameters(), and FuelCellShop::Material::Platinum::set_reaction_kinetics().