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 set_parameters (const std::vector<std::string>& name_dvar,
55  const std::vector<double>& value_dvar,
56  ParameterHandler& param)
57  {
58  FuelCellShop::Material::BaseMaterial::set_parameters(name_dvar, value_dvar, param);
59  };
60 
62  virtual void initialize (ParameterHandler &param)
63  {
65  };
66 
68  virtual inline double get_electrical_conductivity() const
69  {
70  const std::type_info& info = typeid(*this);
71  deallog << "Pure function " << __FUNCTION__
72  << " called in Class "
73  << info.name() << std::endl;
74  return 0;
75  };
76 
78  virtual inline double get_electrical_conductivity(double) const
79  {
80  const std::type_info& info = typeid(*this);
81  deallog << "Pure function " << __FUNCTION__
82  << " called in Class "
83  << info.name() << std::endl;
84  return 0;
85  };
86 
88  {
89  const std::type_info& info = typeid(*this);
90  deallog << "Pure function " << __FUNCTION__
91  << " called in Class "
92  << info.name() << std::endl;
93  return 0;
94  };
95 
97  virtual inline double get_thermal_conductivity() const
98  {
99  const std::type_info& info = typeid(*this);
100  deallog << "Pure function " << __FUNCTION__
101  << " called in Class "
102  << info.name() << std::endl;
103  return 0;
104  };
105 
106  virtual double get_derivative_thermal_conductivity() const
107  {
108  const std::type_info& info = typeid(*this);
109  deallog << "Pure function " << __FUNCTION__
110  << " called in Class "
111  << info.name() << std::endl;
112  return 0;
113  };
114 
116  virtual inline double get_density() const
117  {
118  const std::type_info& info = typeid(*this);
119  deallog << "Pure function " << __FUNCTION__
120  << " called in Class "
121  << info.name() << std::endl;
122  return 0;
123  };
124 
125  protected:
131  double density;
132  };
133  }
134 }
135 
136 #endif