16 #ifndef _FCST_FUELCELLSHOP_EQUATION_LIQUID_SOURCE_TERMS_EQUATION_H_ 
   17 #define _FCST_FUELCELLSHOP_EQUATION_LIQUID_SOURCE_TERMS_EQUATION_H_ 
   35 namespace FuelCellShop
 
  133             boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData >());
 
  148             virtual void initialize(ParameterHandler& param);
 
  222                                                     double &h_lv,
double &dhlv_dT,
double &Kelvin_factor,
 
  223                                                     double &psat_kelvin, 
double &dpsat_kelvin_dpc, 
double &dpsat_kelvin_dT,
 
  232                 psat_kelvin = psat * Kelvin_factor;
 
  234                 dpsat_kelvin_dT = dpsat_dT * Kelvin_factor 
 
VariableInfo x_water
VariableInfo structure corresponding to "water_molar_fraction". 
Definition: liquid_water_source_terms.h:294
 
boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data
Data object for the application data to be passed to the equation classes. 
Definition: equation_base.h:890
 
std::vector< std::vector< double > > phi_T_cell
 shape functions. 
Definition: liquid_water_source_terms.h:394
 
std::map< unsigned int, double > capillary_pressure_current_flux_map
Definition: liquid_water_source_terms.h:284
 
This class implements a liquid water condensation and evaporation term. 
Definition: liquid_water_source_terms.h:122
 
unsigned int last_iter_cell
Variable used to store the index in cell_info->global_data of the previous Newton solution The soluti...
Definition: liquid_water_source_terms.h:408
 
double k_e
Evaporation rate constant, . 
Definition: liquid_water_source_terms.h:339
 
unsigned int thermal_blockindex_trev
Block index for "temperature_of_REV" corresponding to "Thermal Transport Equation". 
Definition: liquid_water_source_terms.h:329
 
bool Relative_humility_is_set
This is used to check if relative humility is set when not solving water vapor as the solution variab...
Definition: liquid_water_source_terms.h:423
 
void set_relative_humility(double const x_wv)
Set the relative humility value from the operating condition class (using get_x_wv) ...
Definition: liquid_water_source_terms.h:198
 
FuelCell::SystemManagement * system_management
Pointer to the external YourApplication<dim>::system_management object. 
Definition: equation_base.h:798
 
double k_c
Condensation rate constant, . 
Definition: liquid_water_source_terms.h:343
 
double Relative_humility
This is used to return relative humility the when not solving water vapor as the solution variable...
Definition: liquid_water_source_terms.h:418
 
virtual void make_output_types()
This function fills out output_types. 
Definition: liquid_water_source_terms.h:278
 
double rho_l
Density of liquid water, . 
Definition: liquid_water_source_terms.h:347
 
static double PER_C_UNIT3
Definition: fcst_units.h:118
 
virtual void make_assemblers_cell_variable_data(const typename FuelCell::ApplicationCore::DoFApplication< dim >::CellInfo &cell_info, FuelCellShop::Layer::BaseLayer< dim > *const layer)
This function computes  Local CG FEM based assemblers - variable data (cell) . 
 
virtual void make_boundary_types()
This function fills out boundary_types. 
Definition: liquid_water_source_terms.h:272
 
unsigned int fickswater_blockindex_xwater
Block index for "water_molar_fraction" corresponding to "Ficks Transport Equation - water"...
Definition: liquid_water_source_terms.h:304
 
virtual ~LiquidSourceEquation()
Destructor. 
 
std::vector< double > darea_lv_dp_cell
, at all quadrature points in the cell. 
Definition: liquid_water_source_terms.h:367
 
double R()
Universal gas constant, . 
Definition: fcst_constants.h:32
 
static double latentVap_heat(const double &)
Static function to return latent heat of vaporization of water  as a function of input temperature ...
 
This class is created for the objects handed to the mesh loops. 
Definition: mesh_loop_info_objects.h:544
 
virtual void print_equation_info() const 
The function prints out the equation's info about the internal coupling equations with the liquid wat...
 
const double get_Dwater_vapor_saturation_pressure_Dtemperature(const double &temperature) const 
This function returns the first derivative  of the saturation pressure of water vapor. 
 
virtual void make_assemblers_cell_constant_data(const typename FuelCell::ApplicationCore::DoFApplication< dim >::CellInfo &cell_info)
This function computes  Local CG FEM based assemblers - constant data (cell)  and allocates the memor...
 
std::vector< MatrixBlock< FullMatrix< double > > > MatrixVector
The matrix vector used in the mesh loops. 
Definition: matrix_block.h:102
 
unsigned int thermal_blockindex_xwater
Block index for "water_molar_fraction" corresponding to "Thermal Transport Equation". 
Definition: liquid_water_source_terms.h:319
 
