User Activity

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

    I have a script that runs on sim complete. I would like to manually calculate the sum of massflow of two compounds and display the value in an indicator on the flowsheet. I can get a reference to the indicator but I cannot find a way to write to the indicator value. Is this possible?

  • Posted a comment on discussion Windows Platform (New UI) on DWSIM - Open Source Process Simulator

    Dear Daniel, I am stuck at this problem and I hope you can help. I am trying to run the automation example with Cavett's problem from Excel. But I get a runtime error at LoadFlowsheet. Run-time error: "SkiaSharp.SKTypeface threw an exception" It does not look like it can see the .dwxml file because I get the same error if I input a wrong path. It may be something wrong with my format of the path-string.? I have attached some screendumps to show my settings.

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

    Daniel, that worked ! Thank you very much for the fast support 👍 I have been using DWSIM only a few days and I already have some very nice simulations going. And I have the source code compiled in Visual Studio so I can dig a bit into the code. Very useful.

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

    Hello Daniel, That sound like an acceptable solution. However when I move the code to the script editor and use the exec(code) in the Python Script I get an error. I think I am missing some small simple thing because I get the same error at the first line of code no matter what I put in the script. This error: System.Exception: File "<string>", line 7 feed=ims1 ^ SyntaxError: unexpected token '\r' ---> Microsoft.Scripting.SyntaxErrorException: unexpected token '\r'</string>

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

    I have made my own custom filter UO in a Python script block. It works as I want it for now, but I need about 20 of the same filter-unit in my flowsheet and I want to be able to edit the python code in one place and not have to edit all 20 units every time i need to make a small change to the code. How can this be done? Can I save the custom block as a type somehow?

View All

Personal Data

Username:
esbenj
Joined:
2024-02-19 15:56:03.003000

Projects

  • No projects to display.

Personal Tools