OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PureLiquid.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 // $Id: PureLiquid.h 1354 2013-08-17 00:01:22Z secanell $
3 //
4 // Copyright (C) 2012 by Madhur Bhaiya
5 //
6 // This file is subject to QPL and may not be distributed
7 // without copyright and license information. Please refer
8 // to the file deal.II/doc/license.html for the text and
9 // further information on this license.
10 //
11 //---------------------------------------------------------------------------
12 #ifndef _FUELCELLSHOP__PURELIQUID__H
13 #define _FUELCELLSHOP__PURELIQUID__H
14 
15 //Include STL
16 #include <cmath>
17 #include <iostream>
18 #include <cstdlib>
19 #include <vector>
20 #include <fstream>
21 
22 #include <deal.II/base/parameter_handler.h>
23 using namespace dealii;
24 
25 
26 namespace FuelCellShop
27 
28 {
29  namespace Material
30  {
31 
36  class PureLiquid : public dealii::Subscriptor
37  {
38  public:
39 
41  double M;
43  double Mu_0;
44 
48  virtual ~PureLiquid(){};
49 
50  virtual char* get_name() =0;
51  virtual char* get_formula() =0;
52 
53  virtual void get_viscosity(double&, const double&) =0;
54 
55  };
56  //---------------------------------------------------------------------------
57 
61  class LiquidWater : public PureLiquid
62  {
63  public:
64 
65 
66 
67  LiquidWater();
68  virtual ~LiquidWater();
69 
70  virtual char* get_name() ;
71  virtual char* get_formula() ;
72 
73  virtual void get_viscosity(double&, const double&) ;
74 
75 
79  void declare_parameters ( ParameterHandler &param ) const;
80 
85  void initialize ( ParameterHandler &param );
86 
87 
88 
93  static double latentVap_heat(const double&);
95  static double deriv_latentVap_heat(const double&);
96 
97  double get_DO2();
98  double get_DH();
99  double get_Relative_Permittivity();
100 
101  private:
102 
106 
107  };
108 
109  //---------------------------------------------------------------------------
110  }
111 }
112 
113 #endif