SlideShare a Scribd company logo
1 of 53
Download to read offline
1
© 2020 The MathWorks, Inc.
Teaching Chemical Engineering with MATLAB,
Simulink and TCLab
Aycan Hacioglu, Ph.D. (ahaciogl@mathworks.com)
Customer Success Engineer
Samvith Rao (samvithr@mathworks.com)
Industry Marketing
John D. Hedengren, Ph.D. (john.hedengren@byu.edu)
Associate Professor, Brigham Young University
2
MATLAB
▪ MATLAB is a programming environment for
algorithm development, data analysis,
visualization, and numeric computation.
▪ Simulink is a graphical environment for designing,
simulating, and testing systems.
▪ 100 add-on products for specialized tasks.
Our Products
Simulink
Helicopter Simulation Model
3
Introduce Reinforce Getting Help
Industry
Applications
Integrating Computational Thinking to Chemical Engineering Curriculum
4
FOCUSED COURSES
FOUNDATIONAL COURSES (17-21 hours)
MATLAB Fundamentals
MATLAB Programming Techniques
MATLAB for Financial Applications
MATLAB for Data Processing and Visualization
Image Processing with MATLAB
Machine Learning with MATLAB
Deep Learning with MATLAB
COMPUTATIONAL MATH COURSES (2-3 hours)
Introduction to Linear Algebra
Solving Ordinary Differential Equations
Introduction to Statistical Methods
Solving Non-Linear Equations
Introduction to Symbolic Math
Self-paced courses FREE COURSES (1-3 hours)
MATLAB Onramp
Simulink Onramp
Machine Learning Onramp
Deep Learning Onramp
Reinforcement Learning Onramp
Image Processing Onramp
Signal Processing Onramp
Simscape Onramp
Stateflow Onramp
Control Design Onramp with Simulink
Optimization Onramp
https://www.mathworks.com/academia/targeted/online-learning.html
https://matlabacademy.mathworks.com/
5
Creating and Hosting Custom Apps
Using Virtual Labs to Teach Reaction Engineering at Lund University
MATLAB Apps
6
Features
• Teach with interactive documents
• Accelerate exploratory
programming
• Create an interactive narrative
• Publish consistent reports
Interactive programming with Live Editor
www.mathworks.com/products/matlab/live-editor.html
https://www.mathworks.com/products/matlab/live-script-gallery.html
7
Visit grader.mathworks.com
MATLAB Grader for automatically grading MATLAB code
in any learning environment
“The approach enables
students to learn more quickly
from their mistakes on their
own.”
– Dr. Bob Canfield, Virginia Tech
https://www.mathworks.com/products/matlab-grader.html
8
Introduce Reinforce Getting Help
Integrating Computational Thinking to Chemical Engineering Curriculum
Industry
Applications
9
Resources for Chemical Engineering Courses with MATLAB
Reaction Kinetics Fluid Dynamics
Heat Transfer
Process Design
10
Teaching Data Science to Chemical Engineers
https://www.mathworks.com/academia/courseware/teaching-data-science-with-matlab.html
https://www.mathworks.com/videos/employing-machine-learning-to-correlate-fluid-properties-1622032109572.html
11
Introduce Reinforce Getting Help
Industry
Applications
Integrating Computational Thinking to Chemical Engineering Curriculum
12
MATLAB and Simulink for Process Control in Industry
13
Customer Example: TATA Steel optimizes cooling tower
operation via MPC on digital twin
Challenge
• High energy consumption in cooling tower
• Changing weather conditions caused substantial variation
in operation
Solution
• Mass and energy balance equations modeled in MATLAB
• Model optimized and parameters calibrated with plant data
• MPC controller implemented
Results
▪ Savings of $40K per year for one CT
▪ Variation in outlet water temperature reduced
▪ Hundreds of tons of CO2 reduction per year
Link to TATA Steel’s talk
Water cooling tower for the blast furnace
Effect of Murphree efficiency on number of stages
http://www.digitalcreed.in/tata-steel/
14
Main Control Panel
Customer Example: Company Eliminates Environmental
Impact of Discharged Wastewater with pH Control System
“Using Model-Based Design with MATLAB and Simulink
enabled us to quickly try out multiple control strategies and
validate the system before putting it into operation. This
approach saved us time and ensured a better product.”
- Process Engineer
Challenge
▪ To control pH levels in a wastewater treatment
facility that was performing inconsistently
▪ No programming experience
Solution
▪ Model plant in Sys Id Toolbox using process data
▪ Use Control System Toolbox to develop a controller
to find best parameter settings graphically
▪ Implemented on Yokogawa DCS
Results
▪ Acceptable pH levels rose to 100% from 84%
▪ Controller performance improved
▪ Development streamlined in just 3 months
15
Challenge
Accelerate the development of control algorithms for microbial
fermentations
Solution
Use MATLAB and OPC Toolbox to develop a continuous-uptime
supervisory control platform that enables rapid development,
debugging, and verification of algorithms
Results
▪ Algorithm development time cut from months
to weeks
▪ Flexible, reliable infrastructure deployed
▪ Potential errors identified in minutes
“By partnering with MathWorks Consulting, we developed a
robust platform for supervisory control with MATLAB and
transitioned our pilot plant to a modern automation control
system. This enabled our researchers to rapidly take
algorithms from idea to implementation, simulation, and
deployment.”
Dr. Ryan Hamilton
Genentech
Link to user story
A Genentech microbial pilot plant bioreactor
Customer Example: Genentech Builds a Supervisory Control
Algorithm Development Platform for Bioreactors
16
Import Aspen Dynamics and gPROMS models into Simulink to
develop your control strategy
Link to download
MATLAB
Linearized
state space
model
17
Simulink is the preferred platform for APC
Link to Slides
18
Challenge
• Control loop performance deteriorates with time
• 5900 control loops spread across 4 refineries
• Expensive and non customizable enterprise software
Solution
• Use a variety of signal processing techniques – spectral
analysis, correlation analysis, pattern recognition,
nonlinearity analysis, etc to diagnose the controller problems
based on unique digital ‘signatures’
Results
▪ $12-20 Million annual savings
▪ Analysis automated, customized and simplified through in-
house solution
▪ Savings of 250 man days annually for control engineers
Customer Example: Tüpraş implements Control Loop
Performance Assessment Solution in MATLAB
Link to user story
“MATLAB saved us a significant amount of
time and expense by enabling us to develop
our own software in-house. It also enabled us
to save millions of dollars in costs that would
have resulted from poor controller
performance.”
- Mehmet Yagci, Tüpraş
Controller health monitoring system dashboard
19
Sign up for capstone project – ‘Monitoring and control of a
bioreactor’
▪ Motivation & Benefits
– Help transition pharmaceutical manufacturing to Industry 4.0 through
application of APC
– Learn about real industrial challenges
– Learn MATLAB and Simulink
▪ Capstone Project on Github
– Modeling a penicillin bioreactor
– Analyze industrial ‘big data’ set (2.5 GB)
– Identify CPPs
– Develop control strategy
Source
20
Introduce Reinforce Getting Help
Integrating Computational Thinking to Chemical Engineering Curriculum
Industry
Applications
21
Getting Help
MATLAB for Academia Help Center
Customer Success Team
MATLAB Central
• Curriculum Support
• Research Support
• Awareness Resources
22
MATLAB and Simulink Events 2021 AIChE Annual Meeting
https://www.mathworks.com/company/events.html
• Integrating Data Science to Chemical Engineering
Curriculum Using MATLAB
• Teaching Hands-on Process Control Courses with
Arduino Based TCLab, MATLAB and Simulink
• Prediction of Atoms in Molecules with MATLAB Graph
Convolutional Network
• Parallel and GPU Computing with MATLAB and Simulink
for Chemical Engineering
https://aiche.confex.com/aiche/2021/meetingapp.cgi/ModuleProgramBook/0
23
Resources
MathWorks - Academia
MATLAB and Simulink for the Chemicals and Petrochemicals Industry
Fluid Dynamics
▪ Simscape Fluids
▪ Three Constant Head Tanks Documentation Example
▪ Hydraulic Resistive Tube Documentation Example
Reaction Kinetics
▪ SimBiology
▪ Chemical Kinetics with MATLAB File Exchange Entry
▪ Teaching Chemistry with MATLAB
▪ SimBiology Documentation Example for Reaction
Kinetics
Heat Transfer
▪ Partial Differential Equation Toolbox
▪ Heat Transfer Documentation Examples
Process Control
▪ Simulink
▪ Control System Toolbox
▪ Water Tank Simulink Model Documentation Example
▪ Design Internal Model Controller for Chemical Reactor
Plant Documentation Example
▪ Teaching Controls with MATLAB and Simulink
Process Design
▪ Linking MATLAB to Process Simulators
▪ Design and Cosimulate Control of High-Fidelity
Distillation Tower with Aspen Dynamics Documentation
Example
24
Teaching Chemical Engineering with
MATLAB, Simulink and TCLab
Joshua Hammond
Research Assistant
John Hedengren
Associate Professor
Brigham Young University
25
Webinar and Interactive Module Interest
26
Overview
▪ Automation needed across industries
▪ 35 Lesson Modules
▪ Pocket-sized lab overview
– Teaching resource with learning objectives
– MATLAB, Simulink, and Live Script demos
▪ Collaborative community resources
27
Automation Impact Across Industries
Medical Automation People Transportation Product Transportation
Oil and Gas Industry
New Topics: Data Science, Analytics, Machine Learning, Cybersecurity, Digitalization
28
MATLAB, Simulink, and Live Script Resources
▪ Dynamics and Control Course
– Learning Modules (35)
– Theory: Lesson
– Simulation: Assignment
– Lab: Temperature Control
– Course
▪ https://apmonitor.com/pdc
– MathWorks Modules
▪ https://github.com/APMonitor/mdc
29
Learning from Instructor Perspective
30
Learning from Student Perspective: Foundations
31
Learning from Student Perspective: Active Learning
32
Learning from Student Perspective: Synthesize
33
Pocket Sized, Transient Heat Transfer Lab
34
Hardware Overview
Sensors
T (oC)
Actuator
Heaters
Controller
apmonitor.com/heat.htm
35
MATLAB with TCLab
lab = tclab; % load TCLab
lab.LED(80)
lab.Q1(50)
disp(lab.T1)
36
MATLAB with TCLab
lab = tclab; % load TCLab
lab.LED(80)
lab.Q1(50)
lab.Q2(0)
disp(lab.T1)
disp(lab.T2)
37
Lab Exercises 1-4
38
Simulink with TCLab
39
Manual Control in Simulink
40
Lab Exercises 5-10
41
FOPDT Graphical Fit
42
Lab Exercises 11-16
43
PID Tuning
44
Automatic Control in Simulink
45
Model Predictive Control
46
Estimation with Model Predictive Control
47
Data Science with TCLab
English
https://github.com/APMonitor/data_science
Spanish
https://github.com/APMonitor/ciencia_de_datos
48
TCLab for Machine Learning
49
TCLab for Instructor Evaluation
▪ Send email to john.hedengren@byu.edu
– Name
– Shipping Address
– Course Information
▪ Arrives in 2-3 business days (US)
▪ Arrives in 6-20 business days (International)
▪ Student lab kits on Amazon
– https://amzn.to/2FopcMp
50
Community Teaching Resources
CACHE Teaching Resources Resourcium.org
51
Thanks to Collaborators
▪ Many collaborators have enabled this community resource
– Melda Ulusoy @ MathWorks
– Samvith Rao @ MathWorks
– Aycan Hacioglu @ MathWorks
– Abe Martin @ BYU, NAVAIR
– Junho Park @ BYU
– Colin Anderson @ BYU
– Nathanael Nelson @ BYU
– Jeff Kantor @ Notre Dame
– Carl Sandrock @ Univ. of Pretoria, proquo ai
– Paulo Moura Oliviera @ UTAD in Portugal
– John Anthony Rossiter @ Univ. of Sheffield
52
Additional Information
References
▪ Moura Oliveira, P.B., Hedengren, J.D., Solteiro Pires, E.J., Swarm-Based design of Proportional Integral and Derivative Controllers
using a Compromise Cost Function: An Arduino Temperature Laboratory Case Study, Special Issue: Algorithms for PID Controller,
Algorithms, 13(12), 315, DOI: 10.3390/a13120315, 2020. Article
▪ Hedengren, J.D., Kantor, J., Computer Programming and Process Control Take-Home Lab, Computer Aids for Chemical Engineering
(CACHE) News, Summer 2020. Article
▪ Moura Oliveira, P., Hedengren, J., Rossiter, J.A., Introducing Digital Controllers to Undergraduate Students Using the TCLab Arduino
Kit, 21st IFAC World Congress, Berlin, Germany, July 12-17, 2020.
▪ Moura Oliveira, P., Hedengren, J., Boaventura, J., Bridging Theory to Practice: Feedforward and Cascade Control with TCLab Arduino
Kit, 14th International Conference on Automatic Control and Soft Computing (CONTROLO), Bragança, Portugal, July
2020. Proceedings
▪ Park, J., Martin, R.A., Kelly, J.D., Hedengren, J.D., Benchmark Temperature Microcontroller for Process Dynamics and Control,
Computers & Chemical Engineering, Special Issue in Honor of Thomas F. Edgar, 135, 6 April 2020. Preprint | Article
▪ Rossiter, J.A., Jones, B.L., Pope, S., Hedengren, J.D., Evaluation and Demonstration of Take-Home Laboratory Kit, Invited Session:
Demonstration and poster session, 12th IFAC Symposium on Advances in Control Education, July 7-9, 2019, 52 (9), pp. 56-61,
Philadelphia, PA, USA. Preprint
▪ Hedengren, J.D., Martin, R.A., Kantor, J.C., Reuel, N., Temperature Control Lab for Dynamics and Control, AIChE Annual Meeting,
Orlando, FL, Nov 2019. Abstract
▪ Moura Oliveira, P., Hedengren, J.D., An APMonitor Temperature Lab PID Control Experiment for Undergraduate Students, 24th IEEE
Conference on Emerging Technologies and Factory Automation (ETFA), Sep 10th - 13th, 2019, pp. 790-797, Zaragoza,
Spain. Preprint Paper
▪ Park, J., Patterson, C., Kelly, J., Hedengren, J.D., Closed-Loop PID Re-Tuning in a Digital Twin By Re-Playing Past Setpoint and Load
Disturbance Data, AIChE Spring Meeting, New Orleans, LA, April 2019.
53
Questions and Discussion

