Process Simulation Integration to WIX

Job ID: 36811878

Budget: $30 – $250 USD

I am looking for a freelancer who can integrate a process simulation into my existing WIX website. The specific process that needs to be simulated is a Compressor and chiller module.

*PLEASE READ THE WHOLE PROJECT DESCRIPTION*

Requirements:
- Experience in WIX website development
- Knowledge of process simulation software (COCO)
- Ability to create an interactive user interface for the simulation

Ideal Skills:
- Proficiency in WIX website development
- Familiarity with process simulation software
- Experience in creating interactive user interfaces

Please note that I already have a WIX website set up. The main focus of this project is to integrate the process simulation and create an interactive user interface for it. The freelancer should be able to ensure real-time data tracking and customizable visual representation in the simulation.

The User should be able to input :
Stream 1 Mole Fraction : C1, C2, C3, C4, C5, C6, C7, C8, C9 & C10 ( all values should add up to 1, If they don't computer should automatically normalize all values so the total mole fraction of all components is 1)
Stream 1 Pressure ( Barg)
Stream 1 Temperature ( Degrees C)
Stream 1 Flowrate (MMSCFD)

These values will be inputted on Wix. The data inputted should be sent to the COCO Simulation and the simulation should run automatically with the new Data. Simulation will then generate the output stream 10 mole flow (kmol/h) and the inlet stream 1 mole flow (kmol/h)

Way Forward:
Simulation is already created on COCO software and is attached to this project description.

In short:
- create your simulation
- unzip your .fsd file
- all you need for creating your user modified is in the flowsheet.xml file
- write a web api that collects the user input and creates the appropriate flowsheet.xml file
- zip it up to a .fsd file
- run it using COFEStand
- unzip, parse the xml file to obtain the results.

The above is a basic description as per we see fit to move forward.

Code to change .xml flowsheet is per below. we need to link it to a html from wix which takes the data accordingly.

import xml.etree.ElementTree as ET

# Parse the XML file
tree = ET.parse('Flowsheet.xml')
root = tree.getroot()

# Let's say these are the user inputs you've received
user_inputs = {
'pressure': 2200000, # in Pascal
'temperature': 300, # in Kelvin
'molarFlow': 70, # in mol/s
'molefractions': [0.8, 0.09, 0.05, 0.025, 0.01, 0.004, 0.003, 0.001, 0.0002, 0.0001]
# and so on up to c10
}

# Find the '1' stream in the XML and update its properties
for stream in root.findall('stream'):
if stream.get('name') == '1':
stream.find('pressure').text = str(user_inputs['pressure'])
stream.find('temperature').text = str(user_inputs['temperature'])
stream.find('molarFlow').text = str(user_inputs['molarFlow'])

# Update mole fractions
phase = stream.find('phase')
if phase.get('name') == 'Overall':
molefractions = ';'.join(str(f) for f in user_inputs['molefractions'])
phase.find('moleFraction').text = molefractions

# Write the changes back to the file
tree.write('Flowsheet.xml')

An alternative approach would be via the automation API, which in turn your could run via Python. Here's some more info on a similar subject:
http://www.cape-open-forum.org/viewtopic.php?f=5&t=589
Related categories: PHP JavaScript Website Design HTML ASP.NET