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 FCST classes
16 #include <materials/fiber_base.h>
17 
18 
19 namespace FuelCellShop
20 {
21  namespace Material
22  {
23  class CarbonFiber :
24  public FiberBase
25  {
26  public:
27 
33  CarbonFiber(std::string name = "Carbon Fiber");
34 
36  ~CarbonFiber();
37 
39  void declare_parameters(ParameterHandler &param) const;
40 
42  void initialize (ParameterHandler &param);
43 
45  inline double get_electrical_conductivity() const
46  { return this->electrical_conductivity; };
47 
49  double get_electrical_conductivity(double) const;
50 
52  {
53  const std::type_info& info = typeid(*this);
54  FcstUtilities::log << "Pure function " << __FUNCTION__
55  << " called in Class "
56  << info.name() << std::endl;
57  return 0;
58  }
59 
61  inline double get_thermal_conductivity() const
62  { return this->thermal_conductivity; };
63 
65  {
66  const std::type_info& info = typeid(*this);
67  FcstUtilities::log << "Pure function " << __FUNCTION__
68  << " called in Class "
69  << info.name() << std::endl;
70  return 0;
71  }
72 
74  inline double get_density() const
75  { return this->density; };
76 
77 
78  };
79  }
80 }
81 
82 #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:23
double electrical_conductivity
Electrical conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:113
double get_derivative_thermal_conductivity() const
Definition: carbon_fiber.h:64
double thermal_conductivity
Thermal conductivity of carbon fibers extrapolated to 100% solid phase.
Definition: fiber_base.h:119
double get_electrical_conductivity() const
Obtain the electrical conductivity.
Definition: carbon_fiber.h:45
Definition: carbon_fiber.h:23
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:74
double density
Density of carbon fibers.
Definition: fiber_base.h:121
double get_thermal_conductivity() const
Obtain the thermal conductivity.
Definition: carbon_fiber.h:61
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:51
void initialize(ParameterHandler &param)
Initialize.