energies Article Application of Computer Graphics Flow Visualization Methods in Vortex Rope Investigations Ondˇrej Urban * , Michaela Kurková and Pavel Rudolf Citation: Urban, O.; Kurková, M.; Rudolf, P. Application of Computer Graphics Flow Visualization Methods in Vortex Rope Investigations. Energies 2021,14, 623. https:// doi.org/10.3390/en14030623 Received: 21 December 2020 Accepted: 22 January 2021 Published: 26 January 2021 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2021 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 (https:// creativecommons.org/licenses/by/ 4.0/). V. Kaplan Department of Fluid Engineering, Faculty of Mechanical Engineering, Brno University of Technology, Technická 2896/2, 61669 Brno, Czech Republic;
[email protected] (M.K.); [email protected].cz (P.R.) *Correspondence:
[email protected]; Tel.: +420-54114-2340 Abstract: Computer graphics visualization techniques for application on data from Computational Fluid Dynamics (CFD) simulations of the vortex rope, a phenomenon present in hydraulic turbines operating in off-design conditions, were devised. This included not only objects for visualization (what to visualize) but also methods of the visualization itself (how to do it). By means of advanced methods based particularly on volume rendering of Eulerian fields in combination with Lagrangian objects, various phenomena were captured, such as the motion of the vortex rope or the backflow zone. The data came from simulations using a scale-resolving hybrid turbulence model, the Stress- Blended Eddy Simulation. In such detailed simulations and other applications involving complex three-dimensional structures, proper visualization methods are needed to leverage the content captured in the resultant data. Keywords: CFD; vortex rope; computer graphics; vortex criteria 1. Introduction Computer graphics flow visualization belongs to the field of data visualization. The main goal is to convert the data into visual representations, mostly 2D pictures viewed on a screen or printed on paper. Generally, the data are 3D, multivariate, and time-dependent. The process is, in such complex cases, typically irreversible, meaning that it is not possible to obtain all of the data back from the resultant pictures, and a portion of the information is inevitably lost. This gives rise to the central questions of data visualization: what to visualize and how in order to capture all the relevant features properly. Here, we give a brief overview of currently used computer graphics flow visualization techniques. For a more comprehensive description, we refer to Reference [1]. The process begins with the generation of the data. They may come from a numerical simulation (Computational Fluid Dynamics (CFD)) or an experiment. The second step comprises data modification. One can define and compute new variables from the existing ones, restrict the domain of interest by clipping, or interpolate the data to a different grid or data points. New objects can also be generated. These include streamlines and stream surfaces or tubes, vortex lines and vortex tubes, particles and their trajectories, streaklines, and material lines or surfaces. The third step is the generation of objects that will be rendered in the next step. Three-dimensional scalar fields can be displayed on a series of 2D slices. One can also extract isosurfaces. Streamlines and other line objects can be visualized as tubes. Various glyphs can be used for visualization of particles, vectors, or even tensors [ 2 ]. The data values on these objects can be coded by their color, transparency, material properties, textures, or dimensions. For an example with application on a vortex rope case, we refer to Reference [ 3 ], where quantities related to vorticity transport were visualized on pathlines using variable radius, segmentation, and different colors. The final step is rendering the scene and displaying the result. Scalar fields can be rendered directly by volume rendering. It is based on a fictitious light particle moving through the data field. Physically-based phenomena, such as emission, scattering, and absorption, can be Energies 2021,14, 623. https://doi.org/10.3390/en14030623 https://www.mdpi.com/journal/energies
Energies 2021,14, 623 2 of 21 considered [ 4 ]. Their parameters are based on the data values, i.e., we map the data values to a parameter, e.g., the emission strength, using a defined transfer function. In the end, we obtain a 2D field to be displayed on the screen. The development of this technique is driven particularly by medicine with applications to computed tomography (CT) or magnetic resonance imaging (MRI) data [5]. The art of volume rendering resides in the selection of the emission, scattering, and absorption parameters, where it is advisable to make unimportant parts of the data domain completely transparent and find such settings for the rest that provide the best notion of how the scalar values are distributed in the 3D space. For surface rendering, there exist a variety of methods ranging from simple targeted at speed to photorealistic developed primarily for computer-generated imagery (CGI) with applications including movies and video games. Swirling flows are typical for many engineering applications ranging from aircraft, process engineering, turbomachinery to combustion. These flows are rather susceptible to instabilities, one of them with important technical implications is vortex breakdown, an abrupt change in the flow structure of the swirling flow. Generally accepted definition of vortex breakdown comes from Leibovich [ 6 ], who defined it as a disturbance characterized by formation of an internal stagnation point on the vortex axis followed by reversed flow in a region of limited extent. In addition, the definition of Lugt [ 7 ] is often cited, who stated that vortex breakdown is a closed region or spiral within swirling flow with streamline divergence near the axis. It was also Lugt, among others, who noted that the nature of the spiral vortex breakdown changes with inlet swirl and that pressure increases along the vortex axis, which can be further risen by streamline divergence in a diffuser. The pressure increase is accompanied by an axial velocity drop and the formation of a stagnant region. Since its first documented observation in 1957 [ 8 ], an enormous effort was invested in study of this phenomenon and lots of papers were published (see Reference [ 9 , 10 ] or [ 11 ] for extensive reviews). It is not surprising that most of them contain some form of visual representation of the spiral vortex breakdown. Visualization often plays a significant role in qualitative understanding and improves insight into complex flow behavior. The vortex rope, a case of spiral vortex breakdown, is an unwanted phenomenon encountered in the draft tubes of water turbines [ 12 ]. It is a coherent structure, i.e., it persists its characteristics for longer times than turbulent eddy timescales. Due to its coherence, it may cause significant vibrations and noise. To overcome these effects and provide a wider operating range, efficient flow control methods aimed at its disintegration need to be employed [ 13 – 16 ]. Knowledge of its behavior is a prerequisite, leading to studies of this phenomenon by means of CFD [ 17 – 19 ] or stability analysis [ 20 ]. Such calculations produce data that need to be visualized. Visualizations in published CFD studies of the vortex rope typically rely on simple techniques. The vortex rope itself is visualized usually as an isosurface of a suitable quantity, most often the static pressure. Sometimes, a vortex identification method is used, e.g., the Q -criterion by Hunt [ 21 ], the λ2 -criterion by Jeong and Hussain [ 22 ], or the swirling strength by Zhou et al. [ 23 ], to name the most popular. For a review of their application in hydraulic machinery, see Reference [ 24 ]. Rajan and Cimbala [ 25 ] compared the static pressure and the mentioned vortex identification methods on a case with the vortex rope corresponding to the FLow INvestigation in a Francis Draft Tube (FLINDT) project [ 26 ]. They used a suitably selected isosurface and found out that visualizations based on the static pressure capture only the upper part of the vortex rope, while the vortex criteria capture the whole structure and its disintegration into smaller vortices downstream. In this paper, we extend the previous works and use more elaborated vortex identification methods. These include the MZ -criterion by Haller [ 27 ] and the residual vorticity by Koláˇr [ 28 ]. Another aim of this paper is to devise computer graphics flow visualization methods suitable for studies of the vortex rope and possibly other similar phenomena. We also propose a way of visualizing the whole 3D field of the finite-time Lyapunov exponent, a parameter connected with so-called Lagrangian coherent structures [ 29 ]. The methods
Energies 2021,14, 623 3 of 21 are demonstrated on data from CFD simulations of flow downstream of a swirl generator that cover a wide range of operating points given by the swirl number. 2. Vortex Rope Visualizations 2.1. Test Case The vortex rope phenomenon is usually studied in model turbines or swirl generators. The former mentioned provide conditions similar to those in actual water turbines, but they are usually much more expensive compared to simple swirl generators. We have designed such a generator without any moving parts, capable of reaching a wide range of operating conditions in terms of Reynolds and swirl numbers. This is achieved by two separate inlets, axial and tangential, leading into a volute with a central hub, and the operating point is given by the component flow rates. The geometry is sketched in Figure 1. An advantage is that the operating point can be changed smoothly during operation, but there is also a disadvantage of vortices generated in the mixing layer between axial and tangential flows that can affect the studied vortex rope, especially in cases with lower swirl numbers. Qax Qtan pout Qtan Qax Figure 1. Geometry of the swirl generator. 2.2. CFD Simulation Geometry of the generator and the diffuser was filled with 7 million hexahedral cells. While several non-confomal interfaces are between mesh blocks within the generator, the diffuser mesh is completely conformal with y+<5. This parameter is given by y+=ρvτy µ,vτ=rτw ρ,τw=µ∂vt ∂yy=0 , (1) where y is the wall normal distance, ρ the density, µ the dynamic viscosity, and vt the velocity component parallel to the wall. A slice through this mesh is presented in Figure 2, which illustrates the maximum effort spent to achieve orthogonality and equilateral edges of computational cells. Velocity boundary conditions were prescribed on the axial and tangential inlets and a constant static pressure on the outlet from the computational domain. Modeling of the turbulent flow was carried out with Stress-Blended Eddy Simulation (SBES) turbulence model [ 30 ]. SBES is a hybrid URANS-LES approach, based on an improved asymptotic shielding of RANS boundary layer against LES modification. Implementation of SBES within ANSYS Fluent 18.1 is employed, where the RANS part (mostly near-wall regions) is solved using SST k - ω model and the LES part (core of the flow containing a vortex rope) with wall-adapting local eddy-viscosity model (WALE LES). Its formulation of eddy viscosity is based on the following concept: νSBES t=fsνRANS t+ (1−fs)νLES t, (2)
Energies 2021,14, 623 4 of 21 where fs is the shielding function, and νt is the eddy viscosity. As can be seen, the shielding function controls the blending of RANS and LES closures. It was designed with respect to a list of requirements, some of them being preventing the boundary layers from being solved by LES (otherwise, much finer meshes are needed) and quick switching to LES after their detachment. For more information, we refer to Reference [ 30 ]. We used the following solver settings: PISO algorithm (Pressure-Implicit with Splitting of Operators) for pressure–velocity coupling, least squares cell-based scheme for gradients discretization, PRESTO! (PREssure STaggering Option) for pressure discretization, bounded central differencing for momentum discretization, second order upwind scheme for turbulent kinetic energy and turbulent dissipation discretization, and, finally, bounded second order implicit scheme for temporal discretization. Figure 2. A longitudinal slice through the Computational Fluid Dynamics (CFD) mesh in the diffuser. As the simulations cover different operating points, we introduce the swirl number, a parameter quantifying the intensity of swirl in circular cross sections. It is an integral parameter with different definitions used in the literature. The following definition [ 31 ] of Sr is used throughout the paper: Sr =1 RRSr|vϕvz|dS RSvz2dS, (3) where S is a selected circular cross section, R its wall radius, vϕ the tangential velocity, and vzthe axial velocity. A plane right under the hub tip was selected for the evaluation of Sr. Visualization of swirling flow within the diffuser was carried out for 2 snapshots, which correspond to instantaneous flow fields characterized by Sr ≈ 0.45 and Sr ≈ 0.85. The total flow rate (and hence also the Reynolds number) was held constant (5 L/s). Computational data presented in this paper are part of extensive research aimed on investigation of vortex rope behavior and its control, where visualization is one of partial goals. The reader is referred to Reference [ 32 , 33 ] for details about experiments and CFD simulations. 2.3. Software and Methodology Visualizations presented in this paper were created in ParaView 5.8.0 and Blender 2.82a (both are open-source tools). ParaView is a software for data analysis and visualization built on VTK (Visualization Toolkit) [ 34 ] and was employed for the pre-rendering operations (generating 3D surface objects, such as tubes for streamlines, isosurfaces, etc., and generating series of images for volume rendering). Finite-time Lyapunov exponents, residual vorticity, and MZ -criterion were computed using our own Python programmable filters. Blender is a 3D creation suite offering tools for the whole pipeline from modeling to rendering, animation and video editing. Its Cycles renderer offers more control over
Energies 2021,14, 623 5 of 21 lighting and material effects and well combines multiple volume renderings. We used it for rendering the objects generated in ParaView. The 3D surface objects were exported from ParaView in X3D format. Importing them to Blender and setting up for rendering is straightforward, with many guides publicly available. On the other hand, volume rendering of data fields in Blender is more complicated. A guide through this procedure is, therefore, given in Appendix A. 2.4. Vortex Identification Methods The central task of vortex rope visualizations is how to identify the vortex rope itself. The simplest way is to exploit the fact that static pressure decreases towards the vortex rope core. This approach is especially suitable for quick explorations, as the static pressure is readily available from CFD. Another way is to use vortex identification methods. Although the intuitive notion of a vortex as a portion of fluid rotating around a common axis (vortex core) is clear, there is no widely accepted rigorous definition capable of clearly distinguishing the vortices among other possible flow structures. Koláˇr [ 28 ] presented a review of the most popular vortex identification methods and summarized the requirements on vortex definitions: objectivity (independence of the reference frame motion), validity for compressible and variable-density flows, and ability to determine the local intensity of the swirling motion and the swirl orientation, among others. The problem resides in the inability of the methods to comply with all the requirements and in the arguability of some of them. Vortices are naturally connected with the vorticity, a quantity defined as the curl of the flow velocity Ω=∇×v. (4) It is a measure of the local spinning motion, precisely twice its angular velocity. This motion, however, can also be caused by purely shearing flows as is the case of the boundary layers. The Q -criterion overcomes this problem by defining vortices as the regions where the antisymmetric part R of the velocity gradient tensor prevails over its symmetric part S in the sense of the Frobenius norm, i.e., kAk=q∑i,jAij2 . We note that the nonzero elements of the antisymmetric part correspond to the components of the vorticity vector. The Q-criterion is defined as follows [21]: Q=1 2kRk2−kSk2. (5) This is also the second invariant of the velocity gradient tensor. This tensor and its properties gave rise to other vortex criteria. It can be shown that if the streamlines form closed or spiraling shapes, the characteristic equation of the velocity gradient tensor has one real and two complex solutions, leading to a pair of complex conjugate eigenvalues: Λ1∈R,Λ2=a+bi, Λ3=a−bi. (6) The swirling strength is then defined as the magnitude of their imaginary part, i.e., b . The idea is that the vortices are the regions of b > 0, with b serving also as a measure of their strength [23]. Another popular vortex criterion, the λ2 -criterion, is based on different considerations. It is known that swirling motion itself leads to a local pressure minimum at the vortex axis. We can take the gradient of the Navier–Stokes equation assuming incompressible fluid and no external forces: ∇∂v ∂t+(v·∇)v−ν∆v=−1 ρ∇(∇p). (7)
Energies 2021,14, 623 6 of 21 If the Hessian matrix ∇(∇p) has two positive eigenvalues, then there exists a plane in which p reaches its local minimum in the point of interest. As the next step, the velocity gradient is decomposed into the antisymmetric part R and the symmetric part S . Some of the terms on the left-hand side vanish, as they correspond to the vorticity transport equation. We then arrive at the following form: DS Dt+S2+R2−ν∆S=−1 ρ∇(∇p). (8) It is well-known that the local pressure minimum does not necessarily guarantee the existence of a vortex, and vice versa [ 28 ]. For this reason, the contribution of the material derivative of S and the viscous term to the Hessian matrix is discarded, and the λ2 -criterion requires two eigenvalues of S2+R2 to be negative. The eigenvalues are usually sorted in ascending order, and a vortex is defined as the region where λ2 is negative [ 22 ]. The absolute value of this eigenvalue can serve as a measure of the local swirl intensity. A more elaborate vortex criterion was proposed by Koláˇr [ 28 ]. It tackles the already mentioned drawback of the vorticity, i.e., admitting nonzero values not only for purely rotating flows but also for purely shearing flows. The proposed method is based on a triple decomposition of the velocity gradient into so-called effective shear, residual strain and residual rotation parts. The last part leads to the residual vorticity, i.e., a portion of the original vorticity related only to shearless motion. A bottleneck of this method is the effective shear extraction procedure. First, the decomposition of the velocity gradient tensor is defined as follows: ∇v=∇vshear +∇vresidual, (9) ∇vresidual =Υ,Υij = sgn ∂vi ∂xj!min ∂vi ∂xj , ∂vj ∂xi!. (10) The shear tensor is by definition purely asymmetric, and this procedure is proposed so that this property is satisfied. The results, however, depend on the choice of the frame of reference. We seek the frame where the Frobenius norm of the residual tensor is minimized. The shear part in this so-called best reference frame (BRF) is denoted as the effective shear. Koláˇr also derived a relation between k∇vkand k∇vresidualk: k∇vresidualk2+4(|S12R12|+|S23R23|+|S31R31|)=k∇vk2. (11) Considering the fact that k∇vk remains unchanged in all frames, the BRF is defined as the frame where |S12R12|+|S23R23|+|S31R31| is maximized. The computation of the residual vorticity therefore involves time-consuming optimization. Once the BRF is found, the residual tensor is computed, and then the residual vorticity is extracted from its antisymmetric part and returned back to the original frame. An advantage of vorticity-based criteria is that the vorticity determines also the swirl orientation. The axial vorticity can be used to determine the sense of rotation of the vortex rope (see the following section). The azimuthal vorticity and its gradient can be used to detect the onset of vortex breakdown [35]. We have visualized the vortex rope by volume rendering of these quantities in Figure 3. The colorbar range was determined with the target of reaching maximal similarity of the representations. The opacity transfer function represented by the white line is of the same shape for all cases to ensure comparability of the scaling. Two snapshots with different swirl numbers are depicted to assess also the dependence of each variable on the operating point.
Energies 2021,14, 623 7 of 21 −4·104 −3·104 −2·104 −1·104 −5000 Static pressure [Pa] 0 2·106 4·106 6·106 8·106 1·107 Q-criterion [1/s2] 0 1000 2000 3000 4000 4500 Swirling strength [1/s] 0 2000 4000 6000 8000 1·104 Vorticity [1/s] 0 500 1000 1500 2000 2500 3000 Residual vorticity [1/s] −1·107 −8·106 −6·106 −4·106 −2·106 0 λ2-criterion [1/s2] Figure 3. Volume rendering of some variables for visualization of the vortex rope. Left : a snapshot with Sr ≈ 0.45, right : a snapshot with Sr ≈ 0.85 (evaluated in a plane close under the hub tip). Boundary layers are removed from the vorticity (not residual vorticity) field to make the vortex rope visible. White lines represent the opacity transfer function. The static pressure turns out to be highly sensitive to the swirl number (decreasing rapidly with increasing swirl number). For the case with the higher swirl number, it gives qualitatively different results compared to the other quantities. It highlights a whole spiraling structure rather than individual vortices. Together, the results show that the flow in the diffuser in this case exhibits a huge spiraling structure (highlighted by the static pressure) which consists of twin spiraling vortices under the hub and many smaller
Energies 2021,14, 623 8 of 21 vortices downstream (highlighted by the other quantities). The values of the Q-criterion and λ2 -criterion scale rapidly, resulting in less-pronounced weaker vortices compared to the swirling strength or vorticity fields. The triple decomposition attributes around 2/3 of the total vorticity in the vortex rope to shearing motion, leading to an interesting result where even smaller vortices are clearly distinguishable. Overall, all the vortex identification methods highlighted structures of practically the same shape but with a different scaling of the values quantifying their strength. Definition of the right threshold remains a general problem for most of the vortex criteria. The vortex identification methods presented so far all have a common drawback: they are only Galilean invariant, i.e., their results do not depend on translation of the reference frame but do depend on its rotation. There is usually not a single natural choice of a reference frame, which leads to the need of an objective (independent of the frame motion) definition of a vortex [27]. Haller [ 36 ] showed that the deviation of the vorticity from its spatial mean is objective. In our case, the spatial mean in the diffuser turns out to be negligible and so can be omitted. The same principle can be applied to the residual vorticity. Haller [ 27 ] also proposed another objective vortex definition which is based on Lagrangian considerations. He partitioned the spatial domain into hyperbolic, parabolic, and elliptic zones based on the behavior of particle trajectories. The complete theory is beyond the scope of this work, only the computation procedure will be presented. We note that this criterion is applicable on incompressible fluid only. The strain acceleration tensor is given by M=DS Dt+(∇v)TS+S∇v. (12) The elliptic zone is the region where M is indefinite with respect to vectors belonging to certain defined subspace. To determine this, we need to compute the eigenvalues s of the strain rate tensor S . Two of them have the same sign, and the last one has the opposite sign. They are ordered as follows: sgn(s1)=sgn(s2)6=sgn(s3),|s1|≥|s2|. (13) With the substitutions a=−s1 s3,ˆ M=ETME, (14) where E is the matrix of eigenvectors of the strain rate tensor, function m(α) is defined as follows: m(α) = (1−a)ˆ M11cos2α+aˆ M22sin2α+a(1−a)ˆ M33 +qa(1−a)2√1−aˆ M13 cos α+2√aˆ M23 sin α+ˆ M12 sin2α.(15) The elliptic zone is the region where min(m(α))< 0. Testing this condition requires a suitable numerical method. A vortex is then defined as a set of trajectories remaining in the elliptic zone for the whole integration time. Unfortunately, as Haller pointed out, this criterion requires many numerical operations including second order spatial differentiation and computation of particle trajectories, leading to numerical errors that consequently incorrectly disqualify a significant portion of particles from being contained in a vortex. For this reason, a relaxed definition is used: a trajectory is contained in a vortex, if the ratio of the time spent in the elliptic zone to the integration time is above a selected threshold. This criterion is referred to as the MZ-criterion.
Energies 2021,14, 623 9 of 21 2.5. Hybrid Methods for Investigations of the Vortex Rope 2.5.1. The MZ-Criterion Combined with the Residual Vorticity The MZ -criterion by definition gives no information about the intensity of the swirling motion. For this reason, we suggest combining with the residual vorticity. From the computational domain, we select only those data points (particles) that satisfy the MZ - criterion. These points are then colored according to the residual vorticity and rendered by volume rendering (Figure 4). At first, one needs to choose appropriate integration time. For each case, we present a longitudinal slice of an area under the hub tip with the vortex rope, colored by MZ , for three different integration times T . Generally, as T grows, more particles get into the hyperbolic zone, leading to the decay of their MZ value. For the case with the lower swirl number, we observe that particles starting from the vortex rope core remain in the elliptic zone for long times, while particles starting from its surroundings spend considerable portion of time in the hyperbolic zone. There is a sharp gradient of MZ values that clearly highlights the vortex core edge. For the case with the higher swirl number, the situation is more complicated, as there are many smaller vortices concentrated in the spiraling structure. Together with shorter time scales, this increases the uncertainty of the results. The volume renderings with the threshold of MZ> 0.99 contain the vortex rope in the first case, but miss many structures with a high residual vorticity, especially the twin spiraling vortices under the hub tip, in the second case. A lower threshold of MZ> 0.9 is fulfilled by substantially more particles in the second case, leading to much more structures visible in the volume rendering. In the first case, the change is less significant. 0 500 1000 1500 2000 2500 3000 Residual vorticity [1/s] T = 5·10 3 s MZ > 0.99 T = 2·10 3 s MZ > 0.99 0 500 1000 1500 2000 2500 3000 Residual vorticity [1/s] T = 5·10 3 s MZ > 0.9 T = 2·10 3 s MZ > 0.9 T = 1·10 3 s T = 3·10 3 s T = 5·10 3 s T = 1·10 3 s T = 2·10 3 s T = 3·10 3 s 0.0 0.2 0.4 0.6 0.8 1.0 MZ [1] Figure 4. Top : volume renderings of the MZ -criterion combined with the residual vorticity for two thresholds. Bottom : longitudinal slices of the MZ -criterion field (area under the hub tip) for different integration times. The snapshots are the same as in Figure 3(Sr ≈0.45 and 0.85).
Energies 2021,14, 623 16 of 21 An important enabler of the techniques presented in this paper is volume rendering. This method of 3D data visualization is used abundantly in medicine, while, in applied fluid mechanics and specifically in hydraulic machinery, its applications are rather seldom. Just like isosurfaces, as the prevailing method used to visualize various structures in the flow field, it also has the ability of highlighting the structures by making unimportant parts of the domain transparent. Unlike opaque isosurfaces, however, the volume rendering by variable level of transparency retains the information regarding the distribution of the values of the quantity of interest in the 3D domain. Thanks to this, it can also be combined with vortex core lines, making it easier to distinguish between overlapping vortex cores. All proposed methods become increasingly useful with growing trend toward hybrid URANS-LES and LES simulations, where abundance of coherent vortices arises and flow becomes visually unclear or even chaotic. It is precisely these methods that enable to extract the key features that play an important role in flow dynamics, such us the disintegration and decay of the vortex rope. Moreover, suitability of general-purpose visualization packages in the field of fluid mechanics, particularly in application to vortex dynamics, was illustrated on several examples. Smart application of these tools makes possible capturing more phenomena in one figure to highlight mutual interaction and interplay of several flow features. Thus, visual representation becomes more effective and helpful. Computational data presented in this paper are part of extensive research aimed on investigation of vortex rope behavior and its control. The presented techniques of vortex rope identification and visualization will be used to thoroughly investigate its behavior in the whole operating range of our swirl generator. Proper understanding of fluid flow and its response to various flow control methods is generally essential in tackling modern challenges of reaching higher efficiency, wider operating range, lower noise, and other goals. Author Contributions: Conceptualization, O.U. and M.K.; methodology, O.U. and P.R.; software, O.U.; visualizations, O.U. and M.K.; writing—original draft preparation, O.U.; writing—review and editing, O.U., M.K., and P.R.; project administration, P.R.; funding acquisition, P.R. All authors have read and agreed to the published version of the manuscript. Funding: This research was funded by Czech Science Agency under project 17-01088S “3D instability of a shear layer in adverse pressure gradient” and project “Computer Simulations for Effective Low-Emission Energy Engineering” funded as project No. CZ.02.1.01/0.0/0.0/16_026/0008392 by Operational Program Research, Development and Education, Priority axis 1: Strengthening capacity for high-quality research. Institutional Review Board Statement: No human subjects, human material, human tissues or human data were involved in the presented research. Informed Consent Statement: Not applicable. Data Availability Statement: The data that support the findings of this study are available from the corresponding author upon reasonable request. Acknowledgments: Czech Science Agency under project 17-01088S “3D instability of a shear layer in adverse pressure gradient” and project “Computer Simulations for Effective Low-Emission Energy Engineering” No. CZ.02.1.01/0.0/0.0/16_026/0008392 by Operational Programme Research, Development and Education, Priority axis 1: Strengthening capacity for high-quality research are gratefully acknowledged for support of the research. Conflicts of Interest: The authors declare no conflict of interest.
Energies 2021,14, 623 17 of 21 Abbreviations The following abbreviations are used in this manuscript: CFD Computational Fluid Dynamics CT Computed Tomography DFT Discrete Fourier Transform FLINDT FLow INvestigation in a Francis Draft Tube FTLE Finite-Time Lyapunov Exponent LES Large Eddy Simulation MRI Magnetic Resonance Imaging PISO Pressure-Implicit with Splitting of Operators PRESTO! PREssure STaggering Option RANS Reynolds-Averaged Navier-Stokes equations SBES Stress-Blended Eddy Simulation SST Shear Stress Transport TIFF Tagged Image File Format URANS Unsteady Reynolds-Averaged Navier-Stokes equations VTK The Visualization ToolKit WALE Wall-Adapting Local Eddy-viscosity model X3D eXtensible 3D Appendix A. Volume Rendering of Data from Paraview in Blender In this appendix, we describe the procedure of transfering data for volume rendering from ParaView to Blender and the settings therein. The reason for doing this is that there are things that can be easily done in Blender, while, in ParaView, they are cumbersome or even impossible, e.g., properly combining multiple volume renderings in a single picture or setting transparency according to one variable and colors according to another one. The price for this is the time needed for preparations and the rendering itself. The first step comprises the preparation of the volume rendering in ParaView. Once the data are loaded, apply “Resample To Image” filter on them. It resamples the data to a structured grid of a given size, making the rendering much faster, allowing for quick explorations and experimentation with color and transparency settings. The disadvantage is that curved boundaries will be jagged and selective refinements will be lost, which is fortunately not a problem in our case. Once the results look as desired, they can be saved in Tagged Image File Format (TIFF) format as a series of images. Before that, it is needed to adjust the data so that the range on the colorbar is from 0 to 255. For example, if one has prepared a volume rendering of the static pressure and the colorbar range is from − 10 to 1, it is needed to subtract 1 and multiply the result by − 255 / 11. The areas with the lowest pressures (which are of interest) will then correspond to the brightest pixels in the images. This can be done in ParaView using the “Calculator” function. The “Result Array Type” setting needs to be set to float or unsigned character. The volume rendering is in this case given by a series of slices along the z -axis, with each slice represented as a raster graphics image. The advantage of TIFF is that it allows saving all the images to a single file. This file is then adjusted to be usable in Blender as the source for its volume shaders. For the approach we used [ 50 ], it is required to gather all the images from the TIFF file and convert them into a single image with the component images stacked one by one next to each other. The resultant image is typically very wide. Part of such image is presented in Figure A1. Figure A1. A part of the image ready to be imported into Blender as the source texture for volume rendering. It shows 7 slices out of 640 distributed uniformly along the diffuser. This particular image was used for volume renderings with forward FTLE fields (the case with the lower Sr) in Figure 6. Higher values are brighter.
Energies 2021,14, 623 18 of 21 We obtained this image using the following MATLAB code: input = ’D:\CFD\generator2017\FTLE\image.tiff’; % input image output = ’D:\CFD\generator2017\FTLE\final_image.png’; % output image, png format numimgs = size(imfinfo(input),1); % number of images in the file I = imread(input,1); % load the first image s = size(I); % find its size pic = uint8(zeros(s(1),numimgs*s(2))); % predefine the matrix for the res. image pic(:,1:s(2)) = I; % insert the first image pos = s(2) + 1; % move the position pointer % Insert other images using a for loop for i = 2:numimgs I = imread(fullfile(cesta,soubor),i); pic(:,pos:(pos + s(2) - 1)) = I; pos = pos + s(2); end % Write resultant image imwrite(pic,output); The resultant image is ready to be loaded into Blender as part of the following volume rendering procedure. It is based on the rendering of a cube (which is one of the basic objects in Blender) using a volume shader. The dimensions and position of the cube must be adjusted to match the actual dimensions and position of the structured grid in ParaView. The color and the transparency level for each point is determined from the image. This requires a procedure that, for each point of the cube, finds the corresponding pixel in the image. This process is given by the network of nodes created in Blender “Shader Editor” depicted in Figure A2. The first part (at the top of the figure) finds the pixel in the image corresponding to the given position within the cube. As we have a finite number of slices along the z -axis, we need to interpolate between the two closest slices to obtain a smooth representation. This is why there are two similar procedures, with the only difference in the rounding operation: floor is used in the top branch, leading to the closest plane with a lower z value, whereas ceil is used in the bottom branch, leading to the closest plane with a higher z value. The image is imported within the orange box (“Image Texture” node, bottom of Figure A2). The interpolation is processed by the yellow “MixRGB” node. Two “Color Ramp” nodes follow to assign colors and transparency to each point. They should be set according to the colorbar and opacity transfer function prepared in ParaView, if the same appearance is required. Shader “Principled Volume”, which combines scattering, absorption and emission, is used. Here, we used scattering and emission at the same time. The two “Multiply” nodes are used to control the intensities of these two effects. We note that, for extremely small scales, the volume rendering may not be visible. In such cases, it is necessary to properly rescale the objects.
Energies 2021,14, 623 19 of 21 Figure A2. The network of operations used in Blender “Shader Editor” cut into two parts. Red lines mark the cut. References 1. Post, F.H.; van Walsum, T. Fluid Flow Visualization. In Focus on Scientific Visualization; Hagen, H., Müller, H., Nielson, G.M., Eds.; Springer: Berlin/Heidelberg, Germany, 1993. 2. Fuchs, R. The Visible Vortex—Interactive Analysis and Extraction of Vortices in Large Time-Dependent Flow Data Sets. Ph.D. Thesis, TU Wien, Vienna, Austria, 2008. 3. Sadlo, F.; Peikert, R.; Sick, M. Visualization Tools for Vorticity Transport Analysis in Incompressible Flow. IEEE Trans. Vis. Comput. Graph. 2006,12, 949–956. [CrossRef] 4. Kaufman, A.; Hohne, K.; Kruger, W.; Rosenblum, L.; Schroder, P. Research issues in volume visualization. IEEE Comput. Graph. Appl. 1994,14, 63–67. [CrossRef] 5. Rosenblum, L.J. Research issues in scientific visualization. IEEE Comput. Graph. Appl. 1994,14, 61–63. [CrossRef] 6. Leibovich, S. The Structure of Vortex Breakdown. Annu. Rev. Fluid Mech. 2007,10, 221–246. [CrossRef] 7. Lugt, H. Vortex Flow in Nature and Technology; John Wiley & Sons Inc.: Hoboken, NJ, USA, 1983. 8. Peckham, D.H.; Atkinson, S.A. Preliminary Results of Low Speed Wind Tunnel Test on a Ghotic Wing of Aspect Ratio 1.0; Aeronautical Research Council Current Papers; The Stationery Office: London, UK, 1960. Available online: http://naca.central.cranfield.ac.uk/ reports/arc/cp/0508.pdf (accesssed on 25 January 2021)
Energies 2021,14, 623 20 of 21 9. Escudier, M. Vortex breakdown: Observations and explanations. Prog. Aerosp. Sci. 1988,25, 189–229. [CrossRef] 10. Althaus, W.; Brücker, C.; Weimar, M. Breakdown of Slender Vortices. In Fluid Vortices; Green, S.H., Ed.; Kluwer Academic: Amsterdam, The Netherlands, 2008. 11. Lucca-Negro, O.; O’Doherty, T. Vortex breakdown: A review. Prog. Energy Combust. Sci. 2001,27, 431–481. [CrossRef] 12. Dörfler, P.K.; Sick, M.; Coutu, A. Flow-Induced Pulsation and Vibration in Hydroelectric Machinery: Engineer’s Guidebook for Planning, Design and Troubleshooting; Springer: London, UK, 2013. 13. Nishi, M.; Wang, X.M.; Yoshida, K.; Takahashi, T.; Tsukamoto, T. An Experimental Study on Fins, Their Role in Control of the Draft Tube Surging; Hydraulic Machinery and Cavitation; Springer: Dordrecht, The Netherlands, 1996. 14. Dörfler, P.K. Design criteria for air admission systems in Francis turbines. In Proceedings of the 13th Symposium of IAHR Section for Hydraulic Machinery, Equipment and Cavitation, Montreal, QC, Canada, 2–5 September 1986. 15. Gogstad, P.J.; Dahlhaug, O.G. Evaluation of runner cone extension to dampen pressure pulsations in a Francis model turbine. IOP Conf. Ser. Earth Environ. Sci. 2016,49, 082019. [CrossRef] 16. Susan-Resiga, R.; Vu, T.C.; Muntean, S.; Ciocan, G.D.; Nennemann, B. Jet Control of the Draft Tube Vortex Rope in Francis Turbines at Partial Discharge. In Proceedings of the 23rd IAHR Symposium on Hydraulic Machinery and Systems, Yokohama, Japan, 17–21 October 2006. 17. Ruprecht, A. Numerical prediction of vortex instabilities in turbomachinery. In Advances in High Performance Computing and Computational Sciences; Springer: Berlin/Heidelberg, Germany, 2006. 18. Ciocan, G.D.; Iliescu, M.S.; Vu, T.C.; Nennemann, B.; Avellan, F. Experimental Study and Numerical Investigation of the FLINDT Draft Tube Rotating Vortex. J. Fluids Eng. 2007,129, 146–158. [CrossRef] 19. Minakov, A.; Sentyabov, A.; Platonov, D. Numerical investigation of flow structure and pressure pulsation in the Francis-99 turbine during startup. J. Phys. Conf. Ser. 2017,782, 012004. [CrossRef] 20. Pasche, S.; Avellan, F.; Gallaire, F. Part Load Vortex Rope as a Global Unstable Mode. J. Fluids Eng. 2017 ,139, 051102. [CrossRef] 21. Hunt, J.C.R.; Wray, A.A.; Moin, P. Eddies, Streams, and Convergence Zones in Turbulent Flows. In Proceedings of the Summer Program 1988, pp. 193–208. Available online: https://ntrs.nasa.gov/citations/19890015184 (accessed on 25 January 2021) 22. Jeong, J.; Hussain, F. On the identification of a vortex. J. Fluid Mech. 1995,285, 69–94. [CrossRef] 23. Zhou, J.; Adrian, R.J.; Balachandar, S.; Kendall, T.M. Mechanisms for generating coherent packets of hairpin vortices in channel flow. J. Fluid Mech. 1999,387, 353–396. [CrossRef] 24. Zhang, Y.; Liu, K.; Xian, H.; Du, X. A review of methods for vortex identification in hydroturbines. Renew. Sustain. Energy Rev. 2018,81, 1269–1285. [CrossRef] 25. Rajan, G.K.; Cimbala, M. Computational and Theoretical Analyses of the Precessing Vortex Rope in a Simplified Draft Tube of a Scaled Model of a Francis Turbine. J. Fluid Eng. 2017,139, 021102. [CrossRef] 26. Avellan, F. Flow Investigation in a Francis Draft Tube: The Flindt Project. In Proceedings of the 20th IAHR Symposium on Hydraulic Machinery and Systems, Charlotte, NC, USA, 6–9 August 2000. 27. Haller, G. An objective definition of a vortex. J. Fluid Mech. 2005,525, 1–26. [CrossRef] 28. Koláˇr, V. Vortex identification: New requirements and limitations. Int. J. Heat Fluid Flow 2007,28, 638–652. [CrossRef] 29. Haller, G. Lagrangian Coherent Structures. Annu. Rev. Fluid Mech. 2015,47, 137–162. [CrossRef] 30. Menter, F. Stress-Blended Eddy Simulation (SBES)—A New Paradigm in Hybrid RANS-LES Modeling. In Progress in Hybrid RANS-LES Modelling; Springer: Cham, Switzerland, 2016; pp. 27–37. 31. Sheen, H.J.; Chen, W.J.; Jeng, S.Y.; Huang, T.L. Correlation of swirl number for a radial-type swirl generator. Exp. Therm. Fluid Sci. 1996,12, 444–451. [CrossRef] 32. Štefan, D.; Rudolf, P.; Hudec, M.; Uruba, V.; Procházka, P.; Urban, O. Experimental investigation of vortex ring formation as a consequence of spiral vortex re-connection. IOP Conf. Ser. Earth Environ. Sci. 2019,405, 012033. [CrossRef] 33. Urban, O.; Rudolf, P. POD analysis of a vortex rope with transient boundary conditions. IOP Conf. Ser. Earth Environ. Sci. 2019 , 405, 012034. [CrossRef] 34. Ayachit, U. The ParaView Guide; Kitware: New York, NY, USA, 2017. 35. Kurosaka, M.; Cain, C.B.; Srigrarom, S.; Wimer, J.D.; Dabiri, D.; Johnson, W.F.; Hatcher, J.C.; Thompson, B.R.; Kikuchi, M.; Hirano, K.; et al. Azimuthal vorticity gradient in the formative stages of vortex breakdown. J. Fluid Mech. 2006 ,569. [CrossRef] 36. Haller, G. Defining coherent vortices objectively from the vorticity. J. Fluid Mech. 2016,795, 136–173. [CrossRef] 37. Green, M.A.; Rowley, C.W.; Haller, G. Detection of Lagrangian coherent structures in three-dimensional turbulence. J. Fluid Mech. 2007,572, 111–120. [CrossRef] 38. Lipinski, D.; Cardwell, B.; Mohseni, K. A Lagrangian analysis of a two-dimensional airfoil with vortex shedding. J. Phys. A Math. Theor. 2008,41, 344011. [CrossRef] 39. Peng, J.; Dabiri, J.O. The ’upstream wake’ of swimming and flying animals and its correlation with propulsive efficiency. J. Exp. Biol. 2008,211, 2669–2677. [CrossRef] 40. Wilson, M.M.; Peng, J.; Dabiri, J.O.; Eldredge, J.D. Lagrangian coherent structures in low Reynolds number swimming. J. Phys. Condens. Matter 2009,21, 204105. [CrossRef] 41. Beron-Vera, F.J.; Olascoaga, M.J.; Goni, G.J. Oceanic mesoscale eddies as revealed by Lagrangian coherent structures. Geophys. Res. Lett. 2008,35. [CrossRef]
Energies 2021,14, 623 21 of 21 42. Shadden, S.C.; Lekien, F.; Mardsen, J.E. Definition and properties of Lagrangian coherent structures from finite-time Lyapunov exponents in two-dimensional aperiodic flows. Phys. D Nonlinear Phenom. 2005,212, 271–304. [CrossRef] 43. Haller, G. Lagrangian coherent structures from approximate velocity data. Phys. Fluids 2002,14, 1851–1861. [CrossRef] 44. Brunton, S.; Rowley, C.W. Fast computation of finite-time Lyapunov exponent fields for unsteady flows. Chaos Interdiscip. J. Nonlinear Sci. 2010,20, 017503. [CrossRef] 45. Levi, Y.; Degani, D.; Seginer, A. Graphical visualization of vortical flows by means of helicity. AIAA J. 1990 ,28, 1347–1352. [CrossRef] 46. Sujudi, D.; Haimes, R. Identification of swirling flow in 3-D vector fields. In Proceedings of the 12th Computational Fluid Dynamics Conference, San Diego, CA, USA, 19–22 June 1995. 47. ParaView Plugins. Available online: https://vcg.iwr.uni-heidelberg.de/plugins/ (accessed on 20 December 2020). 48. Skripkin, S.G.; Tsoy, M.A.; Kuibin, P.A.; Shtork, S.I. Study of Pressure Shock Caused by a Vortex Ring Separated From a Vortex Rope in a Draft Tube Model. J. Fluids Eng. 2017,139, 081103. [CrossRef] 49. Kida, S.; Miura, H. Identification and analysis of vortical structures. Eur. J. Mech. B/Fluids 1998,17, 471–488. [CrossRef] 50. Using Image Sequence of Medical Scans as Volume Data in Cycles. Available online: https://blender.stackexchange.com/ questions/62110/using-image-sequence-of-medical-scans-as-volume-data-in-cycles/ (accessed on 9 January 2021).