VirtualFCS.Fluid.MembraneManifold

Manifold with a selective membrane source

Model Description and References

This component extends the VirtualFCS fuel-cell Manifold directly. It adds a signed selective membrane source to the manifold's existing mass, species, and enthalpy balances. A positive membrane_m_flow adds mass to the volume and a negative value removes it. The original manifold model is otherwise unchanged.


The inherited manifold determines port outflow states and provides the existing hydraulic resistance, fluid holdup, and conditional heat port. This component is used as the wet-side and dry-side cell volume in Humidifier, where the membrane inputs are driven by a paired MembraneTransfer instance.

Governing Equations

-

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 (inherited)
MMXModelica.Units.SI.MolarMass[Medium.nX]kg/molzeros(Medium.nX)Molar masses of components (inherited)

Interfaces and Connections

NameKindTypeUnitDescription
membrane_m_flowInput signalModelica.Units.SI.MassFlowRatekg/sSigned mass flow through the membrane; positive into the volume
membrane_h_outflowInput signalModelica.Units.SI.SpecificEnthalpyJ/kgSpecific enthalpy carried by membrane mass
membrane_XiInput signalModelica.Units.SI.MassFraction[Medium.nXi]1Independent composition carried by membrane mass
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.RealInput--