VirtualFCS.Fluid.ValveCheck

1. Parameters and inputs

The valve inherits its replaceable Medium package and fluid interfaces from Modelica.Fluid.Interfaces.PartialTwoPortTransport.

NameTypeUnitDefaultDescription
m_flow_nominalMedium.MassFlowRatekg/s0.05Reference flow used with dp_nominal to define forward conductance
dp_nominalMedium.AbsolutePressurePa3e4Reference pressure difference used to scale forward conductance
dp_smoothModelica.Units.SI.PressurePa10Width of the smooth transition from closed to forward-conducting operation

Inputs and input-side interfaces

NameDirectionInterfaceUnitDescription
port_aInletFluidPort_aPa; kg/s; J/kgUpstream fluid connection; forward flow is from port_a to port_b

No signal input or opening command is required. The pressure difference across the fluid ports determines the flow. Use positive m_flow_nominal, dp_nominal, and dp_smooth.

2. Model description

ValveCheck is a passive, idealized non-return valve for system-level fluid models. It permits forward flow when the inlet pressure exceeds the outlet pressure and blocks flow when the pressure difference is zero or negative. There is no reverse leakage, fluid storage, actuator dynamics, or opening hysteresis.

The forward characteristic is linear away from zero pressure difference, with a quadratic transition near closure. The transition gives a continuous first derivative at both ends and suppresses state events associated with switching between the flow-law branches. The default inherited setting allowFlowReversal = false is consistent with the one-way characteristic.

The valve transports stream enthalpy without adding heat or shaft work. Composition and trace-substance transport are supplied by the inherited two-port transport equations. This is a conductance model, not a compressible-orifice model with choking or density-dependent flow.

3. Governing equations and references

The pressure difference is dp = port_a.p - port_b.p. The effective forward pressure difference and mass flow are:

dp_forward = 0                              for dp <= 0

dp_forward = dp^2/(2*dp_smooth)              for 0 < dp < dp_smooth

dp_forward = dp - dp_smooth/2               for dp >= dp_smooth

m_flow = (m_flow_nominal/dp_nominal)*dp_forward

port_a.m_flow + port_b.m_flow = 0

port_a.h_outflow = inStream(port_b.h_outflow)

port_b.h_outflow = inStream(port_a.h_outflow)

The piecewise expression is wrapped in smooth(1, noEvent(...)). The smoothing introduces a pressure offset of dp_smooth/2 in the linear branch; consequently m_flow_nominal is a conductance reference, not the exact flow at dp = dp_nominal. There is no finite pressure threshold: any positive dp produces positive flow.

See Modelica.Fluid.Interfaces.PartialTwoPortTransport for inherited connector conventions, mass conservation, and species transport.

4. Outputs

No signal output connectors are declared. The outlet and diagnostic variables are available for connection or result inspection.

NameDirectionInterfaceUnitDescription
port_bOutletFluidPort_bPa; kg/s; J/kgDownstream fluid connection
m_flowMonitored variableMedium.MassFlowRatekg/sInherited mass flow, equal to port_a.m_flow and nonnegative for positive parameter values
dpMonitored variableMedium.PressurePaInherited inlet-to-outlet pressure difference
dp_forwardMonitored variableModelica.Units.SI.PressurePaSmoothed, nonnegative pressure difference used in the forward flow law