More Related Content

Similar to teaching-chemical-engineering-with-matlab-simulink-and-tclab.pdf

RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...
RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...
RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...OPAL-RT TECHNOLOGIES
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopMahmoud Hussein
 
Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...
Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...
Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...Nesma
 
Innovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded AlgorithmsInnovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded AlgorithmsJoachim Schlosser
 
Aplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unitAplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unitEmerson Exchange
 
Incquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery Labs
Incquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery LabsIncquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery Labs
Incquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery LabsIncQuery Labs
 
Customer choice probabilities
Customer choice probabilitiesCustomer choice probabilities
Customer choice probabilitiesAllan D. Butler
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon
 
Reinventing Performance Testing, CMG imPACt 2016 slides
  Reinventing Performance Testing, CMG imPACt 2016 slides  Reinventing Performance Testing, CMG imPACt 2016 slides
Reinventing Performance Testing, CMG imPACt 2016 slidesAlexander Podelko
 
Design Optimization of Safety Critical Component for Fatigue and Strength Usi...
Design Optimization of Safety Critical Component for Fatigue and Strength Usi...Design Optimization of Safety Critical Component for Fatigue and Strength Usi...
Design Optimization of Safety Critical Component for Fatigue and Strength Usi...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewModelon
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxDeepakJangid87
 
