SlideShare a Scribd company logo
1 of 29
Customization Unit in ROMeo
Refresher for Variable Types
• Free-Dependent: Must equal the number of equations in f(x). Adjusted to satisfy f(x).
»25,000 for crude unit
• Fixed: Do not change.
• Free-Independent: “Optimization” variables. Manipulated to max / min objective.
Usually < 300 for Data Rec, < 50 for $ optimization (crude unit)
Model Specification
• All unit operations are created square
• Number of free vars = number eqns
• Fixed/free depend on unit’s specifications
• You can change var’s fixed/free status
• *It is possible to fix variables in ways that the model can’t be solved
• ROMeo lets you add equations and variables to the flowsheet.
• ROMeo forces you to maintain a square flowsheet:
• E.g., if you free up a variable, you must fix another or add an equation
• Prevents trouble
Overview of Customization Unit
• Change the Fix/Free status of variables
• Add equations and variables
• Must be square to avoid a degree-of-freedom mismatch.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
• Unit Customizations
• Can only access variables in that unit
• Visual indicator on the PFD drawing
• Flowsheet Customizations
• Can access any variable in flowsheet
• Can override unit customizations
The Customization feature lets you create custom specifications in place of the standard unit specifications
that are available in the AVEVA Process Optimization library model windows.
Assumptions and Restrictions
• You may fix only those variables that are currently free. Conversely, you may free only those variables
that are currently fixed.
• Although it is possible to have multiple Flowsheet Customization “units” on a flowsheet, a given variable
(including any unit or stream variable) can be freed only once at the flowsheet level.
• The data entry window of Flowsheet Customisation is similar in appearance to that of Unit
Customization. However, in Flowsheet Customization, the unit and stream variables for the entire
flowsheet are displayed in the left pane, while only the variables for the individual unit are available in
Unit Customization.
• The customization will report an error if you have customized the model in a non-square way
the number of valid independent variables + the number of new equations = the number of valid dependent variables + the number of new variables
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Customization
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Independent ⇔ Dependent
• Changing the status of a free/dependent
variable to fixed/ independent (thus, a
solution variable becomes a fixed
specification variable).
• Changing the status of a fixed/independent
variable to free/ dependent (thus, a variable
that was previously a fixed specification
variable becomes a solution variable).
• The validity of the variable is indicated by its
colour.
• Grey — Variable status is passive and invalid.
• Brown — Variable status is bad and invalid.
• Black — Variable status is active and valid.
• Only those stream properties that have been
selected for inclusion in the Calculated
Properties list are available to be fixed or be
used in equations (eg LHV).
Dimensional Consistency
• When creating user added variables and equations, pay very close attention to the
dimensions.
• If your equations are dimensionally inconsistent your results will be wrong.
• The software will check your equations for dimensional consistency, but will only issue
warnings—not errors.
• The key fact to understand is that the software does all calculations in internal Units of
Measure, which are SI.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Internal UOM
ROMeo internal
Units.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
SI Units
Other Capabilities
• Conditional Equations.
• Mathematical Functions.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Exercise: Practice for Customization Unit
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Exercise
• Create Customization to represent an inferential Calculation in four different ways.
1. Create same as inferential equation.
2. Create inferential using dimensional consistency – Convert to internal UOM.
3. Create inferential using dimensional consistency – Make equation dimensionless.
4. Create using dimensional consistency – specify UOM within equation structure.
• Compare the data
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Create a Customization unit in ROMeo
Inferential Data.
• INF (C) = 0.7 * T101 (C) - 2.1 * P101 (kg/cm2g) - 0.1 * F101 (m3/h)
• INF - 0.7 * T101 (C) - 2.1 * P101 (kg/cm2g) - 0.1 * F101 (m3/h) ==0
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Tag No. Ope. Data (1) UOM Coefficient (2) Internal UOM (1) * (2)
T101 100 C 0.7 K 70
P101 1.1 kg/cm2g -2.1 kPa -2.31
F101 70 m3/hr -0.1 m3/sec -7
Expected Value 60.69
INF1 - Same as inferential equation.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
INF2 - Compensate to internal UOM.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
INF3 - Make equation dimensionless
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
INF4 - Specify UOM within equation structure.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
External Data Interface (EDI)
EDI Refresher
• Interface between ROMeo variables and external data bases
• Data transfer in both directions
• OPC
• OLEDB
• ODBC (Microsoft Open Data Base Connectivity)
• @aGlance - commercial client/server communication software for Historians
• PI (OSI)
• PHD (Honeywell)
• AIM* (Invensys)
• Not just measurements: Almost anything in Model window
• Upper and lower bounds
• Assay data
• Feed, Product, Utility prices
• Equipment On/Off status
• Key Performance Indicators (e.g. HX U and DP)
Most models have multiple data sources
EDI Components
• EDI consists of four components:
• Digital Types
• Digital Converters
• Data Sources
• IO Blocks
I/O Blocks
• Data to be transferred are organized as
• I/O Blocks, Port Groups, Ports
• Ports represents a connection between a database point and a ROMeo variable
• Perform actions on any of these for data transfer options.
Ports
• To connect an EDI port to a variable
• Drag and drop from the EDI window to a model window
• Or… automate the procedure using macros
• Design your EDI configuration based on purpose
T
T
T
T
T
Download same price to all sources
Download price to source
Dilution
Steam
T
T
T
T
T
…Or…
Simple and 1 place to enter prices
More flexible for lineup
changes
Sync. prices by
downloading the same
value to each source
Steps to create EDI port from GUI.
• Depending on desired design, Create a new EDI Port block
and group for OPC connection. Enable export if it an output
block.
• Right-click on the port group you want to add new tags to
and select New Port. Add port name from the table
• Enable export if it an output tag and accept the remaining
defaults. Click OK.
• Open Model window of the variable to which EDI port is to
be connected and then open EDI. You can then drag and
drop newly created EDI ports to model variable of their
respective user variables (Point to remember: To which
attribute will you connect ?)
• You can use this model-window approach to connect any EDI
port to any variable or parameter attribute. For example, you
can connect an EDI port to the Lower bound on a variable.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Macros
Overview of Macro
• A “program” you write to automate a task.
• Can perform some tasks that are not built in to
ROMeo.
• Uses the TCL scripting language.
• Can modify data and make function calls on
models (e.g. GenerateEstimates).
• Can be called by Real Time System.
• Coding can be done via Macro Editor connected
to Notepad++.
• Can be accessed from Macro Manager
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Typical Uses for Macro
• Change the value of a variable
• Change the fix/free status of a variable
• Custom measurement screening
• Troubleshooting
• Set Lower bound on all molar flows to
0.001 lb-mole/hr
• Find all flowrates that have changed by
more than 10%
• Load assay from EDI to Mod Thermo
• Automatically reconfigure flowsheet
like furnace selection, HX bypass etc.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Sample Macro Code
• Set Lower bound on all molar flows to 0.001 lb-mole/hr
set flows [FindVariable * MolarFlow]
foreach i $flows {
SetValue $i LO [ConvertUOMValue Rate lb-mole/hr Internal 0.001]
}
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
Exercise: Practice for Macros
• If measurement < 0.01, send all flow to rundown and turn off storage
• In an online environment, the software
runs unattended, so macros must be
automatically executed.
• Configure “Macro” Task in RTS.
• Launch macro from Real time system.
• Allows model to automatically update to
plant lineup changes, switch from Datatec
specification to optimization, etc.
Executing Macros in the Online Environment
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
How to Create and Run Macros from ROMeo Model
• To create a macro, do the following:
• From the Input menu, choose Macro Manager.
• Right-click on Macros and create a
newsubcollection. Right-click on the new
subcollection and create a new macro
• Type the name you want to assign to the macro.
On the definition window, enter the macro code.
• Use “macro Editor for ease of writing large codes.
• Pressing “Execute” will run the macro.
• Pressing OK will save macro. If you cancel macro
will not be saved and executed action will be
reversed.
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.

