OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fiber_base.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 by Marc Secanell, University of Alberta
4 //
5 // This file is subject to QPL and may not be distributed
6 // without copyright and license information. Please refer
7 // to the file deal.II/doc/license.html for the text and
8 // further information on this license.
9 //
10 //---------------------------------------------------------------------------
11 
12 #ifndef _FUELCELLSHOP__FIBER_BASE_H
13 #define _FUELCELLSHOP__FIBER_BASE_H
14 
15 // Include FCST classes
17 
18 
19 namespace FuelCellShop
20 {
21  namespace Material
22  {
23  class FiberBase
24  :
25  public BaseMaterial
26  {
27  public:
28 
36  FiberBase(std::string name)
37  :
38  BaseMaterial(name)
39  {};
40 
43  {};
44 
46  virtual void declare_parameters(ParameterHandler &param) const
47  {
49  };
50 
52  virtual void initialize (ParameterHandler &param)
53  {
55  };
56 
58  virtual inline double get_electrical_conductivity() const
59  {
60  const std::type_info& info = typeid(*this);
61  FcstUtilities::log << "Pure function " << __FUNCTION__
62  << " called in Class "
63  << info.name() << std::endl;
64  return 0;
65  };
66 
68  virtual inline double get_electrical_conductivity(double) const
69  {
70  const std::type_info& info = typeid(*this);
71  FcstUtilities::log << "Pure function " << __FUNCTION__
72  << " called in Class "
73  << info.name() << std::endl;
74  return 0;
75  };
76 
78  {
79  const std::type_info& info = typeid(*this);
80  FcstUtilities::log << "Pure function " << __FUNCTION__
81  << " called in Class "
82  << info.name() << std::endl;
83  return 0;
84  };
85 
87  virtual inline double get_thermal_conductivity() const
88  {
89  const std::type_info& info = typeid(*this);
90  FcstUtilities::log << "Pure function " << __FUNCTION__
91  << " called in Class "
92  << info.name() << std::endl;
93  return 0;
94  };
95 
96  virtual double get_derivative_thermal_conductivity() const
97  {
98  const std::type_info& info = typeid(*this);
99  FcstUtilities::log << "Pure function " << __FUNCTION__
100  << " called in Class "
101  << info.name() << std::endl;
102  return 0;
103  };
104 
106  virtual inline double get_density() const
107  {
108  const std::type_info& info = typeid(*this);
109  FcstUtilities::log << "Pure function " << __FUNCTION__
110  << " called in Class "
111  << info.name() << std::endl;
112  return 0;
113  };
114 
115  protected:
121  double density;
122  };
123  }
124 }
125 
126 #endif
virtual void declare_parameters(ParameterHandler &) const
Declare parameters for a parameter file.
Definition: base_material.h:127
FiberBase(std::string name)
Constructor The constructor initialize parameters using the default values.
Definition: fiber_base.h:36
virtual double get_derivative_electrical_conductivity() const
Definition: fiber_base.h:77
virtual void declare_parameters(ParameterHandler &param) const
Declare parameters.
Definition: fiber_base.h:46
const std::string name
Name of the layer.
Definition: base_material.h:155
Definition: fiber_base.h:23
double electrical_conductivity
Electrical conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:113
double thermal_conductivity
Thermal conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:119
virtual double get_electrical_conductivity(double) const
Obtain the temperature dependent electrical conductivity which is passed as the argument.
Definition: fiber_base.h:68
virtual void initialize(ParameterHandler &)
Member function used to read in data and initialize the necessary data to compute the coefficients...
Definition: base_material.h:142
~FiberBase()
Destructor.
Definition: fiber_base.h:42
virtual void initialize(ParameterHandler &param)
Initialize.
Definition: fiber_base.h:52
FCSTLogStream log
Object used to output data to file and, if file attached recorded to a file as well.
virtual double get_electrical_conductivity() const
Obtain the electrical conductivity.
Definition: fiber_base.h:58
double density
Density of carbon fibers.
Definition: fiber_base.h:121
virtual double get_derivative_thermal_conductivity() const
Definition: fiber_base.h:96
virtual double get_density() const
Obtain the density.
Definition: fiber_base.h:106
Virtual class used to provide the interface for all material classes.
Definition: base_material.h:54
virtual double get_thermal_conductivity() const
Obtain the thermal conductivity.
Definition: fiber_base.h:87