Preprint
Article

A Fluid Dynamic Approach To Model And Optimize Energy Flows In Networked Systems

Altmetrics

Downloads

103

Views

23

Comments

0

A peer-reviewed article of this preprint also exists.

Submitted:

31 March 2024

Posted:

02 April 2024

You are already at the latest version

Alerts
Abstract
In this paper the attention is focused on the analysis and the optimization of energy flows in networked systems via a fluid-dynamic model. In particular, a cost functional that represents a term proportional to the kinetic energy of an energy system is studied. First, the functional is optimized for a simple network having a unique node, with an incoming arc and two outgoing ones. The optimization deals with distribution coefficients and explicit solutions are found. Then, the global optimization is obtained using the local optimal parameters at the various nodes of the system. Considering the case study of an energy hub, interesting results are obtained for the whole network, proving the correctness of the proposed approach.
Keywords: 
Subject: Computer Science and Mathematics  -   Applied Mathematics

MSC:  35L65; 49J20; 76N25

1. Introduction

In the context of energy sectors, a primary importance is given to problems of energy conversion/management ([1,2]), as well as possible interactions between renewable sources and environment (see [3] for power planning, [4] for control issues and [5] for a survey). This occurs especially in cases of multi-generation systems, useful to produce electricity as well as hydrogen, heat and cooling power, with consequent advantages for high efficiencies and reduced CO2 emissions.
In this direction, scientific communities are focusing on possible models for energy networked systems, with emphasis on optimization problems that arise naturally in daily situations, see [6] and [7] for possible applications as well as [8] for a complete vision. In particular, energy hubs are a class of multi-generation systems where multiple energy carriers are converted, stored and dissipated, [9,10].
In this paper, following the ideas proposed in [11] and [12], an energy hub, designed in Waterloo, Canada, is modeled and energy flows at its nodes are optimized. Indeed, this problem is already considered in [11], where the authors provide a control-oriented methodology, based on a mixed integer dynamic model and an optimal scheduling (see also [13]) which is robust to uncertainties in specific scenarios. In this case, the main discussion is different, as we want to guarantee a robust optimization focusing on this fundamental issue: a description of the space-time behavior of the energy flows in order to explicitly mitigate the power fluctuations that could affect the correct and reliable energy system operation.
In order to achieve this aim, we deal with the conservation of energy flows, a situation that should be considered in most cases involving multi-generation systems. This requirement leads to a continuous model that foresees conservation laws, i.e. Partial Differential Equations (PDEs), see [14]. In particular, we use an approach taken from road traffic and suggested by the Lightwill-Whitham-Richards (LWR) equation ([15,16]), enriched by junction traffic assignments so as to model with real networks ([17,18,19]). The outcome is a model that reproduces the main features of the car traffic (queues formation and backward propagation), and that, in cases of energy systems, offers the possibility of analyzing energy flows in each part of the network and for every time. In spite of the apparent simplicity of the LWR equation, this network approach for energy systems represents, to the best knowledge of the authors, a good compromise to focus on scenarios that are not always in the steady states. Indeed, the superiority of the LWR model is also due to results of existence and uniqueness of solutions for large networks, guaranteeing a solid analytical theory for numerical approximations and optimization problems (similar drawbacks are also described for different types of PDEs in [20] and [21] and for energy issues in [22]). For instance, in [23], efficient numerical algorithms are described to treat complex networks in acceptable computational times. In particular, this is the main issue to address optimization problems, which otherwise would be computationally too expensive. Similar results are given in [24] and [25]; [26] and [27] deal with possible optimization techniques via genetic algorithms, while [28] considers optimization and control problems through machine learning techniques.
Finally, the choice of the LWR approach for energy systems is motivated by three main reasons:
  • Modeling. The LWR model for networks allows the reproduction of features dealing with space-time behaviors of energy flows. The same does not happen for richer fluid dynamic models (see, for instance, [29]) and/or static models, which consider only steady states.
  • Analysis. As for the theory on networks, the LWR model has fundamental and detailed results. To the best knowledge of the authors, there are not similar and complete theoretical developments for other models, especially of fluid dynamic type.
  • Numerics and Optimization. The robust theory for LWR also gives rise to fast numerical algorithms (an example is in [30]), which allow to consider complicated optimization strategies.
Following the just described approach, an energy hub is modeled with a finite set of arcs, that meet at some nodes, i.e. junctions. Space-time evolutions of energy flows within the arcs are found using conservation laws. The dynamics at junctions is solved via linear programming problems that consider the maximization of the through flows under constraints that foresee: bounded incoming and outgoing flows; distribution coefficients that determine how flows on incoming arcs distribute to outgoing ones.
Once assumed the model for energy flows, we consider a cost functional to estimate a term proportional to the kinetic energy on the energy hub. In particular, we want to maximize the functional with respect to (w.r.t.) distribution coefficients at nodes. Unfortunately, as it is difficult to foresee a-priori an exact evolution of energy flows on the hub, the analytical optimization of the cost functional is not possible. For this reason, we adopt a strategy that consists of the following three steps (a similar technique is used in [31]):
  • For network topologies with a unique node and every initial data, compute the optimal distribution coefficients. Then, assuming infinite length arcs so as to avoid boundary data effects, consider the asymptotic solution.
  • For generic networks with complex topologies, use the (locally) optimal distribution coefficients at each node, updating the values of the parameters at every time instant through the actual flows on the arcs near the junction.
  • Using simulations, verify the performances obtained by (locally) optimal distribution coefficients through comparisons with random choices of parameters.
