VirtualFCS.Electrochemical.Hydrogen.Manifold

Fuel cell manifold

Model Description and References

This is a specialisation of MixingVolume that implements chemical reactions.
The rate of reaction [mol/s] is provided by the r input; this modifies the holdup of each species depending on their stoichiometric coefficient nu and molar masses MMX.

Note that there is no enforcement that the stoichiometric coefficients are balanced: if the reaction is not balanced, the Manifold must be either:
The last case is the one implemented e.g. in fuel cells between anode and cathode.

An unbalanced reaction occuring in isolation is not a physically meaningful model, and will produce nonsensical results, typically with extremely high or low temperatures, often leading to numerical crashes.

Governing Equations

productions[Medium.nX] = r * nu .* MMX;
QuantityDescription
productionsMass production of medium species

Parameters

NameTypeUnitDefaultDescription
energyDynamicsModelica.Fluid.Types.Dynamics-system.energyDynamicsFormulation of energy balance (inherited)
massDynamicsModelica.Fluid.Types.Dynamics-Modelica.Fluid.Types.Dynamics.FixedInitialFormulation of mass balance (inherited)
substanceDynamicsModelica.Fluid.Types.Dynamics-massDynamicsFormulation of substance balance (inherited)
traceDynamicsModelica.Fluid.Types.Dynamics-massDynamicsFormulation of trace substance balance (inherited)
p_startMedium.AbsolutePressurePasystem.p_startStart value of pressure (inherited)
use_T_startBoolean1true= true, use T_start, otherwise h_start (inherited)
T_startMedium.TemperatureKif use_T_start then system.T_start else Medium.temperature_phX(p_start, h_start, X_start)Start value of temperature (inherited)
h_startMedium.SpecificEnthalpyJ/kgif use_T_start then Medium.specificEnthalpy_pTX(p_start, T_start, X_start) else Medium.h_defaultStart value of specific enthalpy (inherited)
X_startMedium.MassFraction[Medium.nX]1Medium.X_defaultStart value of mass fractions m_i/m (inherited)
C_startMedium.ExtraProperty[Medium.nC]-Medium.C_defaultStart value of trace substances (inherited)
allowFlowReversalBoolean1system.allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b) (inherited)
useHeatPortBoolean1false= true, if heatPort is enabled (inherited)
TModelica.Units.SI.TemperatureK293.15Fixed device temperature if useHeatPort = false (inherited)
VModelica.Units.SI.Volumem31E-3Manifold total volume (inherited)
R_flowModelica.Fluid.Types.HydraulicResistance-1000Resistance to mass flow (inherited)
nuReal[Medium.nX]1zeros(Medium.nX)Reaction stoichiometric coefficients
MMXModelica.Units.SI.MolarMass[Medium.nX]kg/molzeros(Medium.nX)Molar masses of components

Interfaces and Connections

NameKindTypeUnitDescription
fluidVolumeInput signalModelica.Units.SI.Volumem3Volume
port_aConnectionModelica.Fluid.Interfaces.FluidPort_aPa; kg/s; J/kgFluid connector a (positive design flow direction is from port_a to port_b)
port_bConnectionModelica.Fluid.Interfaces.FluidPort_bPa; kg/s; J/kgFluid connector b (positive design flow direction is from port_a to port_b)
heatPortConnectionModelica.Thermal.HeatTransfer.Interfaces.HeatPort_aK; WConditional heat port
rInput signalModelica.Blocks.Interfaces.RealInputmol/s-