Click or drag to resize

CalculatorPSFlash(PropertyPackage, Int32, Double, Double, String, Double, Object, Object, Object, Object, Double) Method

Calculates a PS Flash using the referenced Property Package.

Namespace: DWSIM.Thermodynamics.CalculatorInterface
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax
[DispIdAttribute(33)]
public Object[,] PSFlash(
	PropertyPackage proppack,
	int flashalg,
	double P,
	double S,
	string[] compounds,
	double[] molefractions,
	Object ip1 = null,
	Object ip2 = null,
	Object ip3 = null,
	Object ip4 = null,
	double InitialTemperatureEstimate = 0
)
Request Example View Source

Parameters

proppack  PropertyPackage
A reference to the Property Package object to use.
flashalg  Int32
[DEPRECATED] Flash Algorithm (2 = Global Def., 0 = NL VLE, 1 = IO VLE, 3 = IO VLLE, 4 = Gibbs VLE, 5 = Gibbs VLLE, 6 = NL VLLE, 7 = NL SLE, 8 = NL Immisc., 9 = Simple LLE, 10 = Nested Loops SVLLE, 11 = Gibbs Minimization SVLLE)
P  Double
Pressure in Pa.
S  Double
Mixture Mass Entropyin kJ/[kg.K].
compounds  String
Compound names.
molefractions  Double
Compound mole fractions.
ip1  Object  (Optional)
Interaction Parameters Set #1.
ip2  Object  (Optional)
Interaction Parameters Set #2.
ip3  Object  (Optional)
Interaction Parameters Set #3.
ip4  Object  (Optional)
Interaction Parameters Set #4.
InitialTemperatureEstimate  Double  (Optional)
Initial estimate for the temperature, in K.

Return Value

Object
A matrix containing phase fractions and compound distribution in mole fractions.

Implements

Calculator_CalculatorPSFlash(PropertyPackage, Int32, Double, Double, String, Double, Object, Object, Object, Object, Double)
See Also