Vous êtes sur la page 1sur 6

Simulating optimal tank farm design

Development of a computerised model incorporating Monte Carlo operational


risk simulation with the optimisation power of linear programming

Michael D Stewart Foster Wheeler North America Corp L Dean Trierwiler Haverly Systems Inc

L
inear programming (LP), a technology first Company (KNPC). This assessed the adequacy of
applied during the Second World War to existing tank farms at all three KNPC refineries
help solve troop-supply problems, contin- for operations through 2010, and developed an
ues to be the premier tool for determining the optimised solution to the refineries tank farm
optimal distribution of limited resources. needs. In addition to dealing with routine opera-
Nowhere is this more evident than in the petro- tions such as planned turnarounds, the study
leum refining industry. As barriers that once had to assure that the tank farm capacity would
separated individual refineries continue to fall in be sufficient to handle unplanned events such as
an attempt to improve overall industry health, ship delays, power failures, weather problems
LP is used to identify the synergies and opera- and unit outages, as well as an expected increase
tional improvements that result. in refined product diversification. This would
allow for optimum utilisation of the available
Inventory disruptions storage capacity, while also minimising capital
Historically, the way to alleviate product or feed- cost for the upgrading facilities.
stock supply problems in petroleum refining was
to build another tank. These tanks provide Inter-refinery supply study
extra storage capacity, which effectively reduces KNPC operates three refineries in Kuwait with a
the time element in operations planning, lessen- total crude throughput of approximately 900
ing the impact of disruptions, both planned and 000bpd. The refineries are Mina Al Ahmadi
unplanned. Tanks allow stocks to be more read- (MAA), Mina Abdulla (MAB) and Shuaiba
ily available before they are needed, or held (SHU). While SHU is KNPCs oldest refinery,
when their transfer is delayed. They give refiners MAB is KNPCs most modern. MAA, however, is
more time to bring their contents to specification the largest and most complex, with FCC, hydroc-
quality or to prepare for expected outages. Tanks racker and petrochemical feedstock preparation
also provide for easier stock segregations when units. These refineries have developed in stages
enough exist to designate each in limited serv- over a long period of time, with the last modern-
ices. However, new tanks are expensive to build isation completed in 1988.
($26.5040.00 per barrel installed) and main- Finished products from the refineries are trans-
tain, and difficult to justify both economically ferred to tankers berthed at the North Pier, New
and environmentally. In addition, most refiners South Oil Pier, SHU Oil Pier, and Sea Island.
are faced with limited or no available real estate. MAA products are exported to North Pier and
Therefore, even though throughputs and product South Pier, MAB products to Sea Island and SHU
diversification are on the rise, refiners are chal- products to SHU Oil Pier. All of the refineries
lenged to operate within the same or less have been integrated for better feedstock manage-
available inventory capacities. ment and product sharing through six
So how much tankage capacity is enough? How inter-refinery transfer (IRT) lines. These include
much is excessive? Foster Wheeler (FW) recently two 24in lines for black oil products, two 20/24in
completed a detailed tankage and hydraulic lines for white oil products, one 14in line for
study for the Kuwait National Petroleum motor gasoline components and one 20in line for

www.digitalrefining.com/article/1000089 PTQ Q2 2005 1


Simulated the refineries
existing mode of operation in
Feedstock Feedstock
Product
the 2008/2010 time frame
Assessed alternative tank
S Product
P T P B farm system improvements
r l h
r a Performed preliminary
o e i
o n Product
Crude d n p hydraulic/ flow analysis
c k d p Issued a final report with
e a
i recommendations for tank farm
s g Product
I n system improvements.
s e
R g
T Product
Tank farm simulation model
To/from other refineries
A simplified block diagram of a
typical single refinery configu-
Figure 1 Typical refinery block flow diagram ration is shown in Figure 1. The
tank farm simulation model
naphtha/ kerosene. The refineries continuously must adequately address the issues contained in
exchange products for use in their various process the area indicated by the dashed oval line.
activities or blending operations in order to create The tank farm simulation model served as the
products that are ready to export. KNPC defined basis for identifying the bottlenecks, additional
the objectives of the study as follows: storage capacity and modification required in
Outline an interim solution for tankage defi- product receipt, blending, and unit charge and
ciencies in KNPC refineries before anticipated dispatch facilities. It was used to answer the
upgrading and expansion projects are completed question, What is the adequate tank storage
in 2008/2010 capacity required for anticipated refinery opera-
Carry out a simulation study to assess the tions? To effectively answer this question, the
future tankage requirements for KNPC model incorporated statistical risk techniques to
Check for each refinery, and for KNPC in best reflect the realities of refinery off-site tank
general, the adequacy of existing intermediate farm operations. In addition to dealing with
and finished product storage capacity, number of routine operations such as planned unit or plant
tanks, IRT systems, unit charge systems, blend- turnarounds, the model accounted for unplanned
ing and dispatch facilities, and identify any events including ship delays, power failures,
modifications required weather problems and unit outages.
Check the adequacy of the hydraulics and flow Operating any industrial facility involves risks.
metering systems to ensure efficient operation of Some risks are fairly common but have a low
the refineries and export operations consequence. Others may have a low probability
Identify the additional storage capacity, tank- but can be quite serious. Whatever the risks,
age requirements and other associated facilities they can be quantified and easily understood.
required to meet overall objectives This field of study is known as probabilistic risk
Assess the benefit of on-line blending and assessment and helps companies and govern-
industry best practices for storage and handling ment departments to assess whether they have
Prepare process design packages for any new adequately identified the risks and potential
tanks and identified modifications, with budget- consequences involved with operating these
ary cost estimates for implementing such facilities. The concepts were developed over 40
recommendations. years ago, but recent advances in computing
To accomplish these objectives, FW performed software and power have increased both the use
the following tasks: of such analysis and the confidence in them.
Collected all pertinent inventory and refinery The concept of probabilistic risk assessment is
data/documents that simulation can help determine the chances
Prepared a study design basis of a particular outcome, or set of linked
Developed an appropriate tank farm simula- outcomes, based on what is known or estimated
tion model about the smaller variables that lead to these

2 PTQ Q2 2005 www.digitalrefining.com/article/1000089


outcomes. Historical data is used to estimate the The focus of the LP model was on the tank
relative frequency of those variables and then farms, blending and shipping operations within
applied in random order to models to determine the KNPC refineries, and not on specific refinery
the impact. By defining the known linkages process unit operations. As such, it retained the
within a system, the simulation model is uncon- ability to blend to final product specifications
strained by complexity and quite accurate. from material in the inventory, although it was
This statistical modelling method (also called limited to the major blend specification proper-
stochastic simulation or discrete event simula- ties (for example, sulphur, gravity, octane for
tion) is a powerful and accurate method for gasoline, diesel index for gas oil/diesel and
solving systems engineering problems. It is not viscosity for fuel oil).
constrained by simplifying assumptions as with
more traditional analytical modelling, but instead Model execution
runs many histories concurrently, each with a A simplified depiction of the overall model struc-
different stochastic behaviour, and aggregates ture is shown in Figure 2. The multi-period/
the results. In other words, it is a method that multi-refinery LP model was run over a total of
fairly accurately predicts expected system behav- five years (five years corresponding to the main-
iour and variation. The Monte Carlo simulation tenance planning cycle for the refining system).
effectively overlaid and adjusted the LP model to To achieve sufficient resolution for proper analy-
reflect events such as emergency unit outages, sis, this time frame was broken down: first, into
unplanned unit maintenance and shipping five annual models of 52 time periods each; and
complications. second, into 260 one-week single periods. One
Such use of LP in probabilistic modelling was week was chosen as the minimum resolution
impractical until recently. Attempts to integrate time required for evaluating inventory utilisation
it with technologies such as Monte Carlo simula- within the tank farms of the refineries and still
tion often produced uncontrollable models, providing reasonable run-times for the model.
which were exceedingly large, fragile and slow, The 52-week models were run with all planned
difficult to interpret, and overwhelming in terms outages and conditions to establish a baseline for
of their data consumption and production. each year, with closing inventory from one year
However, with technical advances both in the passed on as opening inventory in the following
hardware abilities of computer processing and year. Then, the 260 one-week models were run
the software abilities of LP
solvers and data management
tools, larger problems are Year five
solved faster, from better- Base case MS Access
managed data, to produce more 52-week solution
multi-period database
Year three

stable, understandable results.


Year four
Year one

Year two

One
year five model with
The LP model for this study planned outages and processing
was developed using Haverly
solution manager

Systems proprietary generalised 52


Monte Carlo

one-week cases
MS Excel
simulator

refining-transportation-market- submitted by the


GRTMPS evaulation wizard
ing planning system (GRTMPS).
This model represented the
One-week MS Access
planned refinery operations in single-period solution
2010 with current tankage e d
case database
lann
condition at all three refineries. Unp ges and
Next case
outa ceipts
It incorporated all current inter- re inventory
data*
connections between the
refineries, and was initially
populated with current tankage
constraints, planned unit *Specific inventory limits are modelled as soft, but total available inventory is fixed

outages, planned tank mainte-


nance and pumping limitations. Figure 2 Tank farm simulation model structure

www.digitalrefining.com/article/1000089 PTQ Q2 2005 3


Figure 3
Typical model output for a tank group
current tankfarm operations
the one-week, single-
100%
period models only, any
90% preparation behaviour
80%
was eliminated, restora-
tion time minimised and
70%
tankage forced to deal
60% with any upsets caused by
50% the disturbances. Final
inventory positions from
40%
each one-week, single-
30% period model were then
20% passed onto the next
week, so imbalances were
10%
worked off over several
0% weeks when necessary. In
0 52 104 156 208 260
Time (weeks) addition, inventory capac-
ity was modelled so that
Figure 3 Typical model output for a tank group (current tank farm operations) some specific limits could
be violated at a cost, but
numerous times to record the effects of unex- total inventory capacities were firm. Modelling
pected outages and shipping. A special utility these specific limits as soft allowed the model
was written to automatically apply the Monte to indicate where and when it could be advanta-
Carlo simulation results to the one-week models geous to consider changing the service of tanks.
and define the cases. The cases were then stacked In the course of execution, the model produced
and automatically run using the GRTMPS a tremendous amount of data that had to be
Evaluation Wizard. compiled and analysed. With Haverlys assist-
An interesting side note concerns the speed at ance, FW modified the report-generation feature
which the 52-week models ran. Initial solution of GRTMPS to capture the relevant information
attempts required in excess of 40 minutes per related to tank farm inventory management and
run, which was unacceptable given the number download it into Microsoft Access. The raw data
of runs needed to establish a good baseline. was then exported into Microsoft Excel for
However, a change in the LP solution technique, numerical analysis and graphical presentation.
from Simplex to the Barrier, or interior point,
technique, brought the run-times down to just Case summaries
under four minutes. Although the Barrier tech- FW used a stepwise approach to analyse the tank
nique has been shown to perform better than farm operations, with a stated goal to keep
Simplex on very large, sparse LP models, an recommended capital investments to a mini-
improvement of this size was quite unexpected. mum. A series of simulation model runs was
A multi-period/multi-refinery LP model alone performed for each case scenario to assess facili-
would have been sufficient to perform the study ties utilisation. The scenarios that were examined
if plant operations were predictable and steady. include the following:
However, due to the nature of unplanned or Base case Current operations: the current
emergency process unit outages and shipping refineries tankage, blending and shipping config-
delays, a more dynamic aspect was needed. The urations were examined, given planned 2010
randomness provided through the Monte Carlo operations. This model represents the current
simulation created this dynamic representation tankage condition at all three refineries and
of real-world events. incorporates all current interconnections
Also, the nature of LPs themselves is such that between the refineries, based on data collected
they do their best to anticipate and prepare for during FWs site visit and output from KNPCs
upcoming circumstances. This feature had to be own LP model. The model is initially populated
overridden to deal with unplanned events. By with current tankage, planned unit outages,
applying the unplanned element of the study to planned tank maintenance and pump limits

4 PTQ Q2 2005 www.digitalrefining.com/article/1000089


Case 1 Re-allocation of existing tankage: based distribution of probability, lines are then drawn
on constraints identified in the base case runs, on the chart to represent ~u and u~+2d, which
existing tankage is reallocated to allow reasona- indicates that 95.45% of tank group utilisation
ble levels of utilisation within tank groups fits below the upper band line.
Case 2 In-line finished product blending: auto- If the upper band line exceeds 100% capacity
mated, in-line blending facilities allow finished utilisation, this would indicate that available
products to be blended as required, rather than tankage capacity is not sufficient and hence a
the current practice of building a full batch of potential restriction to tank farm operations.
inventory prior to shipping release, thus reduc- Conversely, a band line that falls below 100%
ing hold time in tankage capacity utilisation indicates that there is suffi-
Case 3 Inter-refinery transfers of finished cient tankage available to deal with normal tank
products: by permitting transfers of finished farm operations.
products between refineries (ie, tank-to-tank The following results were captured from the
transfers), distribution system flexibility is tank farm simulation model, measured and
improved trends recorded:
Case 4 Elimination of dual-port product load- Process unit capacity utilisation
ing: this is similar to Case 3, except finished Tankage utilisation as a percentage of working
products from one refinery can be shipped capacity
directly to the loading port of another refinery Frequency that tank filling is constrained by
without going through finished product tankage maximum working capacity
first Product properties and transfer flow rates
Case 5 Addition of new tankage: if reasonable within the refineries, via inter-refinery transfers
system utilisation cannot be achieved by the and to final product shipping facilities
changes in facilities, practices and procedures Ship movements as a result of two-port
previously identified, additional refinery tankage loadings
will be considered. Product movement operating costs
Final product blend values
Model results Improvements in all of these as a result of
The base case model output shown in Figure 3 is defined system modifications and expansions.
for a typical tank group before any system For each case, FW identified, quantified and
configuration changes have been made. Figure 4 compared the benefits
Figure 4 to the base case. Estimated
Typical model output for a tank group
shows the improvement after implementing all proposed recommendations
after implementing
all recommendations. 100%
Individual lines represent 90%
specific Monte Carlo
80%
simulation runs. The
bands indicate the statis- 70%

tical average and standard 60%


deviation for all runs.
50%
Methods other than
visual observation of the 40%

resulting charts were used 30%


to analyse tankage utilisa-
20%
tion. For analysis of tank
group capacity utilisation, 10%

the mean tank group 0%


0 52 104 156 208 260
utilisation (~u) and the Time (weeks)
standard deviation (d) of
the data set are calculated
and displayed on the Figure 4 Typical model output for a tank group (after implementing all proposed
charts. Assuming normal recommendations)

www.digitalrefining.com/article/1000089 PTQ Q2 2005 5


capital costs for recommended system improve- can now be effectively and confidently conducted
ments as well as expected revenue increase and/or using todays LP tools. Coupling statistical
cost savings were used to determine a project modelling methods with LP is an approach
payout period. promising great returns, not only in inventory
Weekly operating costs, as determined by the studies such as this but also in studies involving
tank farm simulation model runs, were aggre- price and quality sensitivities, feedstock selec-
gated into annual average costs over a five-year tions, market place dynamics, and investments
period. Annual credits for each case were the of capital.
difference in the average annual operating costs
vs the base case. FW estimated capital costs for GRTMPS is a trademarked technology of Haverly Systems.
each case from in-house data and previous expe- Microsoft Access and Microsoft Excel are trademarked products
rience with similar projects and equipment. of Microsoft Corporation.
Implementation of the recommended system
References
improvements resulted in a project payout period
1 Al-Otaibi G A and Stewart M D, Simulation model determines
slightly in excess of two years. The total overall optimal tank farm design, Oil & Gas Journal, Vol 102.7, 5055,
project cost was reduced due to the early deci- 16 February 2004.
sion to minimise installation of any new
tankage. Michael D Stewart is chief process engineer for Foster Wheeler NA
The results of the aforementioned analysis Corp, Houston, Texas, USA, and manager for planning activities
were presented to KNPC as well as the economic and studies associated with refinery and petrochemical process
benefits for upgrading the tank farms at the plants. He has over 27 years of international experience. He
three refineries. Consequently, KNPC is now holds a BS degree in chemical engineering from West Virginia
implementing the upgrading project based on University, an MBA from Marshall University and has completed
graduate studies in economics at the University of Oklahoma. He
the system improvements as defined in Cases 1
is a registered professional engineer in West Virginia and Texas,
through 4, confident that the optimal capital
and a member of the American Institute of Chemical Engineers.
investment strategy has been chosen. This Email: Michael_stewart@fwhou.fwc.com
project also allows for future expansion and L Dean Trierwiler is the business and technical manager at Haverly
upgrading of the refineries without being Systems Inc, Houston, Texas, USA. He joined Haverly in 1990 and
constrained by tank farm operations. has since worked in the management, support and application of
Haverlys planning, scheduling and crude assay software tools.
Conclusion Trierwiler holds a BS degree in engineering from Washington
The primary conclusion of the KNPC study was State University.
the determination that no additional tankage Email: dean@haverly.com
would be required for them to operate comforta-
bly into the next decade. Additionally, sufficient LinkS
cost savings have been identified that can pay
back the cost of system improvements within More articles from: Foster Wheeler USA
two years. More articles from the following categories:
As demonstrated by this project, stochastic Process Modelling & Simulation
studies such as the one presented in this article Storage & Handling

6 PTQ Q2 2005 www.digitalrefining.com/article/1000089

Vous aimerez peut-être aussi