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

Class used to evaluate the all liquid related the liquid velocity field in all the layers. More...

#include <data_out_capillary.h>

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

Constructors, destructor, and initalization

std::vector< boost::shared_ptr
< FuelCellShop::Layer::PorousLayer
< dim > > > 
porous_layers
 Pointer to catalyst layer object. More...
 
FuelCell::SystemManagementsystem_management
 Pointer to system management. More...
 
FuelCell::OperatingConditionsopCond
 Pointer to operating conditions class. More...
 
 LiquidVelocityPermeabilityDataOut (FuelCell::SystemManagement *, std::vector< boost::shared_ptr< FuelCellShop::Layer::PorousLayer< dim > > >, FuelCell::OperatingConditions *)
 Constructor of our class. More...
 
virtual ~LiquidVelocityPermeabilityDataOut ()
 Destructor. More...
 
virtual std::vector< std::string > get_names () const
 Function that provides the names of the output variables. More...
 
virtual std::vector
< DataComponentInterpretation::DataComponentInterpretation > 
get_data_component_interpretation () const
 Function that states if the output functions are a scalar or a vector. 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 > > > &duh, 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
 Member function used to calculate the velocity and permeability. More...
 

Detailed Description

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

Class used to evaluate the all liquid related the liquid velocity field in all the layers.

Child of DataPostprocessor (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, a pointer to the porous layer object for which you would like to compute the velocity, and a pointer to OperatingConditions object.

* AppCathode<dim>::LiquidVelocityPermeabilityDataOut(const std::string& filename,
*
* // --- Find solution and assign solution interpretations ---
* (...)
*
* // --- Create vector of PostProcessing objects ---
* std::vector< DataPostprocessor<dim>* > PostProcessing;
*
* // --- LiquidVelocityPermeabilityDataOut ---
* PostProcessing.push_back(&LiquidVelocityPermeabilityDataOut);
*
* // Outputting
* DoFApplication<dim>::data_out(filename,
* solution, // This is initialized in the initial part of the data_out function
* PostProcessing);
*
Author
J. Zhou, 2015

Constructor & Destructor Documentation

Constructor of our class.

Destructor.

Member Function Documentation

template<int dim>
virtual void FuelCellShop::PostProcessing::LiquidVelocityPermeabilityDataOut< dim >::compute_derived_quantities_vector ( const std::vector< Vector< double > > &  uh,
const std::vector< std::vector< Tensor< 1, dim > > > &  duh,
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 function used to calculate the velocity and permeability.

Its inputs are

  • a vector representing values of the function (which is here vector-valued) representing the data vector given to DataOut::add_data_vector, evaluated at all evaluation points where we generate output
  • a tensor objects representing the first derivative (not used and not given properly since in the constructor we specified that only solution values need to be updated)

The derived quantities are returned in the computed_quantities vector.

Remember that this function may only use data for which the respective update flag is specified by either the constructor or get_needed_update_flags.

template<int dim>
virtual std::vector<DataComponentInterpretation::DataComponentInterpretation> FuelCellShop::PostProcessing::LiquidVelocityPermeabilityDataOut< dim >::get_data_component_interpretation ( ) const
virtual

Function that states if the output functions are a scalar or a vector.

template<int dim>
virtual std::vector<std::string> FuelCellShop::PostProcessing::LiquidVelocityPermeabilityDataOut< dim >::get_names ( ) const
virtual

Function that provides the names of the output variables.

In this case, current density, overpotential, effectiveness, and oxygen coverages (if applicable). The latter is set to one if the model is macro-homogeneous.

template<int dim>
virtual UpdateFlags FuelCellShop::PostProcessing::LiquidVelocityPermeabilityDataOut< 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::LiquidVelocityPermeabilityDataOut< dim >::porous_layers
private

Pointer to catalyst layer object.

Pointer to system management.


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