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 STL
21 #include <exception> // std::exception
22 
23 // Include OpenFCST routines:
25 #include <layers/catalyst_layer.h>
27 
28 using namespace dealii;
29 
30 namespace FuelCellShop
31 {
32 
33  namespace PostProcessing
34  {
35 
101  template <int dim>
102  class SorptionHeatResponse : public BaseResponse<dim>
103  {
104  public:
106 
109  :
110  BaseResponse<dim>(sm),
111  sorption_source(sst)
112  {}
113 
115 
121  void initialize(ParameterHandler& param);
122 
124 
126 
135  void compute_responses(const typename DoFApplication<dim>::CellInfo& info,
137  std::map<FuelCellShop::PostProcessing::ResponsesNames, double>& respMap) const;
138 
145  void compute_responses(std::vector< FuelCellShop::SolutionVariable > solution_variables,
146  const typename DoFApplication<dim>::CellInfo& info,
148  std::map<FuelCellShop::PostProcessing::ResponsesNames, double>& respMap) const
149  {
150  throw std::runtime_error("SorptionHeatResponse::compute_responses(solution_variables, info, layer, respMap) not implemented");
151  }
153  //
154  private:
159 
165 
171 
177 
182  };
183  }
184 }
185 
186 #endif
const unsigned int dim
Definition: fcst_constants.h:23
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:145
This class assembles source terms corresponding to sorption/desorption of water inside the catalyst l...
Definition: sorption_source_terms.h:101
~SorptionHeatResponse()
Definition: response_sorption_heat.h:114
double time_constant
Time constant, [1/s].
Definition: response_sorption_heat.h:181
Virtual class used to develop a common interface to a set of functions used to evaluate functionals t...
Definition: base_response.h:131
FuelCellShop::Equation::VariableInfo lambda
VariableInfo structure corresponding to the &quot;membrane_water_content&quot;.
Definition: response_sorption_heat.h:170
This class is created for the objects handed to the mesh loops.
Definition: mesh_loop_info_objects.h:544
FuelCellShop::Equation::VariableInfo xWater
VariableInfo structure corresponding to the &quot;water_molar_fraction&quot;.
Definition: response_sorption_heat.h:164
const FuelCellShop::Equation::SorptionSourceTerms< dim > * sorption_source
Pointer to SorptionSourceTerms object.
Definition: response_sorption_heat.h:158
IMPORTANT: Add all new solution variables and equations here !
Definition: system_management.h:300
This simple structure stores certain information regarding a particular variable for the equation (al...
Definition: equation_auxiliaries.h:51
SorptionHeatResponse(const FuelCell::SystemManagement &sm, const FuelCellShop::Equation::SorptionSourceTerms< dim > *sst)
Definition: response_sorption_heat.h:107
Class used to calculate the heat generated due to sorption of water inside the catalyst layer...
Definition: response_sorption_heat.h:102
FuelCellShop::Equation::VariableInfo tRev
VariableInfo structure corresponding to the &quot;temperature_of_REV&quot;.
Definition: response_sorption_heat.h:176
Virtual class used to characterize a generic layer interface.
Definition: base_layer.h:58