Notice that the first step is non-trivial even for simple nodes. In fact, we deal with a hybrid problem, as continuous flows are influenced by discrete variables, such as the distribution coefficients at junctions. For this reason, and also considering the topology of the energy hub under discussion, we focus on the particular case of nodes of 1 × 2 type, i.e. one incoming arc and two outgoing ones. The second step is done for the energy hub described in [11], while step three considers two different types of distribution parameters: (locally) optimal, according to the step one, and random, i.e. the coefficients are chosen randomly at the beginning of the simulation and then are kept constant. In particular, numerical approximations for simulations are obtained via some methods described in [32,33] and [34].
Considering that the optimization approach considers a local optimization in the asymptotic state, the obtained results are very good: using optimal parameters, the behavior of the cost functional is better than the ones achieved using random distribution coefficients. Indeed, the approach is also quite robust, as indicated by a further analysis of the asymptotic values of the cost functional in random cases and in the optimal situation. This also indicates that the followed approach is suitable for the energy hub control, as well as for a possible scheduling of resources over a long time interval.
The paper has the following structure. Section 2 presents a model for energy flows on networks. The subsequent Section 3 is devoted to the optimization results on energy networks via the cost functional described above. Section 4 provides an example of a real energy hub designed in Waterloo, Canada. Subsection 4.2 presents some simulations of energy transitions over the energy hub under discussion for two possible choices of distribution coefficients: optimal and random. Conclusions (Section 5) end the paper.

2. Theoretical Foundations

An energy network is described by a couple I , J , where: I = I n n = 1 , , N is the set of arcs I n , n = 1 , , N , each one represented by a n , b n R ; J = j k k = 1 , , J is the collection of nodes j k , k = 1 , , J .
Each arc I n I , n = 1 , , N , is described by:
  • a density function ρ n : = ρ n t , x 0 , ρ max n , t , x 0 , + × a n , b n , where ρ max n is the maximal allowed density for arc I n ;
  • a velocity function v n : = v n ρ n 0 , v max n , where v max n indicates the maximal velocity for particles travelling on arc I n ;
  • a flux function defined as f n ρ n : = ρ n v n .
The three above quantities have the following interpretation: ρ n is the energy density at time t in the point x of arc I i , v n is the average velocity of each energy particle, while f n ρ n is the flux associated to ρ n . Notice that, as we are dealing with macroscopic quantities, particles are assumed to be of various type. Such an assumption is essential for the case study, where different quantities, that deal with gas, heat, electricity, and so on.
For I n I , n = 1 , , N , the evolution of ρ n t , x follows the Lighthill-Whitham-Richards (LWR) model ([15,16]), expressed by the conservation law:
t ρ n + x f n ρ n = 0 .
Without loss of generality, choosing, ∀ n = 1 , , N , ρ max n = ρ max , v max n = v max and a decreasing velocity function v n ρ n = v max 1 ρ n ρ max , ρ n 0 ρ max , the flux function f ρ n : = f n ρ n simply reads as:
f ρ n = v max ρ n 1 ρ n ρ max , ρ n 0 , ρ max .
The evolution at a node j k J , k = 1 , , J , obeys Riemann Problems (RPs), i.e. Cauchy Problems that have constant initial data for incoming and outgoing arcs.
Fix a node j k of r × s type, namely r incoming arcs I φ k , φ = 1 , , r , and s outgoing ones I ψ k , ψ = r + 1 , , r + s , and indicate by ρ 0 k = ρ 1 , 0 k , , ρ r , 0 k , ρ r + 1 , 0 k , , ρ r + s , 0 k 0 , ρ max r + s the initial datum at j k .
Definition 1.
For the node j k a Riemann Solver (RS) is a function
R S : 0 , ρ max r × 0 , ρ max s 0 , ρ max r × 0 , ρ max s
such that
ρ i k ( t , x ) : = ( ρ i , 0 k , ρ ^ i k ) , I i k , i = 1 , , r , ( ρ ^ i k , ρ i , 0 k ) , I i k , i = r + 1 , , r + s ,
is a weak solution [14] of (1) with initial datum ρ i , 0 k and boundary condition ρ ^ i k , and such that furthermore: (C1) R S R S ρ 0 k = R S ρ 0 k ; (C2) on arc I φ k , φ = 1 , , r , the wave ρ φ , 0 k , ρ ^ φ k has negative speed, and on arc I ψ k , ψ = r + 1 , , r + s , the wave ρ ^ ψ k , ρ ψ , 0 k has positive speed.
Intuitively, for the assigned initial datum ρ 0 k at j k , a RS associates a vector ρ ^ k = ρ ^ 1 k , , ρ ^ n k , ρ ^ n + 1 k , , ρ ^ n + m k 0 , ρ max r + s such that on I i k , i = 1 , , r + s , ρ i k is a solution of (1) with initial datum ρ i , 0 k and boundary condition ρ ^ i k . More precisely, for φ { 1 , , r } and ψ { r + 1 , , r + s } , the solution consists of the wave ρ φ , 0 k , ρ ^ φ k on I φ k and the wave ρ ^ ψ k , ρ ψ , 0 k on I ψ k .
If r s , a possible RS at the node j k is constructed using the rules (see [18]):
(A) 
The traffic of particles distributes at j k according to some coefficients, collected in a matrix A j k = α ψ , φ j k , φ = 1 , , r , ψ = r + 1 , , r + s , 0 < α ψ , φ j k < 1 , ψ = r + 1 r + s α ψ , φ j k = 1 . The φ th column of A j k represents the percentages of particles that, from I φ k , distribute to the outgoing arcs;
(B) 
The flux through j k is maximized respecting rule (A).
If r > s , beside rules (A) and (B), a further criterion is needed. For instance, if j k is of r × 1 type, a possible rule is the following:
(Cr×1) 
Not all particles enter the outgoing arc, and assume that Q is the quantity that can do it. Then, p φ k Q particles come from I φ k to cross the arc junction, where 0 < p φ k < 1 , φ = 1 r p φ k = 1 , is the priority parameter of I φ k , φ = 1 , , r .
Remark 1.
Notice that, if r = 1 and s = 2 , i. e. the junction j k is of 1 × 2 type, the matrix A j k has only the parameters α k : = α 2 , 1 j k and 1 α k : = α 3 , 1 j k . If r = 2 and s = 1 , i. e. j k of 2 × 1 type, the priority parameters are p k : = p 1 k and 1 p k : = p 2 k , while A j k = 1 , 1 .
From rules (A), (B) and (C) (this last one if necessary), for a junction j k of r × s type, with initial datum ρ 0 k and the flux function (2), the solution ρ ^ k to the RP at j k is as follows. Consider the function ω : 0 , ρ max 0 , ρ max that, for each arc I i k , i = 1 , , r + s , satisfies the properties:
  • f ω ρ i k = f ρ i k ρ i k 0 , ρ max ;
  • ω ρ i k ρ i k ρ i k 0 , ρ max ρ max 2 .
