Manifold with a selective membrane source
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.
Humidifier, where the membrane inputs are driven by a paired MembraneTransfer instance.-
| Name | Type | Unit | Default | Description |
|---|---|---|---|---|
energyDynamics | Modelica.Fluid.Types.Dynamics | - | system.energyDynamics | Formulation of energy balance (inherited) |
massDynamics | Modelica.Fluid.Types.Dynamics | - | Modelica.Fluid.Types.Dynamics.FixedInitial | Formulation of mass balance (inherited) |
substanceDynamics | Modelica.Fluid.Types.Dynamics | - | massDynamics | Formulation of substance balance (inherited) |
traceDynamics | Modelica.Fluid.Types.Dynamics | - | massDynamics | Formulation of trace substance balance (inherited) |
p_start | Medium.AbsolutePressure | Pa | system.p_start | Start value of pressure (inherited) |
use_T_start | Boolean | 1 | true | = true, use T_start, otherwise h_start (inherited) |
T_start | Medium.Temperature | K | if use_T_start then system.T_start else Medium.temperature_phX(p_start, h_start, X_start) | Start value of temperature (inherited) |
h_start | Medium.SpecificEnthalpy | J/kg | if use_T_start then Medium.specificEnthalpy_pTX(p_start, T_start, X_start) else Medium.h_default | Start value of specific enthalpy (inherited) |
X_start | Medium.MassFraction[Medium.nX] | 1 | Medium.X_default | Start value of mass fractions m_i/m (inherited) |
C_start | Medium.ExtraProperty[Medium.nC] | - | Medium.C_default | Start value of trace substances (inherited) |
allowFlowReversal | Boolean | 1 | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) (inherited) |
useHeatPort | Boolean | 1 | false | = true, if heatPort is enabled (inherited) |
T | Modelica.Units.SI.Temperature | K | 293.15 | Fixed device temperature if useHeatPort = false (inherited) |
V | Modelica.Units.SI.Volume | m3 | 1E-3 | Manifold total volume (inherited) |
R_flow | Modelica.Fluid.Types.HydraulicResistance | - | 1000 | Resistance to mass flow (inherited) |
nu | Real[Medium.nX] | 1 | zeros(Medium.nX) | Reaction stoichiometric coefficients (inherited) |
MMX | Modelica.Units.SI.MolarMass[Medium.nX] | kg/mol | zeros(Medium.nX) | Molar masses of components (inherited) |
| Name | Kind | Type | Unit | Description |
|---|---|---|---|---|
membrane_m_flow | Input signal | Modelica.Units.SI.MassFlowRate | kg/s | Signed mass flow through the membrane; positive into the volume |
membrane_h_outflow | Input signal | Modelica.Units.SI.SpecificEnthalpy | J/kg | Specific enthalpy carried by membrane mass |
membrane_Xi | Input signal | Modelica.Units.SI.MassFraction[Medium.nXi] | 1 | Independent composition carried by membrane mass |
fluidVolume | Input signal | Modelica.Units.SI.Volume | m3 | Volume |
port_a | Connection | Modelica.Fluid.Interfaces.FluidPort_a | Pa; kg/s; J/kg | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Connection | Modelica.Fluid.Interfaces.FluidPort_b | Pa; kg/s; J/kg | Fluid connector b (positive design flow direction is from port_a to port_b) |
heatPort | Connection | Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | K; W | Conditional heat port |
r | Input signal | Modelica.Blocks.Interfaces.RealInput | - | - |