OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fcst_constants.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 //
3 // FCST: Fuel Cell Simulation Toolbox
4 //
5 // Copyright (C) 2006-2013 by Energy Systems Design Laboratory, University of Alberta
6 //
7 // This software is distributed under the MIT License
8 // For more information, see the README file in /doc/LICENSE
9 //
10 // - Class: fcst_constants.h
11 // - Description: This namespace contains all necessary FCST constants
12 // - Developers: Valentin N. Zingan, University of Alberta
13 // Marc Secanell Gallart, University of Alberta
14 // - Id: $Id: fcst_constants.h 2605 2014-08-15 03:36:44Z secanell $
15 //
16 // ----------------------------------------------------------------------------
17 
18 #ifndef _FCST_CONSTANTS_H_
19 #define _FCST_CONSTANTS_H_
20 
21 #include <deal.II/base/tensor.h>
22 #include <deal.II/base/symmetric_tensor.h>
23 
24 const unsigned int dim = deal_II_dimension;
25 
26 namespace Constants
27 {
28  // --- GROUP 1 ---
29 
33  extern inline double R() { return 8.314462176; }
34 
38  extern inline double F() { return 9.648533992e4; }
39 
43  extern inline double Pi() { return 3.141592654; }
44 
48  extern inline double E0() { return 8.854187818e-12; }
49 
53  extern inline double K() { return 8.617332478e-5; }
54 
55  // --- GROUP 2 ---
56 
61  extern inline const dealii::Tensor<1,dim> gravity_acceleration()
62  {
63  dealii::Tensor<1,dim> result;
64  result[dim-1] = -9.81;
65  return result;
66  }
67 
71  extern inline const dealii::SymmetricTensor<2,dim> unit_tensor()
72  {
73  dealii::SymmetricTensor<2,dim> result;
74 
75  for(unsigned int i = 0; i < dim; ++i)
76  for(unsigned int j = 0; j < dim; ++j)
77  if( i == j )
78  result[i][j] = 1.0;
79 
80  return result;
81  }
82 
83  // --- GROUP 3 ---
84 
89  extern inline double A_vk() { return 1.16145; }
90 
95  extern inline double B_vk() { return 0.14874; }
96 
101  extern inline double C_vk() { return 0.52487; }
102 
107  extern inline double D_vk() { return 0.77320; }
108 
113  extern inline double E_vk() { return 2.16178; }
114 
119  extern inline double F_vk() { return 2.43787; }
120 
121  // --- GROUP 4 ---
122 
127  extern inline double A_diff() { return 1.06036; }
128 
133  extern inline double B_diff() { return 0.15610; }
134 
139  extern inline double C_diff() { return 0.19300; }
140 
145  extern inline double D_diff() { return 0.47635; }
146 
151  extern inline double E_diff() { return 1.03587; }
152 
157  extern inline double F_diff() { return 1.52996; }
158 
163  extern inline double G_diff() { return 1.76474; }
164 
169  extern inline double H_diff() { return 3.89411; }
170 
171  // --- GROUP 5 ---
172 
177  extern inline double b_0() { return -2.1794; }
178 
183  extern inline double b_1() { return 2.9530e-2; }
184 
189  extern inline double b_2() { return -9.1837e-5; }
190 
195  extern inline double b_3() { return 1.4454e-7; }
196 }
197 
198 #endif
const unsigned int dim
Definition: fcst_constants.h:24
double F()
Faraday constant, .
Definition: fcst_constants.h:38
double C_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:101
double D_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:145
double b_3()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:195
double B_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:95
double F_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:119
double E_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:113
const dealii::SymmetricTensor< 2, dim > unit_tensor()
Unit tensor, .
Definition: fcst_constants.h:71
double D_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:107
double R()
Universal gas constant, .
Definition: fcst_constants.h:33
double H_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:169
double G_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:163
double b_2()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:189
double A_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:89
double B_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:133
const dealii::Tensor< 1, dim > gravity_acceleration()
Gravitational acceleration, .
Definition: fcst_constants.h:61
double F_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:157
double b_1()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:183
double C_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:139
double K()
Boltzmann constant, .
Definition: fcst_constants.h:53
double b_0()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:177
double A_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:127
double E0()
Permittivity of free space, .
Definition: fcst_constants.h:48
double Pi()
.
Definition: fcst_constants.h:43
double E_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:151