ValveP2TwoPhase Method

Calculates the outlet pressure P2 for two-phase service given a known mass flow rate, inlet conditions and flow coefficient using bisection search.

Definition

Namespace: DWSIM.UnitOperations.UnitOperations
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
public double P2TwoPhase(
	double Wi,
	double Kv,
	double P1,
	double rhog,
	double rhol,
	double k,
	double Pv,
	double Pc,
	double massfrac_gas,
	double massfrac_liq
)

Parameters

Wi  Double
Total mass flow rate in kg/h.
Kv  Double
Effective flow coefficient (m³/h at 1 bar drop).
P1  Double
Inlet pressure in bar.
rhog  Double
Vapour phase density at inlet in kg/m³.
rhol  Double
Liquid phase density at inlet in kg/m³.
k  Double
Ratio of specific heats (Cp/Cv) of the vapour phase.
Pv  Double
Liquid vapour pressure at inlet temperature in bar.
Pc  Double
Mixture critical pressure in bar.
massfrac_gas  Double
Mass fraction of the vapour phase.
massfrac_liq  Double
Mass fraction of the liquid phase.

Return Value

Double
The calculated outlet pressure P2 in bar.

See Also