---
title: "How thermal simulation helps optimize Meta’s data centers"
description: "Meta built a physics-based (gray box) thermal simulator of its data center cooling and HVAC systems, using Modelica and the Control Description Language, so control policies can be tested without risking live facilities."
url: "https://swe.quest/articles/how-thermal-simulation-helps-optimize-meta-s-data-centers-0a7189ef32c13c13"
canonical: "https://engineering.fb.com/2022/09/14/data-center-engineering/data-centers-meta-thermal-simulation-optimization/"
source: "Meta Engineering"
published: "2022-09-14"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["datacenters","scientific-computing"]
---

# How thermal simulation helps optimize Meta’s data centers

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-09-14, 6 min read, Case study. Original: [https://engineering.fb.com/2022/09/14/data-center-engineering/data-centers-meta-thermal-simulation-optimization/](https://engineering.fb.com/2022/09/14/data-center-engineering/data-centers-meta-thermal-simulation-optimization/)

## Summary

Meta built a physics-based (gray box) thermal simulator of its data center cooling and HVAC systems, using Modelica and the Control Description Language, so control policies can be tested without risking live facilities. Unlike models trained on sensor data, it generalizes to extreme and hypothetical conditions and to unbuilt sites, and it runs far faster than CFD. Fed only outside conditions, set points, fan airflow and server load, it reproduced a data hall's response to the February 2021 Texas winter storm with 0.5˚F mean absolute error in supply air temperature and no drift. Across 24 random 2021 dates the error was 1.3˚F. Next steps include predicting energy and water use and coupling the simulator with reinforcement learning and model predictive control.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Datacenters](https://swe.quest/tags/datacenters.md) (Infrastructure)
- [Scientific computing](https://swe.quest/tags/scientific-computing.md) (Domains)

## Keywords

Modelica, Control Description Language, model predictive control, computational fluid dynamics, reinforcement learning

## Related posts

- [Simulator-based reinforcement learning for data center cooling optimization](https://swe.quest/articles/simulator-based-reinforcement-learning-for-data-center-cooling-optimization-a48b89097c384f75.md): Meta Engineering · 2024-09-10 · Medium · 8 min read · Datacenters, Machine learning, Cost optimization
  Meta uses an offline, simulator-based reinforcement learning agent to set the supply airflow setpoint in its outside-air, evaporatively cooled data centers.
- [How Meta Is Leveraging AI To Improve the Quality of Scope 3 Emission Estimates for IT Hardware](https://swe.quest/articles/how-meta-is-leveraging-ai-to-improve-the-quality-of-scope-3-emission-estimates-f52a91d10814f7ff.md): Meta Engineering · 2025-10-14 · Easy · 10 min read · LLMs, Datacenters, Hardware, Machine learning
  Meta estimates embodied (Scope 3) carbon for hundreds of millions of data center hardware components by combining product carbon footprints (PCFs), parameterized models and cost-based estimates, ranking each by data quality and rolling them up to the rack level.
- [Design for Sustainability: New Design Principles for Reducing IT Hardware Emissions](https://swe.quest/articles/design-for-sustainability-new-design-principles-for-reducing-it-hardware-7a0bbb9a3951b58a.md): Meta Engineering · 2025-10-14 · Easy · 11 min read · Datacenters, Hardware
  Meta's Design for Sustainability guidelines target Scope 3 emissions from data center IT racks through modular rack design, reuse and retrofitting, lower-carbon materials, longer hardware life, dematerialization and supplier engagement.
- [How Meta trains large language models at scale](https://swe.quest/articles/how-meta-trains-large-language-models-at-scale-c827e36c67bd0ee6.md): Meta Engineering · 2024-06-12 · Easy · 6 min read · Model training, Networking, Hardware, Datacenters, Distributed systems
  Training LLMs at Meta shifted workloads from many small recommendation jobs to a few enormous GPU jobs, forcing changes across hardware, data center layout, reliability, networking and storage.
- [Meta’s Infrastructure Evolution and the Advent of AI](https://swe.quest/articles/meta-s-infrastructure-evolution-and-the-advent-of-ai-5db1ff27f9423ca7.md): Meta Engineering · 2025-09-29 · Easy · 17 min read · Datacenters, Model training, Hardware, Scaling, Distributed systems
  Meta's infrastructure grew from a LAMP stack with per-university databases to a global fleet of millions of machines.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
