Pythonholics Learning Hub

Learn Python, Machine Learning, and Scientific Computing Faster

Step-by-step tutorials, complete code examples, practical projects, and AFAP books for students, engineers, and researchers.

Python Basics

Start with clean beginner-friendly tutorials and build confidence through small examples.

Open path →

Machine Learning

Learn scikit-learn, classification, regression, metrics, and practical model workflows.

Open tutorials →

AFAP Book Series

Follow the As Fast As Possible book series for structured Python and ML learning.

View books →

Tuesday, August 4, 2026

How a Combined Cycle Power Plant Works

CCPP Tutorial 02

Follow the complete path from ambient air and fuel to gas-turbine power, recovered exhaust heat, steam-turbine power, and the final net electrical output used in the Combined Cycle Power Plant dataset.

Gas turbine Steam turbine HRSG Condenser Net output
Purpose of Tutorial 02. This article explains the physical system behind the dataset. It does not yet analyze feature ranges, correlations, missing values, or Python code. Those topics belong to Tutorials 03 and 04.

1. What Does “Combined Cycle” Mean?

A combined cycle power plant joins two thermodynamic power-conversion systems. The first is a gas-turbine cycle, commonly described by the Brayton-cycle framework. The second is a steam-turbine cycle, commonly described by the Rankine-cycle framework. The two systems are connected by a heat-recovery steam generator, usually abbreviated HRSG.

Fuel is burned only in the gas-turbine combustor in a basic unfired configuration. The gas turbine produces electricity, but the exhaust leaving it remains very hot. Instead of rejecting that thermal energy directly to the atmosphere, the plant transfers much of it to water in the HRSG. The resulting steam drives a second turbine and generator.

Combined-cycle output = gas-turbine output + steam-turbine output

This reuse of exhaust heat is the central reason combined-cycle systems can convert fuel to electricity more efficiently than a comparable simple-cycle gas turbine. The U.S. Department of Energy describes the HRSG as a boiler that captures gas-turbine exhaust heat to produce high-pressure steam for additional power generation.[1]

Combined cycle is not the same as combined heat and power. Combined cycle combines gas- and steam-turbine power cycles. Combined heat and power, or cogeneration, intentionally supplies useful heat to an external process or building in addition to generating electricity. A plant can use both concepts, but the terms are not interchangeable.

2. Complete Energy Flow Through the Plant

Complete combined cycle power plant diagram with compressor, combustor, gas turbine, HRSG, steam turbine, condenser, pump, two generators, and grid.
Figure 1. Main energy and working-fluid paths. The upper path represents the gas-turbine system; the lower path recovers exhaust heat and circulates water and steam through the steam-turbine system.

The full process can be understood as ten linked steps.

1
Air enters the compressor. Ambient air is drawn into the gas turbine through the intake and filtration system.
2
The compressor raises air pressure. Compressing the air requires a substantial share of the turbine's mechanical work.
3
Fuel is injected and burned. Fuel mixes with compressed air in the combustion system, creating a high-temperature, high-pressure gas stream.
4
Hot gas expands through the gas turbine. The expanding gas rotates turbine blades and the main shaft.
5
The first generator produces electricity. Shaft power drives the gas-turbine generator.
6
Hot exhaust enters the HRSG. The exhaust still carries useful thermal energy after leaving the gas turbine.
7
The HRSG produces steam. Exhaust heat preheats feedwater, evaporates it, and can superheat the resulting steam.
8
Steam expands through the steam turbine. The steam's enthalpy is converted into shaft work.
9
The second generator produces electricity. The steam turbine contributes additional power without requiring a second primary fuel stream in the basic arrangement.
10
Steam is condensed and recirculated. The condenser turns exhaust steam back into water, and a feedwater pump returns it to the HRSG.

3. The Gas-Turbine System

The gas turbine is the first power-producing system and the source of heat for the steam cycle. The U.S. Department of Energy separates a gas turbine into three principal sections: the compressor, the combustion system, and the turbine section.[1]

