Model Calibration with Pipe Variables - GSC (Metric Units)

Model Calibration with Pipe Variables - GSC (English Units)

Summary

A supply reservoir feeds a water treatment pond through gravity flow and the pipeline has been in existence for about 15 years.  The original pipeline delivered about 457 m3/hr and recently, the operators working at the treatment pond have reported that the flow has dropped by about 20%.  Their lead engineer has determined that the cause of the flow reduction is most likely due to pipe corrosion. 

The objective of this example is to demonstrate how to use the GSC module to determine the amount of additional frictional resistance in the pipeline due to years of corrosion.  This could factor into the decision on whether or not to replace the pipeline and when.

For this example, the GSC module will be used to approximate the absolute roughness due to corrosion in the pipeline which has reduced the flow rate from 457 m3/hr to 366 m3/hr.

Note: This example can only be run if you have a license for the GSC module.

Topics Covered

  • Defining the Goal Seek and Control group

  • Setting Variables and Goals

  • Understanding Goal Seek and Control Output

Required Knowledge

This example assumes the user has already worked through the Walk-Through Examples section, and has a level of knowledge consistent with the topics covered there. If this is not the case, please review the Walk-Through Examples, beginning with the Beginner - Three Reservoir example. You can also watch the AFT Fathom Quick Start Video Tutorial Series on the AFT website, as it covers the majority of the topics discussed in the Three-Reservoir Model example.

In addition the user should have worked through the Beginner - Heat Transfer in a Pipe - GSC example.

Model File

This example uses the following file, which is installed in the Examples folder as part of the AFT Fathom installation:

Step 1. Start AFT Fathom

From the Start Menu choose the AFT Fathom 13 folder and select AFT Fathom 13.

To ensure that your results are the same as those presented in this documentation, this example should be run using all default AFT Fathom settings, unless you are specifically instructed to do otherwise.

Step 2. Define the Fluid Properties Group

  1. Open Analysis Setup from the toolbar or from the Analysis menu.

  2. Open the Fluid panel then define the fluid:

    1. Fluid Library = AFT Standard

    2. Fluid = Water (liquid)

      1. After selecting, click Add to Model

    3. Temperature = 21 deg. C

Step 3. Define the Pipes and Junctions Group

At this point, the first two groups are completed in Analysis Setup. The next undefined group is the Pipes and Junctions group. To define this group, the model needs to be assembled with all pipes and junctions fully defined. Click OK to save and exit Analysis Setup then assemble the model on the workspace as shown in the figure below.

The Workspace for the GSC Model Calibration Using Pipe Variables example.

Figure 1: Workspace for GSC Model Calibration Using Pipe Variables Example

Enter the following pipe and junction properties.

Pipe Properties

  1. All Pipes

    1. Pipe Material = Steel - ANSI

    2. Pipe Geometry = Cylindrical Pipe

    3. Size = 8 inch

    4. Type = STD (schedule 40)

    5. Friction Model Data Set = Standard

    6. Length =

Pipe Length (meters)
1 & 5 1610
2, 3, & 4 805
6 610

Junction Properties

  1. J1 Reservoir

    1. Name = Supply Reservoir

    2. Liquid Surface Elevation = 370 meters

    3. Liquid Surface pressure = 0 barG (0 kPa(g))

    4. Pipe Elevation = 305 meters

  2. J2 Branch

    1. Elevation = 150 meters

  3. J3 Branch

    1. Elevation = 180 meters

  4. J4 Branch

    1. Elevation = 30 meters

  5. J5 Branch

    1. Elevation = 90 meters

  6. J6 Branch

    1. Elevation = 15 meters

  7. J7 Reservoir

    1. Name = Treatment Pond

    2. Liquid Surface Elevation = 3 meters

    3. Liquid Surface Pressure = 0 barG (0 kPa(g))

    4. Pipe Depth = 0 meters

To show the names of the reservoirs a new Workspace Layer will be created.

  1. Create a new layer by selecting New Layer and then Blank Layer from the Workspace Layers tab of the Quick Access Panel.

  2. Name the layer Reservoir Labels.

  3. Edit the layer by selecting it and clicking the gear icon to bring up the Layer Settings window.

  4. Open the Show/Hide Labels panel and uncheck Force Shown Labels to Match Shown Objects.

  5. Toggle the visibility icon next to the reservoirs to on. This will cause their labels to be shown.

  6. Navigate to the Junction Parameters panel and expand the Commonly Used Junction Parameters list.

  7. Double-click Junction Name to add it to the list on the right-hand side. This will add the Junction Name to the label of the junctions that were defined in the Show/Hide Labels panel.

  8. Close the Layer Settings window.

ØTurn on Show Object Status from the View menu to verify if all data is entered. If so, the Pipes and Junctions group in Analysis Setup will have a check mark. If not, the uncompleted pipes or junctions will have their number shown in red. If this happens, go back to the uncompleted pipes or junctions and enter the missing data.

Step 4. Run the Model

Click Run Model on the toolbar or from the Analysis menu. This will open the Solution Progress window. This window allows you to watch as the AFT Fathom solver converges on the answer. Now view the results by clicking the Output button at the bottom of the Solution Progress window.

