Activity for Patrick Veiltl

  • Patrick Veiltl Patrick Veiltl modified a comment on discussion Windows Platform (New UI)

    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...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Windows Platform (New UI)

    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...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    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?

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    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...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    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.

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    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...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    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...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Windows Platform (New UI)

    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()...

  • Patrick Veiltl Patrick Veiltl modified a comment on discussion Windows Platform (New UI)

    Hello Daniel, first things first, I tried out the new update and I have to congratulate you. The interface and design are much improved and when it comes to calculation times of scripted programs it is astonishingly quicker then 5.7. Thanks a lot for your hard work. Back to business. The script you posted works and I get to simulate and manipulate the charts as wished. But there's still an issue with the value output. As you can see in my other simulation, which is based on the following paper https://terpconnect.umd.edu/~nsw/chbe446/VandenBussche-syngas2MeOH.pdf...

  • Patrick Veiltl Patrick Veiltl modified a comment on discussion Windows Platform (New UI)

    Hello Daniel, first things first, I tried out the new update and I have to congratulate you. The interface and design are much improved and when it comes to calculation times of scripted programs it is astonishingly quicker then 5.7. Thanks a lot for your hard work. Back to business. The script you posted works and I get to simulate and manipulate the charts as wished. But there's still an issue with the value output. As you can see in my other simulation, which is based on the following paper https://terpconnect.umd.edu/~nsw/chbe446/VandenBussche-syngas2MeOH.pdf...

  • Patrick Veiltl Patrick Veiltl modified a comment on discussion Windows Platform (New UI)

    Hello Daniel, first things first, I tried out the new update and I have to congratulate you. The interface and design are much improved and when it comes to calculation times of scripted programs it is astonishingly quicker then 5.7. Thanks a lot for your hard work. Back to business. The script you posted works and I get to simulate and manipulate the charts as wished. But there's still an issue with the value output. As you can see in my other simulation, which is based on the following paper https://terpconnect.umd.edu/~nsw/chbe446/VandenBussche-syngas2MeOH.pdf...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Windows Platform (New UI)

    Hello Daniel, first things first, I tried out the new update and I have to congratulate you. The interface and design are much improved and when it comes to calculation times of scripted programs it is astonishingly quicker then 5.7. Thanks a lot for your hard work. Back to business. The script you posted works and I get to simulate and manipulate the charts as wished. But there's still an issue with the value output. As you can see in my other simulation, which is based on the following paper https://terpconnect.umd.edu/~nsw/chbe446/VandenBussche-syngas2MeOH.pdf...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Windows Platform (New UI)

    Hello Community, I'm creating a heterogeneous catalytic Methanol reactor in my current simulation and attempting to display the chart containing Concentration and Temperature Profiles. I've finished the program but two issues emerged. All concentration curves are colored identically and therefore indistinguishable. I see no menu where I could adjust the colors or change other important things, like selectively plotting certain concentrations while ignoring others. I can change the units of concentration...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Ok, I will certainly take a look at it. Thank you both a lot for your support.

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Yes this definetly helps, thank you Luca! My project does indeed include accessing and tweaking reaction parameters, especially the "Conversion Expression" of some main chemical reactions . Does the scheme you wrote translate to a Conversion Reactor and can I directly change the expressions in my dynamic simulation?

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Thanks a lot Luca and Daniel, your solutions really helped me get a lot further. Daniel, as I understand your response, the debug mode is only availible in DWSIM and not in New UI right. I have solely been working on New UI, so I have some open questions. The window "Variables" only appears shortly after I press "debug" and doesn't stay open, how do I access it? Building on Lucas answer, about displaying the attributes of MassFlows, I need to ask how to open the list of attributes of Flowsheet Objects...

  • Patrick Veiltl Patrick Veiltl modified a comment on discussion Python Scripting

    Hello Community, I'm currently trying to create a dynamic simulation by familiarizing myself with simple process simulations. I can plot simple values like Temperature, Pressure and Massflow, because Daniel referenced them in various examples on the infosite. When it comes to parameters like phase count of a fluid, concentration of a certain compound in the gaseous phase or the removed heat of a cooling block I run into the problem of not knowing the specific description I have to use in my scripts...

  • Patrick Veiltl Patrick Veiltl modified a comment on discussion Python Scripting

    Hello Community, I'm currently trying to create a dynamic simulation by familiarizing myself with simple process simulations. I can plot simple values like Temperature, Pressure and Massflow, because Daniel referenced them in various examples on the infosite. When it comes to parameters like phase count of a fluid, concentration of a certain compound in the gaseous phase or the removed heat of a cooling block I run into the problem of not knowing the specific description I have to use in my scripts...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Hello Community, I'm currently trying to create a dynamic simulation by familiarizing myself with simple process simulations. I can plot simple values like Temperature, Pressure and Massflow, because Daniel referenced them in various examples on the infosite. When it comes to parameters like phase count of a fluid, concentration of a certain compound in the gaseous phase or the removed heat of a cooling block I run into the problem of not knowing the specific description I have to use in my scripts...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Thank you Daniel, the files you sent me worked perfectly.

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    This is my result of "RunDynamicProcess_ClosedLoop" with "Update and Run Asynch"

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Does the progam actually calculate Outlet Temperatures with this formula, or does it get the value directly from HX-01? if (deltat <= delay1 and t0 > 0.0): hx.ColdSideOutletTemperature = hx.ExtraProperties.ColdFluidPrePerturbationOutletTemperature + (deltat/delay1)**2 * (hx.ColdSideOutletTemperature - hx.ExtraProperties.ColdFluidPrePerturbationOutletTemperature) It seems as if by calculating the Outlet.Temperatures this way, the start value ColdFluidPrePerturbationOutletTemperature isn't changed...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    I downloaded the new file and checked if Flowsheet.RequestCalculation() is replaced by Flowsheet.SolveFlowsheet2() Still the same problem. The Outlet Temperatures don't change.

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Yes. I run RunDynamicProcess_OpenLoop asynchyronously.

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Thanks, I downloaded the files you uploded on the page 2 and 3 respectively. The simulation runs succesfully, but two new problems emerged. The graph for Outlet.Temperature(t) that gets displayed after the simulation, doesn't show a change in temperature for either fluid. Both Outlet Temperatures stay at Pre-Pertubation-Temperature. This problem is found in both files on page 2 and 3. The other problem concerns the calculation of the cold water mass flow, which diverges to infinity. This solely happens...

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    It's the script "RunDynamicProcess_OpenLoop". The error immeadiatly appears when I press "Update and Run (Asynch)".

  • Patrick Veiltl Patrick Veiltl posted a comment on discussion Python Scripting

    Hello Daniel, I'm currently trying to create a dynamic simulation with the newest version of DWSIM (5.7) and came accross your tutorial (http://dwsim.inforside.com.br/wiki/index.php?title=Dynamic_Simulation_Tutorial_with_DWSIM_and_Python,_Part_2:_Building_the_Dynamic_Model). I followed all the instructions, but I get the following error report: [13.09.2019 13:32:39] Error running script: Traceback (most recent call last): File "<string>", line 16, in <module> File "<string>", line 21, in <module>...

1