Coder Social home page Coder Social logo

lf-santos / dwsimopt Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 5.0 26.78 MB

The 'dwsimopt' is a Python library that automates DWSIM simulations for process optimization.

Home Page: https://lf-santos.github.io/

License: MIT License

Python 100.00%
process-simulation process-simulator optimization optimization-framework dwsim automation process-design optimization-process chemical-engineering chemical-process

dwsimopt's People

Contributors

lf-santos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dwsimopt's Issues

example trouble: Single-mixed refrigerant (SMR) natural gas liquefaction process simulation optimization

Thank you for developing greatful tools!
I've been following the given examples verbatim, but I've encountered an issue as described below. It seems that the 'dof' argument is not being recognized. Are there any potential reasons for this you could think of?
I appreciate your assistance.

# Getting DWSIM path from system path
path2dwsim = []
for k,v in enumerate(os.environ['path'].split(';')):
    if v.find('\DWSIM')>-1:
        path2dwsim = os.path.join(v, '')
if path2dwsim == None:
    path2dwsim = "my_path"

# Loading DWSIM simulation into Python (Simulation object)
#sim_smr = SimulationOptimization(path2sim= os.path.join(dir_path, "examples\\SMR_LNG\\SMR.dwxmz"), 
#                     path2dwsim = path2dwsim)
sim_smr = SimulationOptimization(dof=np.array([]), path2sim= os.path.join(dir_path, "examples\\SMR_LNG\\SMR.dwxmz"), 
                     path2dwsim = path2dwsim)
sim_smr.savepath = os.path.join(dir_path, "examples\\SMR_LNG\\SMR2.dwxmz")
sim_smr.add_refs()
I 

TypeError: init() got an unexpected keyword argument 'dof'``

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.