OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
response_sorption_heat.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 //
3 // FCST: Fuel Cell Simulation Toolbox
4 //
5 // Copyright (C) 2014 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: response_sorption_heat.h
11 // - Description: This is header file for response class computing heat generated due to sorption of water.
12 // - Developers: Madhur Bhaiya
13 // - $Id:
14 //
15 // ----------------------------------------------------------------------------
16 
17 #ifndef _FUELCELLSHOP__RESPONSE_SORPTION_HEAT_H
18 #define _FUELCELLSHOP__RESPONSE_SORPTION_HEAT_H
19 
20 // Include deal.II classes
21 #include <base/parameter_handler.h>
22 #include <base/point.h>
23 #include <base/function.h>
24 #include <lac/vector.h>
25 #include <fe/fe_values.h>
26 
27 //Include STL
28 #include <cmath>
29 #include <iostream>
30 #include <exception> // std::exception
31 
32 // Include OpenFCST routines:
35 
38 
39 #include "layers/base_layer.h"
40 #include "layers/catalyst_layer.h"
41 
43 
44 using namespace dealii;
45 
46 namespace FuelCellShop
47 {
48 
49  namespace PostProcessing
50  {
51 
117  template <int dim>
118  class SorptionHeatResponse : public BaseResponse<dim>
119  {
120  public:
122 
125  :
126  BaseResponse<dim>(sm),
127  sorption_source(sst)
128  {}
129 
131 
137  void initialize(ParameterHandler& param);
138 
140 
142 
151  void compute_responses(const typename DoFApplication<dim>::CellInfo& info,
153  std::map<FuelCellShop::PostProcessing::ResponsesNames, double>& respMap) const;
154 
161  void compute_responses(std::vector< FuelCellShop::SolutionVariable > solution_variables,
162  const typename DoFApplication<dim>::CellInfo& info,
164  std::map<FuelCellShop::PostProcessing::ResponsesNames, double>& respMap) const
165  {
166  throw std::runtime_error("SorptionHeatResponse::compute_responses(solution_variables, info, layer, respMap) not implemented");
167  }
169  //
170  private:
175 
181 
187 
193 
198  };
199  }
200 }
201 
202 #endif
const unsigned int dim
Definition: fcst_constants.h:24
void compute_responses(std::vector< FuelCellShop::SolutionVariable > solution_variables, const typename DoFApplication< dim >::CellInfo &info, FuelCellShop::Layer::BaseLayer< dim > *const layer, std::map< FuelCellShop::PostProcessing::ResponsesNames, double > &respMap) const
Routine used in order to compute the response with a modified solution (not the one stored in CellInf...
Definition: response_sorption_heat.h:161
This class assembles source terms corresponding to sorption/desorption of water inside the catalyst l...
Definition: sorption_source_terms.h:103
~SorptionHeatResponse()
Definition: response_sorption_heat.h:130
double time_constant
Time constant, [1/s].
Definition: response_sorption_heat.h:197
Virtual class used to develop a common interface to a set of functions used to evaluate functionals t...
Definition: base_response.h:129
FuelCellShop::Equation::VariableInfo lambda
VariableInfo structure corresponding to the &quot;membrane_water_content&quot;.
Definition: response_sorption_heat.h:186
This class is created for the objects handed to the mesh loops.
Definition: mesh_loop_info_objects.h:625
FuelCellShop::Equation::VariableInfo xWater
VariableInfo structure corresponding to the &quot;water_molar_fraction&quot;.
Definition: response_sorption_heat.h:180
const FuelCellShop::Equation::SorptionSourceTerms< dim > * sorption_source
Pointer to SorptionSourceTerms object.
Definition: response_sorption_heat.h:174
IMPORTANT: Add all new solution variables and equations here !
Definition: system_management.h:271
This simple structure stores certain information regarding a particular variable for the equation (al...
Definition: equation_base.h:121
SorptionHeatResponse(const FuelCell::SystemManagement &sm, const FuelCellShop::Equation::SorptionSourceTerms< dim > *sst)
Definition: response_sorption_heat.h:123
Class used to calculate the heat generated due to sorption of water inside the catalyst layer...
Definition: response_sorption_heat.h:118
FuelCellShop::Equation::VariableInfo tRev
VariableInfo structure corresponding to the &quot;temperature_of_REV&quot;.
Definition: response_sorption_heat.h:192
Virtual class used to characterize a generic layer interface.
Definition: base_layer.h:58