I am a beginner with DWSIM, but I see a lot of potential in simulating hydrodynamics effects with pipes.
I am on daily basis using pipe and valves and other equipments and this software could help greatly to establish the entire pressure loss. Meanwhile, I did not see some elements that seem important. I was particularly focusing at this stage on Venturi and Crossover.
Note:
Venturi is a pipe with a restriction and a convergent pipe and divergent pipe or a king of elongated Orifice plate.
Crossover is what I am using to connect pipe of different diameters. It can be going from large to smaller diameter or the opposite.
I dropped an email to Daniel and he was keen to tell me that the best way to approach this will be with Python script. I am not at all familiar with that. I could probably read a file based on my experience with C or Fortran, but I am not sure the learning curve will be steep enough if I start from scrach and I do not want to reinvent the wheel..
My question to all of you:
Have you developed some scripts with Python and may be something similar to what I am looking for? Your help or recommendation is more than welcome.
Cheers,
DrBGP
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Python is very very easy to learn, I think that the most difficult part will be reading from and writing to material streams from inside your script block.
Regards,
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All,
I am a beginner with DWSIM, but I see a lot of potential in simulating hydrodynamics effects with pipes.
I am on daily basis using pipe and valves and other equipments and this software could help greatly to establish the entire pressure loss. Meanwhile, I did not see some elements that seem important. I was particularly focusing at this stage on Venturi and Crossover.
Note:
Venturi is a pipe with a restriction and a convergent pipe and divergent pipe or a king of elongated Orifice plate.
Crossover is what I am using to connect pipe of different diameters. It can be going from large to smaller diameter or the opposite.
I dropped an email to Daniel and he was keen to tell me that the best way to approach this will be with Python script. I am not at all familiar with that. I could probably read a file based on my experience with C or Fortran, but I am not sure the learning curve will be steep enough if I start from scrach and I do not want to reinvent the wheel..
My question to all of you:
Have you developed some scripts with Python and may be something similar to what I am looking for? Your help or recommendation is more than welcome.
Cheers,
DrBGP
Hi Bruno,
As a good starting point you could check the Hydrocyclone and Membrane samples which are distributed with DWSIM.
For a more advanced python script with integration with external libraries, check this article on LinkedIn: https://www.linkedin.com/pulse/integrating-chemical-process-simulator-tensorflow-daniel-medeiros/
Python is very very easy to learn, I think that the most difficult part will be reading from and writing to material streams from inside your script block.
Regards,
Daniel