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 initialize (ParameterHandler &param);
47 
49  inline double get_electrical_conductivity() const
50  { return this->electrical_conductivity; };
51 
53  double get_electrical_conductivity(double) const;
54 
56  {
57  const std::type_info& info = typeid(*this);
58  FcstUtilities::log << "Pure function " << __FUNCTION__
59  << " called in Class "
60  << info.name() << std::endl;
61  return 0;
62  }
63 
65  inline double get_thermal_conductivity() const
66  { return this->thermal_conductivity; };
67 
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  inline double get_density() const
79  { return this->density; };
80 
81 
82  };
83  }
84 }
85 
86 #endif
void declare_parameters(ParameterHandler &param) const
Declare parameters.
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 get_derivative_thermal_conductivity() const
Definition: carbon_fiber.h:68
double thermal_conductivity
Thermal conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:121
double get_electrical_conductivity() const
Obtain the electrical conductivity.
Definition: carbon_fiber.h:49
Definition: carbon_fiber.h:27
FCSTLogStream log
Object used to output data to file and, if file attached recorded to a file as well.
double get_density() const
Obtain the density.
Definition: carbon_fiber.h:78
double density
Density of carbon fibers.
Definition: fiber_base.h:123
double get_thermal_conductivity() const
Obtain the thermal conductivity.
Definition: carbon_fiber.h:65
CarbonFiber(std::string name="Carbon Fiber")
Constructor The constructor initialize parameters using the default values.
double get_derivative_electrical_conductivity() const
Definition: carbon_fiber.h:55
void initialize(ParameterHandler &param)
Initialize.