Then, for I φ k , φ = 1 , , r :
  • ρ ^ φ k ρ φ , 0 k ω ρ φ , 0 k , ρ max if 0 ρ φ , 0 k ρ max 2 ;
  • ρ ^ φ k ρ max 2 , ρ max if ρ max 2 ρ φ , 0 k ρ max .
For I ψ k , ψ = r + 1 , , r + s :
  • ρ ^ ψ k 0 , ρ max 2 if 0 ρ ψ , 0 k ρ max 2 ;
  • ρ ^ ψ k ρ ψ , 0 k 0 , ω ρ ψ , 0 k if ρ max 2 ρ ψ , 0 k ρ max .
From ρ ^ φ k and ρ ^ ψ k , we get the maximal flux values on I φ k , φ = 1 , , r and I ψ k , ψ = r + 1 , , r + s , i. e.:
γ φ k , max = f ρ φ , 0 k , if   0 ρ φ , 0 k ρ max 2 , f ρ max 2 , if   ρ max 2 ρ φ , 0 k ρ max ,
γ ψ k , max = f ρ max 2 , if   0 ρ ψ , 0 k ρ max 2 , f ρ ψ , 0 k , if   ρ max 2 ρ ψ , 0 k ρ max .
Remark 2.
Notice that such an approach allows to define solutions to the Cauchy problem on the network I , J via a wave-front tracking algorithm (see [17,18]). Refer to Appendix A for details about the construction of solutions.

3. Energy Optimization

Consider an energy network I , J as described in Section 2. For the optimization of the network performances, we define the cost functional:
E ¯ t : = n = 1 N I n v n ρ n t , x d x 2 ,
that represents a term proportional to the kinetic energy on the whole network.
Considering bounded ρ n t , x , n = 1 , , N , the aim is to maximize E ¯ t w.r.t. the distribution coefficients of matrices A j k j k J .
As the solution of such optimization control problem involves space-time variables and the optimization itself refers only to 1 × 2 nodes for the energy hub described in Section 4, we consider an approach defined by the steps:
  • Consider a node j k J of 1 × 2 type (one incoming arc, I 1 k , and two outgoing arcs, I 2 k and I 3 k ) for which only one distribution coefficient α k is considered, see Remark 1. Assuming an initial datum ρ 1 , 0 k , ρ 2 , 0 k , ρ 3 , 0 k at j k , fix the local cost functional:
    E j k t : = m = 1 3 I m k v m ρ m k t , x d x 2 .
  • For a time horizon 0 , T , with T quite big, assume the traffic distribution coefficient α k as control, and maximize E j k T w.r.t. α k .
  • Construct the optimal solution of the overall network by localization, i.e by using the single optimization solutions at each node j k J of 1 × 2 type.
For step 2, assume the conditions:
  • T 1 : γ 3 k , max γ 1 k , max 2 < γ 1 k , max γ 2 k , max ;
  • T 2 : γ 2 k , max < γ 1 k , max 2 < γ 1 k , max γ 3 k , max ;
  • T 3 : γ 2 k , max < γ 3 k , max < γ 1 k , max ;
  • T 3 A : γ 1 k , max γ 3 k , max γ 2 k , max ;
  • T 3 B : γ 1 k , max γ 3 k , max < γ 2 k , max γ 1 k , max 2 ;
  • T 4 : γ 3 k , max < γ 2 k , max < γ 1 k , max ;
  • T 5 : γ 1 k , max 2 γ 1 k , max γ 3 k , max < γ 2 k , max ,
