Menu

Newbie - Wants to create custom objects

2015-02-26
2015-03-02
  • Richard Schmidt

    Richard Schmidt - 2015-02-26

    Hi everybody. I'm new to this tool, and I'm excited and impressed.

    I have a need to model fluids through a sample system for process analyzers.
    To do this, I need to create models for...

    Cyclonic Filters
    Tubing of different sizes
    Filters of different sizes
    Pressure regulators
    Vaporizing pressure regulators
    Rotameters

    blah, blah, blah.

    Can someone help me get started?
    I need to learn how to create new objects and assign CV values, or energy streams.

    I can reciprocate by providing the library of hardware when I finish.

    Thanks, and keep awesome!

    Rich

     
  • Daniel Medeiros

    Daniel Medeiros - 2015-02-26

    Hi Richard,

    DWSIM already has models for a filter and for tubings. The filter models support a solid phase but the tubing doesn't. For the other models you can use the IronPython Custom Unit Operation, where you'll write your model using the IronPython language, or you can use the Excel Unit Operation, where your model will be writeen and run in a Excel Spreadsheet, external to your simulation.

    The help file which ships with DWSIM has more information about these features.

    Regards,
    Daniel

     
  • Richard Schmidt

    Richard Schmidt - 2015-03-02

    Thanks, I'll work on your suggestions.

    Is there a way to manipulate the Cv of the valve object?

     
  • Richard Schmidt

    Richard Schmidt - 2015-03-02

    Wow! I just looked where you directed my attention.
    It's wonderful!
    I'd love to know more about how the pressure drop calculations are made.
    This helps me a great deal.
    Also, the community that builds sample systems for process analyzers has a great need for modeling. I'd love to help build examples that support the designs of a sample system.

    Thanks again!

     
  • Daniel Medeiros

    Daniel Medeiros - 2015-03-02

    Hi Richard,

    DWSIM's source code is online, you can take a look at it by browsing the GitHub repository: https://github.com/DanWBR/dwsim3

    The pressure drop models are here: https://github.com/DanWBR/dwsim3/tree/master/DWSIM/Objects/FlowPackages

    If you need to see the theory behind, you can read the Technical Manual which goes with DWSIM.

    Regards
    Daniel

     

    Last edit: Daniel Medeiros 2015-03-02

Log in to post a comment.