OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
response_mass_flux.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_mass_flux.h
11 // - Description: This is header file for electronic and protonic ohmic heat response evaluator classes.
12 // - Developers: Chad Balen
13 // - $Id:
14 //
15 // ----------------------------------------------------------------------------
16 
17 #ifndef _FUELCELLSHOP__RESPONSE_MASS_FLUX_H
18 #define _FUELCELLSHOP__RESPONSE_MASS_FLUX_H
19 
21 
22 using namespace dealii;
23 
24 namespace FuelCellShop
25 {
26  namespace PostProcessing
27  {
28 
117  template <int dim>
118  class MassFluxResponse : public BaseResponse<dim>
119  {
120  public:
122 
124  :
125  BaseResponse<dim>(sm)
126  {}
127 
129 
131 
133 
138  void compute_responses(const typename DoFApplication<dim>::CellInfo& info,
140  std::map<FuelCellShop::PostProcessing::ResponsesNames, double>& respMap) const;
141 
148  void compute_responses(std::vector< FuelCellShop::SolutionVariable > solution_variables,
149  const typename DoFApplication<dim>::CellInfo& info,
151  std::map<FuelCellShop::PostProcessing::ResponsesNames, double>& respMap) const;
152 
168  void bdry_responses(std::vector<double>& dst,
170  std::vector<std::string>& responseNames,
171  std::vector<unsigned int>& bdryIDs) const;
172 
174  //
175  private:
177 
178 
182  unsigned int numOutputVars;
183 
187  std::vector<unsigned int> bdryIDs;
188 
194  std::vector<std::string> nameOutputVars;
195 
197  };
198  }
199 }
200 #endif
std::vector< unsigned int > bdryIDs
private variable for storing a vector of the boundary ids to calculate mass flux along.
Definition: response_mass_flux.h:187
const unsigned int dim
Definition: fcst_constants.h:23
MassFluxResponse(const FuelCell::SystemManagement &sm)
Definition: response_mass_flux.h:123
~MassFluxResponse()
Definition: response_mass_flux.h:128
std::vector< std::string > nameOutputVars
private variable for storing the names of species to calculate the mass flux for. ...
Definition: response_mass_flux.h:194
Virtual class used to develop a common interface to a set of functions used to evaluate functionals t...
Definition: base_response.h:131
This class is created for the objects handed to the mesh loops.
Definition: mesh_loop_info_objects.h:544
Class used to calculate the total mass flux at a boundary.
Definition: response_mass_flux.h:118
IMPORTANT: Add all new solution variables and equations here !
Definition: system_management.h:300
unsigned int numOutputVars
private variable for storing the number of species to calculate the mass flux for.
Definition: response_mass_flux.h:182
Virtual class used to characterize a generic layer interface.
Definition: base_layer.h:58