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::CapillaryPressureDataOut< dim > Class Template Reference

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

#include <data_out.h>

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

Constructors, destructor, and initalization

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...
 
 CapillaryPressureDataOut (FuelCell::SystemManagement *, std::vector< boost::shared_ptr< FuelCellShop::Layer::PorousLayer< dim > > > pls, FuelCell::OperatingConditions *)
 Constructor of our class. More...
 
virtual ~CapillaryPressureDataOut ()
 Destructor. More...
 
virtual UpdateFlags get_needed_update_flags () const
 Flags to be updated in each cell when computing the solution. 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::CapillaryPressureDataOut< dim >

Class used to evaluate the capillary pressure 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 two phase 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(&capillary_pressure);
*
* // Outputting
* DoFApplication<dim>::data_out(filename,
* solution, // This is initialized in the initial part of the data_out function
* PostProcessing);
*
Author
J. Zhou M. Secanell, 2014

Constructor & Destructor Documentation

Constructor of our class.

Destructor.

Member Function Documentation

template<int dim>
virtual void FuelCellShop::PostProcessing::CapillaryPressureDataOut< 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
template<int dim>
virtual UpdateFlags FuelCellShop::PostProcessing::CapillaryPressureDataOut< dim >::get_needed_update_flags ( ) const
virtual

Flags to be updated in each cell when computing the solution.

Member Data Documentation

Pointer to operating conditions class.

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

Vector of pointer to PorousLayer objects.

Pointer to system management.


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