and define:
g u v k , max : = γ u k , max γ v k , max .
We get the following:
Theorem 1.
Consider a node j k J of 1 × 2 type, and assume T sufficiently big. Then, E j k T is maximized for the value α k o p t (for some cases, the optimal control does not exist and it is approximated through a positive and small constant ε):
α k o p t = 1 g 31 k , max + ε , if   T 1 h o l d s ; g 21 k , max , if   T 2   i s   s a t i s f i e d ; 1 + g 32 k , max 1 , if   T 3 and T 3 A   b o t h   h o l d ; g 21 k , max ε , if   T 3 and T 3 B   a r e   b o t h   t r u e ; 1 + g 32 k , max 1 + ε , if   T 3 A and T 4   b o t h   h o l d ; 1 g 31 k , max ε , if   T 5   i s   s a t i s f i e d ; 1 2 , o t h e r w i s e .
Proof. 
Assume that v max = ρ max = 1 . Other cases for which v max 1 and/or ρ max 1 lead to the same results. Fix a node j k J of 1 × 2 type and T quite big. Considering the solution to the RP at j k , E j k T writes as:
E j k T = 3 s 1 k 1 4 γ ^ 1 k s 2 k 1 4 α k γ ^ 1 k s 3 k 1 4 1 α k γ ^ 1 k ,
where coefficients s 1 k and s ψ k , ψ = 2 , 3 , are:
s 1 k = + 1 , if   ρ 1 , 0 k 1 2 , or   ρ 1 , 0 k < 1 2 and γ 1 k , max > min γ 2 k , max α k , γ 3 k , max 1 α k , 1 , if   ρ 1 , 0 k < 1 2 and γ 1 k , max min γ 2 k , max α k , γ 3 k , max 1 α k ,
s ψ k = + 1 , if   ρ ψ , 0 k > 1 2 and γ ψ k , max α ψ min γ 1 k , max , γ ψ k , max α ψ , ψ ψ , 1 , if   ρ ψ , 0 k 1 2 , or   ρ ψ , 0 k > 1 2 and γ ψ k , max α ψ > min γ 1 k , max , γ ψ k , max α ψ , ψ ψ ,
with
α ψ = α k , if   ψ = 2 , 1 α k , if   ψ = 3 .
For simplicity, from now on we drop the dependence on j k and T from E . As the solution to the RP at j k depends on α k , we have various cases. Here, for seek of brevity, we consider only two of them, as the proof for other cases is similar.
Assume γ 1 k , max < γ 3 k , max < γ 2 k , max . In this case, γ ^ 1 k = γ 1 k , max , s 1 k = s 2 k = s 3 k = 1 and we have to maximize:
E = 3 + 1 4 γ 1 k , max + 1 4 α k γ 1 k , max + 1 4 1 α k γ 1 k , max 2 ,
defined for α k 0 , 1 . We get that:
E α k = 4 E γ 1 k , max Φ 1 α k Φ α k ,
where Φ α k is:
Φ α k : = 1 1 4 α k γ 1 k , max .
Since
E α k 0 α k 1 2 ,
then α k o p t = 1 2 .
Consider now the case γ 3 k , max < γ 1 k , max < γ 2 k , max . We have that:
  • if 0 < α k 1 g 31 k , max , γ ^ 1 k = γ 3 k , max 1 α k and s 1 k = s 3 k = + 1 , s 2 k = 1 ;
  • if 1 g 31 k , max < α k < 1 , γ ^ 1 k = γ 1 k , max and s 1 k = s 2 k = s 3 k = 1 .
Hence, (5) becomes:
E = E 1 , 0 < α k 1 g 31 k , max , E 2 , 1 g 31 k , max < α k < 1 ,
where:
E 1 = 3 1 4 γ 3 k , max 1 α k + 1 4 α k γ 3 k , max 1 α k 1 4 γ 3 k , max 2 ,
E 2 = 3 + 1 4 γ 1 k , max + 1 4 α k γ 1 k , max + 1 4 1 α k γ 1 k , max 2 .
If 0 < α k 1 g 31 k , max , then
E α k = 4 E γ 3 k , max 1 α k 2 Ψ 1 1 α k Ψ α k 1 α k ,
where:
Ψ α k : = 1 1 4 α k γ 3 k , max .
It is possible to verify that E is an increasing function. If 1 g 31 k , max < α k < 1 , E α k is the expression (6). Hence, we conclude that:
  • if 1 g 31 k , max < 1 2 , E is optimized for α k o p t = 1 2 ;
  • if 1 g 31 k , max 1 2 , E has not an optimal value, hence α k o p t is chosen as α k o p t = 1 g 31 k , max + ε , where ε is a positive and small constant.

4. Application Deployment

4.1. Energy Hub Operation Scheduling

To assess the effectiveness of the proposed methodology in the task of solving real operation problems in complex networked systems, the problem of optimal energy flow management of a realistic energy hub is here considered. This is a relevant problem in modern energy systems, where the increasing inter-dependencies between heterogeneous energy infrastructures is introducing new and more complex vulnerabilities, requiring effective modeling and optimization tools aimed at improving the accuracy and the robustness of coordinated control actions. In this context, the large scale deployment for the energy hub could have a strategic role, since it allows improving the energy networks flexibility by providing reliable energy services, such as electricity and heating, by exploiting different combinations of the energy carriers available at the hub inputs. To this aim, a system designed in Waterloo, Canada, for the supply of commercial load, has been analyzed. More details on this system, which is schematically depicted in Figure 1, can be found in [11].
From Figure 1 it is worth noting as the input power flows are the electricity, P E , and the natural gas, P G , while the output power flows are electricity, L E , and heat, L H . Notice that P E is splitted into β 1 P E and β 2 P E , while P G is divided into β 3 P G and β 4 P G . Precisely, β 1 P E and β 2 P E are, respectively, inputs of the Hydrogen Production Plant (HPP) and of the Transformer (T); β 3 P G is input of the Combined Heat Power (CHP), while β 4 P G is input of the Furnace (F). The system works as follows:
  • The subsystem HPP, characterized by electric-hydrogen and heat-hydrogen efficiences η 1 H P P and η 2 H P P , transforms a part of the electricity, β 1 P E η 1 H P P , into hydrogen that feeds the Fuel Cell (FC) and another part, β 1 P E η 2 H P P , into heat.
  • Using the hydrogen-electricity and hydrogen-heat efficiencies η 1 F C and η 2 F C , the subsystem FC transform a part of the hydrogen, β 1 P E η 1 H P P η 1 F C , into electricity and another part, β 1 P E η 1 H P P η 2 F C , into heat.
  • The subsystem T, due to its efficiency η T , has the electricity power flow β 2 P E η T as output.
  • The subsystem CHP, considering the gas-electric and gas-heat efficiencies η 1 C H P and η 2 C H P , transforms a part of natural gas, β 3 P G η 1 C H P , into electricity and another part, β 3 P G η 2 C H P , into heat.
  • Finally, the subsystem F, characterized by its efficiency η F , has output β 4 P G η F , that is heat.
