Air Receiver Tank - XTS (Metric Units)

Air Receiver Tank - XTS (English Units)

Summary

The objective of this example is to introduce the user to the Extended Time Simulation (XTS) module by modeling the pressurizing of an air receiver tank. A positive displacement compressor is used to charge the tank and is shut off once the required pressure is reached for a compressed air process.

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

Topics Covered

  • Specifying the Transient Control group

  • Understanding Transient Output

Required Knowledge

This example assumes the user has already worked through the Beginner - Air Heating System example, or has a level of knowledge consistent with that topic.  You can also watch the AFT Arrow Quick Start Video on the AFT website, as it covers the majority of the topics discussed in the Beginner: Air Heating System example.

Model File

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

Problem Statement

An initially unpressurized tank is being charged with compressed air for use in a compressed air system. The compressed air tank needs to be charged to a pressure of 8.5 barG.

An actively cooled positive displacement compressor rated for 170 sm3/h is used in the system with an aftercooler which is sized to cool the air to 30 deg. C. The cooler has a pressure drop of 20 kPa at 170 sm3/h. There is an isolation valve at the air receiver tank inlet to control flow out of the tank during normal operations with a Cv of 50 and Xt of 0.7.

Atmospheric air is assumed to be dry, with an ambient temperature of 21 deg. C. Determine the time it will take to charge the air receiver tank for this process.

Step 1. Start AFT Arrow

From the Start Menu choose the AFT Arrow 10 folder and select AFT Arrow 10.

To ensure that your results are the same as those presented in this documentation, this example should be run using all default AFT Arrow 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. Note that XTS can also be enabled from the Analysis menu by going to the Time Simulation option and selecting Transient, as shown in Figure 1. When XTS is activated a new group will appear in Analysis Setup titled Transient Control.

Figure 1: Activating the XTS module and setting it to be enabled in the Modules panel

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 = Air

      1. After selecting, click Add to Model

    3. Equation of State = Redlich-Kwong

    4. Enthalpy Model = Generalized

    5. Specific Heat Ratio Source = Library

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.

Figure 2: Workspace for XTS Air Receiver Tank example

The system is in place but now we need to enter the properties of the objects. Double-click each pipe and junction and enter the following properties.

Pipe Properties

  1. Pipe P1

    1. Pipe Material = Steel - ANSI

    2. Pipe Geometry = Cylindrical Pipe

    3. Size = 3 inch

    4. Type = STD (schedule 40)

    5. Friction Model = Standard

    6. Length = 6 meters

  2. Pipes P2 - P4

    1. Pipe Material = Steel - ANSI

    2. Pipe Geometry = Cylindrical Pipe

    3. Size = 3 inch

    4. Type = STD (schedule 40)

    5. Friction Model = Standard

    6. Length = 3 meters

Junction Properties

  1. J1 Assigned Pressure

    1. Elevation = 0 meters

    2. Fluid = Air

    3. Stagnation Pressure = 0 barG

    4. Stagnation Temperature = 21 deg. C

  2. J2 Compressor

    1. Elevation = 0 meters

    2. Compressor Model = Positive Displacement Compressor

    3. Compression Process Thermodynamics = Polytropic

    4. Polytropic Constant = 1.2

    5. Compressor Sizing Parameter = Mass Flow Rate

    6. Fixed Flow Rate = 170 sm3/h

Note: The polytropic constant entered for the compressor is intended to represent an active cooling element in the compressor.

  1. J3 Heat Exchanger

    1. Elevation = 0 meters

    2. On the Loss Model Data tab

      1. Select the Loss Model as Resistance Curve, and then click the Enter Curve Data button

      2. Select the Flow Parameter as Mass with units of sm3/h

      3. Enter 170 sm3/h and 20 kPa in the Raw Data table

      4. Click Fill as Quadratic to create data for a square loss curve

      5. Click Generate Curve Fit Now to create a quadratic curve fit

    3. On the Thermal Data tab:

      1. Thermal Model = Controlled Downstream Temperature

      2. Controlled Outlet Temperature = 30 deg. C

  2. J4 Valve

    1. Elevation = 0 meters

    2. Loss Model = User Specified

    3. Loss Model = Cv

    4. Loss Parameters

      1. Cv = 50

      2. Xt = 0.7

  3. J5 Tank

    1. Elevation = 0 meters

    2. Tank Model = Finite

    3. Initial Conditions

      1. Pressure = 0 barG

      2. Temperature = 21 deg. C

    4. Finite Tank Conditions

      1. Fixed Volume = 1900 liters

      2. Thermodynamic Process = Isothermal

Figure 3: Tank Properties window defined with Finite Tank option

Ø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 5. Define the Transient Control Group

