Skip to main content

Client for Simulate 365 Dispatcher

Project description

Simulate365Py is a web-based library designed to access and calculate DWSIM flowsheets from the browser.

Installation

Install package by running pip install simulate365py

Quick Start

In order to use this library with a DWSIM flowsheet, you need access to the Simulate 365 Dashboard.

  1. Sign up via https://simulate365.com/registration/ and activate your account
  2. Access the Simulate 365 Dashboard on https://dashboard.simulate365.com/
  3. Upload your DWSIM flowsheet and follow the documentation on https://simulate365.com/docs/simulate365py/
  4. Run the flowsheet calculation in your Python script

Example

import time
from simulate365py import DispatcherClient, NewJobFromFilterPostModel, JobProcessingStatus

client = DispatcherClient("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")                    
filter_unique_id = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

post_model = NewJobFromFilterPostModel(
    filter_unique_id,
    {
        "N_stages": 25, # Number of stages
        "RD": 3 # Reflux ratio
    }
)

job_id = client.submit_job_from_filter(post_model)
print("Submitted job with ID: " + str(job_id))

while True: # Prints the status of the submitted job
    result = client.get_job_results(job_id)    

    if (result.processing_status != JobProcessingStatus.NotCalculated):
        if (result.processing_status == JobProcessingStatus.Failed):
            print("Job calculation failed. Error message is: \r\n" +  result.error)            
        else:
            print("Received result for job #" + str(job_id))
            for p in result.output_parameters:
                print(p.alias + " = " + str(p.value) + " " + p.unit)
        break

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simulate365py-1.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file simulate365py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: simulate365py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for simulate365py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 329c5f9644ec2c15bc6f2f8ed8f1d8665b837dbb8fd2242e6bb7609418f39721
MD5 444c039f7e6f4bff1778a42078b617db
BLAKE2b-256 e5c5a682fa75953cf419a254c64d160bae14101576f9a972df1cfd5cbd3d8057

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page