As for the outputs of the energy hub, we simply get that:
L E = β 1 P E η 1 H P P η 1 F C + β 2 P E η T + β 3 P G η 1 C H P ,
L H = β 1 P E η 1 H P P η 2 F C + β 1 P E η 2 H P P + β 3 P G η 2 C H P + β 4 P G η F .
Notice that (7) and (8) are obtained considering some losses that depend on coefficients η 1 H P P , η 2 H P P , η 1 F C , η 2 F C , η T , η 1 C H P , η 2 C H P and η F . Such parameters are usually fixed and, for the topology described in Figure 1, they are the following: η 1 H P P = 0.7 , η 2 H P P = 0.2 , η 1 F C = 0.55 , η 2 F C = 0.4 , η T = 0.98 , η 1 C H P = 0.45 , η 2 C H P = 0.35 , η F = 0.48 . Moreover, note that β 2 = 1 β 1 , β 4 = 1 β 3 , 0 < β 1 < 1 , 0 < β 2 < 1 , hence there is the possibility of choosing how to redistribute incoming flows over the energy hub.
The definition of optimal energy hub operation strategies could follow different directions. An example is described in [11]. In our case, for fixed incoming flows P E and P G , we want to find the optimal coefficients β 1 and β 2 (of nodes with one incoming arc and two outgoing ones) such that the global energy conversion losses are minimized. Obviously, different and more general operation criteria could be defined, without affecting the effectiveness of the proposed methodology.
In order to achieve this aim, we choose to model the energy hub using an approach dealing with conservation laws on networks (an exhaustive overview is in [18]), considering that eventual losses over the system are considered “output” different from L E and L H .

4.2. Numerical Results

This section presents the simulations for the energy hub, represented in Figure 2 as a couple I , J , with I = I n n = 1 , . . , 23 and J = j k k = 1 , . . , 11 , see Section 2. The features of the network in Figure 2 are as follows. External arcs: I 1 , I 5 , I 7 , I 12 , I 13 , I 14 , I 17 , I 19 , I 21 , I 23 . Inner arcs: I 2 , I 3 , I 4 , I 6 , I 8 , I 9 , I 10 , I 11 , I 15 , I 16 , I 18 , I 20 , I 22 . Nodes of: 1 × 2 type, j 1 , j 4 , j 7 , j 9 ; 2 × 1 type: j 5 , j 6 , j 10 , j 11 ; 1 × 3 type: j 2 , j 3 , j 8 .
For simplicity of discussion, from now on we indicate a node j k and its distribution matrix A j k simply by k and A k , respectively; the same with arc I m , named simply m.
Notice that arcs 1 and 14 are the inputs of the systems, while outputs are arcs 13 and 23, indicated, respectively, by O U T 2 and O U T 1.
The performances of the network are evaluated through the cost functional E ¯ t , whose evolution is deeply influenced by the distribution parameters. Indeed, due to the real characteristics of the energy hub, for nodes 2, 3, 4, 8 and 9, distribution matrices A J , J 2 , 3 , 4 , 8 , 9 assume the form:
A 2 = c α 4 , 2 α 5 , 2 α 6 , 2 = c 0.7 0.1 0.2 ,
A 3 = c α 7 , 4 α 8 , 4 α 9 , 4 = c 0.05 0.55 0.4 ,
A 4 = c α 11 , 3 α 12 , 3 = c 0.98 0.02 ,
A 8 = c α 17 , 15 α 18 , 15 α 19 , 15 = c 0.2 0.45 0.35 ,
A 9 = c α 20 , 16 α 21 , 16 = c 0.68 0.32 .
Moreover, always referring to measures on the real hub, priority parameters are all chosen 0.5 for incoming arcs of nodes 5, 6, 10 and 11. Hence, no control is considered for junctions 2, 3, 4, 5, 6, 8, 9, 10 and 11, and the optimization of E ¯ t deals only with the distribution coefficients at nodes 1 and 7 of 1 × 2 type.
As for the numerical construction of E ¯ t , it is necessary a suitable approximation for densities ρ i t , x , i = 1 , , 23 , whose evolution is ruled by equation (1).
In this paper, we apply the Godunov scheme (see [32,33,34]),using a numerical grid with constant space and time sizes, Δ x = 0.0125 and Δ t = 0.5 Δ x , respectively (see subSection 4.4 for details about the computational cost). The network of Figure 2 is simulated in such conditions: time interval of simulation: 0 , T , with T = 150 min ; empty arcs when the simulation starts ( t = 0 ); boundary data of Dirichlet type, equal to 0.3 for arcs 1 and 14 while, for arcs 5, 7, 12, 13, 17, 19, 21 and 23, we choose a Dirichlet boundary data equal to 0.9 .
Notice that typical maximal values for inputs of our hub are 15 MWh and 20 MWh for arcs 1 and 14, respectively. In our case, associating at ρ max = 1 the quantity 15 MWh, we simply get that boundary data 0.3 and 0.9 correspond to 4.5 MWh and 13.5 MWh.
Two different choices of the distribution parameters are assumed for nodes 1 and 7:
  • optimal case: parameters that optimize locally the asymptotic behaviour of E ¯ t , i.e. distribution coefficients that refer to Theorem 1 for junctions 1 and 7. Such type of simulation is useful to test the global performance, starting from analytical results that consider only a part of nodes of the network.
  • random case: parameters at nodes 1 and 7 are chosen in a random way at t = 0 and then are kept constant in 0 , T . A random simulation allows comparisons with network performances obtained via local optimal distribution coefficients.

4.3. Results Discussion