XTS module transient simulations are controlled through the Simulation Duration panel. You can access the Simulation Duration panel by selecting Transient Control from the Analysis Menu, navigating to the Simulation Duration item in Analysis Setup, or by clicking the Simulation Duration shortcut on the Common Toolbar. When the time simulation mode is set to Steady-Only AFT Arrow will ignore the input in the Simulation Duration panel. When AFT Arrow is set to perform a transient analysis, the Transient Control group becomes a required item before the model can run. Use the Simulation Duration panel to specify transient start and stop times, set time steps, specify the number of output points that are saved to the transient output file (allows XTS to do transient calculations with a small time step while limiting the size of the transient data output file), and adjust solution parameters for finite tank liquid level calculations. Specify start times, stop times, and time steps in any units from seconds to years.

Set the Start Time to 0 seconds and the Stop Time as 375 seconds, with a time step of 1 second. The output will be saved to the output file for every time step. The Simulation Duration panel should appear as shown in Figure 4.

Figure 4: The Simulation Duration panel is used to control transient simulations

Step 6. Set Up the Compressor Transient

In the XTS module, you can define transients for junctions. These transients include events such as valves opening and closing and compressors starting and shutting down. Transients for junctions are defined as either time-based or event-based transients. A time-based transient starts at a specified absolute time. Event based transients initiate when a defined criteria, such as a specified pressure in a particular pipe is reached. There are three types of event transients for junctions: single event, dual event cyclic, and dual event sequential. Single event transients are events that occur only once in a simulation. Dual cyclic events are two transient events that repeat one after the other as many times as the event trigger occur during a simulation (such as a valve closing then reopening). Dual sequential transient events are two transient events which occur one after the other, without repeating.

For this example, set a single event-based transient on the compressor so the compressor will shut off over 30 seconds when the pressure at the tank inlet reaches 8.5 barG.

Open the Compressor Properties window for compressor J2 and navigate to the Transient tab. Under Initiation of Transient, select Single Event and enter the Transient data as shown below in Figure 5.

Figure 5: Compressor junction transient tab with flow transient defined

 

Step 7. Run the Model

After defining all of the pipes and junctions transient data and transient control items, the transient model can run. Click Run Model from the Common Toolbar or Analysis menu.

When using the XTS module, the Solution Progress window displays the progress through the transient analysis. This information is displayed below the solution tolerance data, as shown in Figure 6.

After the run finishes, view the results by clicking the Output button.

Figure 6: Solution Progress Window shows the convergence progress, as well as the transient solution progress when running transient cases

Step 8. Examine the Transient Results

AFT Arrow displays transient output for all Pipes and Junctions in the Output Window, as shown in Figure 7.

Figure 7: Transient output is displayed in the Output Window

Each of the summary tables in the General Output section has a companion transient summary tab which displays the summary data at each time step in the transient run. Each junction included in the summary is included in the transient summary. The transient summary data for each junction may be expanded or collapsed by clicking the + or – sign in beside the junction data list. The entire list may be expanded or collapsed by clicking the button in the top left-hand corner of the transient summary window. Figure 8 shows the Tank Transient summary tab, with all of the data sets collapsed. Figure 9 shows the Tank Transient summary tab, with the data for the J5 Tank expanded.

Figure 8: Transient Summaries are displayed in the General Output section

Figure 9: Transient Summary data can be expanded to show the junction data for every Time Step

The Event Messages tabs in the General Section (Figure 10) can be used to see when events are triggered during the transient. For this example the Event Messages By Jct tab shows that the flow transient at the compressor was triggered at 333 seconds into the transient, meaning it took 333 seconds to pressurize the tank to the required pressure.

Figure 10: Event Messages tab in the General section of the Output window

The Quick Graph feature can be used to plot transient data for rapid examination. To use the Quick Graph feature, place the mouse cursor over the column of data you wish to examine. Then, right click with the mouse, and select Quick Graph from the list. Figure 11 illustrates how to generate a Quick Graph for J5 Tank Pressure vs. Time. The graph illustrates how the pressure in the tank rises over time and steadies out at about 9.9 bar once the compressor fully shuts off (Figure 12). The Graph Results window may also be used to create a full range of graphs related to the XTS module transient output.

Figure 11: Use Quick Graph to easily plot J5 Tank pressure

Figure 12: Quick Graph Plot of J5 Tank pressure

Similar to the summary transient data, the transient tabs in the Pipe and Junctions sections of the Output Window (shown in Figure 7) are used to display the transient data for each pipe and junction at every time step. This transient data can be expanded or collapsed in the same manner as in the General Output transient summaries.

Figure 13 shows the output data for the pipes and junctions, found on the Pipes and All Junctions tabs, at the initial time step, Time = 0 seconds. The output for all of the pipes and junctions can be displayed at any time step by using the slider bar located at the bottom of the Output window. Figure 14 shows the pipe and junction data at Time = 60 seconds.

Figure 13: Pipe and Junction transient data at Time = 0 minutes

Figure 14: Pipe and Junction transient data at Time = 60 seconds