16 #ifndef _FCST_FUELCELLSHOP_EQUATION_CAPILLARY_PRESSURE_EQUATION_H_
17 #define _FCST_FUELCELLSHOP_EQUATION_CAPILLARY_PRESSURE_EQUATION_H_
33 namespace FuelCellShop
49 boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData >());
64 virtual void initialize(ParameterHandler& param);
std::vector< Tensor< 2, dim > > dT_rhok_mu_cell
Definition: capillary_transport_equation.h:315
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_assemblers_bdry_variable_data(const typename FuelCell::ApplicationCore::DoFApplication< dim >::FaceInfo &bdry_info, FuelCellShop::Layer::BaseLayer< dim > *const layer)
This function computes Local CG FEM based assemblers - variable data (boundary) .
VariableInfo t_rev
VariableInfo structure corresponding to "temperature_of_REV".
Definition: capillary_transport_equation.h:226
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
virtual void assemble_bdry_matrix(FuelCell::ApplicationCore::MatrixVector &bdry_matrices, const typename FuelCell::ApplicationCore::DoFApplication< dim >::FaceInfo &bdry_info, FuelCellShop::Layer::BaseLayer< dim > *const layer)
Assemble local boundary matrix.
std::map< unsigned int, double > capillary_pressure_current_flux_map
Definition: capillary_transport_equation.h:131
unsigned int thermal_blockindex_trev
Block index for "temperature_of_REV" corresponding to "Thermal Transport Equation".
Definition: capillary_transport_equation.h:256
double get_kevap() const
Returns evaporation rate constant, .
Definition: capillary_transport_equation.h:113
std::vector< std::vector< double > > phi_xwater_cell
shape functions.
Definition: capillary_transport_equation.h:336
virtual void declare_parameters(ParameterHandler ¶m) const
Declare parameters.
unsigned int last_iter_cell
Variable used to store the index in cell_info->global_data of the previous Newton solution The soluti...
Definition: capillary_transport_equation.h:377
FuelCell::SystemManagement * system_management
Pointer to the external YourApplication<dim>::system_management object.
Definition: equation_base.h:798
double M_water
Molar weight of water in grams/mole.
Definition: capillary_transport_equation.h:261
VariableInfo p_liquid_water
VariableInfo structure corresponding to "liquid_water_saturation".
Definition: capillary_transport_equation.h:216
double p_cell
Total pressure in the cell.
Definition: capillary_transport_equation.h:294
double k_sat
Definition: capillary_transport_equation.h:282
unsigned int fickswater_blockindex_xwater
Block index for "water_molar_fraction" corresponding to "Ficks Transport Equation - water"...
Definition: capillary_transport_equation.h:231
unsigned int last_iter_bdry
Definition: capillary_transport_equation.h:378
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...
double rho_l
Density of liquid water, .
Definition: capillary_transport_equation.h:280
double get_kcond() const
Returns condensation rate constant, .
Definition: capillary_transport_equation.h:121
virtual void make_boundary_types()
This function fills out boundary_types.
Definition: capillary_transport_equation.h:198
double k_e
Evaporation rate constant, .
Definition: capillary_transport_equation.h:266
virtual void initialize(ParameterHandler ¶m)
Initialize parameters.
std::vector< Tensor< 2, dim > > rhok_mu_cell_bdry
Definition: capillary_transport_equation.h:311
Definition: capillary_transport_equation.h:38
unsigned int fickswater_blockindex_pliquid
Block index for "liquid_water_saturation" corresponding to "Ficks Transport Equation - water"...
Definition: capillary_transport_equation.h:236
This class is created for the objects handed to the mesh loops.
Definition: mesh_loop_info_objects.h:544
std::vector< double > area_lv_cell
Interfacial surface area per unit volume, , at all quadrature points in the cell. ...
Definition: capillary_transport_equation.h:299
virtual void make_assemblers_bdry_constant_data(const typename FuelCell::ApplicationCore::DoFApplication< dim >::FaceInfo &bdry_info)
This function computes Local CG FEM based assemblers - constant data (boundary) and allocates the m...
double T_constant
This tempearture is used when not solving temperature as the solution variable.
Definition: capillary_transport_equation.h:383
std::vector< MatrixBlock< FullMatrix< double > > > MatrixVector
The matrix vector used in the mesh loops.
Definition: matrix_block.h:102
double k_sat_bdry
Definition: capillary_transport_equation.h:284
std::vector< double > darea_lv_dp_cell
, at all quadrature points in the cell.
Definition: capillary_transport_equation.h:303
VariableInfo x_water
VariableInfo structure corresponding to "water_molar_fraction".
Definition: capillary_transport_equation.h:221
unsigned int thermal_blockindex_xwater
Block index for "water_molar_fraction" corresponding to "Thermal Transport Equation".
Definition: capillary_transport_equation.h:246
bool cell_residual_counter
Counter set to TRUE when cell_residual is being assembled.
Definition: capillary_transport_equation.h:371
virtual void assemble_bdry_residual(FuelCell::ApplicationCore::FEVector &bdry_rhs, const typename FuelCell::ApplicationCore::DoFApplication< dim >::FaceInfo &bdry_info, FuelCellShop::Layer::BaseLayer< dim > *const layer)
Assemble local boundary residual.
virtual void print_equation_info() const
The function prints out the equation's info.
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 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.
std::vector< std::vector< Tensor< 1, dim > > > grad_phi_p_cell
shape function gradients.
Definition: capillary_transport_equation.h:354
This is the base class used for all Equation classes.
Definition: equation_base.h:160
std::vector< std::vector< double > > phi_T_cell
shape functions.
Definition: capillary_transport_equation.h:345
CapillaryPressureEquation(FuelCell::SystemManagement &system_management, boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data=boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData >())
Constructor.
IMPORTANT: Add all new solution variables and equations here !
Definition: system_management.h:300
virtual void make_internal_cell_couplings()
This function fills out internal_cell_couplings.
This simple structure stores certain information regarding a particular variable for the equation (al...
Definition: equation_auxiliaries.h:51
unsigned int thermal_blockindex_pliquid
Block index for "liquid_water_saturation" corresponding to "Thermal Transport Equation".
Definition: capillary_transport_equation.h:251
double k_c
Condensation rate constant, .
Definition: capillary_transport_equation.h:270
unsigned int fickswater_blockindex_trev
Block index for "temperature_of_REV" corresponding to "Ficks Transport Equation - water"...
Definition: capillary_transport_equation.h:241
std::vector< std::vector< Tensor< 1, dim > > > grad_phi_T_cell
shape function gradients.
Definition: capillary_transport_equation.h:363
std::vector< std::vector< double > > phi_p_cell_bdry
Definition: capillary_transport_equation.h:327
virtual void make_output_types()
This function fills out output_types.
Definition: capillary_transport_equation.h:206
BlockVector< double > FEVector
The vector class used by applications.
Definition: application_data.h:46
virtual ~CapillaryPressureEquation()
Destructor.
virtual void make_assemblers_generic_constant_data()
This function computes Local CG FEM based assemblers - constant data (generic).
double p_channel_GDL
The boundary condition term which indicates the capillary pressure in the channel.
Definition: capillary_transport_equation.h:275
Virtual class used to characterize a generic layer interface.
Definition: base_layer.h:58
std::vector< Tensor< 2, dim > > rho_mu_dk_dp_cell
Definition: capillary_transport_equation.h:313
std::vector< Tensor< 2, dim > > rhok_mu_cell
, at all quadrature points in the cell.
Definition: capillary_transport_equation.h:309
std::vector< std::vector< double > > phi_p_cell
shape functions.
Definition: capillary_transport_equation.h:325