In Figure 3, Figure 4, Figure 5 and Figure 6 we show some simulation results for the energy hub. More precisely, the values of E ¯ t , computed on the whole network, is represented as function of the time.
In particular, the behavior of E ¯ t in the optimal case is compared with the ones obtained via ten different simulation random studies. As for these last cases, Figure 3 and Figure 4 show the first five ones, while Figure 5 and Figure 6 the remaining other ones.
The optimization algorithm for 1 × 2 nodes, which is of local type, can be applied to the complex topology of the energy hub without compromising the possibility of a global optimization. Such a situation is evident in the optimal case for E ¯ t , that is compared to the behaviors in ten different random cases. In Figure 3, Figure 4, Figure 5 and Figure 6, it is shown that the optimal case is always higher than random cases.
Indeed, 100 random cases have been simulated and compared with the optimal behavior for E ¯ t . Table 1 reports the value of E ¯ t in the optimal configuration at T = 150 , i.e. OPTconf T, with the average value (RAND T) of random simulations at T = 150 .
Notice that OPTconf T is, as expected, higher than RAND T, namely the global optimization of local type has a strong robustness. Such result is also represented in Figure 7, where a histogram reports the values of E ¯ t at the final instant T for the random simulation.
Finally, notice that the simulated system has always bounded outputs, as a consequence of the model itself, which deals with limited densities on arcs (see Section 2). In particular, in our case study, the upper limits for arcs 13 and 23 ( O U T 2 and O U T 1) are, respectively, 0.1218 ( 36.54 kWh) and 0.180075 ( 54.0225 kWh).

4.4. Computational Cost

This subsection presents some details about the computational cost for the simulation of the presented energy system. Focus on a network represented by the couple I , J , with I = I n n = 1 , . . , N and J = j k k = 1 , . . , J .
In order to find a suitable numerical approximation in 0 , T for the density functions ρ n t , x , n = 1 , . . , N , on arcs and update of boundary data at nodes, assume that each arc I n , n = 1 , . . , N , has length L n ; space and time grid sizes are, respectively, Δ x n and Δ t n . Using the Godunov method, the computational cost depends on n = 1 N L n Δ x n and k = 1 J T Δ t k for densities and boundary data, respectively.
For simplicity, for the simulation of the described energy hub we consider a constant space grid size Δ x , assume Δ x n , Δ t n = Δ x , 0.5 Δ x n = 1 , , N , and compute the CPU times (measured in seconds and calculated by an Intel(R) Core (TM) i7-3630 QM CPU @2.40 GHz, RAM 8 GB) and convergence errors. The obtained results are in Table 2.
From the previous table, we simply get that the CPU time increases of about 0.30 seconds when Δ x decreases. As for the convergence error, it almost remains the same for different values of Δ x . Some further studies, as well as different numerical approaches for conservation laws on networks, are carefully analyzed in [18,23] and [30].

5. Conclusions

In this paper the theoretical foundations of a novel computing paradigm based on the fluid dynamic theory for modeling, analysis and optimization of complex and networked energy systems have been presented. The proposed paradigm is based on the challenging idea of integrating in a unique framework both network modeling and the optimization features, which are traditionally treated as two separate problems, and solved by using distinct solution techniques. To address this issue the application of conservation laws and the definition of cost functional, which represents a term proportional to the kinetic energy of the system, have been proposed for dealing with the network modeling and optimization, respectively. Thanks to these features the functional maximization is directly obtained as a result of the network model process, which optimally tunes the network parameters ruling the distribution of the energy flows among the network arcs.
The benefits due to the application of the proposed approach have been assessed on a realistic case study, dealing with the solution of the optimal energy flow management problem for a complex energy hub designed in Waterloo, Canada. The obtained results demonstrated the effectiveness of the fluid dynamic-based approach in the task of optimizing the energy flows of the hub components in order to drastically reduce the conversion losses.
Finally, on the basis of repetitive simulations, it could be argue that the obtained solution is globally optimal, and robust against distributed parameters variations, which can be considered further, and certainly relevant, benefits. A rigorous theoretical justification of these intuitions are currently under investigation by the authors.

Author Contributions

Conceptualization, M.d.F. and A.V.; methodology, L.R. and A.V.; software, L.R.; validation, M.d.F., L.R. and A.V.; formal analysis, L.R. and A.V.; investigation, L.R. and A.V.; writing—original draft preparation, M.d.F., L.R. and A.V.; writing—review and editing, L.R. and A.V.; supervision, M.d.F., L.R. and A.V.; project administration, M.d.F., L.R. and A.V. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Following rules (A) and (B) and adopting the flux function (2), see Section 2, we provide precise details for the construction of ρ i k ( t , x ) for a node j k J of r × s type with distribution matrix A j k . The basic step is to find the solution to the RP at j k , namely the vector γ ^ k = f ρ ^ k 0 , ρ max 2 r + s , that is:
γ ^ k : = γ ^ 1 k , γ ^ 2 k , , γ ^ r k , γ ^ r + 1 k , γ ^ r + 2 k , , γ ^ r + s k .
The solution to the RP at j k on the incoming arcs is indicated by the first r components of γ ^ k , i.e. γ ^ i n k : = γ ^ 1 k , γ ^ 2 k , , γ ^ r k 0 , ρ max 2 r ; the last s components of γ ^ k , represented by γ ^ o u t k : = γ ^ r + 1 k , γ ^ r + 2 k , , γ ^ r + s k 0 , ρ max 2 s , refer to the solution to the RP at j k for the outgoing arcs.
From rule (A), we simply get:
γ ^ o u t k T = A j k · γ ^ i n k T .
Rule (B) defines γ ^ i n k that, in case γ : = γ 1 , γ 2 , , γ r R r , is solution of the linear programming problem P j k :
( P j k ) max γ φ = 1 r γ φ ,
with constraints:
γ φ = 1 r 0 , γ φ k , max , A j k · γ T ψ = r + 1 r + s 0 , γ ψ k , max .
Finally, the solution ρ k ( t , x ) = ρ 1 k t , x , , ρ r k t , x , ρ r + 1 k t , x , , ρ r + s k t , x 0 , ρ max r + s at j k is obtained as follows.
  • (S1) From (9) and (10), find γ ^ k .
  • (S2) Use definitions for ρ ^ φ k and ρ ^ ψ k , see Section 2, to get ρ ^ k . Precisely, for the incoming arc I φ k , φ = 1 , , r :
    ρ ^ φ k = ρ φ , 0 k , if   0 ρ φ , 0 k ρ max 2 and γ ^ φ k = γ φ k , max , v max ρ max + v max ρ max v max ρ max 4 γ ^ φ k 2 v max , if   0 ρ φ , 0 k ρ max 2 and γ ^ φ k < γ φ k , max , or   ρ max 2 ρ φ , 0 k ρ max .
    For the outgoing arc I ψ k , ψ = r + 1 , , r + s :
    ρ ^ ψ k = v max ρ max v max ρ max v max ρ max 4 γ ^ ψ k 2 v max , if   0 ρ ψ , 0 k ρ max 2 , or   if   ρ max 2 ρ ψ , 0 k ρ max and γ ^ ψ k < γ ψ k , max , ρ ψ , 0 k , if ρ max 2 ρ ψ , 0 k ρ max and γ ^ ψ k = γ ψ k , max ;
  • (S3) For each arc I i k , i = 1 , , r + s , solve the initial-boundary value problem:
    ρ i k t + f ρ i k x = 0 , x I i k , t > 0 , ρ i k 0 , x = ρ i , 0 k , ρ i k t , 0 = ρ ^ i k .