Five-stage gas turbine sequence from air intake through compression, combustion, expansion, and mechanical output.
Figure 2. Gas-turbine sequence. Expansion creates shaft power, while the exhaust remains hot enough to supply the HRSG.

3.1 Compressor

The compressor draws in ambient air and raises its pressure before combustion. This is not a minor auxiliary process: the compressor consumes a large fraction of the turbine's gross mechanical work. The useful gas-turbine shaft output is therefore the difference between turbine work and compressor work.

GT,net = Ẇturbine − Ẇcompressor

Air density and compressor inlet conditions are consequently important. When the inlet air is less dense, the machine may process less air mass for a similar volumetric flow, which can reduce gas-turbine power. Compressor efficiency, pressure ratio, inlet pressure loss, fouling, and control settings also influence performance.

3.2 Combustion system

Fuel is injected into compressed air and burned. The combustion system must provide a stable high-temperature gas stream while controlling emissions, pressure loss, flame stability, and component temperatures. Turbine inlet temperature is a major performance parameter, but it is constrained by materials, cooling technology, emissions requirements, and equipment life.

3.3 Turbine and generator

The hot gas expands across stationary and rotating blade rows. The rotating blades drive the shaft, which simultaneously powers the compressor and the electrical generator. The gas leaving the turbine has a lower pressure and temperature than at the inlet, yet it still contains enough heat to support the second cycle.

4. The Heat-Recovery Steam Generator

The HRSG is the thermal bridge between the gas turbine and steam turbine. It does not convert heat directly into electricity. Instead, it transfers heat from gas-turbine exhaust to the water–steam circuit.

HRSG diagram showing superheater, evaporator, and economizer zones between hot exhaust and cooler stack gas.
Figure 3. Simplified HRSG functional zones. The ordering and complexity vary by plant, but economizing, evaporation, and superheating are the essential heat-recovery functions.
HRSG section Main purpose Water–steam condition
Economizer Uses lower-temperature exhaust heat to warm feedwater before boiling Pressurized liquid water
Evaporator Supplies latent heat required to convert water into saturated steam Water–steam mixture and saturated steam
Superheater Raises steam temperature above saturation before turbine admission Superheated steam
Reheater, when used Reheats partially expanded steam between turbine sections Intermediate-pressure steam

Large HRSGs can contain multiple pressure levels. A three-pressure HRSG may generate high-, intermediate-, and low-pressure steam to recover heat more effectively across the exhaust-temperature range. Some units use supplementary firing, where additional fuel is burned in the exhaust path to increase steam production. Those design choices improve flexibility or output but alter fuel use, emissions, and efficiency.

Heat transfer is limited by practical temperature differences, pressure losses, heat-exchanger surface area, material constraints, and the risk of thermal stress. The HRSG must therefore balance maximum heat recovery against cost, size, durability, and operating flexibility.

5. The Steam-Turbine System

Steam generated in the HRSG expands through the steam turbine. As pressure and temperature fall, the steam transfers energy to turbine blades and creates mechanical shaft power. The connected generator converts that shaft power into electricity.

The U.S. Department of Energy explains that a steam turbine is driven by high-pressure steam produced by a boiler or HRSG; the steam turbine itself does not directly consume fuel.[3]

Closed steam-water loop connecting HRSG, steam turbine, condenser, and feedwater pump.
Figure 4. Closed steam–water loop. Water is repeatedly pressurized, heated, expanded as steam, condensed, and returned to the HRSG.

A large steam turbine may have high-pressure, intermediate-pressure, and low-pressure sections. Reheat can return partially expanded steam to the HRSG before it enters a later turbine section. These arrangements improve heat use and help control steam quality near the turbine exit.

The steam-turbine contribution depends on steam flow, steam pressure and temperature, turbine efficiency, condenser pressure, generator efficiency, and the amount of recoverable heat entering the HRSG.

6. The Condenser and Feedwater Pump

6.1 Why the condenser is necessary

Steam leaving the final turbine section enters the condenser, where heat is rejected to a cooling medium and the steam becomes liquid water. Condensation serves two purposes. It recovers the working fluid for reuse and maintains a low steam-turbine exhaust pressure.

