A refinery energy system is modelled, including all the constraints, with continuous model validation using live data. Performance monitoring includes the tracking of equipment efficiencies by utilising validated data for its continuous calculation.
Susana Benedicto Calpe and Blanca Garrote Pazos Repsol Petróleo SA Diego Ruiz Massa, Jorge Alberto Mamprin and Carlos Alberto Ruiz García Soteica Europe SL
The Repsol YPF La Coruña refinery is a high-conversion site with both coke and FCC units.
The complex energy system is based around five steam headers and two cogeneration plants, and has several degrees of freedom. Manipulating these degrees of freedom using a cost- based optimisation program results in significant savings in operating costs. This is particularly important within the current deregulated electricity markets. Since the electrical system is one of the main economic trade-offs with a steam system, electricity deregulation makes it harder to operate the overall combined systems at a minimum cost.
Also, utility systems are continuously evolving and a lack of sensors can involve either estimating or calculating non- measured consumptions with modelling systems. Occasionally, there is also a lack of sensors that need to be addressed properly. Furthermore, utility systems have several constraints, usually originating from the operations side. Finally, it is also important to note that traditionally, given the complexity of the system, utility optimisation is managed by different refinery areas, but individual area optimisation does not necessarily yield the true global refinery optimum.
All these issues have been addressed successfully at La Coruña refinery by the online steam management program Visual MESA. This is an online program that receives live plant data from the steam, fuel, condensate, boiler feed water (BFW) and electrical system metering. It can help reduce costs by performing the following tasks:
- What-if studies
- Auditing and accounting
In terms of optimisation, Visual MESA helps find the most economical way to run the utility systems, while remaining within the operating constraints. It enables plant personnel to:
- Understand steam/electrical system operation
- Rapidly evaluate the economics of a change in operation
- Optimise the overall cost of fuel for steam generation and electricity, including the choice of the most convenient combination of turbines and motors
- Improve data quality.
From a monitoring perspective, Visual MESA provides a number of features that help access data, control data quality and alert of changes to the system:
- Plant, equipment and stream information
- Trending data
- Data quality (mass balance balloons)
Visual MESA also allows for the performance and evaluation of what-if scenarios that enable plant personnel to find ways to operate more efficiently and at reduced cost. Examples include:
- Front-end loading on projects
- True plant-wide project evaluation
- Steam, fuel, BFW, condensate and electrical system improvements
- CO2 emission cost.
- The program also helps plant personnel determine where wastage is occurring in the steam system
Energy system description
The La Coruña refinery is divided into two main areas, more than 3km apart from each other. One is called Nostián, the conversion area where the utilities plant, FCC and coke units are located, and the other is Bens, or the refinery area, where several users such as the crude units are located.
The steam network includes a very high-pressure steam header, high- pressure steam headers, two levels of medium-pressure steam headers and low- pressure steam headers. The very high- pressure steam header is generated in one of the cogeneration units. The high- pressure steam is mainly generated from the following sources:
- Four available boilers
- The heat-recovery steam generator at the other available cogeneration unit
- The calcination unit
- The FCC and hydrogen boilers
The main high-pressure steam users are the FCC and coke units, fuel oil heaters, a turbo generator and the cooling water system area. One of the levels of the medium-pressure steam headers is supplied by letdown from higher levels (through turbines or letdown valves) and by the turbo generator. Users of this steam level are almost all located in the refinery area (Bens). The other level of medium-pressure steam is supplied by letdown from the upper levels (by letdown valves or turbines) and by the FCC, coke, vacuum and medium-pressure heat-recovery steam generator of one of the cogeneration units. Users of this steam level are almost all units located in the conversion area (Nostián).
The low-pressure steam headers are supplied by letdown from the upper levels (letdown valves or turbines), some steam generators and flash tanks. Users of this steam level are units located in both the conversion and refinery areas.
Electricity generation is performed by the two cogeneration units, including the turbo generators. The refinery is usually an exporter of electricity, but is also able to import electricity if necessary, since it is connected to the external electricity grid.
There are several suppliers and users of fuel gas, the most important being the gas turbine of one of the cogeneration units. When the fuel gas density or pressure decreases, propane is automatically added to the network.
The main objective of the project was to make available a tool for the online optimisation, auditing and monitoring of the energy system. Such a tool could also be used for engineering studies, such as evaluations of operational changes, investment projects, and shutdown and startups, taking into account both the technical and the economical impact on the energy system.
Other successful implementations of the same technology were taken into account when deciding the objectives, including the following Repsol sites: Repsol Tarragona refinery, Petronor Somorrostro refinery, YPF La Plata refinery and Repsol Química Ensenada petrochemical complex.
Soteica Europe worked closely with La Coruña refinery's operations and process department in the implementation project, which involved:
- Data collection
- Model building
- Linking of Visual MESA to the plant information system (PI)
- Online optimisation
- Model and optimisation reviews
- Training of users
- Reports generation
- Online day-to-day optimisation.
A model of the entire energy system was built, including the fuel, steam, BFW, condensate and electrical system. Steam is generated in several units with conventional boilers, heat-recovery steam generators and two cogeneration units with possible steam injection. There are also two steam turbines that generate electrical power.
The five steam pressure levels and the units were modelled to a high level of detail, including all the users and suppliers of the respective steam, BFW and condensate headers. Electricity and fuels supply contract details were also included in the model, together with the market cost of electricity from the real- time database system.
Figures 1 and 2 show the Visual MESA model of the two main refinery areas. By navigating through the model, each individual unit can be monitored in detail. The fuel gas network was also modelled (Figure 3) due to its involvement in steam and power generation, and all its constraints and degrees of freedom were taken into account.
Visual MESA features mathematical models and built-in optimisation routines that make it possible to calculate how to run the steam and electrical systems at a minimum overall cost, while still meeting the required plant steam demands and other plant constraints. The software determines which boilers or steam generators should make incremental steam and which turbines or letdown valves will most efficiently let the steam down between pressure levels.
It uses a successive quadratic programming (SQP) optimiser, which is organised into four levels:
- Level 1 Includes the pressure control- related devices: boilers, letdown valves and vents
- Level 2 Adds the optimisation of other continuous variables, including turbo generators, steam injection, and extraction/induction/condensing turbines and steam turbines
- Level 3 Adds turbine-motor switching optimisation (ie, discrete variables)
- Level 4 Optimises variables that are potentially unsafe or affect process yield
A well-running model is generally run at Level 3, with an occasional run at Level 4 to evaluate potential operational changes. The program's objective function is to optimise the total operating cost of the system, which is:
Total operating cost = Total fuel cost + Total electric cost + R Miscellaneous costs
The SQP optimiser's job is to minimise this objective function, subject to operating constraints in the system. Total fuel cost is determined by the fuel use of each boiler and combustion turbine, multiplied by their respective fuel prices. Total electricity cost is determined by the net electricity use of each motor, load and generator, multiplied by their respective electricity prices. The model takes into account the electricity price corresponding to the actual hour of the day as well as the penalty associated with selling more or less of the market- arranged exportation set point. Miscellaneous costs are normally used to charge for demineralised water coming into the system, but cover other costs related to the energy system, such as CO2 emission costs.
A model to calculate and optimise CO2 emission costs was developed and can run alongside the electricity, steam and fuel optimisation routines, and help choose the best fuel to use in boilers and gas turbines. The fuel gas network was also modelled to consider the complex constraints and different fuel availability.
The Visual MESA model gets live plant data from the plant information system via a standard OPC interface. The model is installed for two types of use: standalone and client server:
- Client server The purpose is to share the solutions, supporting multiple users. Visual MESA server runs as service on a PC. It automatically runs with no interruption every 15 minutes, writing results on the PI system and generating reports. Any PC connected to the plant network can be configured to access the model and the reports. Users can connect in many ways (HTML, Excel, graphical user interface)
- Standalone The purpose of this installation is for individual users to be able to run case studies on their own PCs, using a snapshot of the current model or any other model the user may have built and the current data or historical data (automatically taken from the plant information system via standard OPC historian data access)
Microsoft Excel provides a familiar environment for users to generate reports and views of the simulation and optimisation of the system. It also enables users who are not familiar with Visual MESA to take advantage of the information it provides.
Data comes to Excel directly from the model. As Visual MESA is built around .NET technology, it can communicate seamlessly with Excel. Visual MESA also generates automatic HTML reports, to allow everyone on the intranet to see how the utility systems are being operated and what the potential savings are.
Auditing the energy system
By auditing the energy system, imbalances can be identified and reduced. The data can then be relied on for evaluating the value of energy production and usage, and wastage can be eliminated. Visual MESA helps to locate wasteful steam usage. Balloons are used to measure steam balance closure. They perform the algebraic sum of all the flows for streams entering and leaving the balance. Since there is a value for the flow of every stream, the total should be 0.0 (all the steam that comes in must go out). If the net balance is not 0.0, some meters or estimated equipment flow rates are erroneous, or there is steam leaving or entering the balance that has not been accounted for. The balloons dynamically show meter errors by changing size and colour, depending on the amount of steam imbalance. Balloons are placed where there is a chance of a closed mass balance (Figure 4).
A closed mass balance is formed by a group of flow meters, equipment with associated meters, or a combination of equipment and flow meters. Balloons are used for two main purposes:
- To validate steam flow data: if all of the flows in a balance continually add up to near zero, the flow data can be relied on for evaluating the value of production and use, and waste can be eliminated. If the balance does not add up to near zero, meters could be wrong or equipment steam flow rates may be different to those estimated and there might be significant waste
- To store model error, for use when comparing one case to another (ie, the actual operation against the optimised one)
CO2 emissions reduction
CO2 emissions cost has been taken into account according to the Kyoto protocol. A special modelling block with the emissions factor for each fuel and the CO2 cost has been added.
Visual MESA adds the CO2 emission cost to the total cost equation, so when it minimises the total cost it is taken into account with all other costs (fuels, electricity, demineralised water) and the optimum fuel feed to boilers and gas turbine is suggested.
In principle, as the energy cost reduction is given mainly by a reduction in fuels consumption, this always implies a CO2 emissions reduction, except where the optimisation recommendations are related to the consumption of a cheaper fuel, but that generates more CO2 instead of using a more expensive fuel that generates less CO2. This could be the case when replacing natural gas with a heavy liquid fuel. This challenging trade-off is affected directly by the CO2 allowance price.
What-if engineering studies
Visual MESA helps to evaluate potential capital or operating changes to the refinery, and assess the economics and operability of the changes. It can also automatically evaluate multiple what-if scenarios by using its Excel add-in. During a what-if scenario, the current site status (or the corresponding optimum calculated by Visual MESA) can be compared with the optimum case study and easily analysed. All imbalances are maintained constant and the steam production is allocated to the new demand/request proposed scenario.
The economical impact of adding a new natural gas line feed to the gas turbine needs to be evaluated. This investment project would allow the replacement of its gas oil feed. It can be done by simply changing the fuel to the gas turbine and running Visual MESA on what-if mode (balloons locked). By running this study, significant savings have been identified together with a CO2 emissions reduction.
Another what-if example is how to operate the refinery when one plant is shut down – for example, a unit that is a high steam supplier for the refinery (see the plant area called AL in Figure 1). It takes BFW, fuel gas and medium-pressure steam and exports high-pressure steam to the refinery. If this plant is shut down, the refinery has to adjust its steam production to adapt to the new situation.
This can easily be simulated with a what-if case study, and Visual MESA finds the most economical way to operate the energy system. Working with the model in standalone mode, with the current operation values, run the optimisation and set the results as the base case. Then, disable the plant area AL and finally run Visual MESA again with the balloons locked. The solution can be observed through reports and by different views in the model.
Visual MESA automatically allocates the steam production to satisfy the demand into the boilers and cogeneration units. As there is some fuel gas that it is no longer used by AL, there is a trade-off among boilers, the gas turbine and its post-combustion unit that is done automatically by Visual MESA. It can also generate electrical power, while suggesting the most economical turbine and motors operation.
Figures 5 and 6, with the highlighted steam lines, correspond to the Delta views (Nostián area and utility plant area); that is, the difference between the base case and the comparison case (AL disabled). The changes in the energy system to optimally manage the proposed situation can be observed.
Operators have a set of optimisation recommendations to operate the energy system at a minimum cost. The tool also acts as a "watchdog", since supervisors can evaluate how operators manage the energy system. Prior to applying the recommendations (or when recommendations are not taken into account), there is variability in the way the system is operated. As soon as Visual MESA is commissioned and put into use, this variability is eliminated, as shown in previous implementations.
As part of the implementation, a review of the steam, power and fuel control systems was performed. The goals of this control system review were:
- Develop a list of variables already controlled and how Visual MESA needs to relate to them
- Identify any needed control strategies or changes to existing strategies to implement optimisation
As a result, the optimisation suggestions can be achieved properly through the existing operating and control procedures.
Since Visual MESA is an operational tool, proper training of the operating personnel is important. The different shifts have been trained using the La Coruña refinery model. Feedback from the operators during and after the training classes has helped make the application easier to use, improving the report views and the displayed information.
To facilitate the implementation, at the beginning the optimiser was run at Level 2 (only continuous variables) so it could be handled by operators more easily. In a second stage, discrete variables were considered.
In case a sensor does not exist or has failed temporarily, Visual MESA utilises calculated or estimated data. The main meters needed for optimisation are: cogeneration (steam flow rate), boilers (steam flow rate), letdown valves, vents, and on-off status for motor turbines. New sensors have been located to automate the capture of the on-off status from the PI system.
Following in importance are those sensors that provide data to the model but are not changed by the optimisation. Optimisation can still be performed and implemented without these sensors (reboiler steam flows, temperatures and pressures). Less important sensors are those only used for monitoring and do not participate in the modelling.
An online tool for the management, auditing and cost control of the energy system has been installed at Repsol's La Coruña refinery. The benefits of the implementation include:
- Organise the information of the refinery energy system into one model and one environment that provides access to everyone
- Understand all the decision variables and associated constraints, which sometimes are hidden or ignored
- Allow centralisation of the responsibilities of operating the system optimally.
Energy costs reductions can be obtained by taking advantage of Visual MESA's functionalities. It is a robust optimiser well suited to routine operation. The model helps to evaluate what-if scenarios that include changes to the utility system. Auditing and accounting of the steam and BFW reduce wasted steam and identify imbalances. Finally, continuous monitoring prevents plant upsets and helps to quickly identify steam wastage.
It is important to emphasise the high involvement and motivation of the plant operators since the beginning of the software implementation. Co-ordination among plant areas is critical if the proposed optimisation recommendations are to be implemented successfully, so management involvement is crucial too. The robustness of the tool helped operators to gain confidence in the system. User acceptance and widespread employment are also key to success.
- Ruiz D, Ruiz C, Mamprin J, Depto Energías y Efluentes Petronor, Auditing and control of energy costs in a large refinery by using an online tool, ERTC Asset Maximisation Conference, Global Technology Forum, 23–25 May 2005, Budapest.
- Ruiz D, Ruiz C, Nelson D, Roseme G, Lázaro M, Sartaguda M, Energy costs reduction by using an online utilities optimization tool, ERTC Computing Conference, Global Technology Forum, 17–19 May 2004, London.
- Ruiz D, Ruiz C, Nelson D, Roseme G, Lázaro M, Sartaguda M, Reducing refinery energy costs, PTQ, Q1 2006, 103–105.
Susana Benedicto Calpe is a process engineer with Repsol Petróleo SA and is located at the La Coruña refinery. Benedicto Calpe holds a degree in chemical
engineering from Universitat Autónoma de Barcelona, and a petroleum and gas technology master from Instituto Superior de la Energía in Madrid.
Blanca Garrote Pazos is a chemical engineer with Repsol Petróleo SA and is located at the La Coruña refinery. Garrote Pazos has 15 years of experience in the petrochemical industry.
Diego Ruiz Massa is currently manager of Soteica Europe SL's European office in Barcelona, Spain. Ruiz Massa holds a doctorate degree in chemical engineering from Universitat Politècnica de Catalunya. Email: firstname.lastname@example.org
Jorge Mamprin is a chemical engineer with Soteica Europe SL, Barcelona, Spain. Mamprin holds a degree in chemical engineering from Universidad Nacional del Litoral, Santa Fe, Argentina. Email: email@example.com Carlos Alberto Ruiz García is the advanced control and optimisation manager of Soteica Europe SL, Barcelona, Spain. He is also professor of chemical engineering at Universidad Tecnologica Nacional. Alberto Ruiz holds MSc and PhD degrees in chemical engineering from Universidad del Sur, Bahia Blanca, Argentina. Email: firstname.lastname@example.org
Oil & Gas Downstream
The oil & gas downstream industry has been facing an increasing number of challenges in recent years. These include the changing characteristics of the feedstock to be processed, aging of process facilities and equipment, rising cost of energy, lack of skilled plant operators who can run a refinery safely and efficiently, and the ever-changing requirements from both the market and the customer.
Over the years, Yokogawa has partnered with many downstream companies to provide industrial solutions focused on solving these challenges and problems. Yokogawa's VigilantPlant solutions have helped plant owners to achieve maximum profitability and sustainable safety within their plants.
In the ever changing marketplace, refineries are seen not only as crude processing units but also as profit centers. At the same time, there is a keen awareness of the need for safety at such facilities. A total production solution that encompasses planning, scheduling, management, and control is required to achieve long-term goals for profitability, efficiency, and environmental protection. With years of expertise in the automation field, Yokogawa can bring you affordable total solutions for improved operability and a cleaner world.
Contact a Yokogawa Expert to learn how we can help you solve your challenges.