Hi Daniel,
I want to use the script manager in a simulation and I have a few questions. I read the 'Using the IronPython Script Manager' tutorial, but I couldn't find anything about getting a compound's mass flow or mass fraction. I was able to get the total mass flow of a stream using the property codes . Is there a way to get the mass flow of a specific compound? Also, I see that some unit operations are listed on that property codes page. Using the script feature, is it possible to manipulate any unit operation?
Thank you,
Pilar Dib
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Check the 'Cantera Interop' sample. You should also take a look at the API documentation for the involved objects (MaterialStream, Phase and Compound):
Hi Daniel,
I want to use the script manager in a simulation and I have a few questions. I read the 'Using the IronPython Script Manager' tutorial, but I couldn't find anything about getting a compound's mass flow or mass fraction. I was able to get the total mass flow of a stream using the property codes . Is there a way to get the mass flow of a specific compound? Also, I see that some unit operations are listed on that property codes page. Using the script feature, is it possible to manipulate any unit operation?
Thank you,
Pilar Dib
Check the 'Cantera Interop' sample. You should also take a look at the API documentation for the involved objects (MaterialStream, Phase and Compound):
http://dwsim.inforside.com.br/api_help/html/T_DWSIM_Thermodynamics_Streams_MaterialStream.htm
http://dwsim.inforside.com.br/api_help/html/T_DWSIM_Thermodynamics_BaseClasses_Phase.htm
http://dwsim.inforside.com.br/api_help/html/T_DWSIM_Thermodynamics_BaseClasses_Compound.htm
You can do anything you want using scripts. It is a very powerful feature in DWSIM.
Thank you!
Hi,
Daniel
Can we hope for a tutorial on scripting? Many people like me do not have any idea of scripting.
Thanks and regards
Yes, writing a tutorial for dynamic simulation using scripts is on my "To Do" list.
Hi,
I have problem with dynamic simulation from tutorial. When I try to run scripts by clicking "run script", DWSIM show error :
https://imgur.com/KByEwkk
Sorry if it was noobie question, but It's first time when I try scripts.
The image quality is very low, can you attach it here on this thread?
Image zoom in, when you click on it. Anyway:
Last edit: Bartek 2017-10-31
I had opened the image on my smartphone, maybe it was a bug on the site.
You must run the sample on the new UI, not the classic one. The dynamic tutorial was designed to run on all desktop platforms.