Hi Daniel, For some time I am using DWSIM Automation with Python on Windows successful. Thanks to you and all related developers! But, if I am trying to realize something on Linux the following error appears: " Traceback (most recent call last): File "water.py", line 19, in <module> interface = dwa.Automation() System.TypeLoadException: Could not load type of field 'DWSIM.My.MyProject:m_ComputerObjectProvider' (0) due to: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral,...
Dear Daniel, Thank you for the quick answering. Did I understand correctly, there is no other option to open and execute a DWSIM flowsheet via CMD than to use the XML in- and output files as argument for the DWSIM.exe? I think I expressed myself unclear, sorry for that. My intention was not to extract an ironpython script from a closed DWSIM model file. What I want to do is execute a DWSIM simulation that is internally initialized and controlled by an ironpython script. So I could avoid opening DWSIM...
Dear Daniel, I have some questions related to the DWSIM command line modus: Is there a way to start and calculate an existing DWSIM model (flowsheet) via the command line without having to open DWSIM manually? And is it possible to call on and to run a DWSIM internal IronPython script that is embedded in DWSIM flowsheet via cmd without opening DWSIM manually? I found a command in the DWSIM source code to execute a flowsheet via the cmd; however, using this command (e.g.: DWSIM.exe -commandline -nosplash...
Hi Daniel, thanks a lot! Regards, Natalie
Hi Daniel, again, thanks for your reply. I have tried to work out a solution according to your suggestion; unfortunately, I could not get it running. Is it possible you send me a short Python syntax example, where e.g., a property value of an arbitrary object contained in another DWSIM flowsheet (e.g. DWSIM subflowsheet) is modified or set in the script command? Thank you and kind regards, Natalie
Hi Daniel, ok, thank you for the testing and your feedback! Regards, Natalie
Here is the related flowsheet
Hi Daniel, comparing the computing time of the attached DWSIM flowsheet on Linux (Ubuntu and Debian) and Windows OPs with the current Mono version 5.1 update 12, my colleague and I realized that on a Windows OP, the attached injection part solves about seven times faster than on Linux OPs (170 versus 25 seconds). Reducing the components of the applied gas composition (from 7 to 2 components), we decreased computing time for the injection part to 55 seconds on the Linux OPs. On the Windows OP there...