OLI Calculations in SysCAD - OLI Systems...OLI Simulation Conference 2016 Introduction to SysCAD...

21
OLI Simulation Conference 2016 Innovative Software for Plant Simulation OLI Calculations in SysCAD Keith Armstrong – KWA Kenwalt Australia OLI Conference Presentation, October 2016

Transcript of OLI Calculations in SysCAD - OLI Systems...OLI Simulation Conference 2016 Introduction to SysCAD...

OLI Simulation Conference 2016

Innovative Software for Plant Simulation

OLI Calculations in SysCAD

Keith Armstrong – KWA Kenwalt Australia

OLI Conference Presentation, October 2016

OLI Simulation Conference 2016

Introduction to SysCAD

• Flowsheet based simulator software for Steady State and Dynamic applications

• Primarily minerals processing

• Used in Design and Operations

• Wide range of project sizes, complexity and applications

• Open Systems approach – Various Integration Solutions are possible

OLI Simulation Conference 2016

Why integrate OLI?

• Difficult to find suitable thermodynamic property models

• Require better prediction of properties, in particular pH and solubility

• OLI are leaders in electrolyte simulation technology

• Increasing number of requests about possible integration

• Looking for flexibility and best of both worlds

OLI Simulation Conference 2016

Why now?

• August 2016: Observed awkward use of OLI Studio and SysCAD by client:

– Use OLI Studio (Isothermal Singlepoint)

– Copy and paste to Excel, manipulate data

– Paste to SysCAD, solve and observe

– Copy to Excel, back to Studio

– Repeat

• October 2016: OLI Simulation User Conference

– Alliance Partner

– Invitation to present

OLI Simulation Conference 2016

Implementation

• The two toolkits:

– OLI Engine: Developer Edition

– SysCAD Model Developers Kit (SMDK)

• OLI library with API, documentation and example

• SysCAD libraries designed for creating add-ons

– Unit operations

– Property models

OLI Simulation Conference 2016

Demonstrate by example

• Practical example for testing and comparison

• Potash example from 2014 OLI Conference

• SysCAD is used in Potash with industry properties (D’Ans)

OLI Simulation Conference 2016

OLI Potash Chemical Model

OLI Simulation Conference 2016

Development Walk ThroughGetting Started

• What can we achieve in a couple of weeks?

• 1) Can we call OLI Engine from SysCAD?

– Use OLI example and documentation

– Implement hardwired call from SysCAD add-on

• 2) Need to select chemistry model?

– Manage initialisation and licensing

– Manage selecting and loading chemistry model

OLI Simulation Conference 2016

SysCAD - Chemical Model

OLI Simulation Conference 2016

Development Walk ThroughFirst OLI Calculations

• 3) Can we enter some data and perform a calculation?

– Implement a stand alone “Test Sample” Unit

– Compare OLI Studio Isothermal calculation

OLI Simulation Conference 2016

Sample Calculation in SysCAD

OLI Simulation Conference 2016

Development Walk ThroughMapping Species

• 4) How do we map species?

– SysCAD generally uses Molecular (Apparent) Species

– Manually map SysCAD Stream to OLI InFlows (Components)

– Manually map OLI OutFlows to SysCAD Streams

• 5) Improving species mapping?

– Manage changing the chemistry model

– Implement automated matching using MW

• 6) What to do with mismatches in mapping?

– Expand SysCAD Species list

– Bypass for OLI Calculations

OLI Simulation Conference 2016

Chemistry Model in SysCAD and Mapping Species

OLI Simulation Conference 2016

Development Walk ThroughFirst Calulations in Flowsheet

• 7) First Unit operation in a stream?

– Map Stream to Inflows

– Call OLI IsoThermal calculation

– Display Equilibrium Composition and calculation parameters

– Side calculation for measurement displays, no alteration in outlet stream

OLI Simulation Conference 2016

Stream Side Calculation

OLI Simulation Conference 2016

Development Walk ThroughFirst Useful Unit Operation

• 7) Adjust outflows (Reactor)?

– OLI gives Equilibrium composition

– Mass balance only possible if OutFlow species are mapped

• 8) What about energy balance?

– Fixed temperature calculation : report heat flow

– Iterative calculations to find temperature with zero heat flow

OLI Simulation Conference 2016

OLI Unit in SysCAD Flowsheet

OLI Simulation Conference 2016

Development Walk ThroughAdded functionality in OLI Reactor

• 9) What about heat exchange?

– Account for heat loss and/or heat exchanger

• 10) Implement in flowsheet?

– Now have “OLI Reactor” block to use for multitude of purposes

– Crashes with multiple units – had to implement thread locking

– Ongoing usability improvements

• 11) Beta version good to go?

Demonstrate and issue Beta version

OLI Simulation Conference 2016

KWA Kenwalt Australia

What next?

• Still learning OLI capabilities and Engine interface

• Expecting practical use on a few projects in coming months

• Future development:

– Use Core interface (speed and features)

– Investigate implementation of properties model in addition to unit operations

– Based on project driven requests

– Ongoing improvements in usability and features

OLI Simulation Conference 2016

KWA Kenwalt Australia

Conclusions

• OLI and SysCAD Development tools allowed rapid effective integration of products

• Pleased to have SysCAD as new OLI Alliance Partner

• From OLI - Thread safe Engine would be a significant enhancement

• Thank You – Questions

OLI Simulation Conference 2016

KWA Kenwalt Australia

Thank You

• Questions?