Step 5. Examine the Output

After running the model based upon the original pipeline operation with brand new clean steel pipe, we find that the flow rate is 456.7 m3/hr, as shown in Figure 2.

The Pipes tab of the Output window with clean pipe.

Figure 2: Original pipeline results based upon clean pipe

Step 6. Create a child scenario named Flow Reduction from Corrosion

In the child scenario, we are going to use the GSC module to determine how much additional frictional resistance due to corrosion is in the pipeline. In this new scenario, we know that the flow rate has been reduced to 366 m3/hr in the physical system by corrosion and therefore the GSC goal in this case is going to be the volumetric flow rate.

The GSC module is a very useful tool that allows one to calibrate their models so that the predicted results can match measured data.  There are four different GSC pipe variables that can be used to assist with this calibration including the specified pipe Friction (e.g. absolute roughness), pipe Design Factor, pipe ID (scaling), and Insulation Thickness.

In order to use GSC to determine the amount of additional frictional resistance due to corrosion, an input parameter must be varied.  In this case, we are going to vary each pipe's absolute roughness in order to achieve the desired goal flow rate of 366 m3/hr.

Step 7. Define the Modules Group

Open Analysis Setup, and navigate to the Modules panel. Check the box next to Activate GSC. The Use option should automatically be selected, making GSC enabled for use.

Step 8. Define the Goal Seek and Control Group

Specify the variables and goals for the model.

Variables Panel

Select the Variables panel within the Goal Seek and Control group. The Variables panel allows users to create and modify the system variables.

In this scenario, we are going to vary the current pipe friction model (i.e. absolute roughness) for each pipe in the system.  Since there are six individual pipes, there will be six individual pipe variables.  If all six variables were to be able to vary independently of each other and there is only one goal associated, then this could lead to a less unique solution (as there could be several different combinations of pipe roughness values that would lead to the desired result).  Therefore, we are going to assume that the entire pipeline has the same level of additional frictional resistance due to corrosion.  In order to accomplish this, all pipe variables can be linked together.  Since only one goal is present, we will only need one effective variable and so all of the pipe variables will be linked to the first variable.

Since there are six pipes, we will set pipes P2 - P6 to be linked to pipe P1.

For pipe P1, set the following variable data:

  1. Apply = Selected

  2. Object Type = Pipe

  3. Junction Type = NA

  4. Object Number and Name = P1 (Pipe)

  5. Variable Parameter = Friction

  6. Link To = (None)

Now, add new variables for pipes P2 - P6.  The only differences between the variables for these pipes and the variable for pipe P1 will be the Object Number and Name and instead of selecting (None) under the Link To column, select P1 (Pipe).  This will link pipes P2 - P6 to pipe P1 which will force all six pipe variables to be varied identically, requiring only one goal to be specified.  Figure 3 below shows all the linked pipe variables.

The Variables tab of the Goal Seek and Control Manager window with 6 variables defined.

Figure 3: Six linked pipe variables (working effectively as a single variable) to vary the pipe friction model (i.e. absolute roughness)

Goals Panel

Goals are the parameter values set by the user that the solver tries to achieve by adjusting the variables. There should be one goal defined for each unlinked (and thus independent) variable. Since variables 2 - 6 are all linked to variable 1, only one goal will be required.

Select the Goals panel in the Goal Seek and Control group.

Create a new goal and set up the following goal information:

  1. Apply = Selected

  2. Goal Type = Point

  3. Object Type = Pipe

  4. Goal Parameter = Volumetric Flow Rate

  5. Criteria = =

  6. Goal Value = 366

  7. Goal Units = m3/hr

  8. Object ID = P6 (Pipe)

  9. Object Location = NA

After entering the data, the Goals panel should appear as shown in Figure 4.

On the Numerical Control panel, the Search Method can be modified for Goals between two options, Beta Method and Least Squares. The Beta Method is useful in situations where there are multiple variables and multiple goals. For this model, make sure that the Least Squares method is selected.

The Goals tab of the Goal Seek and Control Manager with one goal defined.

Figure 4: GSC Manager Goals tab is used to specify the goals

Step 9. Run the Model

Click Run Model on the toolbar or from the Analysis menu. This will open the Solution Progress window. This window allows you to watch as the AFT Fathom solver converges on the answer. Now view the results by clicking the Output button at the bottom of the Solution Progress window.

Step 10. Examine the Output

The results of the GSC module analysis are shown in the General section of the Output window. The GSC Variables tab shows the final value for the variable parameter, as shown in Figure 5. The resulting absolute roughness value that would decrease the flow rate to 366 m3/hr would be about 0.03966 cm. The additional frictional resistance in the pipeline due to corrosion is about nine times larger than the absolute roughness for clean steel pipe. The GSC Goals tab shows the final value achieved for the goal, as shown in Figure 6.

The GSC Variables tab of the Output Window.

Figure 5: GSC Variable Results are displayed in the General section of the Output Window

The GSC Goals tab of the Output Window.

Figure 6: GSC Goal Results are displayed in the General section of the Output Window