Beginner: Heat Transfer in a Pipe - GSC (English Units)

Heat Transfer in a Pipe - GSC (Metric Units)

Summary

The objective of this example is to demonstrate how goals and variables are used in the GSC module to achieve an objective.

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

Topics Covered

  • Using 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 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 (English Units) 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

For this example, we will use the GSC module to determine the flow rate required such that air at the outlet of a 200-foot section of pipe, with heat transfer, reaches a temperature of 100 deg. F. The initial air temperature is 300 deg. F at a pressure of 50 psig, the ambient temperature is 70 deg. F, and the ambient air velocity is 15 miles/hr.

Step 1. Start AFT Arrow

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

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 Group

The GSC module is controlled through the Goal Seek and Control group in Analysis Setup. 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. Alternatively, GSC can be enabled from the Analysis menu by going to the Goal Seek & Control option and selecting Use, as shown in Figure 1.

Figure 1: Select Use from the Goal Seek & Control menu item on the Analysis menu to instruct AFT Arrow to perform goal seeking when it runs

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: Model layout for GSC Heat Transfer 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 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 = 200 feet

  2. Heat Transfer tab

    1. Heat Transfer Model = Convective Heat Transfer

    2. Temperature = 70 deg. F

    3. Fluid Velocity = 15 miles/hr

    4. Fluid = Air

Junction Properties

  1. J1 Assigned Pressure

    1. Elevation = 0 feet

    2. Fluid = Air

    3. Pressure = 50 psig

    4. Temperature = 300 deg. F

    5. Pressure Specification = Stagnation

  2. J2 Assigned Flow

    1. Elevation = 0 feet

    2. Type = Outflow

    3. Fluid = Air

    4. Flow Rate = 2 lbm/sec

Step 5. Define the Goal Seek and Control Group

The GSC module is controlled through the Goal Seek and Control group in Analysis Setup. The Goal Seek and Control group has three items: Variables, Goals, and Numerical Controls. Use the Variables panel to define the variables. Use the Goals panel to define the goals. and use the Numerical Controls panel to specify the convergence and calculation methods. The default inputs in the Numerical Controls panel will suffice for the vast majority of models using the GSC module.

Variables Panel

In the GSC module, variables are the parameters that Arrow will modify in order to achieve the specified goals. In order to help maintain unique answers, there should typically be the same number of goals as there are variables.

Open the Variables panel. The Variables panel allows users to create and modify the system variables. The object and junction type are selected. Then, the name and number of the object to which the variable applies and the object parameter that is to be varied are specified on the Variables tab.

Click the New Variable button, and enter the following variable data:

  1. Apply = Selected

  2. Object Type = Junction

  3. Junction Type = Assigned Flow

  4. Junction Number and Name = J2 (Assigned Flow)

  5. Variable Parameter = Flow

  6. Link To = (None)

The Apply column allows users to specify which of the variables that have been defined will be used. This allows the flexibility of creating multiple variable cases, while only applying selected variables for any given run.

The Link To column allows users to apply the same variable to multiple objects. This allows users to force parameters for several objects to be varied identically.

Upper and lower bounds provide logical extremes during the goal search. Leave these blank for this example/

After entering the data, the Variable tab should appear as shown in Figure 3:

Figure 3: The Variables panel is used to specify the variables

Goals Panel

Goals are the parameter values set by the user that Arrow adjusts the variables to achieve. Again, there should be the same number of system goals as there are system variables.

Select the Goals panel in Analysis Setup. The Goals panel allows users to create and modify the system goals. The goal type, object type, and the goal parameter are selected. A criterion for determining if the goal has been met is then specified, along with a value and units for the goal parameter. The user then selects the object to which the goal applies, and, if applicable, the location on the object at which the goal applies (i.e. the inlet or outlet of a pipe object).

Click the New Goal button, and enter the following goal data:

  1. Apply = Selected

  2. Goal Type = Point

  3. Object Type = Pipe

  4. Goal Parameter = Temperature Stagnation

  5. Criteria = =

  6. Goal Value = 100

  7. Goal Units = deg. F

  8. Object ID = P1 (Pipe)

  9. Object Location = Outlet

After entering the data, the Goals tab should appear as shown in Figure 4:

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

As variables and goals are added to a model, AFT Arrow will display symbols beside the pipes and junctions that have variables or goals applied to them. The default is a V for variables, and a G for goals. The goal symbol is not displayed next to objects that are part of a group goal. This is illustrated in Figure 5:

Figure 5: Workspace with Goal and Variable symbols displayed

Step 6. 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 Arrow solver converges on the answer. Once the solver has converged, view the results by clicking the Output button at the bottom of the Solution Progress window.

Step 7. Examine the Output

The Output window contains all the data that was specified in the Output Control window. Figure 6 shows the Output window.

Figure 6: The Output window contains all the data that was specified in the Output Control window

The results of the GSC analysis are shown in the General Output section. The GSC Variables tab shows the final value for the variable parameter, as shown in Figure 7. The GSC Goals tab shows the final value achieved for the goal, as shown in Figure 8.

Figure 7: GSC Variable Results are displayed in the General section of the Output window

Figure 8: GSC Goal Results are displayed in the General section of the Output window

The GSC module analysis determined that a mass flow rate of 0.4912 lbm/sec results in a pipe outlet temperature of 100.0 deg. F.  In order to achieve the desired temperature, the assigned flow rate was varied from the initial value of 2 lbm/sec, to the final value of 0.4912 lbm/sec. In addition to the GSC module tabs in the General Output section, the resulting pipe flow and temperature results can be seen in the Pipes section of the Output window.