Client for Simulate 365 Dispatcher
Project description
Simulate365Py is a web-based library designed to access and calculate DWSIM flowsheets from the browser.
- Website: https://simulate365.com/
- Documentation: https://simulate365.com/docs/simulate365py/
- Support: https://support.capital-gain.eu/
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.
- Sign up via https://simulate365.com/registration/ and activate your account
- Access the Simulate 365 Dashboard on https://dashboard.simulate365.com/
- Upload your DWSIM flowsheet and follow the documentation on https://simulate365.com/docs/simulate365py/
- 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
329c5f9644ec2c15bc6f2f8ed8f1d8665b837dbb8fd2242e6bb7609418f39721
|
|
| MD5 |
444c039f7e6f4bff1778a42078b617db
|
|
| BLAKE2b-256 |
e5c5a682fa75953cf419a254c64d160bae14101576f9a972df1cfd5cbd3d8057
|