User Activity

  • Modified a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    Sorry for the late reply. Yes, I was trying to print() something as a check that something is working. Are you saying that a separate Python program can be running and communicate over a COM serial port with an IronPython script that handles the input and outputs from the custom DWSIM unit? EDIT: I realize now that IronPython was running Python 2.7 and so print had to be used instead. Additionally, I was able to connect an IronPython script to an external Python program using socket; however, I'm...

  • Posted a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    Sorry for the late reply. Yes, I was trying to print() something as a check that something is working. Are you saying that a separate Python program can be running and communicate over a COM serial port with an IronPython script that handles the input and outputs from the custom DWSIM unit?

  • Posted a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    Hi Daniel, Thanks for the answer. I've been trying to get the Script Manager working with my code but have been unable to do so. Running scripts with IronPython is working right out of the box, but since it is based on the archaic Python 2.7.12 I would have to make significant changes to my code which was written with Python 3.11 and the versions of the packages required wouldn't be available. I see there is also Python.NET support, which will support up to Python 3.9, however I keep receiving this...

  • Posted a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    I have written a custom transient model in Python for a thermal energy storage system that tracks the internal temperature profile of the tank using the inlet temperature, pressure, and mass flow rate for a time step and subsequently calculates the exit temperature and pressure. I'm trying to figure out how to integrate it into a cycle that would include other dynamic components - such as a pump, turbine, and heat exchanger. Is this something that is possible with DWSIM? I see that there is a Python...

View All

Personal Data

Username:
ckinney
Joined:
2023-10-05 17:36:04.698000

Projects

  • No projects to display.

Personal Tools