OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
data_out_mass_transport.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 //
3 // FCST: Fuel Cell Simulation Toolbox
4 //
5 // Copyright (C) 2015 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: data_out_mass_transport.h
11 // - Description: Data postprocessing routine to output total density, concentration and molar fractions
12 // - Developers: M. Secanell
13 //
14 //---------------------------------------------------------------------------
15 
16 #ifndef _FUELCELLSHOP__POSTPROCESSING__DATAOUT_MASSTRANSPORT__H
17 #define _FUELCELLSHOP__POSTPROCESSING__DATAOUT_MASSTRANSPORT__H
18 
19 // Include deal.II classes
20 #include <deal.II/numerics/data_out.h>
21 
22 //Include STL
23 #include <boost/shared_ptr.hpp>
24 #include <mutex>
25 #include <typeinfo>
26 
27 // Include OpenFCST routines:
28 #include <layers/porous_layer.h>
29 #include <materials/PureGas.h>
31 
32 using namespace dealii;
33 
34 namespace FuelCellShop
35 {
36  namespace PostProcessing
37  {
43  template <int dim>
45  :
46  public dealii::DataPostprocessorScalar<dim>
47  {
48  public:
49 
51 
52 
60  virtual ~MolarFractionDataOut();
61 
67  virtual std::vector<std::string> get_names() const;
68 
72  virtual std::vector<DataComponentInterpretation::DataComponentInterpretation> get_data_component_interpretation () const;
73 
77  virtual UpdateFlags get_needed_update_flags() const;
78 
82  virtual void compute_derived_quantities_vector (const std::vector< Vector< double > > &solution,
83  const std::vector< std::vector< Tensor< 1, dim > > > & /*duh*/,
84  const std::vector< std::vector< Tensor< 2, dim > > > & /*dduh*/,
85  const std::vector< Point< dim > > & /*normals*/,
86  const std::vector< Point<dim> > & /*evaluation_points*/,
87  const types::material_id & mat_id,
88  std::vector< Vector< double > > &computed_quantities) const;
89 
90  private:
95 
100  };
101  }
102 }
103 
104 #endif
const FuelCell::SystemManagement * system_management
Pointer to system management.
Definition: data_out_mass_transport.h:94
FuelCellShop::Material::GasMixture * fluid
Definition: data_out_mass_transport.h:99
This class describes properties of gas mixtures.
Definition: GasMixture.h:102
IMPORTANT: Add all new solution variables and equations here !
Definition: system_management.h:300
Class used to output molar fractions based on the density of each species.
Definition: data_out_mass_transport.h:44