OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
agglomerate_ionomer_sun.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 // C++ Interface: agglomerate_ionomer_analytical.h
3 //
4 // Description: Used to solve a system of equations representing a
5 // spherical ionomer-filled agglomerate.
6 //
7 // Author: Peter Dobson <pdobson@ualberta.ca>, (C) 2011
8 // University of Alberta
9 //
10 // Copyright: See COPYING file that comes with this distribution
11 //
12 //---------------------------------------------------------------------------
13 
14 #ifndef FUEL_CELL__IONOMER_AGGLOMERATE_SUN__H
15 #define FUEL_CELL__IONOMER_AGGLOMERATE_SUN__H
16 
17 //------------------------------
18 // STD LIBRARY DECLARATIONS
19 //------------------------------
20 #include <cmath>
21 #include <iostream>
22 #include <fstream>
23 
24 //------------------------------
25 // DEAL.II DECLARATIONS
26 //------------------------------
27 #include "base/logstream.h"
28 
29 //------------------------------
30 // FUEL CELL DECLARATIONS
31 //-----------------------------
32 #include "catalyst_base.h"
33 #include "catalyst_support_base.h"
35 #include "agglomerate_base.h"
36 
37 namespace FuelCellShop
38 {
39  namespace MicroScale
40  {
50  {
51  public:
54 
59  double A, double r, double delta, double epsilon);
60 
65  virtual double compute_current ( double &E_r);
66 
70  virtual std::vector<double> compute_derivative_current ();
71 
72 
73 
74 
75  private:
76 
77  void _initialize();
78 
80  double compute_Er (const double k_c, const double D);
81 
83  double compute_dEr (const double k_c,const double dk_c, const double D);
84 
85 
86  };// class IonomerAgglomerateSun
87 
88  } // namespace Layer
89 
90 } // namespace FuelCellShop
91 
92 #endif
93