Menu

Manipulate material stream in script manager

Pilar Dib
2017-08-07
2017-10-30
  • Pilar Dib

    Pilar Dib - 2017-08-07

    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

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-07

    You can do anything you want using scripts. It is a very powerful feature in DWSIM.

     
  • Pilar Dib

    Pilar Dib - 2017-08-09

    Thank you!

     
  • Nemmani Rama Gopal

    Hi,
    Daniel

    Can we hope for a tutorial on scripting? Many people like me do not have any idea of scripting.

    Thanks and regards

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-09-18

    Yes, writing a tutorial for dynamic simulation using scripts is on my "To Do" list.

     
  • Bartek

    Bartek - 2017-10-30

    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.

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-10-30

    The image quality is very low, can you attach it here on this thread?

     
  • Bartek

    Bartek - 2017-10-31

    Image zoom in, when you click on it. Anyway:

     

    Last edit: Bartek 2017-10-31
    • Daniel Medeiros

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

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.