OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
carbon_fiber.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 //
3 // Copyright (C) 2011 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__CARBON_FIBER_H
13 #define _FUELCELLSHOP__CARBON_FIBER_H
14 
15 //Include STL
16 #include<cmath>
17 #include<iostream>
18 
19 // FCST
20 #include "fiber_base.h"
21 
22 
23 namespace FuelCellShop
24 {
25  namespace Material
26  {
27  class CarbonFiber :
28  public FiberBase
29  {
30  public:
31 
37  CarbonFiber(std::string name = "Carbon Fiber");
38 
40  ~CarbonFiber();
41 
43  void declare_parameters(ParameterHandler &param) const;
44 
46  void set_parameters (const std::vector<std::string>& name_dvar,
47  const std::vector<double>& value_dvar,
48  ParameterHandler& param);
49 
51  void initialize (ParameterHandler &param);
52 
54  inline double get_electrical_conductivity() const
55  { return this->electrical_conductivity; };
56 
58  double get_electrical_conductivity(double) const;
59 
61  {
62  const std::type_info& info = typeid(*this);
63  deallog << "Pure function " << __FUNCTION__
64  << " called in Class "
65  << info.name() << std::endl;
66  return 0;
67  }
68 
70  inline double get_thermal_conductivity() const
71  { return this->thermal_conductivity; };
72 
74  {
75  const std::type_info& info = typeid(*this);
76  deallog << "Pure function " << __FUNCTION__
77  << " called in Class "
78  << info.name() << std::endl;
79  return 0;
80  }
81 
83  inline double get_density() const
84  { return this->density; };
85 
86 
87  };
88  }
89 }
90 
91 #endif