LiquidSourceEquation(FuelCell::SystemManagement &system_management, boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data=boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData >())
Constructor. 
 
double p_cell
Total pressure  in the cell. 
Definition: liquid_water_source_terms.h:357
 
std::vector< double > area_lv_cell
Interfacial surface area per unit volume, , at all quadrature points in the cell. ...
Definition: liquid_water_source_terms.h:362
 
VariableInfo t_rev
VariableInfo structure corresponding to "temperature_of_REV". 
Definition: liquid_water_source_terms.h:299
 
std::vector< std::vector< double > > phi_xwater_cell
 shape functions. 
Definition: liquid_water_source_terms.h:385
 
static double deriv_latentVap_heat(const double &)
Static function to return derivative of latent heat of vaporization of water with respect to temperat...
 
double T_constant
This tempearture is used when not solving temperature as the solution variable. 
Definition: liquid_water_source_terms.h:413
 
virtual void initialize(ParameterHandler ¶m)
Initialize parameters. 
 
void get_temp_related_parameters(double Temp, double c_pressure, double &psat, double &dpsat_dT, double &h_lv, double &dhlv_dT, double &Kelvin_factor, double &psat_kelvin, double &dpsat_kelvin_dpc, double &dpsat_kelvin_dT, FuelCellShop::Material::WaterVapor water) const 
Inline function to reduce the repeatability of the code This function is used to compute Kelvin satur...
Definition: liquid_water_source_terms.h:221
 
VariableInfo p_liquid_water
VariableInfo structure corresponding to "liquid_capillary_pressure". 
Definition: liquid_water_source_terms.h:289
 
bool cell_residual_counter
Counter set to TRUE when cell_residual is being assembled. 
Definition: liquid_water_source_terms.h:402
 
virtual void declare_parameters(ParameterHandler ¶m) const 
Declare parameters. 
 
virtual void adjust_internal_cell_couplings(std::vector< couplings_map > &) const 
This function is used to adjust std::vector < internal_cell_couplings >, which is generated after get...
 
const double get_water_vapor_saturation_pressure(const double &temperature) const 
This function returns saturation pressure [Pa] of water vapor. 
 
double get_kcond() const 
Returns condensation rate constant, . 
Definition: liquid_water_source_terms.h:190
 
This is the base class used for all Equation classes. 
Definition: equation_base.h:160
 
IMPORTANT: Add all new solution variables and equations here ! 
Definition: system_management.h:300
 
This simple structure stores certain information regarding a particular variable for the equation (al...
Definition: equation_auxiliaries.h:51
 
unsigned int fickswater_blockindex_pliquid
Block index for "liquid_capillary_pressure" corresponding to "Ficks Transport Equation - water"...
Definition: liquid_water_source_terms.h:309
 
double get_kevap() const 
Returns evaporation rate constant, . 
Definition: liquid_water_source_terms.h:182
 
virtual void make_assemblers_generic_constant_data()
This function computes Local CG FEM based assemblers - constant data (generic). 
 
virtual void assemble_cell_matrix(FuelCell::ApplicationCore::MatrixVector &cell_matrices, const typename FuelCell::ApplicationCore::DoFApplication< dim >::CellInfo &cell_info, FuelCellShop::Layer::BaseLayer< dim > *const layer)
Assemble local cell matrix. 
 
double M_water
Molar weight of water in grams/mole. 
Definition: liquid_water_source_terms.h:334
 
static double PER_UNIT2
Definition: fcst_units.h:110
 
unsigned int fickswater_blockindex_trev
Block index for "temperature_of_REV" corresponding to "Ficks Transport Equation - water"...
Definition: liquid_water_source_terms.h:314
 
BlockVector< double > FEVector
The vector class used by applications. 
Definition: application_data.h:46
 
virtual void assemble_cell_residual(FuelCell::ApplicationCore::FEVector &cell_rhs, const typename FuelCell::ApplicationCore::DoFApplication< dim >::CellInfo &cell_info, FuelCellShop::Layer::BaseLayer< dim > *const layer)
Assemble local cell residual. 
 
Virtual class used to characterize a generic layer interface. 
Definition: base_layer.h:58
 
std::vector< std::vector< double > > phi_p_cell
 shape functions. 
Definition: liquid_water_source_terms.h:376
 
unsigned int thermal_blockindex_pliquid
Block index for "liquid_capillary_pressure" corresponding to "Thermal Transport Equation". 
Definition: liquid_water_source_terms.h:324
 
static double convert(double unitToConvert, double to, double from)
The conversion routine convert(unitToConvert, X, Y) should be read as: 
Definition: fcst_units.h:57
 
This class describes properties of pure WaterVapor. 
Definition: PureGas.h:1134