Skip to the text
Flowmax · Transient

Training Manual

Ten worked examples · Hydraulic transients, surge and its protection

A reservoir, a pipe and a valve · Cooling water pumps · Fire water ring main
Offshore fire water · Water transfer with surge protection · Condensate rundown
LNG rundown · CO2 injection · Liquid sulphur export · Propane rundown
Revision 3 – 13 October 2026

About this manual#

This manual teaches the transient mode of FlowMax by ten worked examples. Each example is a system of the kind a process or piping engineer is asked to check for surge: its data are given as a data sheet would give them, the model is built, and then several things are done to it, one at a time, each to show one thing. The sub-examples are lettered - 1a, 1b, 1c - and each ends with what it shows.

The first example is the smallest transient there is: a reservoir, a pipe and a valve. It is worth working through even by a reader who knows the subject, because it is where the Transient window is introduced tab by tab and where every number can still be checked by hand. The examples after it add equipment and features as they go; Table 1 says which, and the table at the end of the manual says where each feature of the transient mode is taught.

Table 1 The ten examples
ExampleSystemShown
1A reservoir, a pipe and a valve (water)Wave speed, time step, a valve schedule, charts, closure time, valve characteristic, the Scenario Manager
2Cooling water pumps in parallelPump trip and start, pump inertia, check valves, four-quadrant model, a pressure controller on pump speed, an air valve against a vacuum
3Fire water ring main, onshoreSpray nozzles, forces on the piping, dry pipe filling, the scenario report
4Offshore fire water from the seaA column that parts at a high point, an air valve, a restart on a parted header, dry pipes filling, an air leg, a pump start on an empty riser, a force on all axes
5Water transfer with surge protectionSurge relief valve, accumulator, surge tank compared; a gasoline shipping line
6Condensate rundownLine packing, the two cavitation models, a level controller, forces for supports
7LNG rundownTuning closure times against the pump trip, a pressure control valve failing closed
8CO2 injection, dense phaseA soft fluid: low wave speed, forces from a compressor trip
9Liquid sulphur exportA stiff heavy liquid, a closure-time study, flow controllers, relief valves
10Propane rundown, four trainsSeveral pumps on one header, line packing, low pressure against vapour pressure, a boundary pressure as a variable of the cases

What the examples are#

The systems are of the kind met in real plants: LNG and gas processing, refining, utilities, water treatment and transfer, fire protection. Each exercise reflects a real project in its layout, its sizes and the questions asked of it. The examples also follow the practice of real surge studies, because it is what a reader will be asked to follow:

How an example is laid out#

Every example has the same parts. The objective says what the reader will be able to do at the end. The engineering problem states the system and the question in the words of a design office. The model schematic shows it as drawn in FlowMax and the input data table lists everything typed. The model set-up goes through the windows used. Then come the sub-examples, each with what to do, what the program gives, a check by hand where there is one, and what it shows. A table of reference results at the end is for the reader who has built the model himself and wants to compare.

Each example comes as one project file, named under its title, or as two or three where a sub-example needs a model of its own. The sub-examples are either cases of that file's Scenario Manager, run with one press, or a change the text asks the reader to make in a window before running again.

Where the numbers come from#

Every number in this manual was produced by FlowMax while the manual was being built: the project files are opened, changed as the text says, and run, and the figures are the program's own windows after those runs. A hand calculation is shown beside the program's figure wherever a hand calculation exists, and the two are not forced to agree: where they differ the text says by how much and why.

Units The examples work in metres, m³/h and bar. Pressures are gauge (barg) unless an example says otherwise. Time is in seconds from the start of the run.

The transient mode and its window#

FlowMax solves a network in two ways. In steady state it finds the flows and pressures that balance and stay as they are. In transient mode it starts from that balance and follows what happens when something changes - a valve moves, a pump stops - a hundredth of a second at a time, along every pipe, by the method of characteristics. The model is the same one; the transient mode adds what a transient needs to know and the steady state did not: how fast a pressure wave travels in each pipe, how much inertia a pump has, what moves and when.

Switching to transient mode#

The Transient page of the ribbon carries a switch, Transient Mode. Moved to on, it opens a window that lists what the transient mode needs of the model - an element switched off has to be expressed as a closed valve or a stopped pump, because a transient needs it in the network - and, once confirmed, shows the commands of the page. The transient mode works with a liquid of constant properties: a fluid of Variable properties is set to Constant properties, at the temperature of the Fluid window, and a message says so.

The Transient page of the ribbon in transient mode: the switch, Save, Run, Integrator, Charts, Setting, Controller, Forces and Scenarios.
Figure 1 The Transient page of the ribbon in transient mode: the switch, Save, Run, Integrator, Charts, Setting, Controller, Forces and Scenarios.

In transient mode the Run of the Home page and the steady-state tools (Calculator, Scenario, Adjust, Sizing) are greyed: the Run to use is the one on the Transient page. A project remembers its mode and opens in it.

The Transient window#

Every command of the page opens the same window at one of its six tabs. Each tab has the same parts: a strip at the top with the tab's name, a line saying what it holds, and its buttons at the right; where a tab holds several things - charts, controllers, forces - a list down the left side.

Table 2 The tabs of the Transient window
TabWhat it holdsFirst used
SettingHow the wave speed of each pipe is found, the cavitation model, dry pipes, unsteady frictionExample 1
IntegratorThe initialisation time, the end time, the time step and the output time step; how well each pipe is resolved at that stepExample 1
ChartsThe time histories to keep: each chart has a name and a list of variables, and after a run the maximum and minimum of each with their timesExample 1
ControllersWhat moves during the run: a valve's opening or a pump's speed against time (manual), or held by a controller on a pressure, a flow or a level (automatic)Example 1
ForcesThe unbalanced force on a run of pipe between two cuts, as a maximum, a minimum and a history for the stress analysisExample 3
ScenariosCases - the same model with a controller or a boundary changed - run one after the other, compared against limits and written into a reportExample 1

What a run does#

Pressing Run on the Transient page does three things in order. It solves the steady state of the model as it stands. It then lets that state settle for the initialisation time with nothing moving, so that the transient starts from rest. Then it runs to the end time, moving whatever the controllers move, and keeps a point of every chart at each output time step.

When the run is over the charts are drawn, and every pipe and node carries the largest and smallest pressure it saw and when - on the sheet, as labels, and in the tables of results, which have extra rows in transient mode. If something needs saying - a time step too coarse for a pipe, a force that could not be calculated, a tank that overflowed - a message says so once, after the run.

Before a run If the status of the model reads Missing inputs instead of Ready to run, click the mark beside it: the list that opens says what is not yet given, element by element. In transient mode that includes the wave speed of every pipe and the inertia of a pump that is asked to trip.

Example 1 A reservoir, a pipe and a valve#

Project file D01 Reservoir, pipe and valve.flmx

1.1 Objective#

To run a first transient and understand everything on the screen. By the end the reader will be able to put a model into transient mode, say how its wave speed and its time step are chosen, make a valve move with a controller, chart a pressure against a limit, check the result against the Joukowsky formula by hand, and use the Scenario Manager to compare several closures in one run.

1.2 Engineering problem#

A service reservoir on a hillside supplies a plant through a kilometre of 10 inch steel pipe. The water surface is 90 m above the plant. At the plant the line ends in a let-down valve that discharges into a break tank open to the atmosphere. The line is rated for 16 barg.

The valve is to be fitted with an actuator. How fast may it close? If it shuts at once, what pressure does the line see - and does the answer depend on the kind of valve?

At rest with the valve shut the line carries the static head, 8.81 barg at the valve, a little over half its rating. The question is what the moving water adds when it is stopped.

1.3 Model schematic#

Example 1 as drawn, after the run of Example 1a. Under P-101 is its steady flow in m³/h; under each node is the largest pressure it saw during the run, in barg. N3 carries the pressure symbol: it is the break tank, held at 0 barg.
Figure 2 Example 1 as drawn, after the run of Example 1a. Under P-101 is its steady flow in m³/h; under each node is the largest pressure it saw during the run, in barg. N3 carries the pressure symbol: it is the break tank, held at 0 barg.

1.4 Input data#

Table 3 Example 1, input data
ItemValueBasis
FluidWater at 20 °C998.2 kg/m³, 1.002 cP, bulk modulus 2.2 GPa
Unitsm, m³/h, bargUnit set of the project
T-101, reservoirSurface held at 90 mFloor at 85 m, level 5 m, open to atmosphere; level constant
P-101, supply line1000 m of 10" schedule 40Carbon steel, bore 254.5 mm, wall 9.27 mm, roughness 0.046 mm, fittings K = 2
V-101, let-down valveCv 46 at full openingLinear characteristic; at 0 m
N3, break tank0 barg at 0 mKnown pressure
Design pressure16 bargDrawn on the chart as a limit line
RunInitialisation 5 s, end time 30 sTime step 0.01 s, output time step 0.01 s
EventV-101 closes from t = 5 sFive seconds of steady state first

1.5 Model set-up#

The network. The tank, the pipe and the valve are drawn and filled in exactly as for a steady-state model. Two things are asked for that a steady state does not use. Both are on the Transient page that the property windows gain in transient mode. The tank is told whether its level moves during the run or is held (Figure 3); a reservoir of this size does not notice thirty seconds of flow, so it is held. The pipe needs what its wave speed is made of: its outside diameter, so that the wall is known, and the elasticity of its material (Figure 4). Choosing the pipe from a schedule and a material on its Inputs page, as here - schedule 40, 10 inch, commercial steel - fills these in.

The Transient page of the tank T-101: its geometry, diameter, initial level and height, and Level in the run, here Constant.
Figure 3 The Transient page of the tank T-101: its geometry, diameter, initial level and height, and Level in the run, here Constant.
The Transient page of the pipe P-101: the outside diameter, the modulus of elasticity and Poisson's ratio of the material, and the wave speed that follows from them.
Figure 4 The Transient page of the pipe P-101: the outside diameter, the modulus of elasticity and Poisson's ratio of the material, and the wave speed that follows from them.

Setting. Open the Transient window at Setting. The wave speed is Calculated Per Pipe: FlowMax works it out for each pipe from the bulk modulus and density of the fluid, the bore and wall of the pipe, the modulus of its material and the way the pipe is restrained. For P-101 it comes to 1309.8 m/s. No cavitation model is needed here, because, as will be seen, the pressure stays above the vapour pressure everywhere.

Setting. The wave speed is calculated per pipe, the line being anchored against axial movement; no cavitation model, no dry pipes, steady friction.
Figure 5 Setting. The wave speed is calculated per pipe, the line being anchored against axial movement; no cavitation model, no dry pipes, steady friction.

Integrator. The run is given 5 s of initialisation and ends at 30 s. The time step is specified, 0.01 s. The table at the right says what that step does to each pipe: a wave crosses 13.1 m in one step, so P-101 is cut into 76 reaches and its wave speed is bent by a fraction of a per cent to make the number whole. Calculated Time Step is the step FlowMax would take if none were specified. section 1.9 comes back to this table.

Integrator. Left, the times of the run; right, how each pipe is resolved at the time step chosen.
Figure 6 Integrator. Left, the times of the run; right, how each pipe is resolved at the time step chosen.

Controllers. Nothing moves in a transient unless a controller moves it. Press Add controller, press Select OP and choose the opening of V-101. The mode is Manual and the function type Linear: a table of time against opening, joined by straight lines. The valve stays at 100 % until 5 s and is at 0 % a tenth of a second later.

Controllers. Controller 1 drives the opening of V-101: open until 5 s, shut at 5.1 s.
Figure 7 Controllers. Controller 1 drives the opening of V-101: open until 5 s, shut at 5.1 s.

Charts. A run keeps only what is asked for. Three charts are set up on the Charts tab with Add chart and Set variables: the pressure at the inlet of V-101, with the design pressure added as a Limit line; the flow and the opening of V-101; and the pressure at the start, the middle and the end of P-101.

1.6 Example 1a The valve closes at once#

Press Run on the Transient page. The steady state has 117.3 m³/h in the line, 0.640 m/s, and 8.67 barg at the valve - the static head less 0.14 bar of friction. At 5 s the valve shuts.

Example 1a, the pressure at the inlet of V-101. The dashed line is the design pressure. The table under the chart gives the maximum and the minimum of each series and when.
Figure 8 Example 1a, the pressure at the inlet of V-101. The dashed line is the design pressure. The table under the chart gives the maximum and the minimum of each series and when.

The pressure at the valve jumps to 17.22 barg, above the design pressure, stays there for 1.53 s, falls to 0.55 barg for as long, and repeats. This square wave is the signature of a closure that is faster than the pipe can answer.

By hand. When a flow is stopped at once, the pressure at the valve rises by the Joukowsky head, ΔP = ρ a v. Here ρ = 998.2 kg/m³, a = 1309.8 m/s and v = 0.640 m/s, so ΔP = 8.37 bar. The wave this starts runs up the pipe to the reservoir, is reflected there, and is back at the valve after 2L/a = 2 × 1000 / 1309.8 = 1.53 s. Until it is back, the valve cannot know there is a reservoir at the other end.

Table 4 Example 1a, the program against a hand calculation
QuantityBy handFlowMax
Wave speed of P-101, m/sfrom K, ρ, E, D/e : 13101309.8
Rise at the valve, barρ a v = 8.378.55
Largest pressure at the valve, barg8.67 + 8.37 = 17.0417.22
Smallest pressure at the valve, barg8.81 − 8.37 = 0.440.55
Length of each plateau, s2L/a = 1.531.53 (read from the chart)

The program's rise is 0.18 bar more than Joukowsky's. That is not an error: it is line packing. The moving water was losing 0.14 bar to friction along the pipe; once it is stopped that loss is given back, and the pressure at the valve creeps up towards the static head plus the surge while the first plateau lasts. On a kilometre it is small. On the long lines of the later examples it is most of the answer.

Example 1a, the pressure at the start, the middle and the end of P-101. The end sees the whole square wave; the middle sees it for half as long; the start, at the reservoir, hardly moves.
Figure 9 Example 1a, the pressure at the start, the middle and the end of P-101. The end sees the whole square wave; the middle sees it for half as long; the start, at the reservoir, hardly moves.

Figure 9 shows the wave travelling. The start of the pipe is held by the reservoir. The middle joins the plateau a quarter of a period late and leaves it a quarter early, because the reflected wave reaches it sooner. Under each node on the sheet (Figure 2) is the largest pressure it saw: the whole lower half of the line has been above its rating.

The minimum matters too The line fell to 0.55 barg. Had the static head been lower or the flow higher, the trough would have reached the vapour pressure of water, about −0.99 barg, and the liquid would have parted. A model with no cavitation model then shows pressures no liquid can have; the Max and Min tables are where to look for it. Examples 5 and 6 deal with that case.

1.7 Example 1b The closure time#

Now the same valve is closed in 1, 2, 5, 10 and 20 seconds. Rather than edit the controller five times, the closures are made cases of the Scenarios tab. A case is the model with something changed; here each case replaces the schedule of controller 1. The first case leaves it as drawn.

Scenarios, Cases. Down the side the six cases; across the top what they vary, here the controller of V-101. A cell is set by double-clicking it.
Figure 10 Scenarios, Cases. Down the side the six cases; across the top what they vary, here the controller of V-101. A cell is set by double-clicking it.

On Outputs the pressure at the inlet of V-101 is added as the result to watch, with 16 barg as its maximum limit, and its Chart box ticked. Press Run all. The strip at the top shows which case is running; when all are done the tab moves to the summary.

Scenarios, Outputs. One row per result that goes into the summary, with the limits it is judged against.
Figure 11 Scenarios, Outputs. One row per result that goes into the summary, with the limits it is judged against.
Scenarios, Charts. Every case on the same axes: the slower the closure, the lower and the later the peak.
Figure 12 Scenarios, Charts. Every case on the same axes: the slower the closure, the lower and the later the peak.
Scenarios, Summary & Report. Maximum and minimum of the watched result for each case; a figure over its limit is in red.
Figure 13 Scenarios, Summary & Report. Maximum and minimum of the watched result for each case; a figure over its limit is in red.
Table 5 Example 1b, the largest pressure at V-101 for each closure time
Closure time, sIn units of 2L/aMaximum, bargRise, barRise by hand, barAgainst 16 barg
0.10.117.228.55  8.37 (Joukowsky)  over
10.717.188.51  8.37 (Joukowsky)  over
21.314.535.86  3.20 to 6.39  within
53.310.631.96  1.28 to 2.56  within
106.59.590.92  0.64 to 1.28  within
2013.19.140.47  0.32 to 0.64  within

Two things stand out. A closure in one second is no better than a closure at once: one second is less than 2L/a = 1.53 s, the valve is shut before the reflection from the reservoir can relieve it, and the whole Joukowsky head appears. A closure is fast when it is shorter than 2L/a, whatever the clock says. Beyond that the rise falls roughly as one over the closure time.

By hand. For a closure slower than 2L/a the rise lies between two simple figures. If the water were a rigid column decelerating evenly, the rise would be ρ L v / T. With elasticity the pressure swings about that figure and can reach twice it, 2 ρ L v / T. The program's results sit between the two in every case.

For this line a closure in two seconds or more keeps within the rating; five seconds leaves a margin. The Generate report button of the summary writes the cases, the table and the charts into the project's PDF report.

1.8 Example 1c The valve characteristic#

The closure time is a property of the actuator. What the water feels is how fast the flow falls, and that depends on the valve's characteristic: how its Cv varies with its opening. Open V-101 and look at Valve characteristics (Figure 14): Linear, Eq Percentage, Quick Opening, or a curve of the valve's own.

The valve V-101. Its Cv at full opening and its characteristic.
Figure 14 The valve V-101. Its Cv at full opening and its characteristic.

To see what the three mean, hold the valve at 30 % for a whole run. On the Controllers tab change the function type of controller 1 to Constant and type 30; run; read the flow.

Table 6 Example 1c, the flow through V-101 held at 30 % opening (full open: 117.3 m³/h)
CharacteristicFlow at 30 %, m³/hAs a share of full flow
Linear35.430 %
Eq Percentage3.23 %
Quick Opening64.655 %

Almost all the head of this system is lost in the valve, so the flow follows the Cv. A linear valve at 30 % passes about 30 % of the flow. An equal-percentage valve at 30 % passes almost nothing: it has done nearly all its closing in the first two thirds of its travel. A quick-opening valve at 30 % still passes more than half: it does its closing at the end.

Now close each in the same five seconds (set the function type back to Linear, with 0 % at 10 s).

Table 7 Example 1c, a closure in 5 s with each characteristic
CharacteristicMaximum at V-101, bargRise, barMinimum, barg
Linear10.631.967.23
Eq Percentage13.594.926.69
Quick Opening12.694.024.96
Example 1c, linear characteristic: the flow of V-101 follows its opening down over the whole five seconds.
Figure 15 Example 1c, linear characteristic: the flow of V-101 follows its opening down over the whole five seconds.
Example 1c, equal-percentage characteristic: the same stroke, but the flow is gone well before the valve is shut.
Figure 16 Example 1c, equal-percentage characteristic: the same stroke, but the flow is gone well before the valve is shut.

The same actuator, the same five seconds, and the rise is 2.5 times larger with the equal-percentage valve and 2.1 times larger with the quick-opening one. In both the flow is cut in a part of the stroke, so the effective closure time is a part of five seconds. The stroke time on a data sheet is not the closure time of a surge calculation; the characteristic has to be known, or assumed on the safe side.

It depends on the system Here the valve takes nearly all the head, so a linear valve gives the gentlest closure. In a long line where friction takes most of the head the flow hardly falls until a valve is nearly shut whatever its type, and an equal-percentage valve, which keeps moving slowly at the end, is the gentle one. The program settles it; a rule of thumb does not.

1.9 Example 1d The wave speed and the time step#

Two numbers lie under every result so far: the wave speed, which sets both the Joukowsky rise and the pipe period, and the time step, which sets how finely the pipe is cut.

The wave speed. On the Setting tab the wave speed is either calculated per pipe or typed. Typing it - User Input, then Apply to all pipes - is for when a study gives a figure to use; calculating it is the normal choice, and then the Pipe restraint matters a little and the pipe material a great deal. The closure at once of Example 1a was run again with each of the following.

Setting with the wave speed typed: User Input, 1200 m/s, applied to all pipes.
Figure 17 Setting with the wave speed typed: User Input, 1200 m/s, applied to all pipes.
Table 8 Example 1d, the closure of Example 1a with other wave speeds
Wave speeda, m/s2L/a, sρ a v, barRise, barMaximum, barg
Calculated per pipe, anchored against axial movement (as built)1309.81.538.378.5517.22
Calculated per pipe, anchored upstream end only1319.51.528.438.5517.22
Calculated per pipe, with expansion joints1295.71.548.288.4417.11
User input, 1200 m/s1200.01.677.677.8416.51
User input, 1000 m/s1000.02.006.396.5315.20
The same line in GRP (E 20 GPa, 257 mm bore, 7 mm wall)679.42.944.264.4013.08

The restraint moves the wave speed of a steel pipe by about one per cent, and the result with it. A typed 1200 m/s, a common round figure, is some 8 % low here and the peak is low by as much. The material changes everything: the same line in glass-reinforced plastic, ten times less stiff than steel, has half the wave speed and about half the surge - and a pipe period twice as long, so that a closure that was slow for steel may be fast for plastic.

Unsteady friction. In the runs so far the square wave of Figure 8 hardly decays: after twenty seconds its peaks are still at 15.61 barg. A real line rings down faster, because a flow that is reversing loses more than a steady flow of the same size. Ticking Unsteady friction on the Setting tab adds that loss.

Example 1d, the closure at once with unsteady friction: the first peak is unchanged, the later ones decay.
Figure 18 Example 1d, the closure at once with unsteady friction: the first peak is unchanged, the later ones decay.

The first peak is the same, 17.25 barg, since it is decided before friction has had time to act; after twenty seconds the peaks are down to 14.80 barg instead of 15.61. For a maximum pressure the option changes nothing. It matters when what is wanted is how long the line keeps ringing, or the tenth pressure cycle rather than the first.

The time step. The method cuts each pipe into a whole number of reaches, each as long as a wave travels in one step. A pipe of 1000 m at 1309.8 m/s wants 1.5 reaches at a step of 0.5 s; it gets 2, and its wave speed is bent to make that true. The Integrator's table shows the bending before the run (Figure 19), and the closure at once was run with five steps to show what it does. Under the table the panel also names the step that would put exactly one reach in the shortest pipe, 0.76 s here: that is the coarsest step the method can run with, not a recommendation.

Integrator with a time step of 0.5 s: the table reports the reaches of P-101 and the error in its wave speed.
Figure 19 Integrator with a time step of 0.5 s: the table reports the reaches of P-101 and the error in its wave speed.
Table 9 Example 1d, the closure of Example 1a with other time steps
Time step, sReaches in P-101Wave speed used, m/sError, %Maximum, bargat, s
0.521000.023.715.136.50
0.181250.04.616.786.60
0.05151333.31.817.336.50
0.01761315.80.517.226.52
0.0017631310.60.117.196.52

With 0.5 s the wave speed is a quarter out, the peak is two bar low, and FlowMax says so after the run: "The time step 0.5 s is too large for pipe "P-101" : its wave speed is distorted by 24 %. Peak pressures will be unreliable ; use a time step of 0.1527 s or less, or declare the pipe a short pipe (Integrator tab)." From 0.1 s down the answer no longer moves by more than a few tenths of a bar. A step of 0.01 s is a good place to start for plant piping; the table of the Integrator, not a habit, is what says whether it is fine enough for the shortest pipe in the model.

1.10 What this example shows#

Table 10 Example 1, reference results
QuantityValue
Steady flow, m³/h117.3
Velocity in P-101, m/s0.640
Wave speed of P-101, m/s1309.8
Pressure at V-101 before the closure, barg8.67
1a, largest pressure at V-101, barg17.22
1a, smallest pressure at V-101, barg0.55
1b, largest pressure, closure in 2 s / 5 s / 10 s, barg14.53 / 10.63 / 9.59
1c, largest pressure, 5 s, linear / equal % / quick, barg10.63 / 13.59 / 12.69

Example 2 Cooling water pumps#

Project files D02 Cooling water pumps.flmx D02d Cooling water pumps, check valve disc.flmx D02e Cooling water pumps, speed control.flmx D02f Cooling water pumps, air valve at the high point.flmx

2.1 Objective#

To put pumps into a transient. By the end the reader will be able to give a pump its rotating mass, trip it and start it with an event, model a standby pump and its valve, read a run-down and a column separation, choose a cavitation model, give a check valve its disc, and put a pressure controller on the speed of a pump, and size an air valve against a vacuum.

2.2 Engineering problem#

Three identical pumps stand side by side at the basin of a cooling tower: two run and one is on standby. Each takes 1256 m³/h from the basin and has a check valve on its discharge; the standby pump also has a motor-operated valve, which is kept shut. The pumps feed a 24 inch header that climbs over a pipe bridge, 12 m up, and ends at the distribution of the tower, 18 m up. A branch to a second cell is isolated. The header is rated for 10 barg and, like most large thin-walled water pipe, has not been designed for vacuum.

The questions are the ones every pump station raises. What happens when one pump trips, and when the power fails and both trip? How should the standby pump be brought in? Does the kind of check valve matter? And if the pumps are put on variable speed drives, how does the pressure controller behave?

2.3 Model schematic#

Example 2 as drawn, after the run of Example 2a. Under each pipe is its steady flow in m³/h, under each node the largest pressure of the run in barg. The standby pump PU-C, its check valve and its valve MOV-C are grey: they carry nothing. An S on a pipe marks a short pipe.
Figure 20 Example 2 as drawn, after the run of Example 2a. Under each pipe is its steady flow in m³/h, under each node the largest pressure of the run in barg. The standby pump PU-C, its check valve and its valve MOV-C are grey: they carry nothing. An S on a pipe marks a short pipe.

2.4 Input data#

Table 11 Example 2, input data
ItemValueBasis
FluidWater at 30 °C995.7 kg/m³, 0.798 cP, vapour pressure -0.97 barg, bulk modulus 2.25 GPa
T-201, tower basinLevel 2.5 m above the pumpsOpen to atmosphere; level constant
PU-A, PU-B, PU-C1250 m³/h at 45 m, 84 %Curve of the next table; 182 kW at the shaft; 1480 rpm
Rotating mass7.1 kg m² eachPump 1.76 + motor 5.29 kg m² (worked out in 2.5)
CV-A, CV-B, CV-C20 inch check valves, Cv 6500No reverse flow; ideal unless said otherwise
MOV-C20 inch butterfly, Cv 9000Linear; shut (see the note in 2.5)
Station pipework20 inch, bore 488.9 mmSuctions 10 m, discharges 15 m; short pipes
P-210, P-21124 inch, bore 590.6 mm, 450 m and 750 mCarbon steel, wall 9.53 mm, roughness 0.046 mm; bridge at 12 m
P-212, V-220Riser of 30 m to 18 m; Cv 2200The distribution of the tower as one valve, to atmosphere
P-213, V-23016 inch branch, Cv 1300Second cell; shut except in Example 2e
Design pressure10 bargNo vacuum rating
RunInitialisation 5 s, end time 60 sTime step 0.005 s, output time step 0.02 s
Table 12 Example 2, the curve of each pump (the power at no flow is typed, the others follow from the efficiency)
Flow, m³/hHead, mEfficiency, %Power, kW
058.0075
40057.048129
80053.574157
125045.084182
160035.580193
190025.068190

2.5 Model set-up#

The pumps. In transient mode the Pump window has a Transient page (Figure 21). Pump modelling offers three ways to treat the machine. Simple keeps the pump on its curve at the speed it is given: it can be slowed by a schedule but it has no mass, so it cannot be tripped. Inertia gives it its rotating mass: after a trip the speed falls as the water takes the energy out of the rotor, and at a start it rises as the motor puts it in. Four quadrant adds reverse rotation and is met in Example 2b. Inertia needs three things: the Total inertia of pump, motor and coupling, the Rated speed, and, for a start, the torque of the motor against its speed, typed with Enter data under T-S curve (start-up).

The Transient page of the pump PU-A: pump modelling, total inertia, rated speed, and the torque of the motor while it runs up.
Figure 21 The Transient page of the pump PU-A: pump modelling, total inertia, rated speed, and the torque of the motor while it runs up.

The inertia. The data sheet of the pump and of the motor give it. When they are not to hand, the estimates of Thorley serve, with the shaft power P in kW and the speed N in rpm: for the pump with its water 1.5 × 10⁷ (P / N³)^0.9556 kg m², for the motor 118 (P / N)^1.48 kg m². With 182 kW at 1480 rpm these give 1.76 and 5.29 kg m²; 7.1 kg m² is entered.

The power. The run-down is driven by the torque the pump takes, and FlowMax takes that from the power column of the pump's curve. The points table fills the column from flow, head and efficiency. In the first row, at no flow, there is no efficiency to work with, so the shut-off power is typed there: 75 kW.

The motor. The motor's torque is entered against the speed in per cent of the rated speed. The curve used is the usual shape of a cage motor started direct on line, on a full-load torque of 1172 N m.

Table 13 Example 2, the torque of each motor while it runs up
Speed, % of ratedTorque, N mTimes full-load torque
020501.75
3018801.60
6021701.85
8529302.50
9523402.00
10012301.05

The check valves. A check valve is a valve with No reverse flow ticked. Left like that it is an ideal one: it shuts the moment the flow through it turns. Example 2d gives it a disc.

The standby pump. PU-C has Pump on set to No (Figure 22). Its valve MOV-C is shut.

The Inputs page of the standby pump PU-C, with Pump on set to No.
Figure 22 The Inputs page of the standby pump PU-C, with Pump on set to No.

What is shut in Between a pump that is off and a valve that is shut there is a length of the network that nothing flows through and that the model gives no pressure. FlowMax shows it at the pressure of the suction side of the stopped pump, which is what a centrifugal pump at rest lets through; a section shut in between two valves is shown at the pressure of one of its two sides. MOV-C is entered at 0 %, and its schedule starts from 0 %.

Setting. The wave speed is calculated per pipe: 1172 m/s in the 24 inch header, 1213 m/s in the 20 inch pipework. The cavitation model is DVCM; why is the subject of Example 2b.

Setting for Example 2: wave speed calculated per pipe, the vapour cavity model on.
Figure 23 Setting for Example 2: wave speed calculated per pipe, the vapour cavity model on.

Integrator. A wave crosses 5.9 m of the header in one step of 0.005 s, so the header is cut into 77 and 128 reaches. The suction and discharge pipes of the pumps are 10 and 15 m long: to resolve them like the header the step would have to be ten times smaller, and the run ten times longer, to describe a wave that crosses them in a hundredth of a second. They are declared short pipes instead - tick them in the table and press Make short pipe. A short pipe keeps its friction and its volume; it no longer decides the time step, and the note after the run leaves it out.

Integrator for Example 2. The six pipes of the station are short pipes; the table gives the reaches of the others and the error in their wave speed.
Figure 24 Integrator for Example 2. The six pipes of the station are short pipes; the table gives the reaches of the others and the error in their wave speed.

Controllers. Each pump has a controller whose output is Trip / Start: a table of times against the word Trip or Start (Figure 25). PU-A trips at 5 s. The controllers of PU-B, PU-C, MOV-C and V-230 are there but Off; the cases of the Scenario Manager switch them on. A pump can carry two controllers, one of each kind: one that trips and starts it, and one that sets its speed. A second controller of the same kind on one element is refused.

Controllers. Controller 1 trips the pump PU-A at 5 s.
Figure 25 Controllers. Controller 1 trips the pump PU-A at 5 s.

Charts. Seven charts are set up: the pressure at the station header N2 with the design pressure as a limit line; the pressure at the bridge N3 with the vapour pressure as a limit line; the speeds of the three pumps; their flows; the flow at the two ends of the header; the flow and the opening of CV-A; and the pressures either side of CV-A.

2.6 Example 2a One pump trips#

Press Run. The steady state has 1256 m³/h in each running pump and 2512 m³/h, 2.55 m/s, in the header; 4.53 barg at the station and 2.98 barg on the bridge. At 5 s the motor of PU-A loses its supply.

Example 2a, the relative speed of the pumps. PU-A runs down; PU-B stays at full speed; PU-C stands.
Figure 26 Example 2a, the relative speed of the pumps. PU-A runs down; PU-B stays at full speed; PU-C stands.
Example 2a, the flow of each pump. The flow of PU-A is gone in 2.1 s, long before its rotor has stopped; PU-B runs out along its curve.
Figure 27 Example 2a, the flow of each pump. The flow of PU-A is gone in 2.1 s, long before its rotor has stopped; PU-B runs out along its curve.

By hand. A tripped pump is a flywheel braked by the torque the water takes. At full speed that torque is the shaft power over the angular speed, 182 kW / 155.0 rad/s = 1172 N m. If it went on falling as the square of the speed, the speed would follow 1 / (1 + t / τ) with τ = I ω² / P = 7.1 × 155.0² / 181693 = 0.94 s. τ is the number to remember about a pump set: it is the time in which the speed halves.

Table 14 Example 2a, the run-down of PU-A against the hand estimate
Time after the trip, sSpeed by hand, 1 / (1 + t / τ)Speed, FlowMaxFlow of PU-A, m³/h
0.250.790.78933
0.50.650.65620
1.00.480.51262
2.00.320.3817
4.00.190.290

The program follows the estimate while the pump still delivers and then falls behind it: once the check valve has shut the pump turns in dead water, takes little torque, and coasts. What matters to the line is not when the rotor stops but when the flow stops, and that is when the head the pump can still make, which falls as the square of its speed, drops under what the other pump holds in the header: 2.1 s here. A pump station loses a pump in a time of the order of τ, whatever the size of the machine.

Example 2a, the pressure at the station header. It falls from 4.53 to 1.10 barg and settles at 3.09 barg on one pump.
Figure 28 Example 2a, the pressure at the station header. It falls from 4.53 to 1.10 barg and settles at 3.09 barg on one pump.

The header loses half its supply in two seconds. The pressure at the station falls to 1.10 barg; on the bridge it falls from 2.98 to 0.00 barg, 1.7 s after the trip, and recovers. PU-B, relieved of the back pressure, runs out to 2226 m³/h and settles at 1733 m³/h - well to the right of its best point, which is a question for the motor rating, not for the piping. Nothing in this case reaches the vapour pressure, and nothing exceeds the pressure the line had before.

2.7 Example 2b Both pumps trip#

A power failure takes both pumps. On the Controllers tab set the mode of controller 2, PU-B, to Manual - or run the second case of the Scenarios tab, which does the same - and run.

Example 2b, the pressure on the bridge. It is cut off at the vapour pressure, the dashed line: the water column has parted.
Figure 29 Example 2b, the pressure on the bridge. It is cut off at the vapour pressure, the dashed line: the water column has parted.

With nothing left to push it, the water in the header carries on under its own momentum and the pressure behind it collapses. On the bridge it reaches the vapour pressure of the water, -0.97 barg, 1.3 s after the trip. Liquid cannot go lower: it boils, a pocket of vapour opens at the high point, and the column on the far side moves on without the column behind it. This is column separation.

The cavitation model. What the program does at that moment is set by Cavitation model on the Setting tab. With None the liquid is taken to stay whole whatever the pressure, and the run carries on to pressures no liquid can have. With DVCM, the discrete vapour cavity model, a node that reaches the vapour pressure is held there while a cavity grows and closes at it. DGCM, the discrete gas cavity model, keeps a little free gas at every node, which also softens the closing of the cavity. The choice is saved with the project.

Table 15 Example 2b, both pumps tripping, with each cavitation model
Cavitation modelLowest at the bridge N3, bargLowest at the station N2, bargHighest at N2 after the flow has stopped, barg
None-1.37-0.173.22
DVCM-0.97-0.473.27
DGCM-0.97-0.373.30

The first row is the warning sign: -1.37 barg is below a perfect vacuum. A minimum under the vapour pressure in a run made with no cavitation model does not mean the pipe sees that pressure; it means the model has to be run again with one. The other two rows agree with each other closely here, because the cavity is small and short-lived.

Example 2b, the flow at the two ends of the header. It runs down in about 14 s; then the check valves shut and the header rings between the shut valves and the open end at the tower.
Figure 30 Example 2b, the flow at the two ends of the header. It runs down in about 14 s; then the check valves shut and the header rings between the shut valves and the open end at the tower.
Example 2b, the pressure at the station header: no pressure above the starting one, then an oscillation that friction damps slowly.
Figure 31 Example 2b, the pressure at the station header: no pressure above the starting one, then an oscillation that friction damps slowly.

Two things are worth noting. First, nothing goes above the starting pressure: when the forward flow has died, 14 s after the trip, the check valves shut on a column that is at rest, and what is left is the water swinging between the shut valves and the tower, between 0.07 and 3.27 barg. On a low, short system like this one a pump trip is a low-pressure event. The finding for the piping is not a surge pressure but a vacuum: the header is to be checked for full vacuum from the station to the tower, or protected. Example 2f protects it with an air valve; Examples 4 and 5 show other protections. Second, the oscillation that follows decays slowly because steady friction is nearly nothing at these small flows; Unsteady friction on the Setting tab, met in Example 1d, shortens it.

Without check valves, and the pump in reverse. If there were no check valves the water would come back from the tower through the pumps. To see it, untick No reverse flow on the three check valves. An Inertia pump can slow down to a stop but not turn backwards. A Four quadrant pump can: it has a curve for every combination of forward and reverse flow and rotation - the Suter curves - and the returning water drives it as a turbine. Choose Four quadrant on the Transient page of each pump.

Table 16 Example 2b without check valves, both pumps tripping (DVCM)
Pump modellingFlow reverses after, sFlow of each pump at the end, m³/hSpeed at the end, % of ratedStation header at the end, barg
Inertia13.7-84730.43
Four quadrant13.3-789-80.64
Example 2b without check valves, Four quadrant: the speed of the tripped pumps passes through zero and they turn backwards.
Figure 32 Example 2b without check valves, Four quadrant: the speed of the tripped pumps passes through zero and they turn backwards.

In both runs the basin is being filled from the tower through the pumps at some 789 m³/h each, which is why pump stations have check valves. The Four quadrant pumps end turning backwards at 8 % of their speed.

The Suter curve is the pump's own The curve the Suter data (4Q) window opens with is a generic one for a radial pump, there so that the option can be run. How fast a pump turns in reverse, and the pressures that go with it, depend on the curve of the machine: for a study type in the vendor's four-quadrant data, or a published curve for the specific speed of the pump, with its rated flow and torque.

2.8 Example 2c Starting the standby pump#

The standby pump is brought in three ways, as three cases of the Scenarios tab (Figure 33). In all three controller 3 gives PU-C the event Start; the pump then runs up on the torque of its motor less the torque of the pump, with its 7.1 kg m². In the first the valve MOV-C is already open, and only the check valve separates the pump from the header. In the second the pump starts against the shut valve, which opens over 30 s. In the third PU-A trips and PU-C, lined up with its valve open, starts three seconds later, as an automatic changeover would.

Scenarios, Cases, for Example 2. Each case switches controllers on or off, or changes a schedule; an empty cell is the model as drawn.
Figure 33 Scenarios, Cases, for Example 2. Each case switches controllers on or off, or changes a schedule; an empty cell is the model as drawn.
Example 2c, valve open: PU-C is at full speed 0.5 s after its start.
Figure 34 Example 2c, valve open: PU-C is at full speed 0.5 s after its start.
Table 17 Example 2, the cases of the project file
CaseN2 highest, bargN2 lowest, bargN3 highest, bargN3 lowest, barg
2a Pump A trips4.531.102.980.00
2b Pumps A and B trip4.53-0.472.98-0.97
2c Pump C starts, valve open5.324.533.762.98
2c Pump C starts, valve opens in 30 s5.214.533.572.98
2c A trips, C takes over after 3 s5.071.104.180.00
Scenarios, Charts: the pressure at the station header for the five cases.
Figure 35 Scenarios, Charts: the pressure at the station header for the five cases.

A direct-on-line motor of this size takes the pump to full speed in 0.5 s. With the valve open the header pressure is at 5.31 barg one second after the start, from 4.53: the whole rise in a second, and 721 m³/h pushed into a line that was in balance. Against the shut valve the pump comes up to speed on no flow, and the header follows the valve: 4.83 barg after one second, 5.08 after three, 5.20 after ten. Both end at the same 5.20 barg with 932 m³/h a pump. On this low system neither comes near the rating; the difference is the step in pressure and flow that the supports and the tower distribution take, and it is why large pumps are started against a shut valve.

The changeover case shows what the open valve is for. After the trip of PU-A the header falls to 1.10 barg exactly as in Example 2a; PU-C, started three seconds later, restores it within two seconds, with an overshoot to 5.07 barg. A standby pump that has to catch a header is lined up with its valve open and relies on its check valve.

Scenarios, Summary & Report. The lowest pressure on the bridge is judged against a minimum of 0 barg: both trip cases break it.
Figure 36 Scenarios, Summary & Report. The lowest pressure on the bridge is judged against a minimum of 0 barg: both trip cases break it.

On the Outputs page the pressure at N3 was given a minimum limit of 0 barg, for a header with no vacuum rating. The summary marks the cases that break it. A minimum limit is as much a design finding as a maximum one.

2.9 Example 2d The disc of the check valve#

So far each check valve has shut the instant its flow turned. A real disc has mass, and may have a spring, a counterweight or a dashpot; it follows the flow with a delay. If it is still open when the flow has turned, water runs back through it, and when the disc lands that reverse flow is stopped at once: the check valve slam. The second project file of this example models the disc of CV-A.

Two things differ from the first file. A spool of 6 m, P-203A, stands between PU-A and CV-A, because the disc is moved by the pressures either side of it and these come from the pipes at its two ends. And on the Inputs page of CV-A, with No reverse flow ticked, an Inertia page has appeared (Figure 37). Modelling is Simple or Inertia. With Inertia the disc turns about its hinge under the flow, the pressure difference across it, its weight, its spring, a Closing preload and a Damping. Choosing the Valve type fills in an estimate of the disc inertia, of the spring and of the closing preload from the bore; the figures of the valve's data sheet should replace them.

The Inertia page of the check valve CV-A: modelling, type, the disc inertia and spring estimated from the bore, the damping and the closing preload.
Figure 37 The Inertia page of the check valve CV-A: modelling, type, the disc inertia and spring estimated from the bore, the damping and the closing preload.

The closing preload is what holds the disc shut A disc with no preload is not held on its seat: the smallest pressure swing lifts it, water runs back, the disc lands again, and the run shows a valve that chatters and pressures that grow from one landing to the next. Every real check valve has something that holds it shut - a spring, a counterweight, the weight of a disc on an inclined seat. The estimate is a cracking pressure of 0.04 bar times the area of the disc times its lever arm, 275 N m for this 20 inch valve; the file has 300 N m. Replace it with the figure of the valve, and never leave it at 0.

PU-A is tripped with four discs in turn.

Table 18 Example 2d, the trip of PU-A with four check valve discs
Check valveDiscOpen before, %Flow turns, sDisc lands, sReverse flow stopped, m³/hLowest before the valve, bargHighest at N2 afterwards, barg
Simpleideal : shuts the moment the flow turns1002.132.1400.263.09
Inertia, nozzle checkspring loaded : preload 300 N m1001.841.8920.263.13
Inertia, swing checkcounterweight and dashpot : preload 1000 N m, damping 3000 N m s/rad562.092.27410.073.10
Inertia, dual plate, slowpreload 300 N m, damping 1000 N m s/rad1002.132.52119-0.973.53
Example 2d, the Simple check valve: flow and opening of CV-A. The valve is open until the flow reaches zero and shut from then on.
Figure 38 Example 2d, the Simple check valve: flow and opening of CV-A. The valve is open until the flow reaches zero and shut from then on.
Example 2d, the slow disc: it is still coming down when the flow turns, and 119 m³/h runs back before it lands.
Figure 39 Example 2d, the slow disc: it is still coming down when the flow turns, and 119 m³/h runs back before it lands.
Example 2d, the slow disc: the pressures either side of CV-A. Where the disc lands the pressure before the valve drops and the pressure after it jumps.
Figure 40 Example 2d, the slow disc: the pressures either side of CV-A. Where the disc lands the pressure before the valve drops and the pressure after it jumps.

The spring-loaded nozzle check behaves as the ideal valve does: it lands as the flow turns and has 2 m³/h to stop. The swing check with a counterweight and a dashpot is held partly shut even in normal flow, 56 % open, and lands 0.18 s after the flow has turned, with 41 m³/h running back. The slow disc lands 0.39 s late and has 119 m³/h to stop.

By hand. A reverse flow of 119 m³/h in a 20 inch pipe is 0.18 m/s. Stopped at once it gives ρ a v = 995.7 × 1213 × 0.18 = 2.1 bar: a fall on the pump side of the valve and a rise on the header side. On the pump side the fall takes the pressure to -0.97 barg - the vapour pressure - and the header sees 3.53 barg afterwards against 3.09 with the ideal valve. The slam grows with the reverse velocity, and the reverse velocity with the delay; in a station where the other pumps keep the header up, the flow of a tripped pump turns in about τ, and a check valve has to be faster than that.

Trip and restart. The second case of this file trips PU-A at 5 s and starts it again at 8 s, as a supply dip with automatic restart would; one controller carries both events.

Example 2d, trip and restart: the speed of PU-A.
Figure 41 Example 2d, trip and restart: the speed of PU-A.
Example 2d, trip and restart: the pressure at the station header.
Figure 42 Example 2d, trip and restart: the pressure at the station header.

The check valve has shut by the time the motor is back. The pump runs up against it, reaches its shut-off head, and the valve reopens 3.2 s after the trip. The pressure before the valve touches 5.23 barg and the header 5.10 barg, against 4.53 barg in normal running: a restart is a start into an open line.

2.10 Example 2e A pressure controller on the pump speed#

In the third file the two running pumps have variable speed drives. A pressure controller on the station header holds 3.5 barg by moving their speed, and the branch to the second cell is opened: V-230 goes from shut to open in ten seconds from 5 s.

On the Controllers tab the controllers of PU-A and PU-B now have Relative speed as their output and Automatic as their mode (Figure 43). Select PV names what is measured, the pressure of node N2; then come the set point, the Set Point, the Gain (Kc) in per cent of output per per cent of error, the Integral time (Ti) and the Derivative time (Td) in minutes, the Action, and the limits of the output, OP min and OP max. The action is Reverse: when the pressure rises the speed must come down. Two controllers with the same measurement and the same set point are moved together.

Controllers, Automatic. The speed of PU-A holds the pressure of N2 at 3.5 barg.
Figure 43 Controllers, Automatic. The speed of PU-A holds the pressure of N2 at 3.5 barg.

Where the run starts. With Start from steady state ticked, FlowMax finds, before the run, the speed at which the steady state stands on the set point: 85.1 % here, for 1986 m³/h in the header. The run then begins in balance and the first five seconds are flat.

Example 2e, Kc 0.1 and Ti 0.02 min: the pressure at the station header and its set point. The pressure dips as the branch opens and is brought back.
Figure 44 Example 2e, Kc 0.1 and Ti 0.02 min: the pressure at the station header and its set point. The pressure dips as the branch opens and is brought back.
Example 2e, Kc 0.1 and Ti 0.02 min: the speed of the pumps rising to meet the new demand.
Figure 45 Example 2e, Kc 0.1 and Ti 0.02 min: the speed of the pumps rising to meet the new demand.
Table 19 Example 2e, the branch opening with three tunings of the pressure controller
Kc, % per %Ti, minLowest pressure, bargafter, sPressure at 60 s, bargSpeed at 60 s, %Verdict
0.10.023.35123.4993.7Back on the set point
0.050.053.20193.3490.9Slow: still 0.16 bar low
0.20.05----Hunts: speed between 77 and 100 %
Example 2e with Kc 0.2: the loop hunts. The swings grow until the speed runs between its limits; this is no longer a prediction of the plant, it is a tuning that does not work.
Figure 46 Example 2e with Kc 0.2: the loop hunts. The swings grow until the speed runs between its limits; this is no longer a prediction of the plant, it is a tuning that does not work.

With the first tuning the header dips to 3.35 barg and is back at 3.49 barg at the end of the run, the pumps having gone from 85.1 to 93.7 % of their speed to deliver 2760 m³/h. Half the gain with a longer integral time is safe and slow. Twice the gain is too much: a change of speed changes the pressure at once and by a large amount, the wave it sends down the header comes back 2.1 s later, and a controller that answers both faster than that and too strongly drives the next swing instead of damping it.

What a transient model is for in control A steady-state model can say that the pumps will hold 3.5 barg at 93.7 % of their speed. Only a transient one can say whether a tuning gets them there, and how low the pressure goes on the way. The controller acts on the pump with no lag of its own, so the tunings found here are on the fast side of what a drive with a ramp will accept.

2.11 Example 2f An air valve on the bridge#

Example 2b ended with a finding: when the power fails the header stands at the vapour pressure on the bridge, a full vacuum, in a pipe that has no vacuum rating. One way to protect such a line is an air valve on the high point: a valve that lets air into the pipe when the pressure inside falls under that of the atmosphere, and lets it out again when the water comes back. It is one of the commonest protections of a water line, and it is cheap; it also has to be sized, and a wrong size does harm. Open D02f Cooling water pumps, air valve at the high point, the fourth file of this example: the station of Example 2b with the air valve AV-210 on the bridge.

Example 2f as drawn: the air valve AV-210 stands on the bridge node N3.
Figure 47 Example 2f as drawn: the air valve AV-210 stands on the bridge node N3.

Drawing it. Air Valve is on the Equipment ribbon. Click the node it protects, N3, and then a point beside it: the valve is drawn at the end of a short line, and it has one connection. Its other side is the open air, which the program holds at 0 barg and at the elevation of N3; there is no second node to fill in, and no direction to get wrong. The window of the valve (Figure 48) has two halves. Inlet Valve Flow is the way in: the set pressure under which air is admitted, 0 barg, the diameter of the inlet bore and its discharge coefficient. Outlet Valve Flow is the way out: the pressure above which the air is released, the diameter of the outlet bore and its coefficient. The two bores are the design of the valve, and the rest of this example is about them. AV-210 has an inlet of 100 mm and an outlet of 25 mm, each with a coefficient of 0.6.

The Air Valve AV-210: set pressure, diameter and discharge coefficient of the inlet and of the outlet.
Figure 48 The Air Valve AV-210: set pressure, diameter and discharge coefficient of the inlet and of the outlet.

Charts. Two charts are added to the seven of the station: the volume of air in the line, and the flow of air in and out of the valve. Both are volumes at the pressure of the atmosphere. Both pumps trip at 5 s, as in Example 2b. Run.

Example 2f, the pressure on the bridge with the air valve. It stops at the pressure of the atmosphere; the dashed line is the vapour pressure it reached without the valve.
Figure 49 Example 2f, the pressure on the bridge with the air valve. It stops at the pressure of the atmosphere; the dashed line is the vapour pressure it reached without the valve.

The valve opens 1.0 s after the trip, when the bridge has come down to 0 barg. From there the bridge goes no lower than -0.01 barg, against -0.97 barg without the valve. Air takes the place of the water that runs on towards the tower: 1.75 m³ of it, 19 s after the trip.

Example 2f, the volume of air in the line: let in while the column runs on, pushed out when it returns.
Figure 50 Example 2f, the volume of air in the line: let in while the column runs on, pushed out when it returns.
Example 2f, the air flow through the valve: in through the 100 mm inlet, out through the 25 mm outlet.
Figure 51 Example 2f, the air flow through the valve: in through the 100 mm inlet, out through the 25 mm outlet.

By hand. At its fastest the air comes in at 739 m³/h. Through a bore of 100 mm with a coefficient of 0.6 that takes a pressure difference of ρ (Q / Cd A)² / 2, with the density of air 1.2 kg/m³: 0.011 bar. The bridge is at -0.01 barg at its lowest. An inlet is large enough when this figure is a few hundredths of a bar; the flow to use is the rate at which the water column moves away, which the run gives.

When the column comes back it pushes the air out through the outlet. The 25 mm outlet passes 487 m³/h at most, less than the water brings, so the pocket is squeezed and the air acts as a cushion. The last of it has left 44 s after the trip, and the two columns meet gently: the highest pressure from then on is 3.54 barg on the bridge and 5.20 barg at the station, against 4.53 barg in normal running.

The two bores. They are sized for opposite reasons. The table runs the same power failure with seven valves.

Table 20 Example 2f, both pumps tripping, with seven air valves on the bridge (without one the bridge goes to -0.97 barg)
Inlet, mmOutlet, mmLowest on the bridge, bargMost air in the line, m³Air gone after, sHighest on the bridge afterwards, bargHighest at the station afterwards, barg
100100-0.021.753310.2811.65
10050-0.011.75339.0210.39
10025-0.011.75443.545.20
10010-0.011.75not within the run1.483.48
5025-0.111.55403.344.87
2525-0.300.85272.213.47
1025-0.760.16183.634.95

The inlet decides the vacuum. An inlet of 25 mm lets the bridge fall to -0.30 barg and one of 10 mm to -0.76 barg: the air cannot come in as fast as the water leaves. With 100 mm the bridge stays at the pressure of the atmosphere.

The outlet decides how the columns meet. With an outlet as large as the inlet the air leaves as fast as the water returns, nothing cushions the meeting, and the columns slam: 11.65 barg at the station (Figure 52), above the 10 barg the header is rated for. That is a pressure this system did not have at all without the valve. An outlet of 50 mm still gives 10.39 barg. With 25 mm the highest is 5.20 barg. With 10 mm nothing is felt, and the air is still in the line when the run ends: safe, and slow to clear.

Example 2f with an outlet of 100 mm: the pressure at the station header. The air has gone 33 s after the trip and the columns meet at speed.
Figure 52 Example 2f with an outlet of 100 mm: the pressure at the station header. The air has gone 33 s after the trip and the columns meet at speed.

An air valve is two valves A large orifice to let the air in and a small one to let it out: this is the non-slam, or controlled closure, air valve of the catalogues. Check both with a run. The inlet against the lowest pressure on the high point, the outlet against the highest pressure after the air has gone.

What the valve does not do. It protects where it stands, and it does not take the event away: the header still falls from 4.53 barg to 0.00 barg at the station, and a point far from the valve can still reach the vapour pressure, which is why the cavitation model stays on. An air valve also leaves air in the line until it has all been let out, and a header with air in it is not to be refilled at full speed. Example 4 meets both points on a fire water system.

2.12 What this example shows#

Table 21 Example 2, reference results
QuantityValue
Steady flow of each running pump, m³/h1256
Velocity in the header, m/s2.55
Wave speed of the header, m/s1172
Station header N2 and bridge N3 before the event, barg4.53 / 2.98
τ = I ω² / P, s0.94
2a, speed of PU-A 1 s after the trip0.51
2a, lowest at N2 / N3, barg1.10 / 0.00
2b, lowest at N3 with None / DVCM / DGCM, barg-1.37 / -0.97 / -0.97
2c, highest at N2, valve open / opening in 30 s, barg5.32 / 5.21
2d, reverse flow stopped by the slow disc, m³/h119
2e, speed before and after the branch opens, %85.1 / 93.7
2f, lowest on the bridge without and with the air valve, barg-0.97 / -0.01
2f, highest at the station with an outlet of 100 mm / 25 mm, barg11.65 / 5.20

Example 3 A fire water ring main#

Project files D03 Fire water ring main.flmx D03d Fire water ring main, deluge filling.flmx

3.1 Objective#

To study a network rather than a line. By the end the reader will be able to model spray nozzles, use the Hazen-Williams formula in a transient, define forces on runs of piping and read them, run a closure-time study with limits and a report, judge a pump trip by what it does to the service, and fill a dry pipe.

3.2 Engineering problem#

A process unit is protected by a fire water ring main of 16 inch cement-lined steel, 1800 m round, fed through a 20 inch header by an electric fire pump with a diesel pump on standby. On the far side of the ring a deluge system cools a group of vessels: a 12 inch deluge valve with its restriction orifice, a 10 inch riser and 96 open spray nozzles. A monitor is in use at one corner. The ring is designed for 12 barg; the piping code allows 16 barg, a third more, for an occasional load of short duration.

Three questions are asked. When the fire is out and the deluge valve is shut, how fast may it close? What does the unit lose if the electric pump trips, and how well does the diesel pump take over? And what happens in the first seconds of a release, when the valve opens on an empty riser?

3.3 Model schematic#

Example 3 as drawn, after the run of Example 3a. Under each pipe its steady flow in m³/h, under each node the largest pressure of the run in barg. The diesel pump PU-301B is grey: it is stopped.
Figure 53 Example 3 as drawn, after the run of Example 3a. Under each pipe its steady flow in m³/h, under each node the largest pressure of the run in barg. The diesel pump PU-301B is grey: it is stopped.

3.4 Input data#

Table 22 Example 3, input data
ItemValueBasis
FluidFresh water at 20 °C998.2 kg/m³, 1.002 cP, bulk modulus 2.2 GPa
FrictionHazen-Williams, C = 140Cement-lined steel, as fire protection codes calculate it
T-301, fire water tankLevel 6 m above the pumpsOpen to atmosphere; level constant
PU-301A, electric900 m³/h at 95 m, 82 %Shut-off 115 m; 62 m at 150 % flow; 284 kW, 1480 rpm, 12.9 kg m²
PU-301B, dieselThe same curveStopped; Pump on = No
CV-301A, CV-301B14 inch check valves, Cv 4500No reverse flow, ideal
P-303, header200 m of 20 inch, bore 488.9 mmAbove ground on a rack
P-310 to P-315, ring1800 m of 16 inch, bore 387.4 mmBuried; legs of 150 and 600 m
P-320, deluge branch40 m of 12 inch, bore 304.8 mmAbove ground, from the ring tee to the skid
DV-320, deluge valveCv 340, linearThe valve with its restriction orifice
P-321, riser30 m of 10 inch, bore 254.5 mmRises 6 m to the spray header
SN-320, spray nozzles96 nozzles, K = 4.0 (m³/h)/bar^0.5 eachK 67 in l/min/bar^0.5; open to atmosphere at 6 m
HV-330, monitorCv 52On a 6 inch branch of 20 m, to atmosphere
Pressure limits12 barg design, 16 barg allowedASME B31.3 occasional load, design + 33 %
RunInitialisation 5 s, end time 60 sTime step 0.005 s, output time step 0.02 s

3.5 Model set-up#

Friction. Fire water systems are calculated with the Hazen-Williams formula and a C factor for the pipe. In Settings the pressure drop model is set to Hazen Williams; every pipe then asks for a C factor instead of a roughness (Figure 54). The transient uses the same formula with the same C, so the run starts from the steady state the fire protection calculation gave.

The Inputs page of the ring pipe P-311: with Hazen Williams chosen the pipe carries a C factor.
Figure 54 The Inputs page of the ring pipe P-311: with Hazen Williams chosen the pipe carries a C factor.

The nozzles. A Spray Nozzle stands for one nozzle or for many alike on the same header: it takes the K factor of one nozzle and the Nozzles number (Figure 55). The K is in the flow unit of the project over the root of its pressure unit, here (m³/h)/bar^0.5; a data sheet value in l/min/bar^0.5 is multiplied by 0.06. The nozzle discharges to atmosphere at its own elevation and passes nothing backwards.

The spray nozzles SN-320: the K factor of one nozzle and the number of nozzles.
Figure 55 The spray nozzles SN-320: the K factor of one nozzle and the number of nozzles.

The pumps and the short pipes are entered as in Example 2: Pump modelling Inertia, 12.9 kg m², the suction and discharge pipework of the pumps and the monitor branch as short pipes, the diesel pump with Pump on = No and its check valve directly on it.

Forces. A surge study ends with loads for the pipe supports. A force is asked for on the Forces tab with Add force. It is defined by two cuts: each is a pipe and a place along it, and each is rigid or elastic (Figure 56). Between two rigid cuts - a straight run that carries on into an elbow at either end - the force is the unbalanced load on that run while a wave passes through it: the pressure difference between its ends times the bore, which is nothing in steady flow. An elastic cut is one the piping cannot carry a load across, such as an anchor, an expansion joint or an open end; there the pressure and the momentum of the fluid are counted too. The force is positive from cut 1 towards cut 2.

Forces: the force on the deluge branch P-320, from its start to its end, both cuts rigid, resolved along the run.
Figure 56 Forces: the force on the deluge branch P-320, from its start to its end, both cuts rigid, resolved along the run.

Two forces are defined: on the 40 m of the deluge branch P-320 and on the 200 m of the pump header P-303, the two runs that are above ground. The ring is buried and its loads go into the soil.

Controllers and charts. Controller 1 closes DV-320 from 100 % to 0 % in two seconds from 5 s. Three more are there but Off, for the cases: the monitor valve, the trip of PU-301A and the start of PU-301B. Seven charts are set up; the first carries the two pressure limits as limit lines.

3.6 Example 3a The deluge valve closes#

Press Run. In the steady state the pump delivers 846 m³/h: 704 m³/h to the deluge system, where the nozzles stand at 3.36 barg, and 141 m³/h to the monitor. The ring shares it, 412 m³/h one way round and 433 the other, at 0.97 m/s; the branch runs at 2.68 m/s. The deluge valve sees 9.80 barg. At 5 s it starts to close.

Example 3a, the pressures either side of DV-320. The two dashed lines are the design pressure and the allowed pressure.
Figure 57 Example 3a, the pressures either side of DV-320. The two dashed lines are the design pressure and the allowed pressure.

The pressure before the valve climbs to 20.63 barg as the valve reaches its seat, 2.0 s after it started: 4.6 bar over what the code allows. The far corner of the ring, RB, sees 19.50 barg and the station header 17.29 barg.

By hand. The valve stops 704 m³/h. That flow reaches the tee from both sides of the ring, so each side loses about half of it: a change of velocity of 352 / 3600 / 1178.47 × 10⁻⁴ m² = 0.83 m/s in the 16 inch pipe. With a = 1247 m/s, ρ a Δv = 10.3 bar. The way from the valve back to the pumps is 1140 m, so 2L/a = 1.83 s: a closure in two seconds is no slower than that, and the whole of the Joukowsky rise is to be expected. 9.80 + 10.3 = 20.1 barg; the program gives 20.63.

The velocity that counts It is tempting to put the 2.68 m/s of the branch into the Joukowsky formula and find 33 bar. But the branch is 40 m long: its wave is back from the tee in seven hundredths of a second, long before the valve has moved. What a closure of seconds works against is the water in the ring, at the velocity it has there.

Example 3a, the flow of the fire pumps. 2.7 s after the valve started to close the wave has reached the station, the header is above the shut-off head of the pump, and its check valve shuts.
Figure 58 Example 3a, the flow of the fire pumps. 2.7 s after the valve started to close the wave has reached the station, the header is above the shut-off head of the pump, and its check valve shuts.

The forces. After the run the All forces page lists each force with its steady value, its maximum and minimum and when they happened (Figure 59); opening a force shows it against time.

Forces, All forces, after the run of Example 3a.
Figure 59 Forces, All forces, after the run of Example 3a.

The deluge branch sees 7.5 kN towards the valve as the flow is cut and 5.1 kN the other way on the rebound. The pump header, five times longer and of larger bore, sees 57 kN. Both are nothing before the event: with rigid cuts a steady flow gives no force.

By hand. The force on a straight run between two elbows is the mass of water in it times its deceleration, ρ L dQ/dt. The flow through the valve falls fastest at the end of its stroke, by 0.18 m³/s in a second. For the branch, 998.2 × 40 × 0.18 = 7.3 kN; the program gives 7.5 kN.

3.7 Example 3b How slowly must it close?#

The closure is repeated in 1, 5, 10 and 30 seconds as cases of the Scenarios tab, with one more case in which the monitor is shut in a second instead (Figure 60). On the Outputs page five results are watched: the pressure before DV-320 and the pressure at RB, each with 16 barg as its maximum; the flow of the nozzles; and the two forces, which are offered there like any other result (Figure 61).

Scenarios, Cases, for Example 3: eight cases on four controllers.
Figure 60 Scenarios, Cases, for Example 3: eight cases on four controllers.
Scenarios, Outputs: two pressures with their limit, a flow and the two forces.
Figure 61 Scenarios, Outputs: two pressures with their limit, a flow and the two forces.
Scenarios, Summary & Report, after Run all. A pressure over its limit is in red.
Figure 62 Scenarios, Summary & Report, after Run all. A pressure over its limit is in red.
Table 23 Example 3b, the deluge valve closing in different times
Closure time, sHighest before DV-320, bargAgainst 16 bargHighest at RB, bargForce on P-320, kNForce on P-303, kN
121.76  over20.0916102
220.63  over19.507.557
515.52  within, above design14.852.615
1013.44  within, above design13.111.26.1
3012.29  within, above design12.180.41.9

One second and two seconds give nearly the same pressure: both are faster than the 1.83 s the ring needs to answer. Five seconds brings the peak under the 16 barg the code allows for an occasional load, ten seconds brings it to 13.44 barg, and thirty to 12.29 barg. No closure, however slow, ends below about 12.3 barg, because with the deluge system shut the pump is left near its shut-off head feeding the monitor alone. The forces fall much faster than the pressures: they go with the rate at which the flow changes, so ten times the closure time is a tenth of the force.

The monitor is another matter. Shut in one second it raises the pressure before DV-320 to 11.22 barg only: it carries 141 m³/h, a sixth of the flow, and a sixth of the velocity change. A closure time is set valve by valve, by the flow the valve stops.

Scenarios, Charts: the pressure before DV-320 for the eight cases.
Figure 63 Scenarios, Charts: the pressure before DV-320 for the eight cases.

The report. On the Summary page, Generate report adds the cases, the summary table, the charts and the list of results over their limits to the project's PDF report, and Export to Excel writes the summary table to a workbook beside the project. A closure-time study handed to a client is these two files.

3.8 Example 3c The fire pump trips#

The deluge valve now stays open and the electric pump loses its supply at 5 s (case seven of the file, or controller 3 set to Manual and controller 1 to Off).

Example 3c, the pressure at the station header after the trip of PU-301A.
Figure 64 Example 3c, the pressure at the station header after the trip of PU-301A.
Example 3c, the flow and the pressure of the spray nozzles.
Figure 65 Example 3c, the flow and the pressure of the spray nozzles.

The pump has τ = I ω² / P = 1.09 s and is at 53 % of its speed a second after the trip. The station header falls from 10.10 barg to 3.45 barg in one second and 1.58 in two, and goes on down to the 0.57 barg of the tank level; the stopped pump lets the tank drain through it, 143 m³/h ten seconds on. Nothing goes below atmospheric pressure, and nothing rises: for the piping this trip is not a load case.

It is a load case for the plant. The nozzles, which were giving 704 m³/h, give 364 m³/h two seconds after the trip and 189 m³/h after five: the deluge system has stopped protecting anything. The result of this sub-example is a time - how long the unit is without water - and it is set by how soon the standby pump is running.

Example 3c with the node label set to Min Pressure: the lowest pressure each node saw during the run. Max Pressure and Min Pressure for nodes, and maximum and minimum pressure, flow and force for pipes, are kept for every run and can be put on the sheet or in the results table.
Figure 66 Example 3c with the node label set to Min Pressure: the lowest pressure each node saw during the run. Max Pressure and Min Pressure for nodes, and maximum and minimum pressure, flow and force for pipes, are kept for every run and can be put on the sheet or in the results table.

The diesel pump takes over. In the last case the diesel pump is given the event Start ten seconds after the trip, the time its controller needs to see the pressure fall and crank the engine.

Example 3c, changeover: the flow of the two fire pumps.
Figure 67 Example 3c, changeover: the flow of the two fire pumps.
Example 3c, changeover: the pressure at the station header.
Figure 68 Example 3c, changeover: the pressure at the station header.

The header has fallen to 0.62 barg when the diesel pump starts. It is at full speed 0.7 s later and the header is back at 10.11 barg, with 705 m³/h at the nozzles; the highest pressure on the way is 10.78 barg. The pressures are no concern, but the pump header takes 83 kN as the column in it is set moving again - more than in the closure of Example 3a. A start into an open, depressurised system is a force case for the station pipework.

A diesel engine is not a motor The start-up torque curve entered for PU-301B is the one of the electric pump, so that the two can be compared. An engine comes up to speed over several seconds on its governor; for a study, enter its torque curve, or drive the pump with a Relative speed schedule that follows the engine's ramp.

3.9 Example 3d The deluge valve opens on a dry riser#

A deluge system is dry behind its valve: the riser and the spray header are open to the air through the nozzles. When the valve opens the water has first to fill them. The second project file starts from that state: DV-320 is shut, the pump runs against the monitor alone, and the riser P-321 is dry (Figure 69).

The second file of Example 3 before the release, with the node pressures of the steady state: the ring stands near the shut-off pressure of the pump.
Figure 69 The second file of Example 3 before the release, with the node pressures of the steady state: the ring stands near the shut-off pressure of the pump.

Two things make a pipe dry. On the Setting tab Enable Dry pipe selection is ticked (Figure 70); the Air expansion model below it says how the air trapped ahead of the water behaves, Isothermal or Adiabatic. Then, on the Transient page of the pipe, Pipe content is set to Dry (fills with time) (Figure 71). A dry pipe starts the run full of air at atmospheric pressure. Water enters it as a front; the air ahead of the front is compressed and leaves through whatever is open at the far end - here the nozzles.

Setting for Example 3d: dry pipes enabled, the air expansion isothermal.
Figure 70 Setting for Example 3d: dry pipes enabled, the air expansion isothermal.
The Transient page of the riser P-321, with Pipe content set to Dry.
Figure 71 The Transient page of the riser P-321, with Pipe content set to Dry.

Controller 1 opens the valve in three seconds from 5 s. Two chart variables exist for a dry pipe: Filled, the share of its length the water has reached, and Gas pressure, the pressure of the air ahead of the front.

Example 3d, the riser P-321 filling: the share filled and the pressure of the air in it.
Figure 72 Example 3d, the riser P-321 filling: the share filled and the pressure of the air in it.
Example 3d, the flow and the opening of DV-320. The flow runs above its final value while the riser is filling, and steps down when the water reaches the nozzles.
Figure 73 Example 3d, the flow and the opening of DV-320. The flow runs above its final value while the riser is filling, and steps down when the water reaches the nozzles.
Example 3d, the pressures either side of DV-320.
Figure 74 Example 3d, the pressures either side of DV-320.

Before the release the ring stands at 11.77 barg. As the valve opens, water runs into an empty pipe with almost nothing to hold it back: the flow passes 848 m³/h, more than the 704 m³/h the nozzles will finally take, and the pressure before the valve sags to 5.44 barg, 1.9 s into the opening. The riser is full 8.2 s after the valve began to move.

By hand. The riser holds 30 m × 508.70 × 10⁻⁴ m² = 1.53 m³. Filled in 8.2 s, of which three are the valve opening, that is a mean of 668 m³/h - consistent with the flow on the chart.

When the front reaches the nozzles the water, which was moving freely, has suddenly to pass through them. The flow drops to what the nozzles take, the pressure at the nozzles jumps from nothing to 4.28 barg, and the deluge branch takes 25 kN - the largest force on it in this whole example, 3.3 times that of the two-second closure. The arrival of a filling front, not the opening of the valve, is the load case of a dry system.

Table 24 Example 3d, the riser filling
CaseRiser full after, sLowest before DV-320, bargFlow as the front arrives, m³/hHighest at the nozzles, bargLargest force on P-320, kNHighest air pressure, barg
Opening in 3 s, isothermal8.25.448484.28250.00
Opening in 10 s, isothermal11.48.328364.19240.00
Opening in 3 s, adiabatic8.25.448484.28250.00

Opening the valve in ten seconds instead of three spares the ring - the sag is 8.32 barg instead of 5.44 - but changes nothing at the arrival: by then the valve is open and the water is at the same speed. The air model changes nothing either, and the Gas pressure chart says why: with 96 open nozzles the air leaves as fast as the water comes, and is never compressed. It is where the air cannot get out - a closed end, a small vent - that the air cushion and its model decide the result. Example 4 has such a case.

3.10 What this example shows#

Table 25 Example 3, reference results
QuantityValue
Steady flow: pump / deluge system / monitor, m³/h846 / 704 / 141
Velocity in the ring and wave speed, m/s0.97 / 1247
Pressure before DV-320 and at the nozzles in steady flow, barg9.80 / 3.36
3a, highest before DV-320 / at RB, barg20.63 / 19.50
3a, force on P-320 / P-303, kN7.5 / 57
3b, highest before DV-320, closure in 1 / 5 / 10 / 30 s, barg21.76 / 15.52 / 13.44 / 12.29
3c, nozzle flow 2 s and 5 s after the trip, m³/h364 / 189
3d, riser full after, s; force on P-320 at the arrival, kN8.2 / 25

Example 4 Offshore fire water from the sea#

Project files D04 Offshore fire water.flmx D04d Offshore fire water, deluge filling.flmx D04e Offshore fire water, deluge filling, air leg.flmx D04f Offshore fire water, pump start on a dry riser.flmx

4.1 Objective#

To follow air in a system that is not always full: a header that parts at its high point when the pump stops, an air valve that lets air in, a pump started again on what is left, and pipes that begin empty and fill. By the end the reader will be able to model a pump lifting from the sea, place an air valve, compare it with the two cavity models, declare pipes dry and read their filling, take a filling peak with an air leg, start a pump on an empty riser, and ask for a force on all axes at an elbow.

4.2 Engineering problem#

A fire pump hangs in a caisson 15 m under the sea. Its riser comes up to the cellar deck at +25 m; a 12 inch header climbs to the top deck at +45 m, crosses it, and drops to a deluge skid at +30 m. Behind the deluge valve three groups of 24 open nozzles stand along a branch that tapers from 10 to 6 inch. The piping is designed for 16 barg, with 21.3 barg allowed in surge.

The top deck is the high point: 13 m above the nozzles and 45 m above the sea. Three things are asked. What happens there when the pump trips during a fire? Can the pump simply be started again? And what does the branch see when the deluge valve opens on empty pipes?

Two more follow from the answers. Can the peak of the filling be taken by a pocket of air at the end of the branch? And what happens at the first start of all, when the pump stands in its caisson and everything above the sea is empty?

4.3 Model schematic#

Example 4 as drawn, fighting a fire, with the steady flow under each pipe and the steady pressure under each node. The air valve at K is drawn in grey, ignored.
Figure 75 Example 4 as drawn, fighting a fire, with the steady flow under each pipe and the steady pressure under each node. The air valve at K is drawn in grey, ignored.

4.4 Input data#

Table 26 Example 4, input data
ItemValueBasis
FluidSea water at 20 °C1025 kg/m³, 1.07 cP, vapour pressure -0.99 barg, bulk modulus 2.3 GPa
SeaTank, level held at 0 mFloor at the pump suction, -15 m
PU-401800 m³/h at 110 m, 78 %Shut-off 140 m; 315 kW, 1480 rpm, 14.9 kg m²; Inertia model, motor torque curve
CV-40114 inch swing check valveAt the pump; Simple model
P-402, P-40315 m and 25 m of 14 inch, verticalRiser, -15 m to 0 m to +25 m
P-410, P-411, P-412, P-41360, 20, 60 and 15 m of 12 inchCellar deck; rise to +45 m; top deck; drop to +30 m
AV-410Air valve at K, top deckInlet 50 mm, outlet 25 mm, Cd 0.6, both set at 0 barg
DV-42010 inch deluge valve, Cv 2500Open in 4a to 4c; opens in 3 s in 4d
P-421, P-422, P-42320 m each of 10, 8 and 6 inchBranch at +32 m; dry in 4d
SN-431, SN-432, SN-43324 nozzles each, K 4.8 m³/h per √barOne group at the end of each branch pipe
Limits16 barg design, 21.3 barg allowed
RunInitialisation 5 s, end time 60 s; 30 s in 4dTime step 0.002 s; cavitation model DVCM

4.5 Model set-up#

The sea and the elevations. The sea is a Tank with its level held; the pump stands at its floor, 15 m down. Every node carries its elevation, and it is the elevations that make this example: in the steady state the pump delivers at 12.24 barg and the top deck header has 5.70 barg left.

The air valve. An Air Valve has one connection, the node it stands on; its other side is the open air, which the program holds at 0 barg (Figure 76). It has an inlet, which admits air when the pressure at the node falls to its set pressure, and an outlet, which lets the air out again when the pocket is above its own; each has a diameter and a discharge coefficient, and Example 2f showed what each bore is for. In the file the valve is ignored; Example 4b puts it in service.

The Air Valve AV-410: set pressure, diameter and discharge coefficient of the inlet and of the outlet.
Figure 76 The Air Valve AV-410: set pressure, diameter and discharge coefficient of the inlet and of the outlet.

A force on all axes. The forces of the earlier examples were axial: one number along a straight. At an elbow the stress engineer wants a vector. The third force of this file runs from a cut on the rising pipe P-411, 3 m before the elbow at J, to a cut on the top deck header P-412, 3 m after it, with All axes chosen (Figure 77). Each cut then needs the direction in which it faces. Seed from model fills them in: the vertical part comes from the rise of each pipe and is exact; the horizontal part comes from the drawing, which is a sketch, and is to be checked. Both cuts are Elastic: the pressure and the momentum of the water are counted at them, as they must be for a piece cut out of a line that carries on at both ends.

Forces: the elbow at J on all axes, with the directions of the two cuts seeded from the model.
Figure 77 Forces: the elbow at J on all axes, with the directions of the two cuts seeded from the model.

4.6 Example 4a The pump trips during a fire#

Press Run. The pump delivers 849 m³/h, 2.65 m/s in the riser and 3.23 m/s in the header; the nozzles have 6.32 to 5.75 barg and pass 290 to 276 m³/h a group. At 5 s the pump trips.

Example 4a, the pressures at the foot of the header (G) and at the two ends of the top deck (J, K) after the trip. The dashed line at the bottom is the vapour pressure.
Figure 78 Example 4a, the pressures at the foot of the header (G) and at the two ends of the top deck (J, K) after the trip. The dashed line at the bottom is the vapour pressure.

The pump has τ = I ω² / P = 1.14 s: it is at 51 % of its speed after a second, and its check valve shuts 2.3 s after the trip. The water in the header does not stop with it. The top deck reaches the vapour pressure, -0.99 barg, 1.2 s after the trip and stays there: the column has parted at the high point.

Example 4a, the pressures at the three nozzle groups and the flows of the first and the last: the branch goes on draining through the nozzles.
Figure 79 Example 4a, the pressures at the three nozzle groups and the flows of the first and the last: the branch goes on draining through the nozzles.

What follows is slow. The 13 m of water between the top deck and the nozzles hang under a cavity at the vapour pressure, and drain through the nozzles: 20 s after the trip the first group still passes 62 m³/h at 0.29 barg, and the top deck header still moves 137 m³/h towards it. The cavity at J has grown to 1.88 m³ by the end of the run - Max Cavitation in the results of the node - and the one at K to 0.86 m³.

Table 27 Example 4a with no cavitation model and with the two cavity models
Cavitation modelLowest at J, bargLowest at K, bargLargest cavity at J, m³Largest cavity at K, m³First nozzle group after 20 s, m³/h
None-3.16-3.43--0
DVCM-0.99-0.991.880.8662
DGCM-0.99-0.991.780.7862

With no cavitation model the top deck goes to -3.16 barg, below zero absolute, and the nozzles stop at once: the run holds the water together and so holds it up. That is the wrong picture in every respect. The two cavity models agree with each other, as they do when a cavity only grows.

4.7 Example 4b The air valve in service#

Select the air valve, right-click, Active, and run again.

Example 4b, the air valve: the volume of air it has let in, and the pressures at K and at J.
Figure 80 Example 4b, the air valve: the volume of air it has let in, and the pressures at K and at J.

The valve opens 1.3 s after the trip, when K comes down to its set pressure, and from then on K stays just under the pressure of the atmosphere, at -0.06 barg at the lowest: the 50 mm inlet lets the air in as fast as the water leaves. No cavity forms there. The air takes the place of the water that drains away: 1.85 m³ after 20 s, growing by 365 m³/h. The branch empties twice as fast as under a cavity - 125 m³/h through the first group at 1.17 barg, against 62 - because the water now hangs under one atmosphere instead of under none.

Example 4b, the nozzle groups with the air valve in service.
Figure 81 Example 4b, the nozzle groups with the air valve in service.

The valve protects where it stands. The other end of the top deck, J, 60 m away, still swings around atmospheric pressure, between -0.99 and 1.67 barg, and touches the vapour pressure. The cavitation model is left on with the air valve for that reason; the two are not alternatives.

The inlet The pocket grows by 365 m³/h, and that is the air the inlet has to pass. Through 50 mm it does so with a few hundredths of a bar. A bore too small for it would let K fall towards the vapour pressure, as in the table of Example 2f.

4.8 Example 4c The pump is started again#

Twenty seconds after the trip the supply comes back and the pump is started. The second case of the file does that: on the Cases page of the Scenarios tab select it and press Apply to model; the schedule of the pump becomes Trip at 5 s, Start at 25 s. Run it first with the air valve ignored.

Example 4c, the pump: tripped at 5 s, started at 25 s, running out on its curve while it refills the header.
Figure 82 Example 4c, the pump: tripped at 5 s, started at 25 s, running out on its curve while it refills the header.

The pump has nothing in front of it but a cavity, and runs out along its curve to 1590 m³/h, 1.9 times its duty. The column it drives closes the cavity at J, 0.88 m³ by then.

Example 4c with DVCM, the pressures at G, J and K: the cavity closes 3.8 s after the start.
Figure 83 Example 4c with DVCM, the pressures at G, J and K: the cavity closes 3.8 s after the start.

The pressure at K goes to 34.1 barg, 37.5 at J, 31.5 at the foot of the header, in a line designed for 16. The forces are of another order than anything in this manual so far: 476 kN on the 60 m of the top deck header, 326 kN on the riser (Figure 84).

Forces, All forces, after the restart with DVCM.
Figure 84 Forces, All forces, after the restart with DVCM.
Table 28 Example 4c, the restart 20 s after the trip, run five ways
RunHighest at K, bargHighest at J, bargHighest at G, bargTop deck header, kNRiser, kN
DVCM, time step 0.002 s34.137.531.5476326
DVCM, time step 0.001 s34.939.131.5458348
DGCM, time step 0.002 s30.530.530.6619305
Air valve in service, time step 0.002 s10.510.812.54541
Air valve in service, time step 0.001 s10.711.012.64641

The first three rows are the same event, and they do not agree: the pressures are up to 22 % apart and the largest force on the header is 1.4 times the smallest. The pressure made by a closing cavity depends on the last instant of its closing, and that is the least certain number a surge study produces, as Example 5 said. They agree on what matters: a pressure far above the 21.3 barg allowed, and forces of several hundred kilonewtons at the least.

Example 4c with the air valve in service: the pocket of 1.85 m³ is pushed out through the 25 mm outlet in 12.4 s, and the columns meet.
Figure 85 Example 4c with the air valve in service: the pocket of 1.85 m³ is pushed out through the 25 mm outlet in 12.4 s, and the columns meet.

With the air valve the pump has more to refill - the pocket holds 1.85 m³ when the pump starts - and the air has to leave through the 25 mm outlet of the valve. It cannot leave as fast as the pump brings water, so the pocket is squeezed and the columns meet on a cushion, 12.4 s after the start: 10.5 barg at K against 34.1 without the valve, and 45 kN on the top deck header against 476. That is inside the 21.3 barg allowed. It is the outlet that does it, as the next table shows.

Table 29 Example 4c, the restart with the air valve in service and three outlet bores
Outlet of the air valve, mmAir out after the start, sHighest at K, bargTop deck header, kN
509.025.5180
2512.410.545
10not within the run5.434

An air valve protects a line against vacuum. Whether it also makes the line safe to refill is decided by its outlet: one small enough cushions the meeting of the columns, one as large as its inlet does not, and one too small leaves air in the header for minutes. The other way is to fill the header slowly before its main pump is started, through a jockey pump or a filling bypass. Which of the two a platform relies on is an operating rule; a study of this kind is how the rule is justified.

4.9 Example 4d The deluge valve opens on a dry branch#

Open D04d Offshore fire water, deluge filling. The pump is running and the deluge valve is shut; the three branch pipes behind it are Dry - Initial content on the Transient page of each - and Enable Dry pipe selection is ticked on the Setting tab, as in Example 3d. The pump stands at its shut-off head, 15.59 barg at its discharge and 9.55 barg on the top deck: nothing flows anywhere, and the steady state is that of a network at rest. At 5 s the deluge valve opens, in 3 s.

Example 4d before the valve opens: the header full and at the shut-off pressure of the pump, nothing flowing, the branch empty.
Figure 86 Example 4d before the valve opens: the header full and at the shut-off pressure of the pump, nothing flowing, the branch empty.
Example 4d, how full each of the three branch pipes is: they fill one after the other.
Figure 87 Example 4d, how full each of the three branch pipes is: they fill one after the other.

The branch fills pipe by pipe: P-421 is full 3.6 s after the valve began to open, P-422 at 5.5 s, P-423 at 6.9 s. Each group of nozzles starts when the water reaches it, the first at 3.6 s and the last at 6.9 s. Until then the nozzles pass the air that the water pushes ahead of it; the pressure of that air never rises above 0.10 barg, so the water is not held back, and the pump, with an empty branch in front of it, runs out to 1340 m³/h.

Example 4d, the pressures at the three nozzle groups and the flows of the first and the last.
Figure 88 Example 4d, the pressures at the three nozzle groups and the flows of the first and the last.

The water therefore arrives at the end of the branch far faster than the last nozzles can pass it, and is stopped there. The pressure at the last group goes to 33.9 barg, 6.9 s after the valve began to open, for an instant; 9.5 barg at the first group. It then settles at the fire-fighting state of 4a, 849 m³/h. The top deck, drained into the branch, is at -0.06 and -0.22 barg two and three seconds after the valve begins to open: the cavitation model is left on in this file so that it cannot go below the vapour pressure.

Forces, the elbow at J in 4d: Fx, Fy, Fz and the magnitude.
Figure 89 Forces, the elbow at J in 4d: Fx, Fy, Fz and the magnitude.

The forces: 25 kN on the riser and 34 kN on the top deck header, both along the pipe. The elbow at J is different in kind. With both cuts elastic it carries the pressure of the line whether anything moves or not: 100 kN before the valve opens, the 9.55 barg of the shut-in header on a bore of 730 cm², once along each leg. During the filling Fx runs between -69.7 and 2.3 kN and Fz between -0.2 and 71.5 kN; Fy is zero, the two pipes lying in one vertical plane. Write time history for stress analysis leaves the history of the force beside the project, for the stress model.

Table 30 Example 4d, three opening times of the deluge valve
CaseHighest at the last nozzles, bargLowest on the top deck (K), bargRiser, kNTop deck header, kN
4d Deluge valve opens in 3 s33.9-0.232332
4d Deluge valve opens in 10 s33.2-0.971729
4d Deluge valve opens in 30 s28.11.301217
Scenarios, Summary & Report, for the three opening times.
Figure 90 Scenarios, Summary & Report, for the three opening times.

Opening the valve ten times more slowly takes a sixth off the peak. A deluge valve of this size passes all the pump can give long before it is fully open, so its stroke is not what sets the filling rate; the pump is. The peak at the end of a dry branch is brought down by what limits the flow into it - an orifice behind the valve, a smaller valve - or by a branch that does not taper to a dead end. Two checks on the number itself: with the air taken as adiabatic instead of isothermal (Setting tab) the peak is 33.9 barg, the same, because air that can leave is not compressed; and with a time step of 0.001 s it is 33.4 barg.

4.10 Example 4e An air leg at the end of the branch#

The peak of 4d is made at the end of the branch, where the water is stopped. Something that gives way there takes it: a pocket of air. Open D04e Offshore fire water, deluge filling, air leg. It is the file of 4d with one pipe more, P-424: 10 m of 6 inch from the last nozzle group to a node with nothing else on it - a capped end - and it is Dry (Figure 91). The air in it has no way out. Run.

Example 4e before the valve opens: the branch with its air leg P-424 after the last nozzles. A dry pipe is drawn hollow.
Figure 91 Example 4e before the valve opens: the branch with its air leg P-424 after the last nozzles. A dry pipe is drawn hollow.
Example 4e, how full each pipe is: the three branch pipes fill, the air leg does not.
Figure 92 Example 4e, how full each pipe is: the three branch pipes fill, the air leg does not.

The branch fills as before. The water reaches the leg 6.9 s after the valve began to open and squeezes the air in it: the leg is 92 % full at the most and 84 % full at the end of the run, the air at 5.75 barg, the pressure of the branch. The pressure at the last nozzles goes to 11.2 barg where it went to 33.9 (Figure 93).

Example 4e, the pressures at the three nozzle groups and the flows of the first and the last, with the air leg.
Figure 93 Example 4e, the pressures at the three nozzle groups and the flows of the first and the last, with the air leg.

By hand. Air that cannot leave follows p V = constant. The leg was sealed at about the pressure of the atmosphere, 1.01 bar absolute, and ends at 5.75 barg, 6.77 bar absolute: the air is left with 1.01 / 6.77 = 15 % of the leg, and the water has 85 %. The program has 84 %.

Table 31 Example 4e, the air leg at four lengths (6 inch); without a leg the peak is 33.9 barg
Length of the leg, mHighest at the last nozzles, bargHighest pressure of the air, bargMost of the leg filled, %Filled at the end, %
515.015.99484
1011.212.79284
208.69.89084
407.07.98884

A longer leg holds more air and gives way further: the peak falls towards the pressure the branch settles at. Every leg ends equally full, because that is decided by the final pressure alone. To try a length, select P-424, type it on its Inputs page and run again.

What an air leg is, and is not It costs a few metres of pipe and has no moving part. It works only while it holds air: it has to drain after every release, and it is of no use on a branch that is kept full. The air is taken as isothermal here; on the Setting tab Adiabatic makes it stiffer, and the peak with it is the one to design for.

4.11 Example 4f The pump starts on an empty riser#

Before its first start, and after every long stop, a pump in a caisson has nothing above it but air: the riser has drained to the level of the sea. Open D04f Offshore fire water, pump start on a dry riser (Figure 94). The pump is stopped - Pump on No on its Inputs page - and its controller starts it at 5 s. The five pipes from the sea level to the deluge skid are Dry, and so is the branch. The deluge valve is shut, at 0 %. The air valve AV-410 on the top deck is in service: it is the only way out the air has.

Example 4f before the start: every pipe above the sea is empty, and drawn hollow. The air valve at K is in service.
Figure 94 Example 4f before the start: every pipe above the sea is empty, and drawn hollow. The air valve at K is in service.
Example 4f, how full each pipe of the riser and the header is: they fill in turn, and the last leg stops part full.
Figure 95 Example 4f, how full each pipe of the riser and the header is: they fill in turn, and the last leg stops part full.

The pump comes up to speed in under a second and, with nothing to push against, runs out to 1841 m³/h, 2.2 times its duty. The riser is full to the cellar deck 5.1 s after the start and the water reaches the air valve after 33.4 s (Figure 95).

Example 4f, the pressure of the air ahead of the water in each pipe.
Figure 96 Example 4f, the pressure of the air ahead of the water in each pipe.

The air leaves through the outlet of the air valve, 25 mm. That bore cannot pass the air as fast as the pump brings water, so the air is squeezed: 6.53 barg just before the water arrives (Figure 96). It is this pressure that slows the column down - the pump is at 1547 m³/h ten seconds after the start and at 810 m³/h when the water reaches the top deck (Figure 97).

Example 4f, the pump: started at 5 s, running out while the riser fills, held back by the air, and at no flow once the header is full.
Figure 97 Example 4f, the pump: started at 5 s, running out while the riser fills, held back by the air, and at no flow once the header is full.

Past the air valve the header drops 15 m to the shut deluge valve. Once the water has passed K the air of that leg can no longer reach the valve and is trapped: it ends at 11.91 barg with the leg 37 % full. The pump is at no flow 36.8 s after the start, with 15.59 barg at its discharge. The highest pressures of the run are 11.4 barg on the top deck and 14.9 barg at the cellar deck, inside the 16 barg of the design (Figure 98); the forces are 18 kN on the riser and 8.4 kN on the top deck header.

Example 4f, the pressures at G, J and K as the riser fills.
Figure 98 Example 4f, the pressures at G, J and K as the riser fills.

The outlet decides. Select AV-410, change the Diameter of its Outlet Valve Flow and run again; and once with the valve ignored.

Table 32 Example 4f, the start with five air valves at K (inlet 50 mm in each)
OutletWater at the top deck after, sAir pressure then, bargPump flow then, m³/hHighest at K, bargHighest at G, bargLast leg filled, %
No air valvenot within the run--10.613.60
10 mm35.910.2124010.613.51
25 mm33.46.5381011.414.937
50 mm31.41.67119918.126.886
100 mm30.40.04131959.970.898

With no air valve the air has nowhere to go. The pump squeezes it until the two balance: the top deck header ends 98 % full, and the 13.5 m³ of air the riser held are 1.18 m³ at 10.64 barg. By hand, p V = constant gives 13.5 × 1.01 / 11.66 = 1.18 m³. The line holds pressure and is not primed: when the deluge valve opens it gives air first. An outlet of 10 mm is hardly better within a minute.

With a large outlet the air leaves as fast as the water comes, nothing slows the column, and it arrives at the top deck at 1319 m³/h, 5.0 m/s. It is stopped by the pocket trapped before the deluge valve: 71 barg at the cellar deck within the minute, against 21.3 allowed. Stopped at once, that velocity would give ρ a v = 66 bar. The 25 mm outlet is the one that fills the line and keeps it inside its design pressure.

After the stop With the larger outlets the column goes on swinging against the trapped pocket, and at each low the check valve of the pump lets a little more water in: the swing grows for as long as the run lasts. The table gives the highest pressure of the first minute. Read it as an order of magnitude, as every pressure made by a closing pocket in this manual.

A riser that is primed slowly - by a small jockey pump, or through a restriction - never sees any of this. The case to run is the one in which the main pump starts on the empty riser all the same.

4.12 What this example shows#

Table 33 Example 4, reference results
QuantityValue
Steady flow of the pump, m³/h849
Steady pressure at the pump discharge / G / J / K, barg12.24 / 8.07 / 5.70 / 5.50
Steady pressure at the nozzle groups, barg6.32 / 6.02 / 5.75
4a, lowest at J, None / DVCM / DGCM, barg-3.16 / -0.99 / -0.99
4a, largest cavity at J, DVCM / DGCM, m³1.88 / 1.78
4b, air let in after 20 s, m³1.85
4c, highest at K, DVCM at 0.002 s / 0.001 s, barg34.1 / 34.9
4c, highest at K with the air valve, 0.002 s / 0.001 s, barg10.5 / 10.7
4c, highest at K with an outlet of 50 / 25 / 10 mm, barg25.5 / 10.5 / 5.4
4d, the three branch pipes full after, s3.6 / 5.5 / 6.9
4d, highest at the last nozzles, 3 / 10 / 30 s, barg33.9 / 33.2 / 28.1
4d, elbow at J at rest, magnitude, kN100
4e, highest at the last nozzles with a leg of 5 / 10 / 20 / 40 m, barg15.0 / 11.2 / 8.6 / 7.0
4e, the leg of 10 m filled at the end, %84
4f, water at the top deck after, s; pump flow then, m³/h33.4 / 810
4f, highest at K / G with the 25 mm outlet, barg11.4 / 14.9
4f, highest at G with no valve / 10 / 50 / 100 mm, barg13.6 / 13.5 / 26.8 / 71

Example 5 A water transfer line and its surge protection#

Project files D05 Water transfer line.flmx D05e Gasoline shipping line.flmx

5.1 Objective#

To study a long line, where the pump trip is the governing case, and to try the three classical protections on it. By the end the reader will be able to read column separation and its collapse on a long profile, put a surge relief valve, an air vessel and a surge tank into a model, size an air vessel by what the run shows, keep alternatives in one project with Ignore and Active, and study a line in which two valves move in the same event.

5.2 Engineering problem#

Two pumps lift 1844 m³/h of raw water from an intake to a reservoir 20 km away through a 24 inch steel main. The main climbs from the pump station to a summit at 75 m, sixteen kilometres out, and then runs slightly down to the reservoir, whose surface is at 80 m. It is rated for 25 barg. The pumps have no flywheels.

A power failure trips both pumps. What does the main see, and which protection - if any - does it need: a relief valve at the station, an air vessel at the station, or a surge tank at the summit?

5.3 Model schematic#

Example 5 as drawn, with the steady flow under each pipe and the steady pressure under each node. The three protections are drawn in grey: they are in the file, and ignored.
Figure 99 Example 5 as drawn, with the steady flow under each pipe and the steady pressure under each node. The three protections are drawn in grey: they are in the file, and ignored.

5.4 Input data#

Table 34 Example 5, input data of the water line
ItemValueBasis
FluidWater at 20 °C998.2 kg/m³, 1.002 cP, vapour pressure -0.99 barg, bulk modulus 2.2 GPa
T-501, intakeLevel 4 m above the pumpsLevel constant
PU-501A, PU-501B900 m³/h at 160 m, 83 %Shut-off 195 m; 472 kW, 1480 rpm, 26.1 kg m² each
CV-501A, CV-501B16 inch check valvesNo reverse flow, ideal
P-510 to P-513, main20 km of 24 inch, bore 590.6 mmCarbon steel, wall 9.53 mm, roughness 0.046 mm
Profile0 m at the station, 35 m at km 8, 75 m at km 16, 72 m at km 18, 76 m at km 20Entered as the elevations of the nodes N2 to N6
T-502, reservoirSurface at 80 mLevel constant
SRV-520, relief valveSet 18 barg, full open 20 bargArea 80 cm², Cd 0.62; proportional with reseat, blowdown 5 %
V-530, air vessel4 m diameter, 10 m highCharged to 5 barg when empty of water; gas Cp/Cv 1.2
ST-540, surge tank6 m diameter, 26 m highFloor at the summit, 75 m; open to atmosphere
Design pressure25 bargNo vacuum rating
RunInitialisation 5 s, end time 300 sTime step 0.05 s, output time step 0.1 s

5.5 Model set-up#

The profile. A line is given its profile through the elevations of its nodes: a pipe runs straight from the elevation of one end to that of the other. A node is needed wherever the slope changes and wherever something has to be read or connected - here at km 8, at the summit, at km 18 and at the reservoir. In steady flow the summit, 2.14 barg, is the lowest-pressure point of the main.

Time step and run time. A wave takes 17.2 s to cross the main and the events last minutes, so the run is 300 s long with a time step of 0.05 s: reaches of 58 m, 138 of them in each 8 km leg. A long line wants a long step; a step fit for plant piping would spend the afternoon on it and change nothing.

Integrator for Example 5: a step of 0.05 s on a 20 km main.
Figure 100 Integrator for Example 5: a step of 0.05 s on a 20 km main.

Alternatives in one file. The relief valve, the air vessel and the surge tank are all drawn, and all ignored: select an element, right-click, Ignore. An ignored element is drawn in grey and is not in the model: not in the steady state, not in the transient, not in the missing inputs. Active puts it back. Each sub-example below makes one of the three active; nothing else is changed.

Setting, controllers, charts. The cavitation model is DVCM. Two controllers trip the pumps at 5 s. Five charts are set up: the station N2 with the design pressure, the summit N4 with the vapour pressure, the four nodes of the main together, the flow at four places, and the pump.

5.6 Example 5a Both pumps trip, no protection#

Press Run. The steady state has 922 m³/h a pump, 1.87 m/s in the main, 15.79 barg at the station and 2.14 barg at the summit. At 5 s the pumps trip; with τ = 1.33 s they are gone in a few seconds.

By hand, before looking. If the flow at the station stopped at once the head there would fall by a v / g = 1162 × 1.87 / 9.81 = 222 m. The station has 161 m of head to lose and the summit only 22 m. Whatever the detail, a fall of that order cannot be absorbed: the summit will reach the vapour pressure, and it will do so when the wave arrives, 16 000 / 1162 = 13.8 s after the trip.

Example 5a, the pressure at the summit. It reaches the vapour pressure 14.1 s after the trip and stays there until the cavity closes.
Figure 101 Example 5a, the pressure at the summit. It reaches the vapour pressure 14.1 s after the trip and stays there until the cavity closes.

The program puts the summit at the vapour pressure 14.1 s after the trip. The column beyond it runs on towards the reservoir, slows, stops, and comes back: the cavity closes 87 s after the trip, more than a minute later, and the two columns meet. The results table of the node N4 gives the largest volume the cavity reached, Max Cavitation: 6.3 m³.

Example 5a, the flow at four places along the main. Beyond the summit (P-512, P-513) the water keeps moving long after the station has stopped, then reverses.
Figure 102 Example 5a, the flow at four places along the main. Beyond the summit (P-512, P-513) the water keeps moving long after the station has stopped, then reverses.
Example 5a, the pressure at the station: it collapses with the trip, and the closing of the cavity sends back a pressure higher than the working one.
Figure 103 Example 5a, the pressure at the station: it collapses with the trip, and the closing of the cavity sends back a pressure higher than the working one.

When the cavity closes the summit jumps to 13.34 barg, more than five times its working pressure, and the wave that runs back to the station arrives at check valves that have long been shut: 20.51 barg there, against 15.79 in normal running. The cavity then opens and closes again several times.

Example 5a with the pipe labels set to Max Pressure and Min Pressure and the node label to Min Pressure: the envelope of the run. Every pipe of the main has been at the vapour pressure somewhere along its length.
Figure 104 Example 5a with the pipe labels set to Max Pressure and Min Pressure and the node label to Min Pressure: the envelope of the run. Every pipe of the main has been at the vapour pressure somewhere along its length.

The profile along the line. The same envelope can be drawn against the distance along the main, which is how a surge study shows a pipeline. Press Graphs on the Tools page. The file holds one graph of type Path: the x axis is Length, the y variables are Max pressure, Pressure and Min pressure, and the path items are the four pipes of the main from the station to the reservoir. Press Generate (Figure 105). To build such a graph from nothing: Add Graph, leave Graph type at Path and the x axis at Length, press Add y axis var and choose the three pressures, press Add path items and choose the pipes in order from the upstream end. Extend opens the chart in a window of its own.

Graphs: the highest pressure, the pressure of normal running and the lowest pressure along the 20 km of the main in Example 5a.
Figure 105 Graphs: the highest pressure, the pressure of normal running and the lowest pressure along the 20 km of the main in Example 5a.

The middle line is the pressure of normal running, from 15.79 barg at the station to 0.39 barg at the reservoir. The upper line is the highest pressure each point has seen in the run, and the lower one the lowest. From the foothill, 8 km out, to 18 km the lowest pressure is the vapour pressure: that length has been under full vacuum. Set against the pressure rating and the vacuum rating of the pipe along its length, this graph is the result of the study in one picture. It takes its values at the nodes, so a long line is drawn with a node wherever its profile or its rating changes.

Table 35 Example 5a with the two cavity models
Cavitation modelLowest at the summit, bargHighest at the summit, bargHighest at the station, barg
DVCM-0.99 (cavity)13.3420.51
DGCM-0.99 (cavity)11.5323.28

The two cavity models agree on when the column parts and on the size of the peak at the summit, and differ by 2.8 bar on the peak at the station. The pressure at the closing of a cavity is the least certain number in a surge study - it depends on how much the cavity has grown, and that on details no model has. Run both, take the higher, and keep a margin. Here the main stays within its 25 barg; what it does not have is a vacuum rating, and sixteen kilometres of it have been under full vacuum.

5.7 Example 5b A surge relief valve at the station#

Make SRV-520 Active. A surge relief valve opens when the pressure at its node passes the Set Pressure and is wide open at the Full Open Pressure; in between it opens in proportion (Figure 106). It discharges through its Area with its Cd Factor, to the node its outlet stands on. That node is an ordinary one, and it is given a pressure - 0 barg here, in the Node window, as for most relief valves - or joined to a line. A relief valve whose outlet has neither has nowhere to discharge to, and FlowMax lists it under Missing inputs. Type says how it behaves: proportional; proportional with reseat, which closes again only when the pressure has fallen by the Blowdown below the set pressure; a pop safety valve; or a bursting disc, which does not close. A Time constant makes it lag the pressure.

The surge relief valve SRV-520: set and full-open pressure, area, discharge coefficient, type, blowdown and time constant.
Figure 106 The surge relief valve SRV-520: set and full-open pressure, area, discharge coefficient, type, blowdown and time constant.
Example 5b, the flow and the opening of the relief valve: it lifts when the returning wave reaches the station.
Figure 107 Example 5b, the flow and the opening of the relief valve: it lifts when the returning wave reaches the station.

The valve stays shut through the trip and lifts when the wave from the closing cavity arrives: it opens 17 %, passes 186 m³/h, and holds the station at 18.34 barg instead of 20.51. Everything else is as before: the summit still parts, -0.99 (cavity) barg, and still sees 13.34 barg when the cavity closes. A relief valve clips a high pressure where it stands. It can do nothing about a low one, and nothing about a peak sixteen kilometres away.

5.8 Example 5c An air vessel at the station#

Ignore the relief valve again and make V-530 active. An air vessel - an Accumulator in FlowMax - is a closed vessel on the line, part water and part compressed gas. When the pumps trip the gas pushes the water out into the main, so that the flow there falls slowly instead of at once; the cause of the low pressure is removed, not its effect.

The vessel is a vertical cylinder with a Diameter and a Length, on the Transient page of its window (Figure 108). Its charge is given as a reference state: the Initial Liquid level at which the gas has the Initial Pressure. Here that is the vessel empty of water, level 0, with the gas at 5 barg - the pre-charge. At the start of the run FlowMax compresses the gas from that state to the pressure of the line, along P Vⁿ = constant with n the Gas Cp/Cv, and that sets how much water the vessel holds when the pumps trip.

The Transient page of the air vessel V-530: geometry, the reference liquid level and pressure of its charge, and the gas exponent.
Figure 108 The Transient page of the air vessel V-530: geometry, the reference liquid level and pressure of its charge, and the gas exponent.

By hand. The vessel is 125.7 m³. Compressed from 5 barg to the 15.24 barg of the line, the gas takes 125.7 × (6.01 / 16.25)^(1/1.2) = 54.9 m³; the program starts with 54.9 m³ of gas and a water level of 5.63 m.

Example 5c, the 4 m by 10 m vessel: the flow out of the vessel and its water level.
Figure 109 Example 5c, the 4 m by 10 m vessel: the flow out of the vessel and its water level.
Example 5c, the pressure at the summit with the 4 m by 10 m vessel: it stays above atmospheric pressure.
Figure 110 Example 5c, the pressure at the summit with the 4 m by 10 m vessel: it stays above atmospheric pressure.
Graphs, the same graph with the 4 m by 10 m vessel: the lowest pressure stays above atmospheric pressure all along the main, and the highest is that of normal running.
Figure 111 Graphs, the same graph with the 4 m by 10 m vessel: the lowest pressure stays above atmospheric pressure all along the main, and the highest is that of normal running.
Table 36 Example 5c, three air vessels
VesselVolume, m³Pre-charge, bargWater at the start, m³Lowest level, mLowest at the summit, bargLowest at the station, bargHighest at the station, barg
4 m × 10 m125.7570.8  1.580.176.5315.79
3 m × 8 m56.5532.0  0.27-0.335.2815.79
3 m × 8 m56.5822.4  0.00 (emptied)-0.99 (cavity)-0.1015.79

With the large vessel the station pressure sinks slowly, from 15.79 to 6.53 barg over minutes, the summit never goes below 0.17 barg, no cavity forms, and nothing rises above the working pressure. The vessel gives up to 2290 m³/h and its level falls from 5.63 to 1.58 m.

The smaller vessel with the same pre-charge also prevents the cavity, but only just: the summit goes to -0.33 barg, below atmospheric pressure, and 0.27 m of water is left in the vessel. The third row is the same small vessel charged to 8 barg: more gas, so less water - 22.4 m³ instead of 32.0 - and the level reaches zero 55 s after the trip: the vessel has run out of water.

An air vessel that empties A level of zero means the vessel has run out of water during the run: in the plant the gas would enter the main. FlowMax stops the outflow there - an empty vessel gives nothing more - and says so in the message after the run: "V-530 ran out of liquid at 60.3 s : it gives nothing more while the line is below its gas pressure". From that moment the line is unprotected. Chart the level and the gas volume of every air vessel, and judge a size by the lowest level as well as by the pressures.

An air vessel is sized by trial: the lowest pressure at the worst point of the line - here the summit - and the lowest level in the vessel are the two numbers to watch, and the size and the pre-charge are the two to turn. 126 m³ for a 24 inch main of 20 km is a large vessel; that is what removing a low-pressure problem at its source costs.

5.9 Example 5d A surge tank at the summit#

Ignore the vessel and make ST-540 active. A Surge Tank is an open tank standing on the line: its level is the pressure head of the line at that point, and it gives or takes water as that head moves. It has a Tank elevation, the level of its floor, on its Inputs page, and a Diameter and a Tank height on its Transient page (Figure 112). It takes no part in the steady state; the run starts with its level at the head the steady state gives its node. A surge tank therefore belongs where the working head is modest: at this summit the level stands 21.8 m above the floor, and a tank of 26 m holds it.

The Transient page of the surge tank ST-540: its diameter and its height.
Figure 112 The Transient page of the surge tank ST-540: its diameter and its height.
Example 5d, the flow of the surge tank and its level, as an elevation.
Figure 113 Example 5d, the flow of the surge tank and its level, as an elevation.
Example 5d, the pressures along the main with the surge tank at the summit.
Figure 114 Example 5d, the pressures along the main with the surge tank at the summit.

The tank does what it is there for. As the head falls it feeds the column beyond the summit, up to 2954 m³/h, its level going from 96.8 to 92.1 m; the summit never leaves 1.67 barg and the last four kilometres are safe. But the sixteen kilometres between the station and the tank are on their own: at km 8 the pressure still falls to -0.99 (cavity) barg, and the station still sees 20.50 barg when that cavity closes. A surge tank protects what lies beyond it.

When a tank overflows or runs empty If the level reaches the top of a surge tank the tank spills, and if it reaches the floor the tank gives nothing more. FlowMax says either in the message after the run, with the time. A height left empty means a tank with no top.

The four options side by side#

Table 37 Example 5, both pumps tripping: the four options
ProtectionLowest at km 8, bargLowest at the summit, bargHighest at the summit, bargHighest at the station, barg
None-0.99 (cavity)-0.99 (cavity)13.3420.51
Relief valve at the station-0.99 (cavity)-0.99 (cavity)13.3418.34
Air vessel at the station, 126 m³3.550.172.1415.79
Surge tank at the summit-0.99 (cavity)1.672.1420.50

Only the air vessel keeps the whole main above the vapour pressure. The relief valve treats a symptom at one place; the surge tank cures the summit and leaves the rising leg. Which is right is a matter of what the main can stand - a pipe rated for full vacuum may need no more than the relief valve - and of cost; the model is what makes the choice an informed one. Combinations are tried the same way: make two of the three active and run.

5.10 Example 5e A shipping line switched between two tanks#

The second file is a different system with the same subject. A refinery ships gasoline at 598 m³/h through 8 km of 12 inch line to a terminal, where a manifold feeds either of two tanks through an inlet valve; a surge relief valve stands on the manifold (Figure 115). During a shipment the operator switches from tank T-561 to tank T-562: valve A closes and valve B opens.

Example 5e, the gasoline shipping line: steady flow and pressures before the switch. Valve B and its branch are grey because they carry nothing.
Figure 115 Example 5e, the gasoline shipping line: steady flow and pressures before the switch. Valve B and its branch are grey because they carry nothing.
Table 38 Example 5e, input data
ItemValueBasis
FluidGasoline at 20 °C, from the fluid library719 kg/m³, 0.58 cP, vapour pressure 0.11 bar abs; bulk modulus 1.07 GPa typed
T-551, PU-551Tank level 10 m; pump 600 m³/h at 110 mPump modelling Simple: it is not tripped
P-552, shipping line8000 m of 12 inch, bore 304.8 mmCarbon steel; wave speed 1132 m/s
V-A, V-B10 inch, Cv 2200, linearEach on a 150 m branch to its tank; V-B shut
T-561, T-562Levels 12 m and 4 mLevels constant
SRV-560Set 12 barg, full open 13.2 bargArea 40 cm², Cd 0.62; proportional with reseat, blowdown 7 %
Design pressure19.6 bargClass 150 flanges
RunEnd time 120 sTime step 0.02 s

A library fluid. The fluid is chosen in the Fluid window from the library, by name and temperature, which gives its density, viscosity and vapour pressure. The library does not hold the bulk modulus; in transient mode the Fluid window asks for it, and it is typed. For a light hydrocarbon it is about half that of water, and the wave speed is lower with it: 1132 m/s here.

Two controllers move the two valves, each with its own schedule. In the file valve A closes from 5 to 35 s and valve B opens over the same thirty seconds.

Example 5e, both valves moving together: the flow passes from one tank inlet to the other.
Figure 116 Example 5e, both valves moving together: the flow passes from one tank inlet to the other.
Example 5e, both valves moving together: the pressure at the manifold, with the design pressure and the set pressure of the relief valve as limit lines.
Figure 117 Example 5e, both valves moving together: the pressure at the manifold, with the design pressure and the set pressure of the relief valve as limit lines.

Moved together, the two valves hand the flow from one tank to the other. The line never notices: the manifold goes from 1.32 to 0.78 barg - down, because the second tank is the emptier one - and the relief valve stays shut.

The wrong sequence. The second case of the file (Figure 118) is the switch as it goes wrong: valve A is closed first and valve B is opened only twenty seconds after A is shut. For those twenty seconds the line is blocked.

Scenarios, Cases, for Example 5e: the second case gives the controller of valve B a later schedule.
Figure 118 Scenarios, Cases, for Example 5e: the second case gives the controller of valve B a later schedule.
Example 5e, valve A shut before valve B opens: the manifold pressure is cut off at the relief valve.
Figure 119 Example 5e, valve A shut before valve B opens: the manifold pressure is cut off at the relief valve.
Example 5e, the wrong sequence: the flow and the opening of the relief valve.
Figure 120 Example 5e, the wrong sequence: the flow and the opening of the relief valve.

By hand. Stopping 2.28 m/s of gasoline gives ρ a v = 719 × 1132 × 2.28 = 18.5 bar - and the closure, thirty seconds, is hardly longer than the 2L/a = 14.1 s of the line, on which friction then packs more.

The relief valve lifts 29 s into the event, opens 61 %, passes 323 m³/h and holds the manifold at 12.73 barg until valve B opens. Ignore the relief valve and run the same case: the manifold reaches 24.04 barg, 4.4 bar over the rating of the flanges, and the pump end 13.12 barg.

Example 5e, the wrong sequence with the relief valve ignored.
Figure 121 Example 5e, the wrong sequence with the relief valve ignored.

This is why the relief valve is there: not for the switch as designed, which needs none, but for the switch as it will one day be done. A transient study of a terminal runs the operating errors as well as the operating procedure.

5.11 What this example shows#

Table 39 Example 5, reference results
QuantityValue
Steady flow and velocity in the main1844 m³/h, 1.87 m/s
Wave speed of the main, m/s1162
Steady pressure at the station / km 8 / summit, barg15.79 / 9.21 / 2.14
5a, summit at the vapour pressure after, s14.1
5a, highest at the summit / the station, barg (DVCM)13.34 / 20.51
5b, highest at the station, barg; largest relief flow, m³/h18.34 / 186
5c, 126 m³ vessel: lowest at the summit, barg; lowest level, m0.17 / 1.58
5d, lowest at the summit / at km 8, barg1.67 / -0.99
5e, manifold: valves together / wrong sequence / without relief valve, barg1.32 / 12.73 / 24.04

Example 6 A condensate rundown line#

Project files D06 Condensate rundown.flmx D06d Condensate rundown, level control.flmx

6.1 Objective#

To study a hydrocarbon line with a shutdown valve at each end. By the end the reader will be able to recognise line packing, compare the two cavity models on a column separation and read the cavity volume, use a fixed-loss element, give forces to the stress engineer per run and per metre, run a pump changeover, and let a level controller hold a vessel whose level moves.

6.2 Engineering problem#

Field condensate is pumped at 960 m³/h from a tank to a receiving vessel 3.2 km away through an 18 inch line. One pump runs and one stands by. An emergency shutdown valve, ESDV-610, stands at the pump discharge. The line climbs over a pipe bridge 12 m up, 800 m out. At the far end a control valve holds the back pressure on the line, a metering skid follows it, and a second shutdown valve, ESDV-640, stands before the receiving vessel, which is kept at 3 barg. The condensate has a vapour pressure of 1.0 bar absolute: it boils as soon as the pressure falls to atmospheric.

The line is designed for 19 barg, and its maximum allowable surge pressure, MASP, is 25 barg. Each shutdown valve closes in 18 s, one second per inch. The surge study has to say what each of them does to the line when it closes, what a pump trip does, and what loads the pipe rack sees.

6.3 Model schematic#

Example 6 as drawn, with the steady flow under each pipe and the steady pressure under each node. The line runs at 10 to 11 barg as far as the control valve LCV-620, which lets it down to the pressure of the receiving vessel.
Figure 122 Example 6 as drawn, with the steady flow under each pipe and the steady pressure under each node. The line runs at 10 to 11 barg as far as the control valve LCV-620, which lets it down to the pressure of the receiving vessel.

6.4 Input data#

Table 40 Example 6, input data
ItemValueBasis
FluidCondensate at 30 °C740 kg/m³, 0.6 cP, vapour pressure 1.0 bar abs (-0.01 barg), bulk modulus 0.9 GPa
T-601, feed tankLevel 8 m above the pumpsAtmospheric; level constant
PU-601A, PU-601B950 m³/h at 150 m, 80 %Shut-off 180 m; 359 kW, 1480 rpm, 17.9 kg m²; B stopped
ESDV-610, ESDV-64018 inch ball valves, Cv 12000Linear; close in 18 s
P-611, P-612, P-613800, 1000 and 1320 m of 18 inchBore 438.1 mm, wall 9.53 mm; bridge at 12 m between P-611 and P-612
LCV-620, control valve12 inch, Cv 560, linearHeld at 75 % opening
FE-630, metering skid1.0 bar at 950 m³/hA fixed loss, going as the square of the flow
T-602, receiving vessel3 barg over a level of 10 mLevel constant
Pressure limits19 barg design, 25 barg MASP
RunInitialisation 5 s, end time 120 sTime step 0.01 s; cavitation model DVCM

6.5 Model set-up#

A fixed loss. The metering skid is neither a pipe nor a valve; what is known of it is that it loses one bar at the design flow. The PD element is made for that (Figure 123). With Calculate K it takes a Reference flow and a Reference PD and a loss that goes as the flow to the power n, 2 unless said otherwise. It can also be given a K directly, a fixed pressure drop whatever the flow, or a curve of pressure drop against flow. Coolers, filters and strainers are entered the same way.

The PD element FE-630: a loss calculated from a reference flow and a reference pressure drop.
Figure 123 The PD element FE-630: a loss calculated from a reference flow and a reference pressure drop.

A vessel under pressure. A tank need not be open to the atmosphere: Tank pressure on its Inputs page is the pressure over the liquid (Figure 124). The receiving vessel is held at 3 barg, which keeps the far end of the line well above the vapour pressure in normal running.

The receiving vessel T-602, with 3 barg over its liquid.
Figure 124 The receiving vessel T-602, with 3 barg over its liquid.

Controllers. Four are set up, one for each thing that can happen: ESDV-640 closing, ESDV-610 closing, PU-601A tripping and PU-601B starting. In the file the first is on and the others Off; the cases of the Scenarios tab switch between them (Figure 125). The control valve has no controller here: it stays at the 75 % of its Inputs page. Example 6d puts it under its controller.

Scenarios, Cases, for Example 6: one case for each event.
Figure 125 Scenarios, Cases, for Example 6: one case for each event.

Forces. Two forces are defined, each on a 100 m straight run with rigid cuts: on the pipe rack before the bridge, from 500 m to 600 m along P-611, and on the last 100 m of P-613 before the control valve. A cut can be put at any distance along a pipe.

6.6 Example 6a The far shutdown valve closes#

Press Run. In the steady state the pump gives 960 m³/h at 11.33 barg; the line runs at 1.77 m/s; the control valve takes it from 9.98 barg down, and ESDV-640 sees 3.75 barg. At 5 s ESDV-640 starts to close.

Example 6a, the pressure before ESDV-640, with the design pressure and the MASP.
Figure 126 Example 6a, the pressure before ESDV-640, with the design pressure and the MASP.

For sixteen seconds nothing happens: 4.23 barg at 21 s. A ball valve of Cv 12000 in a line whose resistance is elsewhere does not throttle until it is almost shut; one second before the end the line still carries 899 m³/h. Then the flow is cut in a second, and the pressure before the valve goes to 23.95 barg, 4.9 bar above the design pressure and inside the MASP by 1.1 bar.

By hand. Two things add up at the far end. First the surge: ρ a v = 740 × 1010 × 1.77 = 13.2 bar. Second, the far end was at 3.75 barg only because the control valve was taking 6.2 bar; with no flow a valve takes nothing, and the far end rises to the pressure of the line behind it. 9.98 + 13.2 = 23.2 barg; the program gives 23.95.

Example 6a, the flow and the discharge pressure of the pump: when the wave reaches the station the pump is pushed back along its curve to no flow, and its check valve shuts.
Figure 127 Example 6a, the flow and the discharge pressure of the pump: when the wave reaches the station the pump is pushed back along its curve to no flow, and its check valve shuts.

Line packing. The wave reaches the pump 3.1 s later. The pump cannot hold 24 barg: its flow goes to nothing 21.1 s after the valve began to move, its check valve shuts, and it is left at its shut-off pressure, 14.03 barg. The line is now a closed volume between a check valve and a shut valve with the surge locked inside it: at the end of the run the far end is still at 23.49 barg, above the design pressure, and it will stay there until something lets it out. This is why a liquid line that can be blocked in has thermal relief valves, and why the pressure after an emergency shutdown is a design case in its own right.

Example 6a, the pressures along the line: the whole line ends near 23 barg.
Figure 128 Example 6a, the pressures along the line: the whole line ends near 23 barg.

The forces. The two runs of 100 m see 55 kN and 65 kN. A stress engineer wants them per run, with their time history - Write time history on the force, then Export all - and often per metre of pipe, to spread over the supports: 551 and 653 N/m here.

Forces, All forces, after the run of Example 6a.
Figure 129 Forces, All forces, after the run of Example 6a.

6.7 Example 6b The near shutdown valve closes#

Now ESDV-610, at the pump discharge, closes in the same 18 s (the second case). The pump is blocked in at once and has nothing to do with what follows. The interest is on the other side of the valve: 3 km of condensate moving at 1.77 m/s with nothing behind it.

Example 6b, the pressures either side of ESDV-610 and its flow. Behind the shut valve the pressure goes to the vapour pressure.
Figure 130 Example 6b, the pressures either side of ESDV-610 and its flow. Behind the shut valve the pressure goes to the vapour pressure.
Example 6b with DVCM, the pressure on the bridge: a cavity opens and closes.
Figure 131 Example 6b with DVCM, the pressure on the bridge: a cavity opens and closes.

The column pulls away from the valve. The pressure behind it and on the bridge falls to the vapour pressure 18.7 s after the valve began to move, and stays there while the column runs on, slows against the back pressure of the control valve and the receiving vessel, and returns.

Table 41 Example 6b with no cavitation model, DVCM and DGCM
Cavitation modelLowest at N3, bargLowest on the bridge N4, bargLargest cavity at N4, m³Highest at N4 after the return, bargForce on the rack run, kN
None-3.27-3.97-7.2850
DVCM-0.01-0.010.308.97342
DGCM-0.01-0.010.328.69213

Without a cavitation model the run shows -3.97 barg on the bridge - several bar below a perfect vacuum - and is of no use. With either model the pressure stops at -0.01 barg. The largest volume the cavity reached is in the results table of the node, as Max Cavitation: 0.30 m³ with DVCM, 0.32 with DGCM. A fraction of a cubic metre in a line that holds 470 m³ is enough to decide everything that follows.

What follows is the return. When the column comes back and the cavity closes, the two cavity models give the same picture and different numbers: 8.97 barg on the bridge with DVCM and 8.69 with DGCM, and 342 kN against 213 kN on the rack run. Neither is the truth to three figures. The honest statement of this case is that the near valve produces vaporisation and a force of the order of 342 kN on the rack, 6.2 times that of the far valve, although no pressure limit is passed. It is the closing of the cavity, not the closing of the valve, that sizes the supports.

Example 6b with DGCM, the pressure on the bridge.
Figure 132 Example 6b with DGCM, the pressure on the bridge.

Where the line vaporises it is checked for full vacuum A minimum at the vapour pressure is reported as it is: for condensate, about atmospheric pressure. The pipe, though, is checked for full vacuum wherever the fluid has parted, because the vapour that fills the cavity condenses again and the margin is not to be counted on.

6.8 Example 6c The pump trips; the changeover#

In the third case PU-601A trips with both valves open; in the fourth PU-601B is started at the same moment, as the automatic changeover of the pump controls would do.

Example 6c, pump trip: the pressure on the bridge.
Figure 133 Example 6c, pump trip: the pressure on the bridge.

With τ = 1.20 s the pump is gone in a few seconds. The line pressure falls from 11.20 to 0.66 barg at the station and the bridge touches the vapour pressure 5.0 s after the trip: a cavity of a few litres, which closes without a peak. Nothing rises above the working pressure. The flow then stops: the receiving vessel, at 3 barg, holds the column and the check valve of the pump shuts. For the piping the finding is again a vacuum on the bridge.

Table 42 Example 6, the four cases of the file
CaseHighest before ESDV-640, bargBridge N4, highest / lowest, bargRack run, kNRun before LCV-620, kN
6a Far ESDV closes23.9523.00 / 10.015562
6b Near ESDV closes8.8910.01 / -0.0133687
6c Pump trips4.3710.01 / -0.012018
6c Pump changeover5.3812.34 / 5.343946
Example 6c, changeover: the flows and the speeds of the two pumps.
Figure 134 Example 6c, changeover: the flows and the speeds of the two pumps.

The changeover is the quiet case. PU-601B is delivering 962 m³/h two seconds after its start, while PU-601A is still running down; the bridge never goes below 5.34 barg nor above 12.34, and the line ends where it began, 960 m³/h on the other pump. A standby pump that starts on the trip of the duty pump removes the trip as a surge case - provided it does start.

Scenarios, Summary & Report, for the four cases. The bridge pressure has a minimum limit of 0 barg; the two cases in which the condensate vaporises are marked.
Figure 135 Scenarios, Summary & Report, for the four cases. The bridge pressure has a minimum limit of 0 barg; the two cases in which the condensate vaporises are marked.

6.9 Example 6d A level controller#

In the second file the line ends in a small vessel, V-602, 6 m across, from which the condensate goes on to a stabiliser through the valve V-651 (Figure 136). The control valve LCV-620 now has a job: to hold the level of that vessel at 5.0 m.

The second file of Example 6: the vessel V-602 with its outlet to the stabiliser.
Figure 136 The second file of Example 6: the vessel V-602 with its outlet to the stabiliser.

A level that moves. On the Transient page of the tank, Level in the run is set to Varies (Figure 137). The level then follows what comes in less what goes out, over the area the Diameter gives; the Tank height is where it overflows. The steady state the run starts from takes the level as it is entered.

The Transient page of the vessel V-602: its level varies during the run.
Figure 137 The Transient page of the vessel V-602: its level varies during the run.

The controller. Controller 5 has the opening of LCV-620 as its output and is Automatic; Select PV names the vessel V-602 and its liquid level (Figure 138). The action is Reverse: a level above the set point closes the valve. With Start from steady state ticked, FlowMax first finds the opening at which the vessel is in balance - what comes in equals what goes out - so that the run starts at rest: 74.7 % and 975 m³/h.

Controllers, Automatic: the opening of LCV-620 holds the level of V-602.
Figure 138 Controllers, Automatic: the opening of LCV-620 holds the level of V-602.

The disturbance. At 5 s the stabiliser cuts its intake: V-651 goes from 100 % to 60 % in ten seconds. More comes in than goes out, the level rises, and the controller has to bring the inflow down to match.

Example 6d, Kc 5 and Ti 0.5 min: the level of V-602 and its set point.
Figure 139 Example 6d, Kc 5 and Ti 0.5 min: the level of V-602 and its set point.
Example 6d, Kc 5 and Ti 0.5 min: the opening of LCV-620, the flow into the vessel and the flow out of it.
Figure 140 Example 6d, Kc 5 and Ti 0.5 min: the opening of LCV-620, the flow into the vessel and the flow out of it.
Table 43 Example 6d, the outflow cut to 60 %, with three tunings of the level controller
Kc, % per %Ti, minHighest level, mafter, sLevel at 600 s, mLCV-620 at 600 s, %Verdict
50.55.16735.0034.7Back on the set point
215.371614.9239.1Slow, and swings below
5none (0)5.395955.3935.7Steady, 0.39 m high

With a gain of 5 and an integral time of half a minute the level rises 0.16 m and is back on its set point by the end of the run, the valve having gone from 74.7 to 34.7 %. A weaker, slower tuning lets the level go 0.37 m high and then below. With no integral action - Ti set to 0 - the controller is proportional only: it stops the level but leaves it 0.39 m above the set point, because a proportional controller needs an error to hold the valve away from where it started.

Example 6d with a proportional controller, Kc 5 and no integral action: the level settles above its set point.
Figure 141 Example 6d with a proportional controller, Kc 5 and no integral action: the level settles above its set point.

Without the controller. The file has two more cases, in which the controller is put on Manual at 75 %: the outflow cut to 60 %, and the outflow shut. In the first the level is at 7.04 m after ten minutes and still rising. In the second it reaches the top of the vessel 530 s after the valve began to close.

Scenarios, Charts, for Example 6d: the level of V-602 in the three cases.
Figure 142 Scenarios, Charts, for Example 6d: the level of V-602 in the three cases.
Example 6d, outflow shut and controller on manual: the level reaches the height of the vessel and stays there.
Figure 143 Example 6d, outflow shut and controller on manual: the level reaches the height of the vessel and stays there.

FlowMax says so in the message after the run: "During the run : V-602 overflowed at 535.48 s A tank that is full spills what more comes in ; an empty one gives nothing more." From that moment the vessel is full: what more comes in is spilled, and the level on the chart is the height of the vessel.

6.10 What this example shows#

Table 44 Example 6, reference results
QuantityValue
Steady flow and velocity960 m³/h, 1.77 m/s
Wave speed, m/s1010
Steady pressure at N3 / N4 / N6 / before ESDV-640, barg11.20 / 10.01 / 9.98 / 3.75
6a, highest before ESDV-640, barg; at the end of the run23.95 / 23.49
6a, forces on the two runs, kN55 / 65
6b, largest cavity at N4, DVCM / DGCM, m³0.30 / 0.32
6c, lowest at N4, trip / changeover, barg-0.01 / 5.34
6d, highest level with Kc 5, Ti 0.5 min, m5.16

Example 7 An LNG rundown line#

Project file D07 LNG rundown.flmx

7.1 Objective#

To run a complete shutdown study the way a project does: every event that can stop the line as a case, pressures and forces against their limits in one table, and closure times tuned on the result. By the end the reader will be able to model a cryogenic liquid in stainless pipe, decide and show that no cavitation model is needed, watch forces against a limit, use a pressure controller in normal operation and make it fail, and see why the pump trip sets the floor under every closure time.

7.2 Engineering problem#

Two liquefaction trains run LNG down to a storage tank. Each has a product pump and an emergency shutdown valve; the two join a 32 inch stainless steel line, 3.4 km long, which ends at the tank in a pressure control valve and a trip valve. The control valve holds 11.5 barg on the line, far above the 1.1 bar absolute at which the LNG boils; behind it the LNG enters the tank at the pressure of the liquid standing there. The line is designed for 30 barg, with 33 barg allowed in surge.

The shutdown valves are to close at one second per inch of their size: 22 s for the train valves, 24 s for the tank valve. The stress engineer has set 60 kN as the unbalanced force the supports of a straight run of the 32 inch line can take. Are those closure times good enough, and if not, what should they be?

7.3 Model schematic#

Example 7 as drawn, with the steady flow under each pipe and the steady pressure under each node. PC on the control valve marks its controller; the dashed line runs to the node it measures.
Figure 144 Example 7 as drawn, with the steady flow under each pipe and the steady pressure under each node. PC on the control valve marks its controller; the dashed line runs to the node it measures.

7.4 Input data#

Table 45 Example 7, input data
ItemValueBasis
FluidLNG at -159 °C432 kg/m³, 0.12 cP, vapour pressure 1.1 bar abs (0.09 barg), bulk modulus 0.8 GPa
V-701A, V-701B0.5 barg over a level of 4 mProduct drums; level constant
PU-701A, PU-701B1200 m³/h at 270 m, 80 %Shut-off 330 m; 477 kW, 2970 rpm, 8.5 kg m² each
ESDV-710A, ESDV-710B22 inch, Cv 20000On 60 m of 22 inch from each pump; close in 22 s
P-720, P-721, P-7221200, 1200 and 940 m of 32 inchStainless steel, bore 796.9 mm, wall 7.9 mm; E = 193 GPa
PCV-74020 inch, Cv 1000, linearHolds 11.5 barg at N4; minimum opening 5 %
XV-730, tank trip valve24 inch, Cv 28000At the tank nozzle; closes in 24 s
T-740, storage tank0.1 barg over a level of 25 mBottom fill; level constant
Limits30 barg design, 33 barg allowed; 0.3 barg lowestForces on 32 inch straights: 60 kN
RunInitialisation 5 s, end time 200 sTime step 0.01 s; no cavitation model

7.5 Model set-up#

The fluid and the pipe. LNG is entered by its properties: density, viscosity, vapour pressure and bulk modulus. The pipe is austenitic stainless steel; on the Transient page of each pipe the Modulus of elasticity is that of the material at its temperature, 193 GPa (Figure 145). A soft liquid in a thin-walled pipe of large bore gives a wave speed of 1157 m/s, well under that of water in carbon steel.

The Transient page of the pipe P-720: stainless steel, and the wave speed that follows.
Figure 145 The Transient page of the pipe P-720: stainless steel, and the wave speed that follows.

No cavitation model. Cavitation model is None (Figure 146). That is a claim about the results, and it has to be shown: the charts carry the vapour pressure as a limit line, and the pressures watched in the Scenarios tab have a minimum limit of 0.3 barg, a margin above the 0.09 barg at which the LNG boils. If any case broke that limit, the model would have to be run with a cavitation model. None does.

Setting for Example 7: wave speed calculated per pipe, no cavitation model.
Figure 146 Setting for Example 7: wave speed calculated per pipe, no cavitation model.

The pressure controller. Controller 6 holds the pressure at N4, before the control valve, at 11.5 barg (Figure 147). Its action is Direct: a pressure above the set point opens the valve, as a back-pressure controller must. With Start from steady state it begins the run at 60.5 % opening.

Controllers, Automatic: PCV-740 holds the pressure of N4.
Figure 147 Controllers, Automatic: PCV-740 holds the pressure of N4.

The forces. Three straight runs are named by the stress engineer: 180 m of pipe rack on P-720, a 30 m leg of an expansion loop on P-721, and the 20 m from the control valve to the tank. Each is a force between two rigid cuts (Figure 148).

Forces: the rack straight, from 400 m to 580 m along P-720.
Figure 148 Forces: the rack straight, from 400 m to 580 m along P-720.

The cases. Five controllers carry the events - the tank valve, the two train valves, the two pumps - and six cases combine them (Figure 149). On the Outputs page three pressures are watched against 33 barg and 0.3 barg, and the three forces against 60 kN either way (Figure 150).

Scenarios, Cases, for Example 7.
Figure 149 Scenarios, Cases, for Example 7.
Scenarios, Outputs: pressures and forces with a maximum and a minimum limit.
Figure 150 Scenarios, Outputs: pressures and forces with a maximum and a minimum limit.

7.6 Example 7a The tank trip valve closes#

Press Run. In the steady state each pump delivers 1279 m³/h at 11.76 barg; the line carries 2558 m³/h at 1.42 m/s and 11.73 to 11.50 barg; behind the control valve the LNG is at 1.20 barg. At 5 s XV-730 starts to close.

Example 7a, the pressures either side of XV-730, with the design pressure and the vapour pressure as limit lines.
Figure 151 Example 7a, the pressures either side of XV-730, with the design pressure and the vapour pressure as limit lines.

As in Example 6, the valve does nothing for most of its stroke: 1.83 barg before it after 22 s, and 2423 m³/h still flowing a second before it is shut. Then the flow is stopped in about a second and the pressure before the valve goes to 19.89 barg.

By hand. ρ a v = 432 × 1157 × 1.42 = 7.1 bar on a line at 11.50 barg: 18.6 barg; the program gives 19.89, the pumps having been pushed back to their shut-off pressure of 14.7 barg. That is the highest pressure of this study and it is far inside the 30 barg of the line. On pressure, a closure in 24 s is acceptable.

Forces, All forces, after the run of Example 7a.
Figure 152 Forces, All forces, after the run of Example 7a.

On force it is not. The rack straight sees 127 kN against a limit of 60. A 32 inch pipe has a bore area of 0.50 m²: every bar of difference between the two ends of a straight is 50 kN. Large-bore lines fail on force long before they fail on pressure.

By hand. The force on a straight is ρ L dQ/dt. Near the valve the flow falls by 1.71 m³/s per second at its steepest; for the 180 m of the rack, 432 × 180 × 1.71 = 133 kN. The program gives 127 kN; the front has spread a little on its way up the line.

The second case closes the same valve in 50 s. The pressure hardly changes, 19.25 barg, because the line still ends at the shut-off head of the pumps. The forces fall to 68, 20 and 7.5 kN on the three runs: a longer stroke stretches the last few per cent of travel, where all the closing is done, and the front with it.

7.7 Example 7b The train shutdown valves close#

In the third case the two train valves close together in 22 s and the tank valve stays open.

Example 7b, the pressures either side of ESDV-710A and its flow: two transients, one on each side of the valve.
Figure 153 Example 7b, the pressures either side of ESDV-710A and its flow: two transients, one on each side of the valve.

A near closure cuts the system in two. On the pump side the pressure rises to 16.23 barg, the pump blocked in at its shut-off head: nothing more happens there. On the line side the LNG runs on with nothing behind it and the pressure falls by the Joukowsky amount, from 11.73 barg to about 2.9 barg. The pressure controller sees the line pressure fall below its set point and closes the control valve to its minimum opening, 5 %; a control valve is not a tight shut-off valve. Through that opening the line settles slowly to the pressure of the liquid standing in the tank, 1.16 barg.

Example 7b, the pressures along the line: the fall arrives at the control valve, which closes to its minimum. The dashed line is the vapour pressure.
Figure 154 Example 7b, the pressures along the line: the fall arrives at the control valve, which closes to its minimum. The dashed line is the vapour pressure.

The lowest pressure anywhere in this case is 0.60 barg, above the 0.09 barg of the vapour pressure: the LNG stays liquid, and the run made with no cavitation model stands. The margin is what the liquid in the tank provides, about a bar; a study reports it, because a lower tank level or a warmer LNG would eat into it. The forces are another matter: 136 kN on the rack straight, more than for the tank valve.

The fourth case closes the train valves in 170 s. The down-surge is gone - the lowest pressure is 1.09 barg - and the rack force is 20 kN.

Apply to model A case exists only in the Scenarios tab until it is applied. Apply to model, on the Cases page, writes the selected case into the controllers, so that it can be run on its own, charted in full on the Charts tab and saved as the state of the project.

7.8 Example 7c Both pumps trip#

Example 7c, the flow, the discharge pressure and the speed of PU-701A after the trip.
Figure 155 Example 7c, the flow, the discharge pressure and the speed of PU-701A after the trip.

The pumps have τ = I ω² / P = 1.72 s. A second after the trip they turn at 66 % of their speed, and three seconds after it the station is at 4.53 barg. The line sees the same down-surge as in the near closure, a little slower, and the controller again closes the control valve to its minimum. The lowest pressure is 0.83 barg and the rack force 60 kN.

Example 7c, the pressures along the line after the trip of both pumps.
Figure 156 Example 7c, the pressures along the line after the trip of both pumps.

This is the case that decides the others. A valve can be slowed; a power failure cannot. Whatever the pump trip puts on the supports, 60 kN on the rack straight here, is a load the line has to carry in any event, and there is nothing to gain by tuning a closure below it. The closure times are lengthened until their forces come down to the level of the trip, and no further.

7.9 Example 7d The control valve fails closed#

A control valve is also a valve that can shut: on loss of its air supply PCV-740 closes in about three seconds. In the last case controller 6 is switched from Automatic to Manual, with a schedule that starts at the opening the valve has in normal running, 60.5 %, and goes to 0 % in three seconds. The opening to start from is read from a normal run: it is where Start from steady state puts the valve.

Example 7d, the opening of PCV-740 and the pressure before it.
Figure 157 Example 7d, the opening of PCV-740 and the pressure before it.

The line is stopped as by the tank valve, three seconds instead of one: 18.90 barg before the valve and 36 kN on the rack straight. A control valve that fails closed is a shutdown valve with a short stroke; its failure belongs in the list of cases.

7.10 The six cases#

Table 46 Example 7, the six cases against their limits
CaseHighest pressure, bargLowest pressure, bargRack straight, kNLoop leg, kNTank inlet, kNAgainst 60 kN
7a Trip valve closes in 24 s19.891.161253516  force over
7a Trip valve closes in 50 s19.251.1668207.5  force over
7b Train ESDVs close in 22 s11.730.601363115  force over
7b Train ESDVs close in 170 s11.731.09204.12.0  within
7c Both pumps trip11.730.83601311  within
7d PCV-740 fails closed18.891.06366.52.7  within
Scenarios, Summary & Report, for the six cases: a force over its limit is in red.
Figure 158 Scenarios, Summary & Report, for the six cases: a force over its limit is in red.

No case comes near the pressure limits, high or low. The forces sort the cases. On the rack straight 3 cases are over the 60 kN: Trip valve closes in 24 s (125 kN), Trip valve closes in 50 s (68 kN), Train ESDVs close in 22 s (136 kN). The pump trip, at 60 kN, is just inside the limit, and the slow closure of the train valves is far below it. The recommendation of this study is therefore about strokes, not about pressure: the tank valve needs somewhat more than 50 s, and the train valves something between 22 and 170 s, both to be found by adding cases until the rack force is down at the level of the trip. Generate report puts the cases, the table and the charts into the project report.

Scenarios, Charts: the pressure before XV-730 and the force on the rack straight for the six cases.
Figure 159 Scenarios, Charts: the pressure before XV-730 and the force on the rack straight for the six cases.

7.11 What this example shows#

Table 47 Example 7, reference results
QuantityValue
Steady flow of each pump and of the line, m³/h1279 / 2558
Velocity and wave speed in the 32 inch line, m/s1.42 / 1157
Steady pressure at N1 / N4 / N5, barg11.73 / 11.50 / 1.20
Opening of PCV-740 in normal running, %60.5
7a, highest before XV-730, 24 s / 50 s, barg19.89 / 19.25
7a, rack straight, 24 s / 50 s, kN125 / 68
7b, rack straight, 22 s / 170 s, kN136 / 20
7c, rack straight, kN60
7d, highest before PCV-740, barg18.90
Lowest pressure of the six cases, barg0.60

Example 8 Carbon dioxide injection, dense phase#

Project file D08 CO2 injection.flmx

8.1 Objective#

To see what the fluid does to a surge. By the end the reader will be able to work in absolute pressure, enter a fluid by its properties with its bulk modulus, work out a wave speed by hand, recognise the slow pressure rise of a compressible line that is being pumped into, and judge how far an error on the bulk modulus carries.

8.2 Engineering problem#

Carbon dioxide is compressed to 131 bar absolute, cooled to 57 °C, and sent 3.8 km through a 12 inch line to two injection wells. At that pressure and temperature it is neither a gas nor a liquid in the usual sense: it is above its critical pressure of 73.8 bar, dense phase, with the density of a light liquid, 514 kg/m³, and a compressibility far beyond that of any liquid. The line is rated for 153 bar absolute.

Two events are to be checked: the wells shutting in, and the trip of both compression trains. The property that decides both is the bulk modulus of the fluid, 43 MPa at these conditions - and it is the property most likely to be wrong in a data sheet.

8.3 Model schematic#

Example 8 as drawn: steady flow in m³/h under each pipe, steady pressure in bar absolute under each node.
Figure 160 Example 8 as drawn: steady flow in m³/h under each pipe, steady pressure in bar absolute under each node.

8.4 Input data#

Table 48 Example 8, input data
ItemValueBasis
Unitsm, m³/h, bar absolutePressure unit bar: every pressure in the project is absolute
FluidCarbon dioxide, dense phase, 57 °C514 kg/m³, 0.04 cP, bulk modulus 43 MPa; critical pressure 73.8 bar
V-801, suction drum90 barLevel constant
K-801A, K-801B311 m³/h (160 t/h) at 800 m, 75 %The last stage of each train, entered as a pump; shut-off 950 m; 465 kW, 2970 rpm, 25 kg m²
E-802A, E-802B0.7 bar at 311 m³/hAftercoolers, as fixed losses
ESDV-810A, ESDV-810B10 inch, Cv 2500On 40 m of 10 inch from each train
P-820, P-821, P-8223800 m of 12 inch schedule 80Bore 288.9 mm, wall 17.5 mm
XV-831A, XV-831B6 inch wing valves, Cv 900Close in 12 s
CK-832A, CK-832BChokes, Cv 115To the wells, held at 122 bar
Design pressure153 bar
RunInitialisation 5 s, end time 60 sTime step 0.02 s; no cavitation model

8.5 Model set-up#

Absolute pressure. The pressure unit of the project is bar, which in FlowMax is absolute; barg is the gauge unit. Every pressure typed and every pressure shown - node pressures, set pressures, limit lines - is then absolute. For a fluid whose behaviour is tied to an absolute pressure, here the critical pressure, that removes a source of error.

The fluid. Dense-phase carbon dioxide is not in the fluid library; it is entered by its properties in the Fluid window (Figure 161). In transient mode the window also asks for the bulk modulus. The vapour pressure field is given the critical pressure: below it the fluid can separate into gas and liquid, and a result that goes there is outside what this model describes. No cavitation model is used; the critical pressure is drawn on the charts as a limit line and watched as a minimum.

The Fluid window for Example 8: density, viscosity, vapour pressure and bulk modulus typed in.
Figure 161 The Fluid window for Example 8: density, viscosity, vapour pressure and bulk modulus typed in.

The wave speed, by hand. In a rigid pipe a pressure wave travels at √(K / ρ) = √(43 × 10⁶ / 514) = 289 m/s. The pipe wall gives a little, which lowers it by the factor √(1 + K D / (E e)); with D / e = 16.6 and steel at 200 GPa that term is 0.36 % - nothing. For a fluid this soft the pipe does not count and the wave speed is that of the fluid: FlowMax gives 289 m/s (Figure 162), a fifth of what it gives for water in the same pipe.

The Transient page of the pipe P-820: the wave speed calculated for dense-phase carbon dioxide.
Figure 162 The Transient page of the pipe P-820: the wave speed calculated for dense-phase carbon dioxide.

The time step. A slow wave makes short reaches: at 289 m/s a step of 0.02 s is 5.8 m, and even the 40 m pipes of the trains have 7 reaches (Figure 163).

Integrator for Example 8.
Figure 163 Integrator for Example 8.

Compressors as pumps. The last stage of each train raises a dense fluid from 90 to 131 bar; for this study it is a pump, with a head curve, an inertia and a check valve. The aftercoolers are PD elements.

8.6 Example 8a The wells shut in#

Press Run. Each train delivers 299 m³/h, 154 t/h; the line runs at 2.53 m/s, from 130.59 bar at the station to 127.58 bar at the well pad. At 5 s both wing valves start to close.

Example 8a, the pressure before the wing valve XV-831A, with the design pressure and the critical pressure as limit lines.
Figure 164 Example 8a, the pressure before the wing valve XV-831A, with the design pressure and the critical pressure as limit lines.

By hand. ρ a v = 514 × 289 × 2.53 = 3.8 bar. The same velocity of water in this pipe would give 33 bar. A soft fluid gives a soft surge: the program shows the pressure at the wells going from 126.71 to 133.00 bar as the valves reach their seats.

But the pressure does not stop there. It goes on rising, slowly and steadily, to 137.92 bar at the end of the run. This is not a wave. The trains are still running, and they are pumping into a closed line whose contents can be squeezed: the line fills like a vessel.

Example 8a, train A: its flow falls as the line pressure climbs along its curve.
Figure 165 Example 8a, train A: its flow falls as the line pressure climbs along its curve.

By hand. A closed volume V that receives a flow Q rises in pressure at K Q / V. The line holds 249 m³. Thirty seconds into the event the trains still push 415 m³/h into it: 43 MPa × 415 / 3600 / 249 = 0.20 bar/s; the chart rises at 0.22 bar/s. The rise ends where the trains end, at their shut-off pressure, 138 bar - under the 153 bar of the line. In a liquid line the same packing takes a second or two; here it takes minutes, and the operators or the pressure trips have time to act.

8.7 Example 8b Both trains trip#

Example 8b, train A after the trip: speed, flow and discharge pressure.
Figure 166 Example 8b, train A after the trip: speed, flow and discharge pressure.

With τ = I ω² / P = 5.20 s the trains run down slowly, 87 % of speed after one second - but their flow is gone in 0.9 s. The head a machine makes falls as the square of its speed, and it does not take much loss of speed before it can no longer hold 41 bar; the check valves shut.

Example 8b, the pressures along the line after the trip.
Figure 167 Example 8b, the pressures along the line after the trip.

The station falls from 130.59 to 126.69 bar in two seconds - about the Joukowsky amount - and then the whole line sinks slowly towards the pressure of the wells as it empties into them: 121.10 bar at the end of the run. Nothing comes near the critical pressure.

Forces, All forces, after the run of Example 8b.
Figure 168 Forces, All forces, after the run of Example 8b.
Table 49 Example 8, the forces on the two straight runs
CaseRack straight, 100 m of P-820, kNWell pad run, 60 m of P-822, kN
8a, the wells shut in7.65.1
8b, both trains trip10.73.8

The forces are small - a 12 inch bore is 656 cm², and the waves are low - and the larger one on the rack comes from the trip, not from the valves: the flow stops in 0.9 s at the station, against twelve at the wells. In a compressor station the trip is the event the piping is designed for.

8.8 Example 8c A bulk modulus ten times too high#

Suppose the bulk modulus had been taken from the wrong column of a property table: 430 MPa, a figure that would be about right for the same fluid cold. In the Fluid window type the new value; the wave speeds are recalculated - 899 m/s in the line - and the Integrator's table now shows the short pipes with too few reaches, so the time step is cut to 0.005 s (Figure 169).

Integrator for Example 8c: with the stiffer fluid the wave is three times faster and the step is reduced.
Figure 169 Integrator for Example 8c: with the stiffer fluid the wave is three times faster and the step is reduced.
Example 8c, the pressure before XV-831A with the bulk modulus ten times too high.
Figure 170 Example 8c, the pressure before XV-831A with the bulk modulus ten times too high.
Table 50 Example 8c, the two events with the right and the wrong bulk modulus
QuantityK = 43 MPaK = 430 MPa
Wave speed in the line, m/s289899
ρ a v, bar3.811.7
8a, pressure at the wells as the valves shut, bar133.00141.77
8a, highest pressure of the run, bar137.92142.91
8a, pressure 30 s into the event, bar133.44139.92
8b, lowest pressure at the station, bar121.10115.42
8b, force on the rack straight, kN10.74.9

Ten times the modulus is √10 = 3.2 times the wave speed, and the surge at the valves grows with it: 15.1 bar instead of 6.3. The packing is faster too - K Q / V has K in it - so the line is at the shut-off pressure of the trains within seconds instead of minutes. The highest pressure, 142.91 bar, is now 10 bar under the rating instead of 15.

The property that matters most For water and oils the bulk modulus varies by tens of per cent and the pipe wall takes a share of the elasticity, so an error on it is forgiven. For a dense-phase fluid, a liquefied gas near its critical point or a liquid with gas in it, it varies by factors with pressure and temperature and the pipe takes none. Get it from an equation of state at the conditions of the line, and run the study at both ends of the range it can have.

8.9 What this example shows#

Table 51 Example 8, reference results
QuantityValue
Steady flow of each train, m³/h; of the line299 / 598
Velocity and wave speed in the line, m/s2.53 / 289
Steady pressure at the station / the well pad, bar130.59 / 127.58
8a, pressure at the wells as the valves shut / highest, bar133.00 / 137.92
8b, lowest pressure at the station, bar121.10
8b, force on the rack straight, kN10.7
8c, wave speed, m/s; pressure as the valves shut, bar899 / 141.77

Example 9 Liquid sulphur export#

Project files D09 Liquid sulphur export.flmx D09b Liquid sulphur export, relief valves.flmx

9.1 Objective#

To decide what protection a short line of a heavy, stiff liquid needs, and to show that the answer is not a slower valve. By the end the reader will be able to model a liquid by its properties, hold a flow with a controller on a control valve, put relief valves in service and size what they pass, follow a controller through a trip and a restart, and read a minimum pressure below the vapour pressure for what it is.

9.2 Engineering problem#

Liquid sulphur is pumped from two pits to a receiving plant 1.8 km away. Each pit has a sump pump, a flow meter and a flow control valve holding 41 m³/h; the two join an 8 inch steam-jacketed header that ends at the plant in an isolation valve, XV-930. The plant takes the sulphur at 10 barg. The header is designed for 15 barg, and 20 barg is allowed in surge, 33 % above design. A relief valve stands at each end of the header, set at 12.6 barg.

The first layout of the surge study leaves the relief valves out and asks how slowly XV-930 has to close. The question behind it is whether this line needs a surge vessel - on molten sulphur a piece of equipment nobody wants to own.

9.3 Model schematic#

Example 9 as drawn, with the steady flow under each pipe and the steady pressure under each node. FC on each control valve marks its controller; the two relief valves are drawn in grey, ignored.
Figure 171 Example 9 as drawn, with the steady flow under each pipe and the steady pressure under each node. FC on each control valve marks its controller; the two relief valves are drawn in grey, ignored.

9.4 Input data#

Table 52 Example 9, input data
ItemValueBasis
FluidLiquid sulphur at 135 °C1791 kg/m³, 8.5 cP, bulk modulus 3.2 GPa; vapour pressure 0 bar abs (-1.013 barg)
T-901A, T-901BPits, level 2 m over a floor at -3 mOpen to atmosphere; level constant
PU-901A, PU-901B41 m³/h at 76 m, 58 %Shut-off 84 m; 26 kW, 1480 rpm, 0.58 kg m² each; Inertia model
CV-901A, CV-901B4 inch swing check valvesSimple model: shut at zero flow
P-902, P-90360 m and 40 m of 4 inch, each pitSchedule 40, bore 102.3 mm
FE-905A, FE-905BFlow meters, 0.1 bar at 41 m³/hThe measurement of each flow controller
FCV-910A, FCV-910B4 inch, Cv 78, linearFlow control, set point 41 m³/h; Kc 0.2, Ti 0.1 min, Reverse
P-920, P-9212 × 900 m of 8 inchSchedule 40, bore 202.7 mm, wall 8.2 mm
XV-9308 inch, Cv 1800, linearCloses in 10 s; 45 s and 180 s as cases
SRV-941, SRV-942Set 12.6 barg, full open 13.9 bargArea 10 cm², Cd 0.62; proportional with reseat, blowdown 7 %
Plant10 barg at N5Constant
Limits15 barg design, 20 barg allowed; -0.9 barg lowestForces on a straight of the header: 10 kN
RunInitialisation 5 s, end time 200 sTime step 0.005 s; no cavitation model

9.5 Model set-up#

The fluid. Sulphur is not in the library; it is entered by its properties. Three of them make the transient. The density is 1.8 times that of water. The bulk modulus, 3.2 GPa, is nearly half as much again as that of water, and gives a wave speed of 1140 m/s in the 8 inch pipe. Together they make ρ a = 20.4 bar for every metre per second stopped; water in the same pipe is worth about 12. And at this temperature sulphur has practically no vapour pressure - well under a millibar - so the vapour pressure is entered as zero absolute, -1.013 barg.

The flow controllers. Each pit has a controller in Automatic on its control valve (Figure 172). The measurement is the flow through the meter FE-905, a PD element; the set point is 41 m³/h. The action is Reverse: more flow than the set point closes the valve. With Start from steady state each valve begins the run where the steady state left it, 66.3 % open.

Controllers, Automatic: the flow controller of pit A measures FE-905A and moves FCV-910A.
Figure 172 Controllers, Automatic: the flow controller of pit A measures FE-905A and moves FCV-910A.

The relief valves. A Surge Relief Valve is drawn from a node of the line to an outlet node of its own (Figure 173), and that outlet is given a pressure in the Node window: 0 barg, the pit the valves relieve to. The valve needs the pressure at which it starts to open, the pressure at which it is fully open, its flow area and its discharge coefficient. Fully open at 13.9 barg, each of these valves passes Cd A √(2 P / ρ) = 88 m³/h: one valve can take the flow of both pumps. In the first file the two valves are ignored - select, right-click, Ignore - so that the header is studied as first laid out.

The Surge Relief Valve SRV-941: set pressure, full-open pressure, area, discharge coefficient and type.
Figure 173 The Surge Relief Valve SRV-941: set pressure, full-open pressure, area, discharge coefficient and type.

The forces and the limits. Two straights are watched: 90 m in the middle of the first half of the header and the last 60 m before XV-930, each between two rigid cuts. On the Outputs page of the Scenarios tab four pressures are watched against 20 barg and against a minimum of -0.9 barg, a tenth of a bar above the vapour pressure, and the two forces against 10 kN either way.

9.6 Example 9a The isolation valve closes, the header unprotected#

Open D09 Liquid sulphur export and press Run. In the steady state each pump delivers 41.0 m³/h at 13.68 barg; the header carries 82.0 m³/h at 0.71 m/s, from 11.00 barg at N1 to 10.03 barg before XV-930. At 5 s the valve starts to close, in 10 s.

Example 9a, the pressure before XV-930 and the flow through it, with the design pressure and the allowed pressure as limit lines.
Figure 174 Example 9a, the pressure before XV-930 and the flow through it, with the design pressure and the allowed pressure as limit lines.

Nine seconds into the stroke, with the valve 10 % open, 79.5 of the 82.0 m³/h are still passing and the pressure before the valve is 10.47 barg. One second later the flow is stopped, and a second after that the pressure is 24.81 barg.

By hand. ρ a v = 1791 × 1140 × 0.71 = 14.4 bar on 10.03 barg: 24.4 barg. A velocity of 0.71 m/s, which nobody would call fast, is worth 14 bar in this liquid. The wave reaches the pumps in 1.6 s and shuts their check valves, the pumps being unable to deliver against it - blocked in, their discharge stands at 15.11 barg. From then on the header is a closed box with a wave running to and fro in it: the pressure before the valve swings between 19.1 and 28.0 barg, and 28.00 barg is the highest of the run.

Example 9a, the pressures along the header: locked in between the closed valve and the closed check valves.
Figure 175 Example 9a, the pressures along the header: locked in between the closed valve and the closed check valves.

The two other cases close the valve in 45 s and in 180 s (Table 53). Three minutes are not enough. XV-930 is a line-size valve with a Cv of 1800: at 82 m³/h of sulphur a valve takes 1 bar when its Cv is 127, and a linear valve of this size is there when it is 7 % open. All the closing is done in the last 7 % of the travel - 0.7 s of a 10 s stroke, 13 s of a 180 s stroke - and the line answers in 2 L / a = 3.2 s.

Table 53 Example 9a, three strokes of XV-930 with the header unprotected
CaseHighest pressure, bargLowest pressure, bargHeader run, kNRun before XV-930, kNN per metreAgainst the limits
9a XV-930 closes in 10 s28.0010.031715256pressure over, force over
9a XV-930 closes in 45 s26.5610.036.24.677pressure over
9a XV-930 closes in 180 s21.1410.031.60.818pressure over
Scenarios, Summary & Report, for the three strokes: every pressure over its limit is in red.
Figure 176 Scenarios, Summary & Report, for the three strokes: every pressure over its limit is in red.

A longer stroke brings the forces down, from 17 to 1.6 kN on the header run, and leaves the pressure above the 20 barg allowed. No stroke that an operator would accept protects this header, and whatever the stroke the pumps end blocked in against a closed valve.

Is it the viscosity? Sulphur is 8.5 cP at this temperature, and it is tempting to put the result down to that. The same model run with 0.6 cP gives 28.02 barg for the 10 s closure, against 28.00. At this velocity the flow is turbulent either way; the surge is made by the density and the stiffness of the liquid, not by its viscosity.

9.7 Example 9b The relief valves in service#

Open D09b Liquid sulphur export, relief valves. It is the same model with the two relief valves in service - select, right-click, Active - and a chart for them. Press Run: XV-930 again closes in 10 s.

Example 9b, the pressure before XV-930 with the relief valves in service.
Figure 177 Example 9b, the pressure before XV-930 with the relief valves in service.

The pressure before the valve now peaks at 13.56 barg, and 13.95 barg at mid-header: under the design pressure of 15 barg, with the surge allowance untouched. The valve at the plant end, where the wave starts, lifts first and passes up to 64 m³/h; the one at the pump end up to 18 m³/h (Figure 178).

Example 9b, the flow and the opening of the two relief valves.
Figure 178 Example 9b, the flow and the opening of the two relief valves.

Neither valve closes again. With XV-930 shut the pumps have nowhere else to send the sulphur: they settle at 32.9 m³/h each, 18.2 m³/h through SRV-941 and 47.5 through SRV-942, with the header at 12.51 barg - under the set pressure: valves with a blowdown of 7 % stay open down to 11.7 barg. A relief valve on a pumped line is also the minimum-flow path of the pumps, and it has to be sized and routed for that duty, not only for the second the surge lasts.

Example 9b, the opening of FCV-910A and its flow against the set point: the controller opens the valve fully and stays there.
Figure 179 Example 9b, the opening of FCV-910A and its flow against the set point: the controller opens the valve fully and stays there.

The flow controllers see 33 m³/h where they want 41, and open their valves: 100 % at the end of the run, reached 52 s after the valve started to close. A controller that cannot reach its set point goes to the end of its output and waits there. It matters at the next event, as Example 9c shows.

Table 54 Example 9b, the same three strokes with the relief valves in service
CaseHighest pressure, bargLowest pressure, bargHeader run, kNRun before XV-930, kNN per metreAgainst the limits
9b XV-930 closes in 10 s13.9510.032.01.525within
9b XV-930 closes in 45 s13.5310.030.60.47within
9b XV-930 closes in 180 s13.3210.030.20.23within

With the relief valves the stroke hardly matters on pressure, and the forces are a fraction of what they were: 2.0 kN on the header run for the 10 s closure, against 17 kN. The header needs no surge vessel. It needs the two relief valves it was given, each able to pass the flow of both pumps.

9.8 Example 9c The pumps trip, and one comes back#

In the fourth case XV-930 stays open and both pumps trip at 5 s. The cases of D09b Liquid sulphur export, relief valves are on the Cases page (Figure 180); Apply to model writes the selected one into the controllers.

Scenarios, Cases, for the header with its relief valves: three strokes, two pump events and two failures of the control valves.
Figure 180 Scenarios, Cases, for the header with its relief valves: three strokes, two pump events and two failures of the control valves.
Example 9c, the flow, the speed and the discharge pressure of PU-901A after the trip.
Figure 181 Example 9c, the flow, the speed and the discharge pressure of PU-901A after the trip.

These are small pumps: τ = I ω² / P = 0.53 s. A second after the trip they turn at 34 % of their speed and deliver 14 m³/h each; N1 has fallen from 11.00 to 1.56 barg. They go on passing about 11 m³/h while they run down, and the check valves shut 3.6 s after the trip.

Example 9c, the pressures along the header after the trip of both pumps. The dashed line at the bottom is the vapour pressure.
Figure 182 Example 9c, the pressures along the header after the trip of both pumps. The dashed line at the bottom is the vapour pressure.

The lowest pressure is -0.26 barg at N1, 3.3 s after the trip: the header goes down to atmospheric pressure and touches it. Had the flow stopped at once the fall would have been the 14.4 bar of 9a; what the header is spared, it owes to the little the pumps still pass. Sulphur having no vapour pressure to speak of, nothing boils, and the run with no cavitation model stands - but with no margin: the header and its jacket have to be good for vacuum. The plant then sends the column back against the shut check valves: 14.11 barg at mid-header, and SRV-941 lifts for 20 m³/h.

The fifth case trips pump A alone and starts it again 5 s later, pump B running throughout.

Example 9c, pump A trips and restarts: the opening of FCV-910A and its flow against the set point.
Figure 183 Example 9c, pump A trips and restarts: the opening of FCV-910A and its flow against the set point.

While pump A is stopped its controller measures no flow and opens the valve: 100 % after 5 s. The pump is therefore started against a control valve that is nearly wide open, the opposite of what a start-up procedure asks for. The flow overshoots to 45.5 m³/h, and the controller, tuned to be gentle, takes its time: 44.7 m³/h and 90 % after 40 s, 41.5 m³/h and 69 % at the end of the run. The header sees 5.82 to 12.79 barg. Nothing is exceeded; the point is that a controller in Automatic takes part in the transient, and that a study should say where it stands when the pump comes back. To start against a closed valve, a case switches the controller to Manual with a schedule.

9.9 Example 9d The control valves fail closed#

On loss of instrument air both control valves close, in about five seconds. In the sixth case the two controllers are switched to Manual with a schedule from 66.3 %, the opening of normal running, to 0 % in 5 s.

Example 9d with no cavitation model, the pressure after FCV-910A and at N1. The dashed line is the vapour pressure: the curves go through it.
Figure 184 Example 9d with no cavitation model, the pressure after FCV-910A and at N1. The dashed line is the vapour pressure: the curves go through it.

The control valves stop the flow at the head of the header, and the column runs on. The pressure behind them falls to -2.48 barg, and to -2.01 barg at N1. There is no such pressure: -1.013 barg is zero absolute. A run with no cavitation model does not stop at the vapour pressure - it keeps the liquid whole and lets the pressure go where the equations take it. The number is not a result. It is a message: the column parts here, and everything the run shows after that moment is not to be used. The Summary marks the case, because the minimum limit was set (Figure 186).

To see what does happen, set Cavitation model to DVCM on the Setting tab and run the case again.

Example 9d with DVCM: the pressure stops at the vapour pressure while a cavity is open behind the control valves.
Figure 185 Example 9d with DVCM: the pressure stops at the vapour pressure while a cavity is open behind the control valves.

The pressure behind the valves stops at -1.01 barg from 4.9 s to 6.1 s after the failure. The cavity behind each valve grows to 0.30 litre - Max Cavitation in the results of the nodes JA and JB - and closes when the column comes back: 13.33 barg at N1, 17.02 barg at mid-header, and SRV-941 lifts for 48 m³/h. The return stays inside the 20 barg allowed, because the cavity is small.

That is not a reason to accept it. The cure is to take away the cause: the seventh case closes the control valves in 30 s, as a restriction in the vent of their actuators would, and the lowest pressure is 8.32 barg. A control valve, unlike XV-930, throttles over its whole travel, so its stroke is worth what it says.

9.10 The seven cases#

Table 55 Example 9, the seven cases of the protected header against their limits
CaseHighest pressure, bargLowest pressure, bargHeader run, kNRun before XV-930, kNN per metreAgainst the limits
9b XV-930 closes in 10 s13.9510.032.01.525within
9b XV-930 closes in 45 s13.5310.030.60.47within
9b XV-930 closes in 180 s13.3210.030.20.23within
9c Both pumps trip14.11-0.265.86.6110within
9c Pump A trips and restarts14.544.924.23.356within
9d Control valves fail closed, 5 s15.75-2.483.23.151below zero absolute
9d Control valves fail closed, 30 s11.628.320.30.24within
Scenarios, Summary & Report, for the seven cases: the lowest pressures of the 5 s failure are in red.
Figure 186 Scenarios, Summary & Report, for the seven cases: the lowest pressures of the 5 s failure are in red.

The forces are given for the two straights and, in the last column, per metre: on a straight much shorter than the wave front the force is ρ L dQ/dt, proportional to its length, and the stress engineer multiplies by the length of each straight of the header. The case that sizes the supports is both pumps trip, 110 N per metre. An 8 inch pipe has a bore area of 323 cm²: a bar across a straight is 3.2 kN.

Export to Excel, on the Summary & Report page, writes the table to a workbook beside the project, one row per case and one column per watched result, for the study report.

Scenarios, Charts: the pressure before XV-930, the pressure at N1 and the force on the run before XV-930 for the seven cases.
Figure 187 Scenarios, Charts: the pressure before XV-930, the pressure at N1 and the force on the run before XV-930 for the seven cases.

9.11 What this example shows#

Table 56 Example 9, reference results
QuantityValue
Steady flow of each pump and of the header, m³/h41.0 / 82.0
Velocity and wave speed in the header, m/s0.71 / 1140
Steady pressure at N1 and before XV-930, barg11.00 / 10.03
Opening of the flow control valves in normal running, %66.3
9a, highest before XV-930, 10 / 45 / 180 s, barg28.00 / 26.38 / 21.13
9a, header run, 10 / 45 / 180 s, kN17 / 6.2 / 1.6
9b, highest before XV-930, 10 / 45 / 180 s, barg13.56 / 13.53 / 13.32
9b, flow of each pump on the relief valves, m³/h32.9
9c, both pumps trip, lowest and highest at N1, barg-0.26 / 12.88
9c, restart of pump A, largest flow, m³/h45.5
9d, 5 s, lowest after FCV-910A, no model / DVCM, barg-2.48 / -1.01
9d, 5 s, largest cavity at JA with DVCM, litre0.30
9d, 30 s, lowest pressure, barg8.32

Example 10 Propane rundown from four trains#

Project file D10 Propane rundown.flmx

10.1 Objective#

To study a liquid that is stored and pumped a few bar above its boiling pressure, on a header fed by several pumps. By the end the reader will be able to model a pressurised source, put several pumps under flow control on one header, tell line packing from the Joukowsky rise, judge a low pressure against a vapour pressure, and use a boundary pressure as a variable of the cases.

10.2 Engineering problem#

Four trains run propane down to a terminal 13 km away. Each train has a product drum, a pump, a trim cooler, a flow control valve holding 186 m³/h and a shutdown valve; the four join an 18 inch header that ends at the battery limit in a shutdown valve, ESDV-140. The terminal holds 19.5 barg behind it.

The propane leaves the trains at 48 °C, where its vapour pressure is 17.0 bar absolute, 15.99 barg. The header runs only a few bar above that. The piping is designed for 36 barg. Inside the plant it is ASME B31.3 piping, allowed 47.9 barg in surge, 33 % over design; beyond the fence it is an ASME B31.4 pipeline, allowed 39.6 barg, 10 % over. The project asks that the propane stay half a bar above its vapour pressure everywhere, 16.5 barg. Which shutdown breaks which limit?

10.3 Model schematic#

Example 10 as drawn, with the steady flow under each pipe and the steady pressure under each node. FC on each control valve marks its controller.
Figure 188 Example 10 as drawn, with the steady flow under each pipe and the steady pressure under each node. FC on each control valve marks its controller.

10.4 Input data#

Table 57 Example 10, input data
ItemValueBasis
FluidPropane at 48 °C457 kg/m³, 0.08 cP, vapour pressure 17.0 bar abs (15.99 barg), bulk modulus 0.17 GPa
V-1001 to V-100417.5 barg over a level of 2 mProduct drums; level constant
PU-101A to D186 m³/h at 276 m, 72 %Shut-off 330 m; 89 kW, 2970 rpm, 0.78 kg m² each; Inertia model
CV-102A to D8 inch swing check valvesSimple model: shut at zero flow
E-103A to DTrim coolers, 0.5 bar at 186 m³/hPD elements; the flow of each controller is measured here
FCV-110A to D4 inch, Cv 90, linearFlow control, set point 186 m³/h; Kc 0.2, Ti 0.1 min, Reverse
ESDV-120A to D8 inch, Cv 2500Close in 8 s
P-111, P-12160 m, and 50 to 70 m, of 8 inchSchedule 40, bore 202.7 mm
P-130, P-131, P-1323000, 5000 and 5000 m of 18 inchSchedule 30, bore 435.0 mm, wall 11.1 mm
ESDV-14018 inch, Cv 12000At the battery limit; closes in 18 s
Terminal19.5 barg at N621.5 barg in the last two cases
Limits36 barg design; 39.6 barg allowed; 16.5 barg lowestForces on a straight of the header: 50 kN
RunInitialisation 5 s, end time 240 sTime step 0.02 s; no cavitation model

10.5 Model set-up#

The fluid and the source. Propane is entered by its properties. Its bulk modulus is low, 0.17 GPa, and the wave speed in the header is 601 m/s, half that of water. Each product drum is a Tank with a tank pressure: 17.5 barg on the liquid, the level above it. The pumps take suction at 17.59 barg and deliver at 29.96 barg.

Thirteen controllers. One closes the battery limit valve. Four close the train valves and four trip the pumps; these eight are Off in the file and are switched on by the cases. Four are the flow controllers, in Automatic throughout (Figure 189). In the steady state each holds its valve at 56.7 %; the control valve takes most of the pump's head, as it does on a rundown line whose pumps are sized for more than one destination.

Controllers: the list of thirteen, and the flow controller of train A.
Figure 189 Controllers: the list of thirteen, and the flow controller of train A.

The limits. On the Outputs page of the Scenarios tab five pressures are watched against a maximum of 39.6 barg, the lower of the two allowances, and a minimum of 16.5 barg; two straights of 90 m, one on the plant rack and one before ESDV-140, against 50 kN.

10.6 Example 10a The battery limit valve closes#

Press Run. In the steady state each pump delivers 186.0 m³/h; the header carries 744 m³/h at 1.39 m/s, from 21.25 barg at N1 to 19.52 barg at the battery limit - 1.74 bar of friction. At 5 s ESDV-140 starts to close, in 18 s.

Example 10a, the pressure before ESDV-140 and the flow through it, with the design pressure and the B31.4 allowance as limit lines.
Figure 190 Example 10a, the pressure before ESDV-140 and the flow through it, with the design pressure and the B31.4 allowance as limit lines.

By hand. ρ a v = 457 × 601 × 1.39 = 3.82 bar: 23.34 barg. Two seconds after the valve has shut the program gives 23.45 barg. That is the Joukowsky rise, and it is the small part of what follows. The wave needs L / a = 22 s to reach the trains, and until it does the four pumps know nothing: they go on delivering 744 m³/h into a line that is shut at the far end.

Example 10a, the flow, the speed and the discharge pressure of PU-101A: the pump goes on delivering long after the valve has shut.
Figure 191 Example 10a, the flow, the speed and the discharge pressure of PU-101A: the pump goes on delivering long after the valve has shut.

The flow of each pump starts to fall 39 s after the valve began to move. It is still 146 m³/h at 50 s and 87 m³/h at 90 s, and the check valves shut at 127 s. All that propane goes into the header, compressing what is there: line packing. The pressure before ESDV-140 climbs to 25.21 barg at 60 s, steps to 29.29 barg when the wave comes back from the trains, and ends at 32.89 barg - the shut-off pressure of the pumps, 32.38 barg at their discharge, and the little the last wave adds.

Example 10a, the openings and the flows of FCV-110A and FCV-110B against the set point: the controllers open their valves as the flow falls.
Figure 192 Example 10a, the openings and the flows of FCV-110A and FCV-110B against the set point: the controllers open their valves as the flow falls.

The flow controllers make it worse, as they must: the flow falls under the set point, they open their valves, fully after 84 s, and the trains push harder for longer. The second case closes ESDV-140 in 60 s: 32.89 barg, the same. A line that packs ends at the shut-off pressure of its pumps whatever the stroke. What the stroke changes is the force: 17 kN on the straight before the valve in 18 s, 5.4 kN in 60 s.

Two codes. The highest pressure anywhere, 32.90 barg, is under the 36 barg design pressure, so neither allowance is called on: not the 39.6 barg of the pipeline, not the 47.9 barg of the plant piping. The margin is there because the design pressure was set above the shut-off pressure of the pumps. Where it is not, the far closure is the case that finds it out, and the pipeline, with 10 %, fails long before the plant piping does.

10.7 Example 10b The train valves close#

In the third case ESDV-140 stays open and the four train valves close together in 8 s, a plant shutdown.

Example 10b, the pressures along the header after the four train valves have shut. The dashed line near the bottom is the vapour pressure.
Figure 193 Example 10b, the pressures along the header after the four train valves have shut. The dashed line near the bottom is the vapour pressure.

The pumps are blocked in at 32.38 barg and nothing more happens on their side. On the header side the propane runs on towards the terminal with nothing behind it. The pressure at N1 falls by the Joukowsky amount at once, 17.33 barg after 10 s, and then goes on falling as the header loses the friction gradient it was carrying: line packing in reverse. It reaches 15.79 barg 50 s after the closure began, 2 L / a = 43 s being the time the terminal needs to answer.

By hand. When the flow has stopped, the friction is gone and the header would stand at the pressure of the terminal, 19.52 barg; the column running on takes it the Joukowsky amount below that: 19.52 - 3.82 = 15.70 barg. The program gives 15.79.

That is under the vapour pressure, 15.99 barg, passed 45 s after the closure began. The propane boils at the head of the header. The run was made with no cavitation model, and from that moment it is no longer a description of the line; the Summary marks the case (Figure 199). A cavitation model would say how much vapour forms and what its collapse costs. For a liquefied gas the answer of a design is to keep it from boiling at all, and Example 10d does.

Example 10b, the pressures either side of ESDV-120A and its flow.
Figure 194 Example 10b, the pressures either side of ESDV-120A and its flow.

The fourth case closes the valve of train A alone. Behind it the pressure dips to 18.10 barg; the header hardly notices, 19.76 barg at N1. The three other trains see a header at a lower pressure and deliver more, up to 195.6 m³/h; their controllers bring them back, closing from 56.7 to 53.2 % (Figure 195). The header settles at 558 m³/h.

Example 10b, train A shut down alone: FCV-110A opens fully on a flow that has gone; FCV-110B trims its flow back to the set point.
Figure 195 Example 10b, train A shut down alone: FCV-110A opens fully on a flow that has gone; FCV-110B trims its flow back to the set point.

10.8 Example 10c The pumps trip#

In the fifth case every valve stays open and the four pumps trip together, a power failure.

Example 10c, the flow, the speed and the discharge pressure of PU-101A after the trip.
Figure 196 Example 10c, the flow, the speed and the discharge pressure of PU-101A after the trip.

The pumps have τ = I ω² / P = 0.85 s and are at 45 % of their speed a second after the trip. Their flow does not go to zero. Ten seconds after the trip, all but stopped, each still passes 24 m³/h, and later more, up to 61 m³/h. The header at N1 falls to 17.14 barg, under the 17.59 barg at which the drums feed the pumps: the propane flows through the stopped pumps and the open control valves, pushed by the drums. A tripped pump with pressure on its suction is an open path.

Example 10c, the pressures along the header after the trip of the four pumps.
Figure 197 Example 10c, the pressures along the header after the trip of the four pumps.

The drums therefore hold the head of the header up. Further down nothing holds it, and the lowest pressure of the case is 16.91 barg at N3, 30 s after the trip. That is 0.93 bar above the vapour pressure and inside the margin asked for. It is not a comfortable number. The vapour pressure of propane rises by roughly 0.4 bar for every degree at this temperature: a rundown three degrees warmer has no margin left. In a run with no cavitation model the pressures do not change with the vapour pressure - only the limit does - so the question is answered by moving the minimum limit on the Outputs page, without running again.

The sixth case trips pump A alone. N1 falls to 19.75 barg; the three other trains rise to 192.0 m³/h and are trimmed back, 53.1 % at the lowest. The header carries on at 558 m³/h. The loss of one train of four is not a surge case.

10.9 Example 10d The pressure the terminal has to hold#

By hand, in 10b, the lowest pressure of a plant shutdown is the pressure of the terminal less the Joukowsky amount. The cure is therefore at the terminal. A case can change a boundary as well as a controller: on the Cases page, Add variable, then Node specification, lists the nodes that carry a pressure or a flow, and the pressure of N6 becomes a column of the table (Figure 198). The last two cases repeat the plant shutdown and the power failure with the terminal at 21.5 barg.

Scenarios, Cases, scrolled down one row: the pressure of N6 is the first variable, 21.5 barg in the last two cases.
Figure 198 Scenarios, Cases, scrolled down one row: the pressure of N6 is the first variable, 21.5 barg in the last two cases.

With 21.5 barg at the battery limit the plant shutdown goes no lower than 17.79 barg, against 15.79, and the power failure no lower than 17.73 barg, against 16.91. The steady state of each case is solved with its own boundary: the flow controllers open their valves further to hold the same 186 m³/h against the higher back pressure. The recommendation of the study is a number for somebody else's controller: the terminal is to hold not less than 21.5 barg at the battery limit while propane is being run down.

10.10 The eight cases#

Table 58 Example 10, the eight cases against their limits
CaseHighest pressure, bargLowest pressure, bargPlant rack straight, kNStraight before ESDV-140, kNAgainst the limits
10a Battery limit valve closes in 18 s32.9019.521317within
10a Battery limit valve closes in 60 s32.8919.524.25.4within
10b All train valves close in 8 s22.2915.792727below vapour pressure
10b Train A valve closes alone22.1318.106.89.5within
10c All pumps trip21.3016.917.77.8within
10c Pump A trips21.3019.272.02.1within
10d All train valves close, battery limit raised24.2817.792627within
10d All pumps trip, battery limit raised24.3117.739.610within
Scenarios, Summary & Report, for the eight cases: the lowest pressures of the plant shutdown are in red.
Figure 199 Scenarios, Summary & Report, for the eight cases: the lowest pressures of the plant shutdown are in red.

On the high side nothing comes near a limit: 32.90 barg at most, in a line designed for 36. On the low side one case fails, the plant shutdown, and the power failure passes narrowly. The forces are highest for the plant shutdown, 27 kN on a straight of 90 m: an 18 inch pipe has a bore area of 0.15 m², and a bar across a straight is 15 kN. Generate report puts the cases, the table and the charts into the project report.

Scenarios, Charts: the pressure before ESDV-140, the pressure at N1 and the force on the plant rack straight for the eight cases.
Figure 200 Scenarios, Charts: the pressure before ESDV-140, the pressure at N1 and the force on the plant rack straight for the eight cases.

10.11 What this example shows#

Table 59 Example 10, reference results
QuantityValue
Steady flow of each pump and of the header, m³/h186.0 / 744
Velocity and wave speed in the header, m/s1.39 / 601
Steady pressure at N1 / N3 / battery limit, barg21.25 / 20.18 / 19.52
Opening of the flow control valves in normal running, %56.7
10a, highest pressure, 18 s / 60 s, barg32.90 / 32.89
10a, straight before ESDV-140, 18 s / 60 s, kN17 / 5.4
10b, lowest at N1, four trains / train A alone, barg15.79 / 19.76
10b, plant rack straight, four trains, kN27
10c, lowest at N1 / N3, four pumps, barg17.14 / 16.91
10c, largest flow through a stopped pump, m³/h61
10d, lowest pressure, plant shutdown / power failure, barg17.79 / 17.73

Where each feature is taught#

The examples are numbered 1 to 10 and their sub-examples lettered. A number alone means the set-up of that example, before its first sub-example.

Table 60 Equipment
EquipmentWhat is shownWhere
PipeWave speed typed or calculated, pipe restraint, another material 1d; 7 (stainless steel); 8c
PipeShort pipe and the time step 1d, 2, 8c
PipeHazen-Williams C factor 3
PipeDry pipe: initial content, filling, the air ahead of the water 3d, 4d, 4f
PipeA capped dry pipe as an air leg: trapped air that takes a filling peak 4e
TankLevel held 1 and most examples
TankWith a pressure on the liquid 6, 7, 10
TankLevel free to move, overflow 6d
PumpInertia model: trip and run-down 2a, 3c, 4a, 6c, 7c, 8b, 9c, 10c
PumpStart on the motor torque curve 2c
PumpTrip followed by a start 4c, 6c, 9c
PumpFour quadrant model, reverse rotation 2b
PumpSpeed under a pressure controller 2e
PumpA stopped pump as an open path 10c
ValveCv, linear, equal percentage and quick opening, a schedule of opening 1a, 1b, 1c
ValveTwo valves moving in one case 5e
Check valveSimple model; the disc with inertia, spring and preload 2a; 2d
PD (fixed loss)A cooler, a meter, the measurement of a flow controller 6, 8, 9, 10
Spray nozzleA group of open nozzles; nozzles that let the air out of a dry pipe 3a; 3d, 4d
Air valveSizing its inlet against a vacuum and its outlet against the return; admitting air at a high point; a pocket pushed out at a restart 2f, 4b, 4c
Air valveLetting the air out of an empty riser when the pump starts: the outlet bore as a cushion 4f
Surge relief valveSet and full-open pressure, area, type; as protection and as the minimum-flow path 5b, 5e, 9b
AccumulatorAn air vessel: geometry, charge, sizing by the lowest pressure 5c
Surge tankAt a summit; the note when it overflows or empties 5d
Any elementIgnore and Active: protection drawn and taken in or out of service 5, 4b, 9a
Table 61 Features of the transient mode
FeatureWhat is shownWhere
FluidFrom the library; by its properties 5e; 7, 8, 9, 10
SettingCavitation model: None, DVCM, DGCM 2b, 4a, 5a, 6b, 9d
SettingRunning with no cavitation model as a claim, and how it is shown 7, 10
SettingUnsteady friction 1d
SettingDry pipe selection; air isothermal or adiabatic 3d, 4d
IntegratorInitialisation, end time, time step, resolution of each pipe 1d
ControllersManual: a schedule; Off 1a; 7
ControllersTrip / Start of a pump 2a, 2c
ControllersAutomatic: pressure (PC) 2e, 7
ControllersAutomatic: flow (FC) 9, 10
ControllersAutomatic: level (LC) 6d
ControllersA controller at the end of its output; a control valve that fails 9b, 9c; 7d, 9d
ChartsSeries, limit lines, picture, data, a chart in its own window 1a
ForcesAxial force on a straight, All forces, the history for the stress analysis 3a
ForcesChecked by hand; per metre of straight 7a; 6b, 9
ForcesAll axes at an elbow, elastic and rigid cuts, Seed from model 4
ScenariosCases, watched results with limits, the summary 1b, 3b, 7
ScenariosGenerate report, Export to Excel 3b, 9
ScenariosApply to model 7b, 4c
ScenariosA boundary pressure as a variable of the cases 10d
ResultsMax Pressure and Min Pressure on the sheet: the envelope of a line 3c, 5a
ResultsGraphs: the highest and the lowest pressure of a run against the length of a line 5a, 5c
ResultsMax Cavitation of a node 4a, 5a, 6b, 9d
After a runThe note on a time step too coarse, on a vessel that empties or overflows 1d, 5d, 6d
Table 62 Subjects
SubjectWhere
The Joukowsky rise, checked by hand 1a, 3a, 6a, 7a, 9a, 10a
Closure time: how slowly a valve has to close, and when the stroke does not matter 1b, 3b, 7, 9a, 10a
Line packing 6a, 10a
Column separation and the closing of a cavity 4a, 4c, 5a, 6b
Choosing a surge protection 5
A liquid near its boiling point 6, 10
A soft fluid; a stiff, heavy one 8; 9
A complete shutdown study, every case against its limits 7, 9, 10
Filling of empty pipes 3d, 4d, 4e, 4f
The allowance of the piping code: 33 % and 10 % About this manual; 10a