Skip to content

Instantly share code, notes, and snippets.

View andr1976's full-sized avatar

Anders Andreasen andr1976

  • Ramboll Energy
  • Esbjerg, Denmark
View GitHub Profile
@andr1976
andr1976 / dtl_pr.py
Created November 10, 2020 12:40
Using DWSIM Standalone Thermodynamics Library in Python with Python.NET - Peng-Robinson
import clr, array
from System import String, Double, Array, Reflection, Exception
dtlpath = "C:\\Users\name\\Folder\\"
clr.AddReference(dtlpath + "DWSIM.Thermodynamics.StandaloneLibrary.dll")
from DWSIM.Thermodynamics import Streams, PropertyPackages, CalculatorInterface
from DWSIM.Interfaces.Enums import FlashCalculationType