More Related Content

Similar to Customization in ROMeo (CU,EDI,MAcro).pptx

Introducing RTView Enterprise Monitor 1.5
Introducing RTView Enterprise Monitor 1.5 Introducing RTView Enterprise Monitor 1.5
Introducing RTView Enterprise Monitor 1.5 SL Corporation
 
SAP FICO Interview Questions By Garudatrainings
SAP FICO Interview Questions By GarudatrainingsSAP FICO Interview Questions By Garudatrainings
SAP FICO Interview Questions By Garudatrainingspiyushchawala
 
apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...
apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...
apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...apidays
 
EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...
EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...
EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...eprentise
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports ReviewJustin R. Rue
 
FDMEE: No Brainer or Risk?
FDMEE: No Brainer or Risk?FDMEE: No Brainer or Risk?
FDMEE: No Brainer or Risk?Emtec Inc.
 
Odoo Migration Services from Pragmatic: Helps your Business become more Effic...
Odoo Migration Services from Pragmatic: Helps your Business become more Effic...Odoo Migration Services from Pragmatic: Helps your Business become more Effic...
Odoo Migration Services from Pragmatic: Helps your Business become more Effic...NajmuddinMerchant
 
Single vs. multi tenant cost comparison
Single vs. multi tenant cost comparisonSingle vs. multi tenant cost comparison
Single vs. multi tenant cost comparisonkanimozhin
 
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterIBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterWinton Winton
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework DevelopementGlasdon Falcao
 
