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 //
15 // ----------------------------------------------------------------------------
16 
17 #ifndef _FCST_CONSTANTS_H_
18 #define _FCST_CONSTANTS_H_
19 
20 #include <deal.II/base/tensor.h>
21 #include <deal.II/base/symmetric_tensor.h>
22 
23 const unsigned int dim = deal_II_dimension;
24 
25 namespace Constants
26 {
27  // --- GROUP 1 ---
28 
32  extern inline double R() { return 8.314462176; }
33 
37  extern inline double F() { return 9.648533992e4; }
38 
42  extern inline double Pi() { return 3.141592654; }
43 
47  extern inline double E0() { return 8.854187818e-12; }
48 
52  extern inline double K() { return 8.617332478e-5; }
53 
57  extern inline double K_SI() { return 1.3806488e-23; }
58 
62  extern inline double N_A() { return 6.022140857e23; }
63 
64  // --- GROUP 2 ---
65 
70  extern inline const dealii::Tensor<1,dim> gravity_acceleration()
71  {
72  dealii::Tensor<1,dim> result;
73  result[dim-1] = -9.81;
74  return result;
75  }
76 
80  extern inline const dealii::SymmetricTensor<2,dim> unit_tensor()
81  {
82  dealii::SymmetricTensor<2,dim> result;
83 
84  for(unsigned int i = 0; i < dim; ++i)
85  for(unsigned int j = 0; j < dim; ++j)
86  if( i == j )
87  result[i][j] = 1.0;
88 
89  return result;
90  }
91 
92  // --- GROUP 3 ---
93 
104  extern inline double A_vk() { return 1.16145; }
105 
116  extern inline double B_vk() { return 0.14874; }
117 
128  extern inline double C_vk() { return 0.52487; }
129 
140  extern inline double D_vk() { return 0.77320; }
141 
152  extern inline double E_vk() { return 2.16178; }
153 
164  extern inline double F_vk() { return 2.43787; }
165 
166  // --- GROUP 4 ---
167 
178  extern inline double A_diff() { return 1.06036; }
179 
190  extern inline double B_diff() { return 0.15610; }
191 
202  extern inline double C_diff() { return 0.19300; }
203 
214  extern inline double D_diff() { return 0.47635; }
215 
226  extern inline double E_diff() { return 1.03587; }
227 
238  extern inline double F_diff() { return 1.52996; }
239 
250  extern inline double G_diff() { return 1.76474; }
251 
262  extern inline double H_diff() { return 3.89411; }
263 
264  // --- GROUP 5 ---
265 
270  extern inline double b_0() { return -2.1794; }
271 
276  extern inline double b_1() { return 2.9530e-2; }
277 
282  extern inline double b_2() { return -9.1837e-5; }
283 
288  extern inline double b_3() { return 1.4454e-7; }
289 
290  // --- GROUP 6 ---
291  // NOTE: Constants taken from "Toward a Unified Theory of Isotropic Molecular Transport Phenomena"
292  // by Kerkhof and Geboers, Table C2. If you wish to implement other \Omega^{*(l,s)} values
293  // see this paper for constants
294 
306  extern inline double A11_visc_R1() { return 1.340794; }
307 
319  extern inline double B11_visc_R1() { return 0.326244; }
320 
332  extern inline double C11_visc_R1() { return 1.546648; }
333 
345  extern inline double D11_visc_R1() { return 2.768179; }
346 
358  extern inline double A11_visc_R2() { return 1.066993; }
359 
371  extern inline double B11_visc_R2() { return 0.157384; }
372 
384  extern inline double C11_visc_R2() { return 0.424013; }
385 
397  extern inline double D11_visc_R2() { return 0.698873; }
398 
410  extern inline double A22_visc_R1() { return 26.425725; }
411 
423  extern inline double B22_visc_R1() { return 0.045563; }
424 
436  extern inline double C22_visc_R1() { return -25.232304; }
437 
449  extern inline double D22_visc_R1() { return 0.016075; }
450 
462  extern inline double A22_visc_R2() { return 1.151508; }
463 
475  extern inline double B22_visc_R2() { return 0.145812; }
476 
488  extern inline double C22_visc_R2() { return 0.437374; }
489 
501  extern inline double D22_visc_R2() { return 0.670219; }
502 
503 }
504 
505 #endif
const unsigned int dim
Definition: fcst_constants.h:23
double D22_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:501
double F()
Faraday constant, .
Definition: fcst_constants.h:37
double D11_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:345
double C_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:128
double D_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:214
double b_3()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:288
double B_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:116
double F_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:164
double E_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:152
double C11_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:384
double B11_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:319
const dealii::SymmetricTensor< 2, dim > unit_tensor()
Unit tensor, .
Definition: fcst_constants.h:80
double C11_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:332
double D_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:140
double A11_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:358
double R()
Universal gas constant, .
Definition: fcst_constants.h:32
double H_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:262
double D11_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:397
double G_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:250
double A22_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:410
double C22_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:436
double A11_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:306
double B11_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:371
double b_2()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:282
double A22_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:462
double A_vk()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (viscosity and thermal conductivi...
Definition: fcst_constants.h:104
double B_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:190
double N_A()
Avogadro&#39;s constant, .
Definition: fcst_constants.h:62
const dealii::Tensor< 1, dim > gravity_acceleration()
Gravitational acceleration, .
Definition: fcst_constants.h:70
double F_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:238
double b_1()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:276
double C_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:202
double K()
Boltzmann constant, .
Definition: fcst_constants.h:52
double B22_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:475
double C22_visc_R2()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:488
double b_0()
Coefficient of the Springer-Zawodzinski-Gottesfeld water vapor saturation pressure formula...
Definition: fcst_constants.h:270
double A_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:178
double K_SI()
Boltzmann constant in SI units, .
Definition: fcst_constants.h:57
double E0()
Permittivity of free space, .
Definition: fcst_constants.h:47
double Pi()
.
Definition: fcst_constants.h:42
double D22_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:449
double B22_visc_R1()
Coefficient for the integrals formula (viscosity) between .
Definition: fcst_constants.h:423
double E_diff()
Coefficient of the Neufeld-Jansen-Aziz collision integrals formula (diffusivity).
Definition: fcst_constants.h:226