References

  1. Abdeltawab, H.H.; Mohamed, Y. A. R. I. Market-Oriented Energy Management of a Hybrid Wind-Battery Energy Storage System Via Model Predictive Control With Constraint Optimizer, IEEE Transactions on Industrial Electronics, 2015, 62(11), 6658–6670. [CrossRef]
  2. Jarden, R. K.; Stumpf, P.; Varga, Z.; Nagy, I. Novel Solutions for High-Speed Self-Excited Induction Generators, IEEE Transactions on Industrial Electronics, 2016, 63(4), 2124–2132. [CrossRef]
  3. Arefifar, S.A.; Mohamed, Y. A. I. Probabilistic Optimal Reactive Power Planning in Distribution Systems with Renewable Resources in Grid-Connected and Islanded Modes, IEEE Transactions on Industrial Electronics, 2014, 61(11), 5830–5839. [CrossRef]
  4. Blaabjerg, F.; Teodorescu, R.; Liserre, M.; Timbus, A. V. Overview and Control and Grid Synchronization for Distributed Power Generation Systems, IEEE Transactions on Industrial Electronics, 2006, 53(5), 1398–1409. [CrossRef]
  5. Carrasco, J.M.; Franquelo, L. G.; Bialasiawicz, J. T.; Galván, E., Portillo Guisardo, R. C.; Prats, M. Á. M.; León, J. I.; Moreno-Alfonso, N. Power-Electronic Systems for the Grid Integration of Renewable Energy Sources: A Survey, IEEE Transactions on Industrial Electronics, 2006, 53(4), 1002–1016. [CrossRef]
  6. Gaeta, M.; Loia, V.; Tomasiello, S. Multisignal 1D-compression by F-transform for wireless sensor networks, Applied Soft Computing, 2015, 30, 329–340. [CrossRef]
  7. Tomasiello, S. Least–Squares Fuzzy Transforms and Autoencoders: Some Remarks and Application, IEEE Transactions on Fuzzy Systems, 2021, 29(1), 129–136. [CrossRef]
  8. Chicco, G.; Mancarella, P. Distributed multi-generation: a comprehensive view, Renew Sustain Energy Rev, 2009, 13, 535—555. [CrossRef]
  9. Geidls, M.; Koeppel, G.; Favre-Perrod, P.; Klöckl, B.; Andersson, G.; Fröhlich, K. Energy hubs for the future, IEEE Power Energy Mag, 2007, 5, 24—30. [CrossRef]
  10. Krause, T.; Andersson, G.; Fröhlich, K.; Vaccaro, A., Multiple-energy carriers: modeling of production delivery and consumption, Proc IEEE 2011, 2011, 99(1), 15—27. [CrossRef]
  11. Parisio, A.; Del Vecchio, C.; Vaccaro, A. A robust optimization approach to energy hub management, Electrical Power and Energy Systems, 2012, 42, 98—104. [CrossRef]
  12. Schulze, M.; Friedrich, L.; Gautschi, M. Modeling and optimization of renewables: applying the energy hub approach, 2008, Proceedings of IEEE International Conference on Sustainable Energy Technologies, 83–88. [CrossRef]
  13. Bertsimas, D.; Sim, M. The price of robustness, Oper Res, 2004, 54(1), 35–53. [CrossRef]
  14. Bressan, A. Hyperbolic Systems of Conservation Laws - The One - dimensional Cauchy Problem; Oxford University Press, 2000.
  15. Lighthill, M. J.; Whitham, G. B. On kinetic waves. II. Theory of Traffic Flows on Long Crowded arcs, Proc. Roy. Soc. London Ser. A, 1955, 229, 317–345. [CrossRef]
  16. Richards, P. I. Shock Waves on the Highway, Oper. Res., 1956, 4, 42–51. [CrossRef]
  17. Coclite, G.; Garavello, M.; Piccoli, B. Traffic Flow on road Networks, SIAM Journal on Mathematical Analysis, 2005, 36, 1862–1886. [CrossRef]
  18. Garavello, M.; Piccoli, B. Traffic Flow on Networks, Applied Math Series Vol. 1, American Institute of Mathematical Sciences, 2006.
  19. Holden, H.; Risebro, N. H. A Mathematical Model of Traffic Flow on a Network of Unidirectional arcs, SIAM J. Math. Anal., 1995, 26, 999–1017. [CrossRef]
  20. Kupenko, O. P.; Manzo, R. Approximation of an optimal control problem in coefficient for variational inequality with anisotropic p-Laplacian, Nonlinear Differential Equations and Applications, 2016, 23(31), Article number 35. [CrossRef]
  21. Kupenko, O. P.; Manzo, R. On optimal controls in coefficients for ill-posed non-linear elliptic dirichlet boundary value problems, Discrete and Continuous Dynamical Systems - Series B, 2018, 23(4), 1363–1393. [CrossRef]
  22. Jiang, T.; Zhang, C.; Zhu, H.; Gu, J.; Deng, G. Energy-Efficient Scheduling for a Job Shop Using an Improved Whale Optimization Algorithm, Mathematics, 2018, 6(11), 220. [CrossRef]
  23. Cutolo, A.; Piccoli, B.; Rarità, L. An Upwind-Euler scheme for an ODE-PDE model of supply chains, SIAM Journal on Computing, 2011, 33(4), 1669–1688. [CrossRef]
  24. Helbing, D.; Lämmer, S.; Lebacque, J. P. Self-organized control of irregular or perturbed network traffic, Optimal Control and Dynamic Games, C. Deissenberg and R. F. Hartl eds., Springer, Dordrecht, 2005, 239–274. [CrossRef]
  25. Herty, M.; Klar, A. Modelling, Simulation and Optimization of Traffic Flow Networks, SIAM J. Sci. Comp., 2003, 25, 1066–1087. [CrossRef]
  26. Rarità, L., A genetic algorithm to optimize dynamics of supply chains, L. Amorosi et al. (eds) Optimization in Artifical Intelligence and Data Sciences. AIRO Springer Series 8, 2022, 107-115. [CrossRef]
  27. Rarità, L.; Stamova, I.; Tomasiello, S. Numerical schemes and genetic algorithms for the optimal control of a continuous model of supply chains, Applied Mathematics and Computation, 2021, 388, 125464. [CrossRef]
  28. Zhang, Z.; Wu, Z.; Raicon, D.; Christofides, P. D. Real-Time Optimization and Control of Nonlinear Processes Using Machine Learning, Mathematics, 2019, 7(10), 890. [CrossRef]
  29. Garavello, M.; Piccoli, B. Traffic flow on a road network using the Aw-Rascle model, Commun. Partial Diff. Eqns., 2006, 31, 243–275. [CrossRef]
  30. Bretti, G.; Natalini, R.; Piccoli, B. Numerical approximations of a traffic flow model on networks, Networks and Heterogeneous Media, 2006, 1(1), 57–84. [CrossRef]
  31. Cascone, A.; Marigo, A.; Piccoli, B.; Rarità, L. Decentralized optimal routing for packets flow on data networks, Discrete and Continuous Dynamical Systems, Series B, 2010, 13(1), 59–78. [CrossRef]
  32. Godlewsky, E.; Raviart, P. Numerical Approximation of Hyperbolic Systems of Conservation Laws, Springer Verlag, Heidelberg, 1996.
  33. Godunov, S. K. A finite difference method for the numerical computation of discontinuous solutions of the equations of fluid dynamics, Mat. Sb., 1959, 47, 271–306.
  34. Lebacque, J. P.; Lesort, J. B. The Godunov scheme and what it means for first order traffic flow models, Proceedings of the Internaional symposium on transportation and traffic theory No13, Lyon, Pergamon Press, Oxford, 1996, 647–677.
