ValveP2_ Gas Method
Calculates the outlet pressure P2 for single-phase gas service given a known mass flow rate
and flow coefficient, using bisection search within the non-choked pressure range.
Definition
Namespace: DWSIM.UnitOperations.UnitOperations
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
The calculated outlet pressure P2 in bar.
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
C#
public Object P2_Gas(
double Wi,
double Kv,
double P1,
double k,
double rho
)VB
Public Function P2_Gas (
Wi As Double,
Kv As Double,
P1 As Double,
k As Double,
rho As Double
) As ObjectParameters
- Wi Double
- Gas mass flow rate in kg/h.
- Kv Double
- Effective flow coefficient (m³/h at 1 bar drop).
- P1 Double
- Inlet pressure in bar.
- k Double
- Ratio of specific heats (Cp/Cv) of the gas.
- rho Double
- Gas density at inlet conditions in kg/m³.
Return Value
ObjectThe calculated outlet pressure P2 in bar.