Abstract
Global shifts in energy policy have contributed to an increase in electricity generation from renewable sources, which introduces unique issues with volatility and grid reliability. Robust grid-scale energy storage methods must fill the gap between generation and consumption. Flywheel energy storage (FES) is a mechanical technology that utilizes the stored kinetic energy of a rotating body, but is typically only suited for shorter-term frequency regulation due to significant windage losses. In this work, a novel Python 3.13-based simulation and optimization tool is presented and used to optimize geometric design parameters for efficiency, energy density, and other metrics. The simulation utilizes a 1 degree-of-freedom, multi-regime fluid friction model with a time-marching algorithm. The optimization functionality utilizes pyswarms, a particle swarm optimization package, with adjustable search parameters and cost functions to evaluate simulation results. Optimization parameters include geometric parameters of rotor radius, shaft radius, airgap width, and airgap height; material properties of mass and moment of inertia; and initial angular velocity. An optimal initial angular velocity is found for a particular geometry, lasting 30 times longer until self-discharge versus the worst values. This work can inform the design of flywheel systems to minimize windage losses and promote the technology’s utility for longer-term energy storage.
1. Introduction
Goris and Severson (2018) note that global shifts in energy policy, driven by desires to reduce carbon dioxide emissions, contribute to the use of more volatile renewable electricity generation, creating a need for energy storage [1]. The International Energy Agency cites grid-scale energy storage as crucial to maintaining grid stability with variability across time scales and increasing demand on the electric grid [2].
Elalfy et al. [3] describe electrochemical energy storage systems, a category which includes lithium-based batteries, as a major technology in the energy storage space. However, high maintenance costs for large scales [3] and material sourcing issues [2] present issues for large-scale use of these technologies and justify the investigation of alternatives.
FES systems use the kinetic energy in a rotating mass to store energy. A diagram of an FES system is shown in Figure 1. The kinetic energy of a rotating rigid body is given by Equation (1), and it is the fundamental relation that describes the flywheel’s function as an energy storage device [1].
Figure 1.
Diagram of a flywheel energy storage system.
There are two options to increase the capacity of the system: increasing the moment of inertia of the flywheel rotor or the angular velocity it spins at. The moment of inertia is a function of the material and the geometry of the rotor. The main limitation comes from the strength of the rotor. No point on the rotor can exceed a critical stress value, which is determined by the material strengths and other factors.
The angular velocity of the flywheel is directly impacted by torques imparted on it by a motor and generator, used to charge and discharge the system, respectively, and by aerodynamic drag. Along with bearing friction, windage losses contribute significantly to efficiency losses and are particularly strong at high speeds [4,5]. The pressure of the fluid in the airgap surrounding the rotor is kept low to reduce these losses [3,6]. Ghanbaridoust et al. [7] showed the significance of rotational speed and air jacket pressure on windage loss.
Wicki and Hansen note the potential of flywheels for short-term energy storage because of their long life cycle and limited environmental impact of production and operation compared to conventional chemical-based batteries. FES systems are capable of outputting more power than batteries, but typically have lower total energy capacities [8]. For this reason, FES systems in grid use are often used for power quality, including short-term frequency regulation [5].
FES systems have been built in grid systems by companies including Beacon Power [9,10] and Amber Kinetics [11]. Other commercial applications of the technology include uninterruptible power supplies and transportation. FES systems can work to smooth out loads in electric and diesel-electric systems [12]. Aside from power grids, applications include public transportation [5], heavy transportation [13], and aerospace [14,15,16].
Wicki and Hansen identify low demand for the technology and emerging markets shaped by conventional batteries over alternative technologies as reasons that flywheel systems have not gained widespread use [8]. Goris and Severson note that electricity generation, transmission, and distribution in the United States is under the control of various operators with various rules that are not well-suited to energy storage operators, contributing to uncertainty on how to implement technologies [1]. Miguez et al. characterize the technology as mature but developing [12].
There is an established body of work on FES systems, with recent articles focusing on optimization of design parameters. Nair and Senroy [17] applied particle swarm optimization to rotor inertia and motor control for FES in wind power smoothing applications. Mechanics studies on rotor geometry and material [18,19] generally consider maximum flywheel speed (at maximum energy capacity). Similarly, studies on optimization of aerodynamic drag (also called windage loss) have considered steady-state operation at constant angular velocity [20,21]. However, the longer-term dynamics of FES systems must be considered. A typical value for is 0.5 [6,22], meaning steady-state models cannot capture the wide range of conditions that FES necessarily operates at. Since windage loss is nonlinearly dependent on angular velocity, this assumption is particularly problematic.
This work advances two primary contributions. First is an open-source Python codebase for optimization of flywheel parameters through simulation of a rotor’s long-term dynamics. The second is a set of studies using the presented codebase to give insight on design parameters.
For computational speed and time constraints, a simplified model is employed which considers windage loss on a rotor with 1 degree of freedom, rotation about the central axis. Optimization parameters include geometric parameters of rotor radius, shaft radius, airgap width, and airgap height; material properties of mass and moment of inertia; and initial angular velocity.
2. Materials and Methods
2.1. Theory
FESS systems feature an air jacket consisting of an inert gas between the rotor and the wall. This gas is kept in a strong vacuum to minimize frictional fluid losses. At low absolute pressures, the continuum fluid mechanics model breaks down, and rarefied effects must be considered. The rarefaction of a fluid is characterized using the Knudsen number , defined for rotating disks as the ratio of the molecular mean free path to a characteristic geometric length [6]. The characteristic length is defined here as the airgap width and airgap height for cylindrical and annular surfaces, respectively. The mean free path is defined as follows [23]:
where is the gas viscosity, is the gas density, is the specific gas constant, and is the gas temperature.
Correlations for windage torque are obtained from a harmonized windage loss model [23] which were previously validated against experimental results. The rotor has a rectangular cross section with radius and height . Windage loss is broken into cylindrical and axial (circular) components for the sides and top/bottom of the rotor, respectively. The cylindrical airgap is classified into one of seven regimes, characterized by the aspect ratio and cylindrical Reynolds Number . The axial airgap (including both top and bottom surfaces) is classified into one of four regimes, characterized by the aspect ratio and annular Reynolds Number . The expressions for the Reynolds Numbers are given in Equations (3) and (4) [23].
The equations for torque are given in Equations (5) and (6). The correlations for the laminar regions include a correction factor for rarefaction.
where is the shaft radius, the moment coefficient is given in Table 1 and Table 2, the geometrical term is given in Equation (7), and flow regime boundaries are given in [23].
Table 1.
Flow regimes and moment coefficient correlations, cylindrical term [23].
Table 2.
Flow regimes and moment coefficient correlations, annular term [23].
At the ambient temperatures and pressures used here, the compressibility factor of air is close to 1.00, indicating the ideal gas model is appropriate [24]. Thus, the ideal gas model is employed [23,25] where density is defined as follows [26]:
where is the pressure of the airgap. For viscosity, the temperature-dependent Sutherland Law is used [23,25].
2.2. Optimization Approach
Important quantities of interest for flywheel systems, including self-discharge and longevity, are functions of time-series dynamic data. Because of the complex nonlinearities and interdependencies of parameters in the physical governing equations of flywheel windage, it is difficult to obtain partial derivatives of these important quantities with respect to parameters that are controlled.
The lack of global partial derivative information rules out analytical methods. The optimization method should be multi-dimensional, with the number of dimensions defined by the user and variable across runs. Section 3 presents one 4-dimensional problem and one 1-dimensional problem, but other implementations can vary the optimization parameters.
In this work, the term ‘optimization parameter’ is used to refer to the FES parameters that make up the parametric space. These are also known as decision variables [27]. This distinction in language is made in order to distinguish these parameters from quantities like angular acceleration or fluid torque that are variable time within each simulation. Each optimization parameter is continuous within the bounds, yielding an infinite number of possible combinations and ruling out exhaustive methods [27]. Future versions of the code could include discrete optimization parameters, such as the type of fluid in the airgap.
The problem cannot be assumed to be convex because, as demonstrated in Section 3, cost functions often have non-convex shapes and discontinuities with respect to the optimization parameters [27,28]. For that reason, a non-convex method must be considered to find local minima. Particle swarm optimization (PSO) is used with an iterative simulation-optimization approach. PSO is a widely-used, general-purpose heuristic algorithm to find local minima [28,29] PSO is implemented in this code with pyswarms v.1.1.0 [30], a Python package. Using functions from pyswarms, the optimization module of this work defines an optimizer object, then iterates through the parametric space searching for a local minimum.
The cost function is defined using the weighted sum of individual metrics. Each metric, representing a dimensional quantity like energy capacity or windage loss, is linearly scaled or normalized by a baseline reference value [31]. For a generic metric , the unweighted normalized cost is defined as . Because the unscaled dimensional quantities are not known a priori, the choice of the reference value is somewhat arbitrary. This creates an inherently unbounded system, where cost can become extremely negative. As discussed in Section 3.4.2, inappropriate reference values can skew the optimizer behavior. The optimizer will still function. However, it will shift weighting, potentially effectively ignoring particular metrics because the values are much closer to the top bound . Viewing the cost landscape for each metric shows a more complete picture, in which overall gradients and landscapes are preserved but absolute values of normalized cost are arbitrarily defined by the reference value. It also shows the full range of calculated normalized costs, and reference values can be iteratively changed over several optimization runs to produce the most balanced optimizer performance (for a given set of optimization parameters and bounds).
There are hard constraints on the objective/cost function, which are detailed in Section 2.2 [27]. If simulation behavior is non-physical, an unfavorable cost is assigned to the overall cost, while assigning ‘NaN’ to the component metrics. This keeps the particle swarm away from the problem area and avoids conflating numerical failures with legitimate unfavorable behavior.
2.3. Computational Methodology
In an optimization run, the variable optimization parameters and constant simulation parameters form the input for each simulation. They fully define the system at time = 0. The code assigns a chronological simulation identification number to each PSO particle, then writes a unique simulation number, as well as the location in parametric space (i.e., the value of each optimization parameter) and the calculated costs (detailed in the following paragraph), to a log.
From the optimizer, the simulation module takes discrete steps through time using a specified timestep, applying physical equations to update dynamic quantities. There are checks on physical validity to ensure that the fluid torque is still within defined flow regimes and checks to ensure that the simulation time is below the specified maximum and that stop conditions have not been triggered. The timestepping algorithm continues until any of these conditions have been met, then ends the simulation and leaves a note in the log indicating the reason the simulation stopped. See Appendix A for the values used for these checks.
Once a simulation stops, the evaluation module reads the simulation log and calculates a cost function as a weighted sum of normalized quantities of interest. The cost function is detailed in Section 2.3.2. This total weighted cost is the only value reported back to the optimizer, but all three of the unweighted metrics are reported to the log; this becomes important for visualizing each of the metrics individually and troubleshooting errors in cost function definitions or weighting. If errors or inconsistencies are detected—for instance, the simulation log is too short or the angular velocity decays to half within the first two timesteps—the simulation is rejected and a penalty value [32] of 100 is assigned. The unweighted costs show up as ‘NaN’ in the log to differentiate between numerically failed runs and genuinely bad physical results. Evaluation of individual simulation results in an optimization run is crucial.
The simulation code can optionally be used alone to simulate a single simulation run. In that case, the optimization module is bypassed and the simulation module writes time-series data directly to a specified datalog.
2.3.1. Simulation
The simulation engine utilizes an explicit forward Euler numerical scheme [33,34] with a relaxation factor to match published computational and experimental results in literature [23]. A weighted predictor-corrector model [34] is used to stabilize results. At each timestep , the angular velocity is updated according to
The angular acceleration is given by
where the mass moment of inertia is prescribed and constant throughout the simulation. The net torque is dependent on the fluid regime, obtained as described in Section 2.1. and are weighting factors with . Following this calculation, is checked compared to to ensure continuity across regimes. If is greater than a certain value, defined by default as 5%, an offset is added to enforce continuity such that . This value is stored for the remainder of the simulation. Future state updates exceeding the threshold generate a new offset, which is superimposed on the existing offset. This is intended to limit unphysical jumps in the - curve observed during early testing.
2.3.2. Optimization
Particle swarm optimization [35] is performed using the pyswarms library [30]. In the algorithm, a defined number of particles travels throughout the parametric space for a defined number of iterations, evaluating a cost function at each iteration and moving based on the cost function results for the entire run. The choice of the cost function is somewhat subjective and depends on the priorities of a particular situation. The cost function utilizes a subjective multi-criteria decision-making approach [36].
In this implementation, the simulation run is called within the cost function. The particle swarm algorithm provides the optimization parameters (initial conditions for the FES system) to the simulation module, which runs a simulation as described above. After each simulation run, a cost function reads the simulation data log and calculates performance metrics. Those performance metrics are normalized by a reference value typical for FES systems (as shown in Table 3).
Table 3.
Evaluation metric definitions and normalization values.
The normalized metrics are multiplied by subjective weighting factors to obtain the following expression for the non-dimensional, normalized cost :
The normalized scores are negated for quantities where the optimal solution will have large values, since the optimizer minimizes . The weighting factors can be assigned manually or via pre-defined evaluation profiles. All results presented in this work use , , .
3. Results
Several simulation and optimization cases are run to evaluate the validity of the model and produce conclusions on FES design. Section 3.1 evaluates the simulation engine with a base reference from literature, with variations in shaft radius to weigh its importance on performance for that case. Section 3.2 evaluates that reference case at varying timestep resolutions to determine an appropriate timestep to balance accuracy and computational cost. Section 3.3 presents an optimization run in a 4-dimensional parametric space and evaluates which parameters are good predictors of certain cost metrics. Section 3.4 presents a similar optimization run, though varying only initial angular velocity to determine an optimal value for that case and gauge its importance for performance.
3.1. Effect of Shaft Radius; Model Verification
The shaft radius used in Venturini et al.’s computational/experimental study is not reported explicitly, but Figure 2 shows that for the particular geometry considered there, its effects are minimal. At 0 m and 0.025 m, the results are nearly indistinguishable, owing to the term in Equation (6). At 0.05 m, the surface area exposed to fluid on the top and bottom surfaces is zero, so the annular torque term is zero.
Figure 2.
Angular acceleration vs. angular velocity, Venturini et al. (2024) [23] test parameters, 1 atm.
It appears that Venturini et al. may have employed non-linear smoothing in their computational model. No such smoothing is implemented in this model in the interest of faithfulness to the physical models and with the expectation that similarity over the large range of will be more relevant than short-range inconsistencies. The physics engine could be easily modified to implement non-linear smoothing. However, implementing smoothing simply to fit the verification case would necessarily be empirical and specific to those simulation parameters, and may not behave as intended outside of those parameters.
Venturini et al. report three angular acceleration vs. angular velocity curves, which differ only by a fixed offset in across the entire range of . That offset is achieved by varying a vertical compensation force that is not modeled in this 1 degree-of-freedom system. In the interest of keeping the physical model suitable for other parameters, the curves generated here are not shifted to match the reference work. Instead, the reference curve is shifted vertically for better comparison with the results of this model. Because dynamics in this model are solely dependent on torque in the vertical direction (and vertical-load-dependent bearing friction [39] is not modeled), vertical compensation force is not prescribed and is irrelevant to this model.
3.2. Timestep Sensitivity
Because the Euler explicit method is sensitive to timestep size [40], numerical error may compound and affect simulation results. To understand the effects of timestep size for this geometry, the Venturini et al. test case from the previous section, with = 0.025 m chosen as a middle-ground, is run at increasing timestep resolution.
Figure 3 shows Venturini et al.’s test case run at a variety of timestep sizes spanning from 10 s to 0.1 s. The top plot shows the range of the entire run, from an initial angular velocity 300 rad/s to 10 rad/s. Panel (b) shows a detail view on the end of the simulation run, where the accumulated error is the largest. The bottom plot shows that the angular velocities near the simulation end for the most refined timestep increments (1 s, 0.5 s, 0.1 s) are within roughly 0.2 rad/s, or 0.5% of the total value.
Figure 3.
Angular velocity vs. time with varying timestep sizes, Venturini et al. (2024) [23] test parameters. (a) Full simulation range; (b) zoomed view towards end of simulation.
Based on the results of this study, most simulations in this paper are run with a timestep of dt = 1 s in order to best balance accuracy and computational time. Continued timestep refinement beyond that point shows diminishing returns in simulation accuracy, and increases runtime. It is important to note that these findings are specific to this test case. The informal use of this study to verify the numerical accuracy of other simulation and optimization runs in this work are justified because (a) the flywheel parameters are kept similar to the ones here, and (b) the 1-s timestep in this case builds in beyond an acceptable threshold for sensitivity, especially for the type of long-term general behavior this model is intended to simulate. This model does not include any periodic forcing, eliminating concerns about the simulation engine missing finer-time-resolution physics. Further, evaluation in the optimizer uses simulation data only up to , where numerical error will have fewer iterations to compound over. Still, data from individual simulations should be evaluated to ensure the timestep provides adequate resolution.
To more accurately model the finer dynamics of an FES system, future versions of the code could integrate with Motulator [41] to model the motor and motor controller dynamics. More advanced models [15,42,43] implementing motor control schemes operate on the order of kilohertz, requiring a much smaller timestep that would greatly increase computational complexity.
3.3. Multi-Dimensional Optimization—Run A
A multi-dimensional optimization run is constructed, varying certain parameters from Venturini et al.’s case presented previously. These parameters are as follows:
- Rotor radius ;
- Initial angular velocity ;
- Airgap width ;
- Airgap height .
These parameters are chosen because they directly impact the Reynolds Number and aspect ratio, and thus windage behavior. Bounds of these parameters are selected to provide a reasonable optimization range while ensuring simulations remain within the flow regimes defined in Section 2.1. More information on the parameter values used in the optimization and simulations can be found in Appendix A. Figure 4 shows the cumulative best cost of each particle plotted against the optimization iteration. The steep slope in the early iterations indicates the particle swarm is moving fast and often finding better solutions than any of the previous ones it encountered. As the solutions get better (more negative cost value), the swarm takes more iterations to make improvements. By iteration 500, the curve has flattened out significantly. This shows a reasonable level of convergence, though determining a minimum with some certainty would require further iteration until (a) the four particles in the swarm converge to a closer value and/or (b) each particle iterates much longer without further improvement. For the purposes of this study, which is not concerned with particular optimums, the convergence is sufficient.
Figure 4.
Particle convergence for optimization run A.
Most of the plots shown here plot cost or iteration number against two optimization parameters. For each optimization run presented in this work, plots are generated for each combination of two optimization parameters, with point coloring as a third dimension for each of four cost metrics (overall cost and the three component metrics) and iteration number. These plots are manually reviewed for trends and a limited number are presented here.
Figure 5 shows convergence of the particle swarm on particular bands of airgap geometric parameters and initial angular velocity:
Figure 5.
Particle swarm convergence plotted against initial angular velocity and airgap geometric parameters, optimization run A. (a) Iteration vs. airgap width and initial angular velocity, (b) iteration vs. airgap height and initial angular velocity.
- rad/s
- m
- m
3.3.1. Implications of Convergence
Without further investigation, this convergence might be presumed to imply these values of these parameters comprise an optimal solution. However, the cost function shows otherwise. Figure 6 shows the same parameters, colored instead by specific windage cost. Even within the clusters of initial angular velocity and airgap geometry shown in Figure 5, the parameters are not a good predictor of performance. While only one component of the cost function is shown here, the others similarly show no clear cost trends.
Figure 6.
Specific windage cost plotted against initial angular velocity and airgap geometric parameters, optimization run A. (a) Specific windage cost vs. airgap width and initial angular velocity; (b) specific windage cost vs. airgap height and initial angular velocity.
Such a result implies that these parameters alone are not good predictors of cost globally across the entire parametric space. In this case, the parametric space includes additional parameters, complicating the analysis. The most precise statement of these results is that across this parametric range and for the constant parameters considered, each of the three parameters (, , ) on their own is not a good predictor of cost.
The conclusion that airgap geometry has a minimal effect on windage loss with the conditions considered in this study should be viewed with caution. Results are specific to the parameters and assumptions considered, including atmospheric airgap pressure, which differs from the vacuum conditions used in real-world systems [5]. Previous computational fluid dynamics studies [44,45] using different parametric configurations and explicitly modeling the formation of Taylor vortices have found airgap geometry to be more significant.
Other visualizations show that in this parametric space, rotor radius is more important. Cost metrics for windage loss (panel (a)) and self-discharge time (panel (b)) vs. rotor radius on the x-axis and airgap width and airgap height, respectively, on the y-axis, are shown in Figure 7 and Figure 8.
Figure 7.
Cost metrics plotted against airgap width, optimization run A. (a) Specific windage cost vs. airgap width and rotor radius; (b) self-discharge time cost vs. airgap width and rotor radius.
Figure 8.
Cost metrics plotted against airgap height, optimization run A. (a) Specific windage cost vs. airgap height and rotor radius; (b) self-discharge time cost vs. airgap height and rotor radius.
3.3.2. Effects of Rotor Radius
Compared to Figure 6, the trends in Figure 7 and Figure 8 are much clearer. Rotor radius dominates the windage loss cost component. The windage loss is most optimal at small rotor radii, where there is less surface area for fluid drag to act on. The airgap geometry appears to have little effect on the windage. Streaks of high particle density are visible around the values of and discussed above in relation to Figure 5.
The minimal dependence of windage loss on airgap geometry, which was expected to be important based on other studies [4] with low airgap pressures, is likely explained by the atmospheric pressure used in this study. Moment coefficient correlations in Section 2.1 have complex nonlinearities in , the aspect ratio parameter that implements the airgap geometry parameters. Because of this, it is difficult to untangle the particular dependence for a given simulation run, which will likely traverse several flow regimes before finishing. However, at the higher pressures used here, rarefaction correction is not relevant. The rarefaction correction introduces an additional term based on Knudsen number and aspect ratio (both influenced by the airgap width or height) to the torque equations.
For self-discharge time, however, there does appear to be an optimal solution. Because of the relatively few low-cost points in the area (and because the apparent optimum occurs on an edge of the parametric space), further study would be required to properly evaluate the optimum. While no specific conclusions can be drawn, further work could build on this run to more completely evaluate the effect of airgap width on self-discharge time, perhaps in a more refined parametric space. The run that appears the most optimal, denoted as simulation #1553, occurs at 0.0037 m, 0.0025 m, 0.03 m, and 403 rad/s. That run, along with #1771 and #819, the second- and third-best, is shown in Figure 9.
Figure 9.
Angular velocity over time for top 3 solutions, optimization run A. Labels denote sequential simulation number in the optimization run.
3.4. Single-Dimension Optimization of Initial Angular Velocity—Run B
Based on the frequent appearance of angular velocity in the physical models, it seems unlikely that angular velocity would be irrelevant to performance. Results in Section 3.3 do not suggest that initial angular velocity is unimportant. Rather, the lack of trends observed in Figure 6 show only that other parameters are more important. When other parameters are changed, initial angular velocity may become a more significant predictor of cost. Indeed, results from an optimization run varying only initial angular velocity show exactly this. Particle data, shown in Figure 10, demonstrates convergence which, when combined with the cost landscape, gives confidence in the optimal solution found.
Figure 10.
Particle convergence for optimization run B. (a) Cumulative best cost vs. iteration; (b) initial angular velocity vs. iteration.
Figure 11 shows overall cost and each of the component metrics for this run. The gradients of cost with respect to are mostly smooth, indicating confidence in the numerical validity of the results. The discontinuity seen near 250 rad/s in panels (a)–(c) likely corresponds to a flow regime boundary. Panel (c) shows that self-discharge time is longest at 400 rad/s, contradicting the prima facie assumption that a rotor higher would take longer to spin down. This perhaps counterintuitive result is possible considering that those higher velocities have much stronger accelerations with a steeper (shown in Section 3.1). Windage loss (shown in panel (b)) is best at the low end of the range since there is less energy (scaled with ) to discharge. Energy capacity is best at the high end of the range, for the opposite reason.
Figure 11.
Initial angular velocity vs. cost metrics for run B. (a) Overall weighted cost , (b) specific windage cost , (c) self-discharge time cost , (d) energy capacity cost .
3.4.1. Optimal Initial Angular Velocity
Without considering the cost landscape shown in Figure 11, particle swarm convergence to = 400 rad/s and the stagnation of cumulative best cost shown in Figure 10 could only show that = 400 rad/s is a local minimum. However, considering the global cost landscape shows that this value appears to be a global optimum, since all other (tested) values in the domain have larger costs.
The results for are particularly illuminating. Panel (c) shows that for the flywheel parameters considered here, = 400 rad/s yields the longest time until self-discharge by windage loss. The self-discharge time is measured as the time to reach half of the initial angular velocity, meaning that it would take the = 400 rad/s configuration longer to lose 200 rad/s than it takes the = 600 rad/s case, for example, to lose 300 rad/s. This discrepancy cannot simply be attributed to the higher torque at high , since the lower initial angular velocities also score worse. The cost landscape shows that for the physical model employed and the parameters and range considered here, = 400 rad/s is a global maximum for .
In this case, a hypothetical flywheel facility using these parameters and seeking to increase the time until self-discharge could operate flywheels with = 400 rad/s instead of 600 rad/s, then make up for the loss in energy capacity by building more of them. More broadly, these results show the sensitivity of flywheel performance to initial angular velocity. Considering the scaling of with , the optimal case here works out to roughly a 30× increase in self-discharge time compared to the worst cases at the low end of the parametric range.
3.4.2. Scaling Inconsistencies
Also visible throughout all of the cost metrics is inconsistency in scaling between the components. For instance, here, varies from −0.9955 to −1 and from roughly 0.99998 to 0.99989, while varies from 0 to −31. Accordingly, the overall cost is dominated by . This is a direct artifact of inappropriate choices for reference values in the cost function. Choice of a proper reference value to normalize by is inherently difficult when parameters vary across a wide range as they do in this work. That wide range of parameters results in a wide range of unscaled cost quantities. Worse, since results are not easily predicted prior to simulation, the effects of poor cost metric scaling are often not visible until optimization begins and simulations have already been run.
Outsize influence on the cost function by a particular component will affect convergence, and is observed here when the swarm converges to 400 rad/s due to . Had the range of normalized metrics been closer together, the swarm may have converged to another value where or have minima. The convergence in this case is only as valid as the weighting and normalization used, and could not be said to consider all metrics evenly. For this reason, it is crucial to consider each of the cost components when viewing optimization results. While the swarm movement and behavior may be dominated by a single metric, the shapes and relative weights of each individual metric are still valid. The normalized cost metric value represented at each point does not change based on the scaling for the other metrics. Scaling any given metric will change the absolute scaled cost values, but the relative positions will remain since all unscaled points for a metric are scaled by the same value.
Still, uneven metric weighting will drive the particle swarm and leave gaps in the parametric space, as observed here in the range [500, 800] rad/s. Had been a particularly important quantity to evaluate, ’s domination of total cost —and the resulting gap in that range—would be unacceptable, since the lowest values of would occur in that range. Since no conclusions about energy capacity necessarily need to be made here (and because is a simple function of ), this gap is not a problem now. Future work could iteratively adjust weighting factors to achieve the desired scaling and weighting.
4. Conclusions
In this work, a scalable simulation and optimization tool for the long-term, transient windage loss in an FES system was developed and presented. At atmospheric pressure, windage loss behavior is dominated by rotor radius. In the harmonized windage model loss employed, airgap geometry does not play a large role in the windage loss, though more comprehensive treatments of the fluid dynamics may yield differing results. The effect of airgap geometry will likely be greater at lower absolute pressures when rarefaction corrections become important. Preliminary results in Section 3.2 show a possible advantage in self-discharge time near particular points of rotor radius and airgap width/height, though additional study with a refined parametric space would be needed to confirm this.
Particle swarm convergence and associated cost data show a strong advantage of particular initial angular velocities, the exact values of which depend on other parameters in the configuration. At these optimal initial angular velocities, windage loss in the operating zone is minimized and efficiency is highest. In optimization run B, the choice of an optimal yielded up to 30× longer operating time versus the worst in the parametric range, with impacts visible even within small deviations from the optimum. In run A, this impact appears to be drowned out by the somewhat arbitrary choices of other parameters. These results are notably obtained using atmospheric pressure, different from the vacuum conditions used in real-world systems. Atmospheric pressure was used for verification in Section 3.1, and further study would be required to verify the model with vacuum conditions.
PSO appears to be an effective and flexible tool for optimizing FES design parameters for long-term dynamics. The algorithm works well across varied parameter ranges, and is shown to work well in single- and multi-dimensional runs in this work. Numerical limitations and errors are introduced by discontinuities in windage flow regimes. Four particles are used for each of the runs, which appears to balance computational time and search comprehensiveness for the cases presented here. Particle convergence will depend on the optimization parameters considered, their bounds, and the choice of other optimizer options, but setting the number of iterations to ~750–1000 appears to be a safe choice.
While the parameters used in studies here are significantly different from those used in real-world FES designs, the design implications are still important. The use of non-dimensional quantities in the correlations extends the model’s usefulness, since the problem can be scaled with those quantities to larger sizes and higher speeds that are more characteristic of real FES systems. Further work to implement various airgap gases and operating pressures into the computational model could extend this study to more realistic operating conditions for real-world FES systems.
The simulation and optimization framework presented here is published open-source to facilitate future improvements. Possible features include automated timestep selection, more comprehensive physical models, and more accurate numerical models. Automated timestep selection could monitor important quantities like angular acceleration across timesteps, and refine the timestep until reaching a defined resolution in that quantity. This would allow the code to intelligently adapt for each set of parameters and mitigate unnecessarily long computation times. Refined fluid friction models and the addition of bearing friction, motor/generator dynamics, and electric grid interactions will give more physically accurate results with greater applicability to grid-scale FES systems. More complex numerical models would increase computational time per timestep, but could yield more accurate results. Furthermore, the results from this model could narrow down the parametric range for a more comprehensive computational fluid dynamics study, which could then be tested against this model.
Author Contributions
Conceptualization, A.H.G. and A.F.; methodology, A.H.G. and A.F.; software, A.H.G.; validation, A.H.G.; formal analysis, A.H.G.; data curation, A.H.G.; writing—original draft preparation, A.H.G.; writing—review and editing, A.H.G. and A.F.; visualization, A.H.G.; supervision, A.F.; project administration, A.F. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Code and simulation data are available from the project’s GitHub repository at https://github.com/ahgould/flywheelwindage (v1.0, accessed 16 June 2026) or by request from the authors.
Acknowledgments
The authors wish to acknowledge Samuel Chevalier for his contributions in the conceptualization and review stages of this work, particularly in the optimization and electrical components. During the preparation of this study, the authors used ChatGPT 5.4 for limited code generation and structuring tasks. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| FES(S) | Flywheel energy storage (system) |
| PSO | Particle swarm optimization |
Appendix A
Table A1 contains the parameters used in each simulation and optimization run.
Table A1.
Simulation and optimization parameters used in this work (All parameters listed in this table are scalars; bold denotes code objects).
References
- Goris, F.; Severson, E.L. A Review of Flywheel Energy Storage Systems for Grid Application. In Proceedings of the IECON 2018—44th Annual Conference of the IEEE Industrial Electronics Society; IEEE: New York, NY, USA, 2018; pp. 1633–1639. [Google Scholar]
- Grid-Scale Storage. Available online: https://www.iea.org/energy-system/electricity/grid-scale-storage (accessed on 11 April 2025).
- Elalfy, D.A.; Gouda, E.; Kotb, M.F.; Bureš, V.; Sedhom, B.E. Comprehensive Review of Energy Storage Systems Technologies, Objectives, Challenges, and Future Trends. Energy Strategy Rev. 2024, 54, 101482. [Google Scholar] [CrossRef] [Scilit]
- Eltaweel, M.; Herfatmanesh, M.R. Optimising Flywheel Energy Storage Systems: The Critical Role of Taylor–Couette Flow in Reducing Windage Losses and Enhancing Heat Transfer. Energies 2024, 17, 4466. [Google Scholar] [CrossRef] [Scilit]
- Arabkoohsar, A. (Ed.) Future Grid-Scale Energy Storage Solutions: Mechanical and Chemical Technologies and Principles; Academic Press: London, UK; San Diego, CA, USA, 2023. [Google Scholar]
- Genta, G. Kinetic Energy Storage: Theory and Practice of Advanced Flywheel Systems; Butterworths: London, UK, 1985. [Google Scholar]
- Ghanbaridoust, F.; Zschau, M.; Hänel, F.; Will, F. Analysis of a Large-Scale Flywheel Energy Storage System with a Focus on Power Loss Assessment. In Proceedings of the 2026 IEEE Electrical Energy Storage Applications and Technologies Conference (EESAT); IEEE: New York, NY, USA, 2026; pp. 1–5. [Google Scholar]
- Wicki, S.; Hansen, E.G. Clean Energy Storage Technology in the Making: An Innovation Systems Perspective on Flywheel Energy Storage. J. Clean. Prod. 2017, 162, 1118–1134. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Stephentown, New York. Available online: https://beaconpower.com/stephentown-new-york/ (accessed on 11 April 2025).
- Arseneaux, J. 20 MW Flywheel Energy Storage Plant—Hazle Spindle—Hazle Township, PA; Beacon Power: Tyngsboro, MA, USA, 2014. [Google Scholar]
- Installation Portfolio. Available online: https://amberkinetics.com/installations/ (accessed on 11 April 2025).
- Míguez, J.L.; Gómez, M.Á.; Rodríguez, S.; Porteiro, J. Geostrategic Study of the Evolution of Energy Harvesting Systems Based on the Patent Activity of Flywheels and Regenerative Shock Absorbers. Energy Rep. 2024, 12, 1777–1793. [Google Scholar] [CrossRef] [Scilit]
- Spiryagin, M.; Wolfs, P.; Szanto, F.; Sun, Y.Q.; Cole, C.; Nielsen, D. Application of Flywheel Energy Storage for Heavy Haul Locomotives. Appl. Energy 2015, 157, 607–618. [Google Scholar] [CrossRef] [Scilit]
- Dagnæs-Hansen, N.A.; Santos, I. Overview of Mobile Flywheel Energy Storage Systems State-Of-The-Art. In Proceedings of the 13th SIRM: The 13th International Conference on Dynamics of Rotating Machinery; Technical University of Denmark: Kgs. Lyngby, Denmark, 2019; pp. 282–294. [Google Scholar]
- Kenny, B.H.; Kascak, P.E.; Jansen, R.; Dever, T.; Santiago, W. Control of a High Speed Flywheel System for Energy Storage in Space Applications; NASA: Washington, DC, USA, 2004.
- Jensen, R.H.; Dever, T.P. G2 Flywheel Module Design; NASA: Washington, DC, USA, 2006.
- Nair, S.G.; Senroy, N. Parameter Optimization and Sizing of Flywheel Energy Storage System. In Proceedings of the 2015 IEEE Recent Advances in Intelligent Computational Systems (RAICS); IEEE: New York, NY, USA, 2015; pp. 312–317. [Google Scholar]
- Coppede, D.; Da Silva Bortoli, F.; Moreira, J.M.L.; Magalhaes, N.S.; Frajuca, C. Optimization of Flywheel Rotor Energy and Stability Using Finite Element Modelling. Energies 2024, 17, 3042. [Google Scholar] [CrossRef] [Scilit]
- Jiang, L.; Zhang, W.; Ma, G.J.; Wu, C.W. Shape Optimization of Energy Storage Flywheel Rotor. Struct. Multidiscip. Optim. 2017, 55, 739–750. [Google Scholar] [CrossRef] [Scilit]
- Eltaweel, M.; Mostafa, N.A.; Kalyvas, C.; Chen, Y.; Herfatmanesh, M.R. Optimising Flywheel Energy Storage Systems for Enhanced Windage Loss Reduction and Heat Transfer: A Computational Fluid Dynamics and ANOVA-Based Approach. Energy Rep. 2025, 13, 834–855. [Google Scholar] [CrossRef] [Scilit]
- Riaz, K.; Imam, S.F.; Tahir, Z.U.R.; Ali, T.; Hassan, A.; Amin, I.; Ilyas, N.; Adil, M.T.; Ahmad, S.; Abdullah, M.; et al. Design Optimization of a Rotor for Flywheel Energy Storage System. In Proceedings of the International Renewable Energy Storage Conference (IRES 2022); Schossig, P., Droege, P., Riemer, A., Speer, M., Eds.; Atlantis Highlights in Engineering; Atlantis Press International BV: Dordrecht, The Netherlands, 2023; Volume 16, pp. 422–433. [Google Scholar]
- Kesgin, M.G.; Han, P.; Taran, N.; Ionel, D.M. Overview of Flywheel Systems for Renewable Energy Storage with a Design Study for High-Speed Axial-Flux Permanent-Magnet Machines. In Proceedings of the 2019 8th International Conference on Renewable Energy Research and Applications (ICRERA); IEEE: New York, NY, USA, 2019; pp. 1026–1031. [Google Scholar]
- Venturini, S.; Cavallaro, S.P.; Vigliani, A. Windage Loss Characterisation for Flywheel Energy Storage System: Model and Experimental Validation. Energy 2024, 307, 132641. [Google Scholar] [CrossRef] [Scilit]
- Gupta, R.N.; Lee, K.-P.; Thompson, R.A.; Yos, J.M. Calculations and Curve Fits of Thermodynamic and Transport Properties for Equilibrium Air to 30,000 K; NASA: Washington, DC, USA, 1991.
- Motaman, S.; Eltaweel, M.; Herfatmanesh, M.R.; Knichel, T.; Deakin, A. Numerical Analysis of a Flywheel Energy Storage System for Low Carbon Powertrain Applications. J. Energy Storage 2023, 61, 106808. [Google Scholar] [CrossRef] [Scilit]
- Hansen, C.F. Molecular Physics of Equilibrium Gases: A Handbook for Engineers; NASA, NASA Ames Research Center: Moffett Field, CA, USA, 1976.
- Rhinehart, R.R. Engineering Optimization: Applications, Methods and Analysis, 1st ed.; Wiley-ASME press series; ASME Press: New York, NY, USA, 2018. [Google Scholar]
- Koziel, S.; Yang, X.-S. Computational Optimization, Methods and Algorithms; Studies in Computational Intelligence; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
- Erdogmus, P. Introductory Chapter: Swarm Intelligence and Particle Swarm Optimization. In Particle Swarm Optimization with Applications; Erdoğmuş, P., Ed.; InTech: London, UK, 2018. [Google Scholar]
- James, V.; Miranda, L. PySwarms: A Research Toolkit for Particle Swarm Optimization in Python. J. Open Source Softw. 2018, 3, 433. [Google Scholar] [CrossRef] [Scilit]
- Rhinehart, R.R. Scaled Variables and Dimensional Consistency. In Engineering Optimization: Applications, Methods and Analysis; Wiley-ASME press series; ASME Press: New York, NY, USA, 2018. [Google Scholar]
- Rhinehart, R.R. Constraints. In Engineering Optimization: Applications, Methods and Analysis; Wiley-ASME press series; ASME Press: New York, NY, USA, 2018. [Google Scholar]
- Kiusalaas, J. Initial Value Problems. In Numerical Methods in Engineering with Python 3; Cambridge University Press: Cambridge, UK, 2013; pp. 246–292. [Google Scholar]
- Vuik, C.; Vermolen, F.J.; Van Gijzen, M.B.; Vuik, M.J. Numerical Methods for Ordinary Differential Equations; TU Delft OPEN Publishing: Delft, The Netherlands, 2023. [Google Scholar]
- Hochmuth, C.A.; Lässig, J.; Thiem, S. Optimizing Complex Multi-Location Inventory Models Using Particle Swarm Optimization. In Computational Optimization, Methods and Algorithms; Koziel, S., Yang, X.-S., Eds.; Studies in Computational Intelligence; Springer: Berlin/Heidelberg, Germany, 2011; Volume 356, pp. 101–124. [Google Scholar]
- Kizielewicz, B.; Tomczyk, T.; Gandor, M.; Sałabun, W. Subjective Weight Determination Methods in Multi-Criteria Decision-Making: A Systematic Review. Procedia Comput. Sci. 2024, 246, 5396–5407. [Google Scholar] [CrossRef] [Scilit]
- Xu, K.; Guo, Y.; Lei, G.; Zhu, J. A Review of Flywheel Energy Storage System Technologies. Energies 2023, 16, 6462. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Palazzolo, A. A Review of Flywheel Energy Storage Systems: State of the Art and Opportunities. J. Energy Storage 2022, 46, 103576. [Google Scholar] [CrossRef] [Scilit]
- Amiryar, M.E.; Pullen, K.R. Analysis of Standby Losses and Charging Cycles in Flywheel Energy Storage Systems. Energies 2020, 13, 4441. [Google Scholar] [CrossRef] [Scilit]
- Mitsotakis, D. Numerical Differentiation and Applications to Differential Equations. In Computational Mathematics; CRC Press: Boca Raton, FL, USA, 2023; Volume 1, pp. 275–316. [Google Scholar]
- Tiitinen, L.; Hartikainen, H.; Peretti, L.; Hinkkanen, M. Motulator: Motor Drive Simulator in Python. In Proceedings of the 2023 IEEE International Electric Machines & Drives Conference (IEMDC); IEEE: New York, NY, USA, 2023; pp. 1–7. [Google Scholar]
- Cimuca, G.; Breban, S.; Radulescu, M.M.; Saudemont, C.; Robyns, B. Design and Control Strategies of an Induction-Machine-Based Flywheel Energy Storage System Associated to a Variable-Speed Wind Generator. IEEE Trans. Energy Convers. 2010, 25, 526–534. [Google Scholar] [CrossRef] [Scilit]
- Gurumurthy, S.R.; Agarwal, V.; Sharma, A. Optimal Energy Harvesting from a High-speed Brushless DC Generator-based Flywheel Energy Storage System. IET Electr. Power Appl. 2013, 7, 693–700. [Google Scholar] [CrossRef] [Scilit]
- Eltaweel, M.; Herfatmanesh, M.R. Optimisation of Geometric and Operational Conditions of a Flywheel Energy Storage System to Minimise Standby Losses. In ASME Turbo Expo 2024: Turbomachinery Technical Conference and Exposition; American Society of Mechanical Engineers: London, UK, 2024; Volume 6: Education; Electric Power; Energy Storage; Fans and Blowers, p. V006T09A011. [Google Scholar]
- Liu, B.; Fu, J.; Yu, Z. Research on Influencing Factors of Airgap Windage Losses and Establishment of an Improved Windage Losses Prediction Model. IEEE Access 2026, 14, 81840–81860. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