A lower exhaust pressure allows steam to expand through a larger pressure range, which can increase turbine work. This is why steam-side vacuum is relevant to plant output and why the CCPP dataset includes an exhaust-vacuum variable. Detailed interpretation of that variable and its units is reserved for Tutorial 03.

6.2 Cooling system

The condenser must transfer rejected heat to the environment. Cooling can be provided by once-through water, recirculating wet cooling towers, air-cooled condensers, or hybrid systems. Cooling-system design affects water use, auxiliary power, condenser pressure, sensitivity to weather, and overall plant performance.

6.3 Feedwater pump

After condensation, the feedwater pump raises the liquid pressure so the water can return to the HRSG. Pumping a liquid requires much less work than compressing the same substance as a vapor, which is one of the reasons the closed Rankine cycle is practical.

7. Why Combined Cycle Is More Efficient

A simple-cycle gas turbine generates electricity once and then rejects its hot exhaust. A combined-cycle plant generates electricity in the gas turbine and then uses the exhaust heat to produce additional steam-turbine power. More of the fuel's available energy is therefore converted into useful electrical output.

The U.S. Energy Information Administration reported average 2020 operating heat rates of approximately 10,000 Btu/kWh for simple-cycle systems and 7,146 Btu/kWh for combined-cycle systems.[2] Heat rate is fuel energy input divided by electrical energy output, so a lower value indicates better conversion efficiency.

Heat rate = fuel-energy input ÷ net electrical-energy output
Bar chart comparing illustrative 2020 U.S. average operating heat rates for simple-cycle and combined-cycle systems.
Figure 5. Lower heat rate means less fuel energy is required per kilowatt-hour. The values are EIA's reported 2020 averages, not universal ratings for every plant.

Using 3,412 Btu as the electrical-energy equivalent of one kilowatt-hour, those heat rates correspond to approximate higher-heating-value efficiencies of 34.1% and 47.8%, respectively. These calculated figures are illustrative fleet averages. Modern design-point performance can differ substantially according to turbine class, cooling, pressure levels, supplementary firing, fuel, ambient conditions, age, maintenance, and operating load.

Do not treat a single efficiency value as a plant constant. Thermal efficiency changes with load, weather, equipment condition, control mode, and auxiliary consumption. Vendor design values, annual fleet averages, and measured hourly efficiency answer different questions.

8. Common Combined-Cycle Configurations

A power block can contain one or more gas turbines connected thermally to one or more steam turbines. The notation 1×1, 2×1, or 3×1 describes the number of combustion turbines and steam turbines within the block.

Configuration Meaning General characteristic
1×1 One gas turbine and one steam turbine Smaller block and comparatively simple integration
2×1 Two gas turbines supplying one steam turbine Common utility-scale arrangement
3×1 Three gas turbines supplying one steam turbine Larger block with shared steam-cycle equipment
Single shaft Gas turbine, steam turbine, and generator share a shaft train Compact arrangement with tightly coupled operation
Multi-shaft Gas and steam turbines drive separate generators Greater separation of turbine-generator trains

EIA reported that the predominant U.S. combined-cycle power-block configuration was two combustion turbines with one steam turbine.[2] However, actual layouts vary, and the public CCPP dataset should not be used to infer an undocumented physical configuration of the specific plant.

9. How Environmental Conditions Affect Plant Operation

The CCPP dataset is built around three ambient measurements and one steam-side vacuum measurement. These variables matter because the plant exchanges mass and energy with its surroundings. Their effects do not occur through a single isolated equation; they propagate through compressor intake, gas-turbine flow, heat recovery, cooling, steam expansion, and auxiliary loads.

Diagram linking ambient temperature, pressure, humidity, and steam-side vacuum to gas and steam turbine power and net plant output.
Figure 6. Principal physical pathways linking recorded conditions to net output. The arrows represent mechanisms, not an assumption that each effect is independent or perfectly linear.

9.1 Ambient temperature

Ambient temperature influences inlet-air density, compressor behavior, cooling performance, and the mass flow processed by the gas turbine. Warmer air is generally less dense at similar pressure and humidity, so a fixed-volume intake can admit less air mass. Higher cooling-water or air-cooler temperatures can also raise condenser pressure. For many gas-turbine and combined-cycle plants, these mechanisms make high ambient temperature unfavorable for net power output.

9.2 Ambient pressure

Atmospheric pressure influences air density and therefore the mass of air entering the compressor. Site altitude and weather both contribute to pressure variation. Lower inlet pressure can reduce gas-turbine mass flow and power, although the magnitude depends on the machine and controls.

9.3 Relative humidity

Humidity changes moist-air properties and can interact with combustion, inlet cooling, compressor flow, and cooling-system behavior. Its influence is usually more design- and condition-dependent than a simple statement such as “more humidity always increases output” or “always decreases output.” The dataset can reveal an empirical relationship, but that relationship must be interpreted in the context of the other variables.

9.4 Exhaust vacuum

Steam-turbine exhaust vacuum is linked to condenser pressure. Better vacuum means lower absolute pressure at the turbine exhaust, giving steam a larger expansion range. The measured variable can therefore carry information about steam-cycle conditions and cooling performance. Care is required with sign conventions and the practical meaning of “higher vacuum”; Tutorial 03 handles the dataset column in detail.

10. Gross Output, Auxiliary Loads, and Net Output

The two generators produce gross electrical power, but the plant also consumes electricity. Pumps circulate feedwater and cooling water. Fans move air through cooling systems. Fuel systems, control equipment, lubrication systems, transformers, emissions controls, and other services require power.

Pnet = Pgas-turbine generators + Psteam-turbine generators − Pauxiliaries
Diagram showing gas-turbine and steam-turbine generator output combined as gross output, with auxiliary loads subtracted to obtain net output.
Figure 7. Net output is the power available after internal plant consumption has been subtracted from gross generation.

The UCI dataset describes PE as net hourly electrical energy output and lists the unit as megawatts. Because megawatts measure power, the most precise interpretation is an hourly averaged net electrical power output. The word “hourly” refers to the averaging interval rather than changing MW into an energy unit.

11. Connecting Plant Physics to the CCPP Dataset

The physical explanation now gives the five dataset variables a clear place in the plant.

Dataset variable Plant-side connection Detailed treatment
AT Gas-turbine inlet and plant cooling environment Tutorial 03
AP Atmospheric condition affecting inlet-air density and mass flow Tutorial 03
RH Moist-air and cooling-related environmental condition Tutorial 03
V Steam-turbine exhaust and condenser-side condition Tutorial 03
PE Hourly averaged net electrical power output Tutorial 03

The original dataset paper explains that ambient temperature, pressure, and relative humidity are major factors for gas-turbine performance, while exhaust vacuum is measured from the steam-turbine side.[5] This structure is what makes the dataset particularly interesting: four compact measurements summarize conditions that influence two coupled power cycles.

A machine-learning model does not explicitly simulate every compressor stage, heat-exchanger surface, steam property, or control loop. It learns the empirical relationship between the four recorded inputs and measured net output. Plant physics remains essential because it helps us judge whether the learned relationship is plausible, where it may fail, and what information is missing.

12. Key Takeaways

Two power cycles A gas turbine and steam turbine generate electricity in one integrated plant.
Exhaust heat is reused The HRSG converts gas-turbine exhaust heat into steam-cycle input.
Cooling matters Condenser pressure and cooling conditions influence steam-turbine output.
Net is not gross Internal auxiliary consumption is subtracted from generator output.
Weather reaches both cycles Ambient conditions affect intake, compression, heat recovery, and cooling.
Physics supports machine learning Engineering knowledge helps interpret patterns and detect implausible models.

13. References

  1. U.S. Department of Energy. How Gas Turbine Power Plants Work. Department of Energy .
  2. U.S. Energy Information Administration. (2022). Most Combined-Cycle Power Plants Employ Two Combustion Turbines with One Steam Turbine. EIA Today in Energy .
  3. U.S. Department of Energy. (2016). Combined Heat and Power Technology Fact Sheet Series: Steam Turbines. DOE Steam Turbine Fact Sheet .
  4. Tüfekci, P., & Kaya, H. (2014). Combined Cycle Power Plant [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5002N .
  5. Kaya, H., Tüfekci, P., & Gürgen, F. S. (2012). Local and global learning methods for predicting power of a combined gas and steam turbine. International Conference on Emerging Trends in Computer and Electronics Engineering, 13–18.
  6. Tüfekci, P. (2014). Prediction of full load electrical power output of a base load operated combined cycle power plant using machine learning methods. International Journal of Electrical Power & Energy Systems, 60, 126–140. https://doi.org/10.1016/j.ijepes.2014.02.027 .

Next tutorial

03 — Understanding the CCPP Dataset Features
A detailed explanation of ambient temperature, exhaust vacuum, atmospheric pressure, relative humidity, net electrical output, units, ranges, expected relationships, and interpretation cautions.

Introduction to the Combined Cycle Power Plant Dataset

CCPP Tutorial 01

Meet the real-world energy dataset that will be used throughout this tutorial series. This introductory article explains what the dataset contains, what quantity will eventually be predicted, and why the problem is valuable for learning regression with Python.

9,568 observations 4 input variables 1 target variable Regression dataset Energy application
Scope of Tutorial 01. This post is an overview only. The operation of a combined cycle power plant, detailed interpretation of individual features, Python-based data inspection, and formal experimental design are reserved for Tutorials 02–05.

1. Dataset Overview

The Combined Cycle Power Plant dataset, usually shortened to the CCPP dataset, is a real-world regression dataset available through the UCI Machine Learning Repository. It contains measurements collected from a combined cycle power plant while the plant was operating at full load.

According to the UCI repository, the dataset contains 9,568 data points collected over six years, from 2006 to 2011. Each observation combines four measured input variables with one measured value of net hourly electrical energy output.

9,568 recorded observations
4 continuous predictors
1 continuous target
2006–2011 collection period
Dataset property Overview
Application area Electrical-power generation
Machine-learning task Supervised regression
Number of observations 9,568
Number of input variables 4
Number of target variables 1
Operating condition Full-load plant operation
Collection period 2006–2011
Repository UCI Machine Learning Repository
Dataset DOI 10.24432/C5002N

The dataset is especially attractive for teaching because the table is compact, the variables are numeric, and the prediction target has an immediate engineering meaning. At the same time, the data are sufficiently rich to support comparisons between simple statistical models and advanced machine-learning algorithms.

Overview of the CCPP dataset showing four input variables leading to a regression problem and net electrical output.
Figure 1. High-level structure of the CCPP learning problem. Four measured variables describe each observation, and net electrical power output is the value to be estimated.

2. What Is the Prediction Problem?

The general goal is to estimate the plant's net hourly electrical energy output from four available measurements. The output is represented by the variable PE and is measured in megawatts.

Because electrical output is a continuous numerical value, the problem belongs to regression. A future machine-learning model will receive the four input values for an observation and produce an estimated value of PE.

At this introductory stage, the problem can be summarized as:

Use ambient and plant-related measurements to estimate the net electrical output produced during full-load operation.

This simple statement will later be converted into a complete machine-learning workflow. Subsequent tutorials will define the predictors and target formally, prepare the data, establish validation rules, train regression algorithms, and compare their performance.

3. Input and Target Variables at a Glance

The dataset contains four predictors and one target. Only a short orientation is provided here; each variable will be examined properly in Tutorial 03.

Variable Role High-level meaning Unit
AT Input Ambient temperature °C
V Input Exhaust vacuum cm Hg
AP Input Ambient pressure mbar
RH Input Relative humidity %
PE Target Net hourly electrical energy output MW

The four inputs describe environmental or operational conditions associated with a recorded hour. The target records the corresponding electrical output. The central machine-learning question is whether the relationship between these inputs and the target can be learned accurately enough to make useful predictions for observations that were not used during model training.

The feature names are easy to list, but their engineering interpretation should not be reduced to one sentence. Tutorial 03 will examine what each variable represents, how it is measured, and why it may be related to output.

4. Why Predicting Electrical Output Is Important

Accurate output prediction can support a clearer understanding of plant performance under changing recorded conditions. In practical energy analysis, predicted output may contribute to planning, operational assessment, performance monitoring, scenario comparison, and the early identification of unexpected behavior.

The value of the dataset is not limited to power-plant engineering. It also provides an excellent educational bridge between machine-learning theory and a physical system. A regression score is easier to interpret when the target is measured in megawatts and the error represents a tangible difference between predicted and measured electrical production.

The dataset has consequently been used in research on machine-learning methods for full-load power-output prediction. The 2014 study by Tüfekci examined several regression approaches for predicting hourly full-load electrical power output, helping establish the dataset as a recognized benchmark for this problem.

5. Why This Dataset Is Useful for Machine-Learning Tutorials

Diagram explaining why the CCPP dataset is useful: real engineering data, a clear target, a compact feature space, and suitability for many algorithms.
Figure 2. The CCPP dataset combines a real application with a manageable structure, making it appropriate for a progressive tutorial series.

It represents a real engineering problem

The observations originate from an operating power plant rather than an artificial formula. This allows every modeling decision to be connected to a recognizable energy application.

It has a clear target

The objective is not vague: estimate net hourly electrical output. This makes it straightforward to explain regression predictions and later evaluate prediction errors.

It has a compact feature space

Only four predictors are required. Readers can therefore focus on the modeling process without first managing hundreds of variables, images, text fields, or complex categorical encodings.

It supports many algorithms

The same dataset can be used with linear regression, polynomial regression, regularized models, support-vector regression, decision trees, random forests, gradient boosting, neural networks, symbolic regression, and other approaches. This makes comparisons easier because the underlying prediction task remains unchanged.

It is suitable for progressive learning

A beginner can start with dataset structure and a linear baseline. More advanced readers can later investigate nonlinear relationships, hyperparameter tuning, feature importance, uncertainty, interpretability, symbolic equations, and ensemble learning.

6. Position of This Post in the CCPP Tutorial Series

Roadmap showing Tutorial 01 followed by tutorials on plant operation, feature understanding, Python loading, and machine-learning problem definition.
Figure 3. Tutorial 01 provides orientation only. The engineering, data-analysis, and methodological details are intentionally separated into later posts.
Tutorial Title Primary purpose
01 Introduction to the Combined Cycle Power Plant Dataset Introduce the dataset, prediction target, and practical importance
02 How a Combined Cycle Power Plant Works Explain the energy-conversion system and major plant components
03 Understanding the CCPP Dataset Features Interpret all predictors and the electrical-output target in detail
04 Loading and Inspecting the CCPP Dataset with Python Load, validate, and inspect the table with pandas
05 Defining the CCPP Machine Learning Problem Formalize the regression task, assumptions, questions, and evaluation plan

7. What This Introduction Does—and Does Not—Cover

Covered here

  • Identity and origin of the dataset
  • Number of observations and variables
  • High-level prediction objective
  • Names and roles of the variables
  • Practical and educational importance
  • Position within the tutorial series

Reserved for later tutorials

  • Detailed power-plant operation
  • Gas and steam turbine mechanics
  • Detailed feature interpretation
  • Data ranges and distributions
  • Python loading and inspection
  • Missing values and duplicates
  • Train-test splitting and validation
  • Regression metrics and model training

Keeping these subjects separate gives every tutorial one clear learning goal. Readers can follow the series in order, while experienced practitioners can open the specific article that addresses the topic they need.

8. References

  1. Tüfekci, P., & Kaya, H. (2014). Combined Cycle Power Plant [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5002N
  2. Tüfekci, P. (2014). Prediction of full load electrical power output of a base load operated combined cycle power plant using machine learning methods. International Journal of Electrical Power & Energy Systems, 60, 126–140. https://doi.org/10.1016/j.ijepes.2014.02.027

Next tutorial

02 — How a Combined Cycle Power Plant Works
Gas turbines, steam turbines, heat-recovery steam generators, environmental conditions, and net power output.