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 STL
16 #include<cmath>
17 #include<iostream>
18 #include"base_material.h"
19 
20 
21 namespace FuelCellShop
22 {
23  namespace Material
24  {
25  class FiberBase
26  :
27  public BaseMaterial
28  {
29  public:
30 
38  FiberBase(std::string name)
39  :
40  BaseMaterial(name)
41  {};
42 
45  {};
46 
48  virtual void declare_parameters(ParameterHandler &param) const
49  {
51  };
52 
54  virtual void initialize (ParameterHandler &param)
55  {
57  };
58 
60  virtual inline double get_electrical_conductivity() const
61  {
62  const std::type_info& info = typeid(*this);
63  FcstUtilities::log << "Pure function " << __FUNCTION__
64  << " called in Class "
65  << info.name() << std::endl;
66  return 0;
67  };
68 
70  virtual inline double get_electrical_conductivity(double) const
71  {
72  const std::type_info& info = typeid(*this);
73  FcstUtilities::log << "Pure function " << __FUNCTION__
74  << " called in Class "
75  << info.name() << std::endl;
76  return 0;
77  };
78 
80  {
81  const std::type_info& info = typeid(*this);
82  FcstUtilities::log << "Pure function " << __FUNCTION__
83  << " called in Class "
84  << info.name() << std::endl;
85  return 0;
86  };
87 
89  virtual inline double get_thermal_conductivity() const
90  {
91  const std::type_info& info = typeid(*this);
92  FcstUtilities::log << "Pure function " << __FUNCTION__
93  << " called in Class "
94  << info.name() << std::endl;
95  return 0;
96  };
97 
98  virtual double get_derivative_thermal_conductivity() const
99  {
100  const std::type_info& info = typeid(*this);
101  FcstUtilities::log << "Pure function " << __FUNCTION__
102  << " called in Class "
103  << info.name() << std::endl;
104  return 0;
105  };
106 
108  virtual inline double get_density() const
109  {
110  const std::type_info& info = typeid(*this);
111  FcstUtilities::log << "Pure function " << __FUNCTION__
112  << " called in Class "
113  << info.name() << std::endl;
114  return 0;
115  };
116 
117  protected:
123  double density;
124  };
125  }
126 }
127 
128 #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:38
virtual double get_derivative_electrical_conductivity() const
Definition: fiber_base.h:79
virtual void declare_parameters(ParameterHandler &param) const
Declare parameters.
Definition: fiber_base.h:48
const std::string name
Name of the layer.
Definition: base_material.h:155
Definition: fiber_base.h:25
double electrical_conductivity
Electrical conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:115
double thermal_conductivity
Thermal conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:121
virtual double get_electrical_conductivity(double) const
Obtain the temperature dependent electrical conductivity which is passed as the argument.
Definition: fiber_base.h:70
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:44
virtual void initialize(ParameterHandler &param)
Initialize.
Definition: fiber_base.h:54
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:60
double density
Density of carbon fibers.
Definition: fiber_base.h:123
virtual double get_derivative_thermal_conductivity() const
Definition: fiber_base.h:98
virtual double get_density() const
Obtain the density.
Definition: fiber_base.h:108
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:89