Figure 1. Simplified structure of the energy hub shown in [11].
Figure 1. Simplified structure of the energy hub shown in [11].
Preprints 102736 g001
Figure 2. Topology of the energy hub.
Figure 2. Topology of the energy hub.
Preprints 102736 g002
Figure 3. Evolution in 0 , T of E ¯ t for optimal distribution coefficients (dashed line) and the first five different random choices (continuous lines).
Figure 3. Evolution in 0 , T of E ¯ t for optimal distribution coefficients (dashed line) and the first five different random choices (continuous lines).
Preprints 102736 g003
Figure 4. Zoom of Figure 3 around the asymptotic values.
Figure 4. Zoom of Figure 3 around the asymptotic values.
Preprints 102736 g004
Figure 5. Behaviour in 0 , T of E ¯ t in case of optimal distribution coefficients (dashed line) and the remaining different random choices (continuous lines).
Figure 5. Behaviour in 0 , T of E ¯ t in case of optimal distribution coefficients (dashed line) and the remaining different random choices (continuous lines).
Preprints 102736 g005
Figure 6. Zoom of Figure 5 around the asymptotic values.
Figure 6. Zoom of Figure 5 around the asymptotic values.
Preprints 102736 g006
Figure 7. Histograms of random values of simulations at T = 150 for 0 , T of E ¯ t . Black point: OPTconf T = 150 ; dashed line: RAND T = 150 .
Figure 7. Histograms of random values of simulations at T = 150 for 0 , T of E ¯ t . Black point: OPTconf T = 150 ; dashed line: RAND T = 150 .
Preprints 102736 g007
Table 1. Compared values of E ¯ t
Table 1. Compared values of E ¯ t
E ¯ t
OPTconf T 258.773
RAND T 212.845
Table 2. CPU times and convergence order ( γ )
Table 2. CPU times and convergence order ( γ )
Space grid size Δ x = 0.00625 Δ x = 0.0125 Δ x = 0.025
CPU and
convergence order
CPU = 0.97
γ = 0.96653
CPU = 0.62
γ = 0.92572
CPU = 0.33
γ = 0.90572
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated