1. Introduction
The escalating threat of global warming imposes a strict limit on our carbon budget [
1,
2]. Reaching net zero CO
2 emissions demands that we be more conscientious than ever about our power generation and consumption and has given rise to smart, integrated energy systems. Across the globe, space heating and cooling consume more than half of our household energy usage [
3,
4,
5]. Among these systems, district heating (
Figure 1), which distributes heat from a central heat source to consumers through a system of pipes, is a widely adopted approach. But it remains heavily reliant on fossil fuels like coal and natural gas. In China, for instance, a staggering 90% of district heating energy comes from burning fossil fuels [
6]. Diversifying the energy sources that feed district heating systems can make a significant contribution to reducing our global carbon footprint [
7]. Optimizing the efficiency of district heating networks offers a double benefit in lowering greenhouse gas emissions. It does so by conserving energy and expanding our ability to integrate clean energy sources into these networks [
8,
9,
10].
A crucial step towards achieving optimized heating efficiency is to model and simulate the temperature profile of heating networks accurately and in a timely manner. Previous works on this subject include a variety of numerical methods, such as finite element [
11], plug flow [
12,
13], steady-state [
14,
15], dynamic [
16,
17], and the characteristics method [
18,
19]. However, a common drawback of these numerical methods—and of solving differential equations in general—is their sensitivity to details of the method itself, the size of the steps taken, and even minute changes in local conditions. For example, when a small dip in one power supply’s output results in a dramatic shift in the stability of the network’s temperature solution, one needs to discern a real chaotic regime from a numerical artifact. To make this task more challenging, these numerical methods often lack transparency when it comes to showing cause and effect across different parts of the system. To see how a user’s heater affects the temperature experienced by other users, one would need to rewrite the entire network’s conditions and solve the problem all over again. Intuitively, however, we should be able to predict this effect simply by knowing the flow through the pipes and the baseline temperature profile, assuming all else stays the same. Furthermore, when multiple users adjust their heaters at different times, we would expect the combined effect to be integrated in a way that aligns with the timestamps of the events.
Central to field theory in physics, Green’s function offers an elegant and effective way to solve partial differential equations. In describing the concept of a field, it is most famously used to solve equations in electrodynamics [
20]. In modern physics, Green’s functions have also proven to be a powerful tool for understanding electronic systems, including many-body systems like superconductors [
21].
A key advantage of Green’s functions is that they present solutions in a causal form. When using Green’s function methods to solve a partial differential equation, we first solve the homogeneous equation, which describes a uniform spacetime with no source or drain of the field. Then we solve the inhomogeneous equation with an impulse source, hence determining the Green’s function. Once the Green’s function is obtained, the full solution to the differential equation is obtained by integrating over all sources and sinks of the field. In real-world problems, this approach not only provides a clear picture of the causal relationships between the source and the field but also reduces computational complexity.
Green’s functions offer an intuitive framework for visualizing how heating impulses propagate through a network over time, as depicted in
Figure 1, making them particularly well-suited for solving heat conduction problems [
22,
23,
24,
25]. The limited application of Green’s functions to district heating network analysis may stem from the conceptual challenge of treating temperature as a field. Fundamentally, temperature is a statistical property of an ensemble of excitations rather than a conventional field or excitation in itself. However, the differential equation it obeys in the context of heat propagation and diffusion aligns with that of a scalar field, with heat sources and drains acting as its charges. In a district heating system, the dynamic changes in temperature at each point in the network are controlled by the inputs from heaters and users. By viewing temperature as a scalar field, we can gain valuable insights into how it responds to various triggers. Furthermore, since the differential equation governing temperature is linear, individual solutions can be linearly superimposed. As a result, the final temperature distribution is obtained by integrating the contributions from all inputs across the network [
22].
In this paper, we introduce a novel framework for solving district network heating problems by leveraging the power of Green’s functions. We begin by investigating the heat conduction equation within a flowing medium subject to heat dissipation. We derive solutions for both homogeneous and inhomogeneous cases, incorporating boundary conditions that reflect the network topology. These analytical solutions serve as building blocks for modeling integrated heating networks. To demonstrate the effectiveness of this approach, we apply it to two model systems. By employing the Green’s function method for district heating network computations, we achieve both accurate and computationally efficient solutions for the system’s temperature distribution. Through reasonable approximations, we can derive analytical solutions for even highly complex problems, providing deeper insights into heating system dynamics while streamlining the modeling process.
The remainder of the paper is organized as follows. In
Section 2, we introduce the Green’s function method and present analytical Green’s functions of the heat conduction equation under different boundary conditions. In
Section 3, we present two numerical examples, illustrating temperature distribution calculations using the Green’s function method, along with a comparison to the finite element method in terms of both accuracy and computational efficiency.
By promoting a new perspective that treats temperature as a field, this work sheds light on how concepts from field theory can enhance the simulation and optimization of complex energy networks. As such, this approach not only equips the energy community with a novel computational method but also introduces a powerful conceptual tool, paving the way for further advancements in the field of integrated energy systems.
2. Green’s Function of the Heat Conduction Equation
2.1. Introduction to the Green’s Function Method
The Green’s function method constitutes a rigorous mathematical framework for solving inhomogeneous partial differential equations (PDEs). This approach enables the construction of complete solutions through the superposition of responses to impulsive excitations. Mathematically, the Green’s function is the solution to a PDE driven by Dirac delta source terms such as . Physically, it is the response of the system at point and time induced by a unit impulse applied at position and instant .
For instance, for the heat conduction equation for water in a one-dimensional pipe:
the Green’s function
is defined as the solution to the equation
under specific boundary conditions. Here
,
,
,
, and
denote the temperature, flow velocity, density, specific heat capacity, and thermal conductivity of water, respectively, while
represents the heat source power per unit volume. The Dirac delta functions
and
at the right-hand side describe an instantaneous point source located at position
and time
.
Once the Green’s function
of the equation is obtained, the solution to the original PDE under an arbitrary heat source
can be constructed through integrals. With the initial temperature distribution
and heat source
, the solution to Equation (1) is expressed as:
Here, the first integral term describes how the initial temperature distribution evolves over time, while the second double integral term reflects contributions from the heat source
. This formulation elegantly separates the effects of the initial state and the external heat source, providing a clear and systematic framework for analyzing the system’s temperature evolution.
2.2. Heat Conduction Equation for a 1D Cylindrical Pipe with a Steady Flow Velocity
Depicting the dynamics of a district heating system requires consideration of both fluid motion and heat transfer processes. However, Equation (1) does not account for the effects of water flow within the pipeline and, therefore, is inadequate.
During the heating process, the average velocity
of the water flow is generally maintained constant. Under this steady-flow condition, the heat conduction equation for a one-dimensional (1D) pipeline can be obtained by considering energy conservation [
8]:
On the left-hand side of Equation (4), the time-derivative term,
, describes the rate of change of the internal energy density over time. The spatial-derivative term,
, accounts for the advection of internal energy density due to the water flow. The third term,
, is the heat diffusion term, representing heat conduction driven by the temperature gradient.
The heat source term
on the right-hand side of Equation (1) describes the energy exchange between the water and the environment. It consists of three components: a positive term
, representing external heating, such as heating from electric boilers; a negative term
, corresponding to the heat load from users; and a dissipation term
, describing heat loss from the water to the environment. Here,
is the heat dissipation coefficient of the pipeline,
is the environmental temperature, and
is the cross-sectional area of the pipeline. The dissipation term
is a linear function of temperature. Since
is not a controllable parameter during the heating process, it is convenient to move it to the left-hand side of the equation and no longer treat it as a source term, i.e., letting
. This yields the modified heat conduction equation:
Traditional dynamic simulation approaches typically solve Equation (5) using numerical methods, which often suffer from high computational complexity and cost, and are thus cumbersome for practical use. To address these limitations, in this work, we employ the Green’s function method to solve Equation (5).
However, the complexity of Equation (5) poses significant challenges for directly deriving its Green’s function. Given that the Green’s function for Equation (1) has known analytical solutions under various common boundary conditions, we first apply a mathematical transformation to recast it into a form analogous to Equation (1). This transformation simplifies the problem and allows us to address the additional terms in Equation (5), such as the advection and dissipation terms, using the well-established analytical framework for Equation (1).
To achieve this, we introduce a new function
to replace the temperature distribution
. The function
is defined by the relationship
where
and
Substituting Equations (6)–(8) into Equation (2) gives the governing equation for
:
The mathematical transformation above involves two key mappings: the temperature distribution
is mapped to
, and the heat source term
is mapped to
.
Equations (1) and (9) have identical mathematical forms, so their Green’s functions are also the same, which enables the calculation of using the Green’s function method and subsequently recovers the original temperature distribution using Equation (6). This approach not only simplifies the computational process but also provides a more intuitive framework for understanding the temperature dynamics in the system.
2.3. Green’s Function of Heat Conduction Equation Under Different Boundary Conditions
To solve heating problems using the Green’s function method, the first step is to determine the Green’s function of the heat conduction equation (Equations (1) and (9)) under specified boundary conditions.
In practical applications, two primary boundary conditions are typically considered: periodic boundary conditions and fixed endpoint temperature boundary conditions for semi-infinite pipes. The periodic boundary condition is employed to model closed-loop heating systems with prescribed external heat sources, as demonstrated in the example in
Section 3.1. Meanwhile, the fixed endpoint temperature boundary condition is utilized to model heating pipelines with a controlled inlet temperature, as illustrated in the example in
Section 3.2.
2.3.1. Periodic Boundary Condition
The periodic boundary condition is particularly suited for modeling closed-loop pipeline systems. For a pipeline of total length , the periodic condition enforces and at the connection point. These constraints result in a periodic Green’s function with the same period , reflecting the physical reality that thermal disturbances propagate cyclically through the closed-loop pipeline.
For the conventional heat conduction equations like Equations (1) and (9), the Green’s function under periodic boundary conditions admits an analytical solution, expressed as
2.3.2. Semi-Infinite 1D Pipe with a Fixed Endpoint Temperature
In district heating systems, controlling the inlet temperature of pipelines is a widely adopted operational strategy. In such cases, it is necessary to model the pipeline using fixed endpoint temperature boundary conditions for a semi-infinite domain. When the endpoint temperature is fixed at
, the Green’s functions for Equations (1) and (9) can be derived using the method of images. The principle of this method is to introduce a virtual negative image source in the
region for each real heat source in
, which ensures that the boundary condition
is satisfied. The resulting Green’s function for Equations (1) and (9) is
The Green’s function given by Equation (11) can also be used to calculate the temperature distribution under non-zero boundary conditions
. In this case, we define a new variable
, which satisfies
. Using Equations (3) and (11),
is given by
The original temperature distribution is then recovered via
:
2.4. High-Flow-Velocity Approximation
2.4.1. Transient States
In the previous sections, we analytically derived the Green’s functions of Equation (5) under both the periodic boundary condition (Equation (10)) and the fixed endpoint temperature condition (Equation (11)). These results provide analytical solutions for heat transfer in 1D pipelines with steady flow velocities.
However, in engineering applications, the flow velocity in main pipelines typically exceeds 1 m/s. Under such high-flow conditions, the contribution of advection to heat transfer significantly outweighs that of thermal diffusion. As a result, the heat diffusion term,
, can be safely neglected [
13,
26,
27]. With this approximation, Equation (5) is simplified to:
Equation (14) is a first-order PDE, which is much simpler than Equation (5). To solve for its Green’s functions, we first introduce the relative temperature
to eliminate the inhomogeneous term
on the left-hand side of the equation:
The Green’s function for Equation (15) under the periodic boundary condition
can then be obtained using Fourier series expansion:
This expression allows for the calculation of the temperature distribution in a closed-loop pipeline of total length
.
To simulate semi-infinite pipelines with given inlet temperatures, we also need the Green’s function for Equation (15) under the boundary condition
. The Green’s function is given by
where
and
.
In the examples presented in
Section 3, we will use Equations (16) and (17) for numerical calculations.
2.4.2. Steady State
Calculating the temperature distribution using Equation (3) requires knowledge of the initial temperature distribution . However, in many practical applications, the system is often assumed to be in a steady state at , and is not directly known. In such cases, the initial temperature distribution must be determined by solving the steady-state equation.
A steady state refers to a condition where the system remains unchanged over time. In this state, all heat source terms are time-independent, and the temperature distribution
is also time-invariant. Under steady-state conditions, Equation (15) simplifies to:
Equation (16) is a first-order partial differential equation in and can also be solved using the Green’s function method. In the following, we present the Green’s functions for Equation (16) under both periodic boundary conditions and fixed endpoint temperature boundary conditions.
Under periodic boundary conditions with a period of
, the Green’s function for Equation (16) is obtained as
With this Green’s function, the steady-state temperature distribution
is given by
Under the boundary condition of a fixed endpoint temperature, the Green’s function for Equation (16) is given by
where
is the Heaviside step function, ensuring that
when
.
For a fixed endpoint temperature,
,
can be obtained using the Green’s function in Equation (19) as
Here,
consists of two non-constant terms: The exponentially decaying term represents the influence of the boundary temperature in the presence of dissipation, while the integral term accounts for the impact of the heat source on the steady-state temperature distribution.
It is straightforward to verify that the solution given by Equation (20) satisfies the required boundary conditions. As , , ensuring the correct endpoint temperature, and as , , indicating that the temperature asymptotically approaches the ambient temperature.
In the examples presented in
Section 3, we will use the Green’s functions given by Equations (17) and (19) for computing the steady-state temperature distributions.
4. Conclusions
In this work, we introduced a Green’s-function-based approach for simulating the temperature distribution in district heating networks. By transforming the heat conduction equation into a solvable form, we derived the analytical Green’s functions under both periodic and fixed endpoint temperature boundary conditions, establishing a unified mathematical foundation for analyzing thermal propagation in complex pipeline networks.
The methodology was systematically validated through two building-block examples: a single-loop heating system and a multi-user heating network with distributed thermal loads. In both scenarios, the Green’s function approach produced results consistent with those obtained from finite element simulations, demonstrating its high accuracy and reliability. In addition, benchmark comparisons showed that, under identical hardware conditions, the Green’s function method required only about one-fifth of the computation time compared to the finite element method, confirming its outstanding computational efficiency.
Compared to traditional numerical methods, the Green’s function method offers key advantages, including reduced computational complexity and a clear causal relationship between heat sources and temperature distributions. This approach not only improves the efficiency of heating network simulations but also provides deeper insights into system dynamics. Our findings highlight the potential of Green’s functions as a powerful analytical framework for optimizing district heating systems and integrating renewable energy sources.
Future work will focus on extending this method to more complex heating networks, incorporating time-dependent boundary conditions, and exploring its applications in practical energy management scenarios.