Creative Automation with Galen Framework
Creative Automation with Galen FrameworkCreative Automation with Galen Framework
Creative Automation with Galen Framework'Ashmeet Sehgal'
 
Single vs. Multi Tenant Cost Comparison
Single vs. Multi Tenant Cost ComparisonSingle vs. Multi Tenant Cost Comparison
Single vs. Multi Tenant Cost ComparisonTechcello
 
Top Seven Steps for Optimizing Cross-Validation Rules in General Ledger
Top Seven Steps for Optimizing Cross-Validation Rules in General LedgerTop Seven Steps for Optimizing Cross-Validation Rules in General Ledger
Top Seven Steps for Optimizing Cross-Validation Rules in General Ledgereprentise
 
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDzRDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDzSusan Yoskin
 
Common Project Mistakes (And How to Avoid Them)
Common Project Mistakes (And How to Avoid Them)Common Project Mistakes (And How to Avoid Them)
Common Project Mistakes (And How to Avoid Them)Inductive Automation
 

Similar to Customization in ROMeo (CU,EDI,MAcro).pptx (20)

Introducing RTView Enterprise Monitor 1.5
Introducing RTView Enterprise Monitor 1.5 Introducing RTView Enterprise Monitor 1.5
Introducing RTView Enterprise Monitor 1.5
 
Maximize o valor do z/OS
Maximize o valor do z/OSMaximize o valor do z/OS
Maximize o valor do z/OS
 
SAP FICO Interview Questions By Garudatrainings
SAP FICO Interview Questions By GarudatrainingsSAP FICO Interview Questions By Garudatrainings
SAP FICO Interview Questions By Garudatrainings
 
FRC Reporting Beginner Course
FRC Reporting Beginner CourseFRC Reporting Beginner Course
FRC Reporting Beginner Course
 
Oracle Fusion Financial Report Centre Reporting Beginner course
Oracle Fusion Financial Report Centre Reporting Beginner courseOracle Fusion Financial Report Centre Reporting Beginner course
Oracle Fusion Financial Report Centre Reporting Beginner course
 
apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...
apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...
apidays LIVE Paris - Break up Monoliths and lay them to REST! by Arun Narayan...
 
EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...
EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...
EBS Answers Webinar Series - Tricks for Optimizing Cross-Validation Rules in ...
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports Review
 
FDMEE: No Brainer or Risk?
FDMEE: No Brainer or Risk?FDMEE: No Brainer or Risk?
FDMEE: No Brainer or Risk?
 
Odoo Migration Services from Pragmatic: Helps your Business become more Effic...
Odoo Migration Services from Pragmatic: Helps your Business become more Effic...Odoo Migration Services from Pragmatic: Helps your Business become more Effic...
Odoo Migration Services from Pragmatic: Helps your Business become more Effic...
 
Single vs. multi tenant cost comparison
Single vs. multi tenant cost comparisonSingle vs. multi tenant cost comparison
Single vs. multi tenant cost comparison
 
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterIBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
 
Creative Automation with Galen Framework
Creative Automation with Galen FrameworkCreative Automation with Galen Framework
Creative Automation with Galen Framework
 
Improve Your Requirements With Visual Models
Improve Your Requirements With Visual ModelsImprove Your Requirements With Visual Models
Improve Your Requirements With Visual Models
 
Single vs. Multi Tenant Cost Comparison
Single vs. Multi Tenant Cost ComparisonSingle vs. Multi Tenant Cost Comparison
Single vs. Multi Tenant Cost Comparison
 
Oracle APEX
Oracle APEXOracle APEX
Oracle APEX
 
Top Seven Steps for Optimizing Cross-Validation Rules in General Ledger
Top Seven Steps for Optimizing Cross-Validation Rules in General LedgerTop Seven Steps for Optimizing Cross-Validation Rules in General Ledger
Top Seven Steps for Optimizing Cross-Validation Rules in General Ledger
 
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDzRDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
 
Common Project Mistakes (And How to Avoid Them)
Common Project Mistakes (And How to Avoid Them)Common Project Mistakes (And How to Avoid Them)
Common Project Mistakes (And How to Avoid Them)
 

Recently uploaded

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
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
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
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
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
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 

Recently uploaded (20)

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
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
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
 
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
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
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
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
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
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 

Customization in ROMeo (CU,EDI,MAcro).pptx

  • 2. Refresher for Variable Types • Free-Dependent: Must equal the number of equations in f(x). Adjusted to satisfy f(x). »25,000 for crude unit • Fixed: Do not change. • Free-Independent: “Optimization” variables. Manipulated to max / min objective. Usually < 300 for Data Rec, < 50 for $ optimization (crude unit)
  • 3. Model Specification • All unit operations are created square • Number of free vars = number eqns • Fixed/free depend on unit’s specifications • You can change var’s fixed/free status • *It is possible to fix variables in ways that the model can’t be solved • ROMeo lets you add equations and variables to the flowsheet. • ROMeo forces you to maintain a square flowsheet: • E.g., if you free up a variable, you must fix another or add an equation • Prevents trouble
  • 4. Overview of Customization Unit • Change the Fix/Free status of variables • Add equations and variables • Must be square to avoid a degree-of-freedom mismatch. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved. • Unit Customizations • Can only access variables in that unit • Visual indicator on the PFD drawing • Flowsheet Customizations • Can access any variable in flowsheet • Can override unit customizations The Customization feature lets you create custom specifications in place of the standard unit specifications that are available in the AVEVA Process Optimization library model windows.
  • 5. Assumptions and Restrictions • You may fix only those variables that are currently free. Conversely, you may free only those variables that are currently fixed. • Although it is possible to have multiple Flowsheet Customization “units” on a flowsheet, a given variable (including any unit or stream variable) can be freed only once at the flowsheet level. • The data entry window of Flowsheet Customisation is similar in appearance to that of Unit Customization. However, in Flowsheet Customization, the unit and stream variables for the entire flowsheet are displayed in the left pane, while only the variables for the individual unit are available in Unit Customization. • The customization will report an error if you have customized the model in a non-square way the number of valid independent variables + the number of new equations = the number of valid dependent variables + the number of new variables © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 6. Customization © 2019 AVEVA Group plc and its subsidiaries. All rights reserved. Independent ⇔ Dependent • Changing the status of a free/dependent variable to fixed/ independent (thus, a solution variable becomes a fixed specification variable). • Changing the status of a fixed/independent variable to free/ dependent (thus, a variable that was previously a fixed specification variable becomes a solution variable). • The validity of the variable is indicated by its colour. • Grey — Variable status is passive and invalid. • Brown — Variable status is bad and invalid. • Black — Variable status is active and valid. • Only those stream properties that have been selected for inclusion in the Calculated Properties list are available to be fixed or be used in equations (eg LHV).
  • 7. Dimensional Consistency • When creating user added variables and equations, pay very close attention to the dimensions. • If your equations are dimensionally inconsistent your results will be wrong. • The software will check your equations for dimensional consistency, but will only issue warnings—not errors. • The key fact to understand is that the software does all calculations in internal Units of Measure, which are SI. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved. Internal UOM
  • 8. ROMeo internal Units. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved. SI Units
  • 9. Other Capabilities • Conditional Equations. • Mathematical Functions. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 10. Exercise: Practice for Customization Unit © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 11. Exercise • Create Customization to represent an inferential Calculation in four different ways. 1. Create same as inferential equation. 2. Create inferential using dimensional consistency – Convert to internal UOM. 3. Create inferential using dimensional consistency – Make equation dimensionless. 4. Create using dimensional consistency – specify UOM within equation structure. • Compare the data © 2019 AVEVA Group plc and its subsidiaries. All rights reserved. Create a Customization unit in ROMeo
  • 12. Inferential Data. • INF (C) = 0.7 * T101 (C) - 2.1 * P101 (kg/cm2g) - 0.1 * F101 (m3/h) • INF - 0.7 * T101 (C) - 2.1 * P101 (kg/cm2g) - 0.1 * F101 (m3/h) ==0 © 2019 AVEVA Group plc and its subsidiaries. All rights reserved. Tag No. Ope. Data (1) UOM Coefficient (2) Internal UOM (1) * (2) T101 100 C 0.7 K 70 P101 1.1 kg/cm2g -2.1 kPa -2.31 F101 70 m3/hr -0.1 m3/sec -7 Expected Value 60.69
  • 13. INF1 - Same as inferential equation. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 14. INF2 - Compensate to internal UOM. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 15. INF3 - Make equation dimensionless © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 16. INF4 - Specify UOM within equation structure. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 18. EDI Refresher • Interface between ROMeo variables and external data bases • Data transfer in both directions • OPC • OLEDB • ODBC (Microsoft Open Data Base Connectivity) • @aGlance - commercial client/server communication software for Historians • PI (OSI) • PHD (Honeywell) • AIM* (Invensys) • Not just measurements: Almost anything in Model window • Upper and lower bounds • Assay data • Feed, Product, Utility prices • Equipment On/Off status • Key Performance Indicators (e.g. HX U and DP) Most models have multiple data sources
  • 19. EDI Components • EDI consists of four components: • Digital Types • Digital Converters • Data Sources • IO Blocks
  • 20. I/O Blocks • Data to be transferred are organized as • I/O Blocks, Port Groups, Ports • Ports represents a connection between a database point and a ROMeo variable • Perform actions on any of these for data transfer options.
  • 21. Ports • To connect an EDI port to a variable • Drag and drop from the EDI window to a model window • Or… automate the procedure using macros • Design your EDI configuration based on purpose T T T T T Download same price to all sources Download price to source Dilution Steam T T T T T …Or… Simple and 1 place to enter prices More flexible for lineup changes Sync. prices by downloading the same value to each source
  • 22. Steps to create EDI port from GUI. • Depending on desired design, Create a new EDI Port block and group for OPC connection. Enable export if it an output block. • Right-click on the port group you want to add new tags to and select New Port. Add port name from the table • Enable export if it an output tag and accept the remaining defaults. Click OK. • Open Model window of the variable to which EDI port is to be connected and then open EDI. You can then drag and drop newly created EDI ports to model variable of their respective user variables (Point to remember: To which attribute will you connect ?) • You can use this model-window approach to connect any EDI port to any variable or parameter attribute. For example, you can connect an EDI port to the Lower bound on a variable. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 24. Overview of Macro • A “program” you write to automate a task. • Can perform some tasks that are not built in to ROMeo. • Uses the TCL scripting language. • Can modify data and make function calls on models (e.g. GenerateEstimates). • Can be called by Real Time System. • Coding can be done via Macro Editor connected to Notepad++. • Can be accessed from Macro Manager © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 25. Typical Uses for Macro • Change the value of a variable • Change the fix/free status of a variable • Custom measurement screening • Troubleshooting • Set Lower bound on all molar flows to 0.001 lb-mole/hr • Find all flowrates that have changed by more than 10% • Load assay from EDI to Mod Thermo • Automatically reconfigure flowsheet like furnace selection, HX bypass etc. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 26. Sample Macro Code • Set Lower bound on all molar flows to 0.001 lb-mole/hr set flows [FindVariable * MolarFlow] foreach i $flows { SetValue $i LO [ConvertUOMValue Rate lb-mole/hr Internal 0.001] } © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 27. Exercise: Practice for Macros • If measurement < 0.01, send all flow to rundown and turn off storage
  • 28. • In an online environment, the software runs unattended, so macros must be automatically executed. • Configure “Macro” Task in RTS. • Launch macro from Real time system. • Allows model to automatically update to plant lineup changes, switch from Datatec specification to optimization, etc. Executing Macros in the Online Environment © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
  • 29. How to Create and Run Macros from ROMeo Model • To create a macro, do the following: • From the Input menu, choose Macro Manager. • Right-click on Macros and create a newsubcollection. Right-click on the new subcollection and create a new macro • Type the name you want to assign to the macro. On the definition window, enter the macro code. • Use “macro Editor for ease of writing large codes. • Pressing “Execute” will run the macro. • Pressing OK will save macro. If you cancel macro will not be saved and executed action will be reversed. © 2019 AVEVA Group plc and its subsidiaries. All rights reserved.