OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim > Class Template Reference

Class used to evaluate the relative humidity at PorousLayer (viz., GDL, MPL and CL) DoF point in the finite element mesh. More...

#include <data_out.h>

Inheritance diagram for FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim >:
Inheritance graph
[legend]
Collaboration diagram for FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim >:
Collaboration graph
[legend]

Constructors, destructor, and initalization

FuelCellShop::Material::WaterVapor water
 WaterVapor object, used to compute saturation pressure as a function of temperature. More...
 
FuelCell::SystemManagementsystem_management
 Pointer to system management. More...
 
std::vector< boost::shared_ptr
< FuelCellShop::Layer::PorousLayer
< dim > > > 
porous_layers
 Vector of pointer to PorousLayer objects. More...
 
FuelCell::OperatingConditionsopCond
 Pointer to operating conditions class. More...
 
 RelativeHumidityDataOut (FuelCell::SystemManagement *, std::vector< boost::shared_ptr< FuelCellShop::Layer::PorousLayer< dim > > >, FuelCell::OperatingConditions *)
 Constructor of our class. More...
 
virtual ~RelativeHumidityDataOut ()
 Destructor. More...
 
virtual void compute_derived_quantities_vector (const std::vector< Vector< double > > &uh, const std::vector< std::vector< Tensor< 1, dim > > > &, const std::vector< std::vector< Tensor< 2, dim > > > &, const std::vector< Point< dim > > &, const std::vector< Point< dim > > &, const types::material_id &mat_id, std::vector< Vector< double > > &computed_quantities) const
 

Detailed Description

template<int dim>
class FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim >

Class used to evaluate the relative humidity at PorousLayer (viz., GDL, MPL and CL) DoF point in the finite element mesh.

Child of DataPostprocessorScalar (deal.II post-processing class used in DataOut class).

See step-29, step-32 and step-33 in the deal.II website for more details about this class.

Usage

This class is used in the data_out section of any application. It requires a pointer to SystemManagement object, a vector of pointer to the PorousLayer objects for which you would like to compute the current density, and pointer to OperatingConditions object.

* AppCathode<dim>::data_out(const std::string& filename,
*
* // --- Find solution and assign solution interpretations ---
* (...)
*
* // --- Create vector of PostProcessing objects ---
* std::vector< DataPostprocessor<dim>* > PostProcessing;
*
* // --- relative_humidity ---
* // First create a vector of PorousLayer objects. We have CGDL, CMPL and CCL in the cathode application.
* std::vector< boost::shared_ptr< FuelCellShop::Layer::PorousLayer<dim> > > porous_layers;
* porous_layers.push_back(CGDL);
* porous_layers.push_back(CMPL);
* porous_layers.push_back(CCL);
*
* // Then create the post processing object and push it to the vector.
* PostProcessing.push_back(&relative_humidity);
*
* // Outputting
* DoFApplication<dim>::data_out(filename,
* solution, // This is initialized in the initial part of the data_out function
* PostProcessing);
*
Author
M. Secanell, 2014

Constructor & Destructor Documentation

Constructor of our class.

template<int dim>
virtual FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim >::~RelativeHumidityDataOut ( )
inlinevirtual

Destructor.

Member Function Documentation

template<int dim>
virtual void FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim >::compute_derived_quantities_vector ( const std::vector< Vector< double > > &  uh,
const std::vector< std::vector< Tensor< 1, dim > > > &  ,
const std::vector< std::vector< Tensor< 2, dim > > > &  ,
const std::vector< Point< dim > > &  ,
const std::vector< Point< dim > > &  ,
const types::material_id &  mat_id,
std::vector< Vector< double > > &  computed_quantities 
) const
virtual

Member Data Documentation

Pointer to operating conditions class.

template<int dim>
std::vector< boost::shared_ptr< FuelCellShop::Layer::PorousLayer<dim> > > FuelCellShop::PostProcessing::RelativeHumidityDataOut< dim >::porous_layers
private

Vector of pointer to PorousLayer objects.

Pointer to system management.

WaterVapor object, used to compute saturation pressure as a function of temperature.


The documentation for this class was generated from the following file: