This case study demonstrates the use of a script and a Generic 4D chart to enable Flownex® to calculate standards-compliant wall thicknesses and flange ratings of piping used in high pressure flow applications. |
CHALLENGE
The main challenge for this case study is the application of Flownex® to:
Conveniently and easily check if the selected pipe wall thickness is adequate to safely contain the high pressure fluid by implementing ASME B31.3, AS 1210 and AS 4041 in a simple script.
Determine the required ASME B16.5 flange rating by implementing the calculation in the same script.
Use the Generic 4D chart facility to implement a simple library for the pipe and flange material tensile strength, working pressure-temperature ratings and other coefficients required by the calculations.
BENEFITS
Flownex is often used in a design environment to model high pressure flow systems with the aim of determining pressure losses, pipe velocities, heat transfer etc. However, in high pressure applications it is also necessary to design the pressure piping and associated connected flanges to safely contain the high pressure fluid. Since almost every country has its own pressure vessel and pressure piping standards, Flownex® does not offer this capability as part of a built-in component or script, but it is quite simple to implement using a script that may be connected to any Flownex pipe component via a data transfer link (DTL).
SOLUTION
Using a simple script in any Flownex® model, pressure piping and flanges can be easily checked for compliance with any international standard.
|
INTRODUCTION
In the oil and gas industry high pressure applications are mostly the norm rather than the exception. Process engineers may employ Flownex® to model liquid or gas piping systems as part of their heat and mass balance, and pipe sizing calculations. However, the process engineer often has to rely on others to determine the required pipe schedules (wall thickness) and flange ratings.
Flownex® has a very powerful facility in terms of its scripting capability. Combined with the Generic 4D chart library, all the tools required are available to implement pressure piping calculations according to any design standard. In fact, any data table oriented calculation procedure may be implemented using this approach. This case study demonstrates the implementation of three such international standards – ASME B31.3, AS 1210 and AS 4041 – in a simple script. It also further demonstrates how to use the Generic 4D charts as a material property library to be used by the script.
FLOWNEX MODEL
Figure 1 shows the example network with a high pressure fluid flowing through the pressure pipe. The script obtains the pipe inside diameter and wall thickness from the pipe via the data transfer link (DTL). In the case demonstrated, the design pressure and temperature are entered directly into the script since the design values are often not the same as the working pressure and temperature. Typical values are shown in the inputs.
Corrosion allowances typically range from 1.5 mm to 3 mm. Manufacturing under-tolerances are often assumed 12.5% for good quality piping. For seamless piping the weld quality factor (joint efficiency) may be taken as 1.0. The weld joint reduction factor may be taken as 1.0 for cases where the temperature is less than 500°C. The example shows that the actual pipe wall thickness is only marginally more than the required thickness. An ASME B16.5 Class 900 flange is required for this design pressure and temperature.
The inputs and results displayed on the canvas in Figure 1 can also be added directly via the script’s property page. In fact, the Tensile Strength Chart and the Design Standard Option has to be selected via the script property page as the Flownex® canvas representations of dropdown options cannot be changed.
Figure 2 shows the script inputs and outputs. The user has to select the material library and the design standard from dropdown menus. Furthermore, the design pressure (in gauge pressure), design temperature and corrosion allowance must be specified. The DTL will import the pipe inside diameter and wall thickness. The remaining factors will likely remain as given.
CALCULATIONS ACCORDING TO PIPING STANDARDS
ASME B31.3
ASME B31.3 is a widely used US Standard for pressure piping. The required pressure piping wall thickness may be calculated according to ASME B31.3-2010 section 304.1.2 as follows:
where:
t = the pressure design thickness for internal pressure
P = internal design pressure (gauge)
D = outside diameter of the pipe
S = stress value of material (pipe design tensile strength)
E = weld quality factor (weld efficiency)
W = weld joint strength reduction factor
Y = coefficient from Table 304.1.1, valid for t < D/6
AS 1210 & AS 4041
AS 1210 is an Australian and New Zealand Standard for pressure vessels and AS 4041 is the pressure piping equivalent. Both standards are heavily based on ASME B31.3 although AS 1210 is more conservative due to its nature as a pressure vessel standard. Since they are based on ASME B31.3, the calculations are quite similar and although the AS standards use slightly different symbols, this case study will reuse the ASME symbols in the AS section and only add additional symbols as needed.
In accordance with AS 4041:
where:
M = the class design factor (taken as 1.0 for Class 1 and 2 piping)
In accordance with AS 1210:
Mechanical Allowances – All Standards
The above expressions provide the required wall thickness to contain the design pressure. No other mechanical allowances have been made. The mechanical allowances most frequently being used are those for corrosion, erosion, thread or groove and under-tolerance. In this example, only corrosion and under-tolerance are considered. The required thickness of straight sections of pipe may then be determined as follows:
where:
c = sum of all mechanical allowances
Hence for the allowances considered, the following relationship is used:
where:
ca = the corrosion allowance
ut = the under-tolerance as a fraction (typically 0.125 or 12.5%)
ASME B16.5 Flange Ratings
Flange ratings for a particular application are selected according to the working pressure-temperature ratings for the specific material as given in the tables in ASME B16.5. ASME flange classes are Classes 150, 300, 600, 900, 1500 and 2500.
Implementing a Material Strength Library By Using a Generic 4D Chart
Each of the standards considered provides tables of the pipe material design tensile strength as a function of design temperature. The tensile strengths given for ASME B31.3 and AS 4041 are similar since they are both pressure piping standards whilst the tensile strengths given for AS 1210 are somewhat lower owing to its more conservative approach as a pressure vessel standard. All these tables of design tensile strengths are implemented in a Generic 4D chart.
Pipe wall thickness calculations according to ASME B31.3 also uses a Y-coefficient given in Table 304.1.1 of the standard which is valid for cases where t < D/6. These factors will also be implemented in the same Generic 4D chart.
The ASME B16.5 flange rating is done by implementing the flange material pressure-temperature ratings in a table in the same Generic 4D chart.
For this case study, the piping material implemented in the Generic 4D chart is ASTM A106 Grade B and the corresponding flange material is ASTM A105. To implement other materials would simply require a duplicate Generic 4D chart with the correct design tensile strengths, coefficients and pressure-temperature ratings for the new material.
The pipe and flange material strength library is provided to the script via a Generic 4D chart as shown in Figure 3. The user should add similar charts for all the piping and flange materials used.
The material library could have been implemented several different ways using Generic 4D charts. For simplicity and conciseness it was decided to implement all the data required by the script in a single chart.
As shown in Figure 4, the Generic 4D charts provide for 4 variables to be plotted against each other. The implementation of the material strengths and other factors do not actually require a 4D chart, however it will be shown that having 4 variables available made this implementation simple. Variable 1 is used to store the different datasets. Under Variable 1, Variable 2 has 3 entries - each of which implements the temperature-tensile strength tables using Variable 3 and Variable 4 respectively for the 3 standards implemented. The ASME B31.3 correlation is selected in Variable 2 and is therefore shown in red in the graph and clearly falls between AS 4041 and AS 1210 as discussed before.
The second entry in Variable 1 (Figure 5) is used to store the ASME B31.3 Y-coefficient from Table 304.1.1 of that standard. Variable 3 lists the temperature whilst Variable 4 lists the Y-coefficient.
The third entry in Variable 1 (Figure 6) is used to store the ASME B16.5 flange pressure-temperature rating data. It is shown that Variable 2 is used to store each flange class with Class 150 shown as selected and displayed in red in the graph. Variables 3 and 4 store the temperature vs. working pressure respectively for each instance of Variable 2.
A facility where each of the 4 variables can be assigned a label to assist with the clarity of a chart is yet to be added to Flownex®.
SUMMERY
Using a simple script and Generic 4D chart combination, the design capability of Flownex® has been extended to include pressure piping wall thickness and flange rating. This enables the process engineer to account for various pipe wall thickness requirements during the thermo-fluid design phase and well before piping engineers are required to verify the structural properties of the piping system. This may potentially reduce the amount of rework as it will be less likely that the wrong pipe schedule and flange ratings are used during the process design phase and development of initial datasheets and Piping and Instrumentation Diagrams (P&IDs).