Escolar Documentos
Profissional Documentos
Cultura Documentos
User Guide
Introduction
The DWSIM Standalone Thermodynamics Library is a .NET/Mono managed dynamic link library (DLL) that
exposes DWSIMs thermodynamics engine to external applications using a simple programming interface,
with no dependency on external components.
DWSIM Standalone Thermodynamics Library is free for commercial and non-commercial use. Read the
license.txt file for more details.
Usage
To start using the library, add a reference to DWSIM.Thermodynamics.dll to your project. All calculation
functions will be available in the DTL.Thermodynamics namespace, Calculator class.
Some of the available functions in this library include:
-
Methods
Property and Equilibrium calculation functions require parameters that must be one or more values returned
by
GetPropPackList,
GetCompoundList,
GetPropList,
GetCompoundConstPropList,
GetCompoundTDepPropList, GetCompoundPDepPropList and GetPhaseList. They are selfexplanatory, and will return values in an array of strings.
For example, the PTFlash function requires the name of the Property Package to use, the compound names
and mole fractions, temperature in K, pressure in Pa and you may optionally provide new interaction
parameters that will override the ones used internally by the library. The calculation results will be returned
as a (n+2) x (3) string matrix, where n is the number of compounds. First row will contain the phase names,
the second will contain the phase mole fractions and the other lines will contain the compound mole fractions
in the corresponding phases.
For PH, PS, TVF and PVF flash calculation functions, an additional line is returned that will contain the
temperature in K or pressure in Pa in the last matrix column.
Peng-Robinson (PR)
Peng-RobinsonStryjek-Vera 2
(PRSV2)
Soave-RedlichKwong (SRK)
UNIFAC
UNIFAC-LL
Modified UNIFAC
(Dortmund)
NRTL
UNIQUAC
EOS
EOS
EOS
EOS
PR EOS
PR EOS
PR EOS
PR EOS
PR EOS
Liquid Phases
Enthalpy
Entropy
Cp/Cv
Thermal
Conductivity
Viscosity
Density
Fugacity
Enthalpy
Entropy
Cp/Cv
Thermal
Conductivity
Viscosity
Density
EOS
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
EOS
EOS
EOS
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
EOS
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
EOS
EOS
EOS
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
EOS
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
EOS
EOS
EOS
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
LK
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
EOS
EOS
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
LK
Exp./ElyHanley
Lucas/
JossiStielThodos
PR EOS
UNIFAC
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
LK
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
PR EOS UNIFAC-LL
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
LK
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
PR EOS
MODFAC
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
LK
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
PR EOS
NRTL
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/Ra
ckett
LK
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
PR EOS
UNIQUAC
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/Ra
ckett
Lucas/
JossiStielThodos
EOS
EOS
LK
Exp./
Latini
Exp./
LetsouStiel
EOS/
Rackett
Chao-Seader
EOS
LK
Exp./
Ely-Hanley
Grayson-Streed
EOS
LK
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
EOS
EOS
LK
Exp./
Latini
Exp./
LetsouStiel
Rackett
Lee-Kesler-Plcker
EOS
EOS
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
EOS
EOS
EOS
Exp./
Latini
Exp./
LetsouStiel
Rackett
Raoult's Law
Ideal
Ideal
Exp./
Ely-Hanley
Lucas/
JossiStielThodos
Ideal
Ideal
Ideal
Exp./
Latini
Exp./
LetsouStiel
Rackett
Tables
Tables
Tables
Tables
Tables
Tables
Tables
Tables
Tables
Tables
IAPWS-IF97 Steam
Tables
IP Set #1
IP Set #2
IP Set #3
IP Set #4
PR kij
Not used
Not used
Not used
SRK kij
Not used
Not used
Not used
PRSV2 kij
PRSV2 kji
Not used
Not used
PR kij
Not used
Not used
Not used
UNIFAC
PR kij
Not used
Not used
Not used
UNIFAC-LL
PR kij
Not used
Not used
Not used
PR kij
Not used
Not used
Not used
NRTL
PR kij
NRTL Alpha
UNIQUAC
PR kij
Not used
Chao-Seader
Not used
Not used
Not used
Not used
Grayson-Streed
Not used
Not used
Not used
Not used
LKP kij
Not used
Not used
Not used
Raoult's Law
Not used
Not used
Not used
Not used
Not used
Not used
Not used
Not used
Peng-Robinson (PR)
Soave-Redlich-Kwong (SRK)
Peng-Robinson-Stryjek-Vera 2 (PRSV2)
Lee-Kesler-Plcker