Reservoir Balance - XTS (Metric Units)

Reservoir Balance - XTS (English Units)

Summary

The objective of this example is to demonstrate how the interaction of different hydrostatic pressures between can be analyzed using the XTS module. This example will use three finite reservoirs connected in series, with different initial liquid elevations.

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

Topics Covered

  • Using Finite Reservoirs Junctions

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, it is assumed that the user has worked through the Beginner - Filling a Tank - XTS example, and is familiar with the basics of XTS transient analysis.

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 Modules Panel

Open Analysis Setup from the toolbar or from the Analysis menu. Navigate to the Modules panel. For this example, check the box next to Activate XTS and select Transient to enable the XTS module for use. A new group will appear in Analysis Setup titled Transient Control. Click OK to save the changes and exit Analysis Setup. Open the Analysis menu to see the new option called Time Simulation. From here you can quickly toggle between Steady Only mode (normal AFT Fathom) and Transient (XTS mode).

Step 3. 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 4. 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 XTS Reservoir Balance example with three reservoirs and two pipes.

Figure 1: Workspace for XTS Reservoir Balance example

Pipe Properties

Enter the following for both pipes P1 and P2.

  1. Pipe Model tab

    1. Pipe Material = Steel - ANSI

    2. Pipe Geometry = Cylindrical Pipe

    3. Size = 4 inch

    4. Type = STD (schedule 40)

    5. Friction Model Data Set = Standard

    6. Length = 75 meters

Junction Properties

Figure 2 shows the Reservoir Properties window for junction J1. In the Fathom XTS module, reservoir junctions can have finite dimensions. The reservoirs can also be open, or closed. If the tank is closed, the user must specify the gas thermodynamics inside the closed tank. Users may also specify different initial known parameters for the reservoir. If only the Liquid Surface level is known, Fathom will calculate the Surface Pressure. Alternatively, if only the Surface Pressure is known, Fathom will calculate the Liquid Height. When using a reservoir as a finite tank, users must also specify the tank height, the initial liquid height in the tank, as well as the tank cross sectional area.

The Reservoir Properties window with Finite Open Tank selected as the Tank Model.

Figure 2: Reservoir Properties Window in Fathom XTS

Next, define the reservoir junctions.

  1. J1 Reservoir

    1. Tank Model = Finite Open Tank

    2. Known Parameters Initially = Both Parameters (i.e. Liquid Surface Level & Surface Pressure)

    3. Cross-Sectional Area = Constant, 14 meters2

    4. Liquid Level Specification = Height from Bottom

    5. Liquid Height = 12 meters

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

    7. Tank Height = 15 meters

    8. Pipe Elevation = 0 meters

    9. Tank Bottom Elevation = 0 meters

  2. J2 Reservoir

    1. Tank Model = Finite Open Tank

    2. Known Parameters Initially = Both Parameters (i.e. Liquid Surface Level & Surface Pressure)

    3. Cross-Sectional Area = Constant, 14 meters2

    4. Liquid Level Specification = Height from Bottom

    5. Liquid Height = 0 meters

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

    7. Tank Height = 15 meters

    8. Pipe Elevation = 0 meters

    9. Tank Bottom Elevation = 0 meters

  3. J3 Reservoir

    1. Tank Model = Finite Open Tank

    2. Known Parameters Initially = Both Parameters (i.e. Liquid Surface Level & Surface Pressure)

    3. Cross-Sectional Area = Constant, 14 meters2

    4. Liquid Level Specification = Height from Bottom

    5. Liquid Height = 3 meters

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

    7. Tank Height = 15 meters

    8. Pipe Elevation = 0 meters

    9. Tank Bottom Elevation = 0 meters

Step 5. Define the Transient Control Group

Open Analysis Setup again and navigate to the Simulation Duration panel, part of the Transient Control group.

For this example, with a Start Time of 0 minutes, set the Stop Time to 120 minutes with a time step of 1 minute. The output will be saved to the output file for every time step.

Step 6. Specify the Time Simulation Formatting

Open the Output Control window and select the Format & Action tab. Set the Time Simulation Formatting units to minutes and click OK to save and close the 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 7. 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 8. Examine the Output

For this model, the output will be easiest to view as a graph, so select the Graph Results tab. Use the Graph Results window to plot the liquid height in each of the three reservoirs on the same plot. Figure 3 shows the Graph Control tab of the Quick Access Panel for simultaneously plotting the transient liquid height in all three reservoirs. After selecting the Transient graphing tab, select Reservoir from the Pipes or Junctions drop-down menu.

Figure 4 show the resulting graph. Note that, as one would expect because the tanks are the same sizes and at the same elevations, the liquid heights between the tanks eventually reach the same equilibrium value.

Transient data selection in the Graph Control tab of the Quick Access Panel.

Figure 3: The transient liquid height in all three reservoirs can be selected in the Select Graph Data window

Reservoir liquid heights plotted in the Graph Results window.

Figure 4: Reservoir liquid heights can be plotted using the Graph Results window