Building Simulation, Its Role, Softwares & Their Limitations
Building Simulation, Its Role, Softwares & Their LimitationsBuilding Simulation, Its Role, Softwares & Their Limitations
Building Simulation, Its Role, Softwares & Their LimitationsPrasad Thanthratey
 
Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011Scott Althouse
 
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...Joachim Schlosser
 
Revised: Presentation of my SCADA-Petroleum Engineering Suite
Revised:  Presentation of my SCADA-Petroleum Engineering SuiteRevised:  Presentation of my SCADA-Petroleum Engineering Suite
Revised: Presentation of my SCADA-Petroleum Engineering SuiteColin Jordan
 

Similar to teaching-chemical-engineering-with-matlab-simulink-and-tclab.pdf (20)

Mobatec in a Nutshell
Mobatec in a NutshellMobatec in a Nutshell
Mobatec in a Nutshell
 
RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...
RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...
RT15 Berkeley | End-to-End Simulation Solution for Smart Grids Applications -...
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loop
 
Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...
Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...
Nesma autumn conference 2015 - Is FPA a valuable addition to predictable agil...
 
MIL_SIL.pdf
MIL_SIL.pdfMIL_SIL.pdf
MIL_SIL.pdf
 
Innovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded AlgorithmsInnovate with confidence – Functional Verification of Embedded Algorithms
Innovate with confidence – Functional Verification of Embedded Algorithms
 
Aplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unitAplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unit
 
Incquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery Labs
Incquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery LabsIncquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery Labs
Incquery Suite Models 2020 Conference by István Ráth, CEO of IncQuery Labs
 
Customer choice probabilities
Customer choice probabilitiesCustomer choice probabilities
Customer choice probabilities
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016
 
Presentation
PresentationPresentation
Presentation
 
Reinventing Performance Testing, CMG imPACt 2016 slides
  Reinventing Performance Testing, CMG imPACt 2016 slides  Reinventing Performance Testing, CMG imPACt 2016 slides
Reinventing Performance Testing, CMG imPACt 2016 slides
 
Design Optimization of Safety Critical Component for Fatigue and Strength Usi...
Design Optimization of Safety Critical Component for Fatigue and Strength Usi...Design Optimization of Safety Critical Component for Fatigue and Strength Usi...
Design Optimization of Safety Critical Component for Fatigue and Strength Usi...
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - Overview
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
 
CV_HVAC_ENGINEER
CV_HVAC_ENGINEERCV_HVAC_ENGINEER
CV_HVAC_ENGINEER
 
Building Simulation, Its Role, Softwares & Their Limitations
Building Simulation, Its Role, Softwares & Their LimitationsBuilding Simulation, Its Role, Softwares & Their Limitations
Building Simulation, Its Role, Softwares & Their Limitations
 
Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011
 
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...
 
Revised: Presentation of my SCADA-Petroleum Engineering Suite
Revised:  Presentation of my SCADA-Petroleum Engineering SuiteRevised:  Presentation of my SCADA-Petroleum Engineering Suite
Revised: Presentation of my SCADA-Petroleum Engineering Suite
 

Recently uploaded

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 

Recently uploaded (20)

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

teaching-chemical-engineering-with-matlab-simulink-and-tclab.pdf

  • 1. 1 © 2020 The MathWorks, Inc. Teaching Chemical Engineering with MATLAB, Simulink and TCLab Aycan Hacioglu, Ph.D. (ahaciogl@mathworks.com) Customer Success Engineer Samvith Rao (samvithr@mathworks.com) Industry Marketing John D. Hedengren, Ph.D. (john.hedengren@byu.edu) Associate Professor, Brigham Young University
  • 2. 2 MATLAB ▪ MATLAB is a programming environment for algorithm development, data analysis, visualization, and numeric computation. ▪ Simulink is a graphical environment for designing, simulating, and testing systems. ▪ 100 add-on products for specialized tasks. Our Products Simulink Helicopter Simulation Model
  • 3. 3 Introduce Reinforce Getting Help Industry Applications Integrating Computational Thinking to Chemical Engineering Curriculum
  • 4. 4 FOCUSED COURSES FOUNDATIONAL COURSES (17-21 hours) MATLAB Fundamentals MATLAB Programming Techniques MATLAB for Financial Applications MATLAB for Data Processing and Visualization Image Processing with MATLAB Machine Learning with MATLAB Deep Learning with MATLAB COMPUTATIONAL MATH COURSES (2-3 hours) Introduction to Linear Algebra Solving Ordinary Differential Equations Introduction to Statistical Methods Solving Non-Linear Equations Introduction to Symbolic Math Self-paced courses FREE COURSES (1-3 hours) MATLAB Onramp Simulink Onramp Machine Learning Onramp Deep Learning Onramp Reinforcement Learning Onramp Image Processing Onramp Signal Processing Onramp Simscape Onramp Stateflow Onramp Control Design Onramp with Simulink Optimization Onramp https://www.mathworks.com/academia/targeted/online-learning.html https://matlabacademy.mathworks.com/
  • 5. 5 Creating and Hosting Custom Apps Using Virtual Labs to Teach Reaction Engineering at Lund University MATLAB Apps
  • 6. 6 Features • Teach with interactive documents • Accelerate exploratory programming • Create an interactive narrative • Publish consistent reports Interactive programming with Live Editor www.mathworks.com/products/matlab/live-editor.html https://www.mathworks.com/products/matlab/live-script-gallery.html
  • 7. 7 Visit grader.mathworks.com MATLAB Grader for automatically grading MATLAB code in any learning environment “The approach enables students to learn more quickly from their mistakes on their own.” – Dr. Bob Canfield, Virginia Tech https://www.mathworks.com/products/matlab-grader.html
  • 8. 8 Introduce Reinforce Getting Help Integrating Computational Thinking to Chemical Engineering Curriculum Industry Applications
  • 9. 9 Resources for Chemical Engineering Courses with MATLAB Reaction Kinetics Fluid Dynamics Heat Transfer Process Design
  • 10. 10 Teaching Data Science to Chemical Engineers https://www.mathworks.com/academia/courseware/teaching-data-science-with-matlab.html https://www.mathworks.com/videos/employing-machine-learning-to-correlate-fluid-properties-1622032109572.html
  • 11. 11 Introduce Reinforce Getting Help Industry Applications Integrating Computational Thinking to Chemical Engineering Curriculum
  • 12. 12 MATLAB and Simulink for Process Control in Industry
  • 13. 13 Customer Example: TATA Steel optimizes cooling tower operation via MPC on digital twin Challenge • High energy consumption in cooling tower • Changing weather conditions caused substantial variation in operation Solution • Mass and energy balance equations modeled in MATLAB • Model optimized and parameters calibrated with plant data • MPC controller implemented Results ▪ Savings of $40K per year for one CT ▪ Variation in outlet water temperature reduced ▪ Hundreds of tons of CO2 reduction per year Link to TATA Steel’s talk Water cooling tower for the blast furnace Effect of Murphree efficiency on number of stages http://www.digitalcreed.in/tata-steel/
  • 14. 14 Main Control Panel Customer Example: Company Eliminates Environmental Impact of Discharged Wastewater with pH Control System “Using Model-Based Design with MATLAB and Simulink enabled us to quickly try out multiple control strategies and validate the system before putting it into operation. This approach saved us time and ensured a better product.” - Process Engineer Challenge ▪ To control pH levels in a wastewater treatment facility that was performing inconsistently ▪ No programming experience Solution ▪ Model plant in Sys Id Toolbox using process data ▪ Use Control System Toolbox to develop a controller to find best parameter settings graphically ▪ Implemented on Yokogawa DCS Results ▪ Acceptable pH levels rose to 100% from 84% ▪ Controller performance improved ▪ Development streamlined in just 3 months
  • 15. 15 Challenge Accelerate the development of control algorithms for microbial fermentations Solution Use MATLAB and OPC Toolbox to develop a continuous-uptime supervisory control platform that enables rapid development, debugging, and verification of algorithms Results ▪ Algorithm development time cut from months to weeks ▪ Flexible, reliable infrastructure deployed ▪ Potential errors identified in minutes “By partnering with MathWorks Consulting, we developed a robust platform for supervisory control with MATLAB and transitioned our pilot plant to a modern automation control system. This enabled our researchers to rapidly take algorithms from idea to implementation, simulation, and deployment.” Dr. Ryan Hamilton Genentech Link to user story A Genentech microbial pilot plant bioreactor Customer Example: Genentech Builds a Supervisory Control Algorithm Development Platform for Bioreactors
  • 16. 16 Import Aspen Dynamics and gPROMS models into Simulink to develop your control strategy Link to download MATLAB Linearized state space model
  • 17. 17 Simulink is the preferred platform for APC Link to Slides
  • 18. 18 Challenge • Control loop performance deteriorates with time • 5900 control loops spread across 4 refineries • Expensive and non customizable enterprise software Solution • Use a variety of signal processing techniques – spectral analysis, correlation analysis, pattern recognition, nonlinearity analysis, etc to diagnose the controller problems based on unique digital ‘signatures’ Results ▪ $12-20 Million annual savings ▪ Analysis automated, customized and simplified through in- house solution ▪ Savings of 250 man days annually for control engineers Customer Example: Tüpraş implements Control Loop Performance Assessment Solution in MATLAB Link to user story “MATLAB saved us a significant amount of time and expense by enabling us to develop our own software in-house. It also enabled us to save millions of dollars in costs that would have resulted from poor controller performance.” - Mehmet Yagci, Tüpraş Controller health monitoring system dashboard
  • 19. 19 Sign up for capstone project – ‘Monitoring and control of a bioreactor’ ▪ Motivation & Benefits – Help transition pharmaceutical manufacturing to Industry 4.0 through application of APC – Learn about real industrial challenges – Learn MATLAB and Simulink ▪ Capstone Project on Github – Modeling a penicillin bioreactor – Analyze industrial ‘big data’ set (2.5 GB) – Identify CPPs – Develop control strategy Source
  • 20. 20 Introduce Reinforce Getting Help Integrating Computational Thinking to Chemical Engineering Curriculum Industry Applications
  • 21. 21 Getting Help MATLAB for Academia Help Center Customer Success Team MATLAB Central • Curriculum Support • Research Support • Awareness Resources
  • 22. 22 MATLAB and Simulink Events 2021 AIChE Annual Meeting https://www.mathworks.com/company/events.html • Integrating Data Science to Chemical Engineering Curriculum Using MATLAB • Teaching Hands-on Process Control Courses with Arduino Based TCLab, MATLAB and Simulink • Prediction of Atoms in Molecules with MATLAB Graph Convolutional Network • Parallel and GPU Computing with MATLAB and Simulink for Chemical Engineering https://aiche.confex.com/aiche/2021/meetingapp.cgi/ModuleProgramBook/0
  • 23. 23 Resources MathWorks - Academia MATLAB and Simulink for the Chemicals and Petrochemicals Industry Fluid Dynamics ▪ Simscape Fluids ▪ Three Constant Head Tanks Documentation Example ▪ Hydraulic Resistive Tube Documentation Example Reaction Kinetics ▪ SimBiology ▪ Chemical Kinetics with MATLAB File Exchange Entry ▪ Teaching Chemistry with MATLAB ▪ SimBiology Documentation Example for Reaction Kinetics Heat Transfer ▪ Partial Differential Equation Toolbox ▪ Heat Transfer Documentation Examples Process Control ▪ Simulink ▪ Control System Toolbox ▪ Water Tank Simulink Model Documentation Example ▪ Design Internal Model Controller for Chemical Reactor Plant Documentation Example ▪ Teaching Controls with MATLAB and Simulink Process Design ▪ Linking MATLAB to Process Simulators ▪ Design and Cosimulate Control of High-Fidelity Distillation Tower with Aspen Dynamics Documentation Example
  • 24. 24 Teaching Chemical Engineering with MATLAB, Simulink and TCLab Joshua Hammond Research Assistant John Hedengren Associate Professor Brigham Young University
  • 25. 25 Webinar and Interactive Module Interest
  • 26. 26 Overview ▪ Automation needed across industries ▪ 35 Lesson Modules ▪ Pocket-sized lab overview – Teaching resource with learning objectives – MATLAB, Simulink, and Live Script demos ▪ Collaborative community resources
  • 27. 27 Automation Impact Across Industries Medical Automation People Transportation Product Transportation Oil and Gas Industry New Topics: Data Science, Analytics, Machine Learning, Cybersecurity, Digitalization
  • 28. 28 MATLAB, Simulink, and Live Script Resources ▪ Dynamics and Control Course – Learning Modules (35) – Theory: Lesson – Simulation: Assignment – Lab: Temperature Control – Course ▪ https://apmonitor.com/pdc – MathWorks Modules ▪ https://github.com/APMonitor/mdc
  • 30. 30 Learning from Student Perspective: Foundations
  • 31. 31 Learning from Student Perspective: Active Learning
  • 32. 32 Learning from Student Perspective: Synthesize
  • 33. 33 Pocket Sized, Transient Heat Transfer Lab
  • 35. 35 MATLAB with TCLab lab = tclab; % load TCLab lab.LED(80) lab.Q1(50) disp(lab.T1)
  • 36. 36 MATLAB with TCLab lab = tclab; % load TCLab lab.LED(80) lab.Q1(50) lab.Q2(0) disp(lab.T1) disp(lab.T2)
  • 46. 46 Estimation with Model Predictive Control
  • 47. 47 Data Science with TCLab English https://github.com/APMonitor/data_science Spanish https://github.com/APMonitor/ciencia_de_datos
  • 49. 49 TCLab for Instructor Evaluation ▪ Send email to john.hedengren@byu.edu – Name – Shipping Address – Course Information ▪ Arrives in 2-3 business days (US) ▪ Arrives in 6-20 business days (International) ▪ Student lab kits on Amazon – https://amzn.to/2FopcMp
  • 50. 50 Community Teaching Resources CACHE Teaching Resources Resourcium.org
  • 51. 51 Thanks to Collaborators ▪ Many collaborators have enabled this community resource – Melda Ulusoy @ MathWorks – Samvith Rao @ MathWorks – Aycan Hacioglu @ MathWorks – Abe Martin @ BYU, NAVAIR – Junho Park @ BYU – Colin Anderson @ BYU – Nathanael Nelson @ BYU – Jeff Kantor @ Notre Dame – Carl Sandrock @ Univ. of Pretoria, proquo ai – Paulo Moura Oliviera @ UTAD in Portugal – John Anthony Rossiter @ Univ. of Sheffield
  • 52. 52 Additional Information References ▪ Moura Oliveira, P.B., Hedengren, J.D., Solteiro Pires, E.J., Swarm-Based design of Proportional Integral and Derivative Controllers using a Compromise Cost Function: An Arduino Temperature Laboratory Case Study, Special Issue: Algorithms for PID Controller, Algorithms, 13(12), 315, DOI: 10.3390/a13120315, 2020. Article ▪ Hedengren, J.D., Kantor, J., Computer Programming and Process Control Take-Home Lab, Computer Aids for Chemical Engineering (CACHE) News, Summer 2020. Article ▪ Moura Oliveira, P., Hedengren, J., Rossiter, J.A., Introducing Digital Controllers to Undergraduate Students Using the TCLab Arduino Kit, 21st IFAC World Congress, Berlin, Germany, July 12-17, 2020. ▪ Moura Oliveira, P., Hedengren, J., Boaventura, J., Bridging Theory to Practice: Feedforward and Cascade Control with TCLab Arduino Kit, 14th International Conference on Automatic Control and Soft Computing (CONTROLO), Bragança, Portugal, July 2020. Proceedings ▪ Park, J., Martin, R.A., Kelly, J.D., Hedengren, J.D., Benchmark Temperature Microcontroller for Process Dynamics and Control, Computers & Chemical Engineering, Special Issue in Honor of Thomas F. Edgar, 135, 6 April 2020. Preprint | Article ▪ Rossiter, J.A., Jones, B.L., Pope, S., Hedengren, J.D., Evaluation and Demonstration of Take-Home Laboratory Kit, Invited Session: Demonstration and poster session, 12th IFAC Symposium on Advances in Control Education, July 7-9, 2019, 52 (9), pp. 56-61, Philadelphia, PA, USA. Preprint ▪ Hedengren, J.D., Martin, R.A., Kantor, J.C., Reuel, N., Temperature Control Lab for Dynamics and Control, AIChE Annual Meeting, Orlando, FL, Nov 2019. Abstract ▪ Moura Oliveira, P., Hedengren, J.D., An APMonitor Temperature Lab PID Control Experiment for Undergraduate Students, 24th IEEE Conference on Emerging Technologies and Factory Automation (ETFA), Sep 10th - 13th, 2019, pp. 790-797, Zaragoza, Spain. Preprint Paper ▪ Park, J., Patterson, C., Kelly, J., Hedengren, J.D., Closed-Loop PID Re-Tuning in a Digital Twin By Re-Playing Past Setpoint and Load Disturbance Data, AIChE Spring Meeting, New Orleans, LA, April 2019.