User Activity

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

    Hello, I'm simulating a process, in which seven different components are involoved. When I try to manually change one of the concentrations and press accept and update, all concentrations, even the one I just set to a fixed value, adjust to have a total sum of one. This is usefull to keep the ratios in balance, but is there a way to only adjust the concentrations of the components, that I have not manipulated and keep the other one constant? I've written the following script to circumnavigate the...

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

    Hello, I'm simulating a process, in which seven different components are involoved. When I try to manually change one of the concentrations and press accept and update, all concentrations, even the one I just set to a fixed value, adjust to have a total sum of one. This is usefull to keep the ratios in balance, but is there a way to only adjust the concentrations of the components, that I have not manipulated and keep the other one constant? I've written the following script to circumnavigate the...

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

    Thanks for the suggestion. I tried to implement it but came accross a limitation while using Calculate() on a Stream Mixer. CalculateFlowsheet2() works just fine, but when I try to solve MIX separately, the outlet is not calculated. Do you know why this is?

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

    Hey, I'm currently working on a dynamic simulation, where each flowsheet object has a defined residence time and signals don't instantly propagate through the whole flowsheet. To achieve this I seperated the flowsheet by disconnecting its components and artificially transfering signals in Scripts, with the delay equaling the residence time. Check out the adjacent file to see an example. Is there a way around this method, say by keeping all connections in the flowsheet and simply solving individual...

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

    Where should I insert dumpbin /DEPENDENTS my.dll It doesn't lead me very far when typed into the script editor, because the program searches python36.dll before accessing the script, so I still get the same old error.

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

    I've taken a look at your article about simulating tensor flows and downloaded WinPython. It was very helpfull advice. I then opened "Biodiesel Combustion (Cantera)", linked the path to python36.dll in global settings as you can see on the screenshot and ran the script to see if it works. It gave me this error: Combustion (Cantera): Unable to load DLL 'python36.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Do you have any idea why the program has problems accessing...

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

    Hey guys, I have a problem concerning the import of packages like numpy and matplotlib.pyplot into Scripts in the newest version of DWSIM. I already tried to reference the file location of python.exe at Global Settings>Miscelaneous>Python Settings>binaries path (I use Spyder in Anaconda). Importing by appending the path to system does also not work for me. import sys sys.path.append("C:Path...") I even attempted to copy all available packages from Anaconda directly to C:\Users\user1\AppData\Local\DWSIM5\Lib...

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

    Hello again Daniel, perfect. Thank you for your help. Just one tiny note. The code left out one component, but by slightly changing the range in three of the four for-loops, to include Methanol as the last object in the list 'cnames', the script correctly displays all concentration profiles I need. import clr import System clr.AddReference('System.Core') clr.ImportExtensions(System.Linq) reactor = Flowsheet.GetFlowsheetSimulationObject("REACTOR") profile = reactor.points cnames = reactor.ComponentConversions.Keys.ToArray()...

View All

Personal Data

Username:
rick-sanchez-ge
Joined:
2019-09-13 11:26:24

Projects

  • No projects to display.

Personal Tools