Numerical Simulation Analysis Method for Tailwater Flow Field Based on All-Terrain Modeling
By using all-terrain modeling and local adaptive mesh refinement technology, combined with renormalized group turbulence model and biological migration data, the problem of insufficient accuracy in simulating the flow field of complex tailrace areas was solved, enabling accurate assessment of the flow field in the tailrace area and scientific site selection for engineering facilities.
Patent Information
- Application Number
- CN202611382377.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-10
AI Technical Summary
Existing flow field numerical simulation methods lack local mesh refinement mechanisms when dealing with complex tailrace areas, making it impossible to accurately capture local turbulence surges and flow distortion characteristics at the boundaries. Furthermore, they fail to deeply quantify the direction of the flow vector and the biophysical swimming potential, leading to inaccurate site selection for engineering facilities.
A three-dimensional model of the tailrace area was constructed using a method based on all-terrain modeling. By combining local adaptive mesh refinement and renormalized swarm turbulence model with biological migration data, flow regime assessment results were generated to assist in the layout design of engineering facilities.
It improves the accuracy of flow field simulation, enables scientific quantitative evaluation of the tailrace area, ensures that engineering facilities avoid eddy blind zones, and improves the accuracy of site selection for auxiliary projects such as fishways.
Smart Images

Figure CN123069983A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of flow field numerical simulation technology, specifically to a method for numerical simulation and analysis of tailrace flow field based on all-terrain modeling. Background Technology
[0002] The flow field morphology of the tailrace area of a water conservancy project directly affects the operation of hydraulic structures and the ecological migration of target species. The layout of corresponding engineering facilities is highly dependent on the numerical simulation analysis of the tailrace flow field. Existing numerical simulation methods usually construct the computational domain based on the basic topographic elevation and perform uniform grid division, only outputting basic hydrodynamic parameters such as flow velocity or water level as the design basis.
[0003] However, existing technologies have limitations in model accuracy and evaluation dimensions when dealing with complex tailrace flow fields. At the level of model construction and spatial discretization, conventional methods lack a local adaptive mesh refinement mechanism for abrupt geometric structures such as tailrace backslopes and funnels. Smoothing degradation processing makes it impossible to accurately capture the local turbulence surges and flow distortion characteristics induced at the boundaries, which restricts the accuracy of solving the underlying flow field. At the level of data analysis and engineering site selection, traditional evaluation methods rely only on a single absolute velocity scalar for static qualitative judgment, without deeply quantifying and coupling the water flow vector direction, three-dimensional spatial turbulent kinetic energy characteristics and biophysical swimming potential. It is difficult to objectively delineate the physical barriers of flow velocity in digital space, and even more difficult to accurately screen out reverse backflow areas that contradict the biological upstream trajectory, making it easy for engineering facility site selection to fall into the eddy blind zone. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a numerical simulation analysis method for tailrace flow field based on all-terrain modeling. This method solves the problems of insufficient simulation accuracy in the tailrace area and lack of scientific quantitative evaluation for the site selection of auxiliary projects such as fishways, which are caused by the lack of local mesh refinement mechanisms for complex terrain and the failure to couple biophysical swimming potential for flow field vector analysis in existing flow field numerical simulation methods.
[0005] To achieve the above objectives, the present invention provides the following technical solution: a numerical simulation analysis method for tailrace flow field based on all-terrain modeling, comprising the following steps: S1: Obtain the original topographic data of the engineering area and the structural data of the tailrace area; S2, Based on the original terrain data and the structural data, construct a three-dimensional model of the entire tailrace area terrain; S3: Mesh the three-dimensional model of the entire terrain of the tailrace area to obtain a mesh model; S4: Obtain the operating condition data of the target water conservancy project, and set the boundary conditions of the mesh model based on the operating condition data; S5: Based on the preset turbulence model, numerical simulation of the flow field is performed on the grid model after setting boundary conditions to obtain the flow field distribution data of the tailrace area; S6: Based on the flow field distribution data of the tailrace area, analyze the flow regime in the tailrace area and generate flow regime assessment results to assist in the layout design of engineering facilities.
[0006] Further, in step S2, the process of constructing a three-dimensional model of the tailrace area based on the original terrain data and the structural data is as follows: an original terrain model of the engineering area is established based on the original terrain data; on the basis of the original terrain model, a tailrace area structure including a tailrace reverse slope structure and a tailrace funnel structure is constructed to generate the three-dimensional model of the tailrace area.
[0007] Furthermore, in step S3, to address the abrupt change in variable gradient caused by water flowing through complex geometric structures, this invention employs a spatial local adaptive mechanism to control the mesh resolution. The step of meshing the tailrace area's three-dimensional terrain model to obtain the mesh model specifically includes: using a structured mesh to comprehensively divide the tailrace area's three-dimensional terrain model; and using nested meshes to locally refine the tailrace backslope region within the tailrace area's three-dimensional terrain model to obtain the mesh model. Specifically, the velocity gradient parameter of each mesh node is extracted, and the absolute value of the local velocity gradient satisfies the constraint conditions. At that time, the adaptive mesh splitting mechanism is triggered, generating nested mesh blocks. In the above formula, The spatial gradient magnitude of the scalar velocity of the water flow at the grid nodes in the flow field is extracted by the fluid dynamics solver engine based on discrete calculations.
[0008] Further, in step S4, the step of obtaining the operating condition data of the target water conservancy project and setting the boundary conditions of the grid model based on the operating condition data specifically includes: obtaining the natural flow data and the unit power generation flow data of the target water conservancy project during a preset operating water period; using the natural flow data and the unit power generation flow data as input conditions, setting the inlet flow boundary and downstream water level boundary of the grid model under the corresponding operating conditions.
[0009] Furthermore, the preset turbulence model is a renormalized group turbulence model; in step S5, the step of performing flow field numerical simulation on the grid model after setting boundary conditions based on the preset turbulence model specifically includes: using the renormalized group turbulence model to solve the continuity equation and momentum equation, calculating the water flow velocity, water flow direction and turbulent kinetic energy data at different spatial locations in the tailrace, and generating the flow field distribution data of the tailrace containing the turbulent kinetic energy data.
[0010] Further, in step S6, the step of analyzing the flow regime based on the tailrace flow field distribution data to generate a flow regime assessment result specifically includes: extracting the distribution range of the main flow region, the distribution range of the backflow region, and the velocity distribution gradient based on the tailrace flow field distribution data; determining the spatial distribution boundary of the main flow region based on the distribution range of the main flow region, and generating a regional flow regime distribution map as the flow regime assessment result by combining the velocity of the backflow region.
[0011] Furthermore, the engineering facility is a fishway, and the layout design of the auxiliary engineering facility is the layout design of the fishway inlet; to achieve cross-domain mapping between the hydrodynamic parameters of the flow field and the physical boundary of the organism, before step S6, the method further includes: Acquire the migratory behavior data of the target fish, including the target fish's sensed swimming speed, critical swimming speed, and sudden swimming speed. The above speed parameters are all set based on biological historical measured data. Based on the migratory behavior data, determine the preferred current velocity range suitable for the target fish to swim upstream, and define the areas with current velocities greater than the critical swimming speed or lower than the sensed swimming speed as current velocity obstruction areas that cannot be used as fish passages.
[0012] Furthermore, in step S6, the step of generating flow regime evaluation results for assisting in the layout design of engineering facilities specifically includes: The flow field distribution data of the tailrace area is matched and compared with the preferred flow velocity range and the flow velocity barrier area. Based on the matching and comparison results, the flow velocity barrier area and the backflow area where the turbulent kinetic energy data is greater than the preset turbulence threshold are avoided in the three-dimensional model of the tailrace area. The candidate layout position of the fishway inlet is initially determined as the flow state evaluation result.
[0013] Furthermore, after step S6, in order to achieve quantitative optimization of the scheme after the engineering facility entity intervenes in the hydrodynamic environment, the method further includes: based on the candidate layout positions, establishing multiple corresponding fishway scheme models in the three-dimensional model of the tailrace area; introducing fishway water replenishment flow boundary conditions into the multiple fishway scheme models respectively, performing secondary flow field numerical simulation, and obtaining the corresponding secondary flow field numerical simulation results.
[0014] Furthermore, after obtaining the corresponding secondary flow field numerical simulation results, a comprehensive comparison of multi-dimensional ecological constraints is performed. The method also includes: comparing the secondary flow field numerical simulation results of the multiple fishway scheme models; selecting a fishway scheme model where the mainstream flow velocity is within the preferred flow velocity range, the local maximum flow velocity does not exceed the sudden swimming speed, and there is no backflow area with an area greater than a preset area threshold and the flow velocity direction is opposite to the upstream direction of the target fish, as the target fishway layout scheme.
[0015] The screening principle for the aforementioned backflow area is as follows: Backflow node clusters whose flow velocity direction is opposite to the upstream direction of the target fish are extracted using spatial dot product operations. The calculation formula is:
[0016] In the above formula, Represents the factor determining the direction of tracing back; This represents the nodal flow velocity vector output in the numerical simulation results of the secondary flow field; This represents the upstream direction vector of the target fish species, and is set based on the spatial distribution data of the organisms.
[0017] Extraction with The spatial node set of attributes is used to calculate its three-dimensional projected area, and the integral area of the reverse recirculation region is obtained, defined as follows: Identify and eliminate fishway design models that do not meet the following constraints:
[0018] In the above formula, This represents a preset area threshold, set based on historical experience data from ecological scheduling of water conservancy projects.
[0019] This invention provides a numerical simulation and analysis method for tailrace flow field based on all-terrain modeling. It has the following beneficial effects: 1. This invention constructs a full-terrain three-dimensional model by integrating original terrain data and tailrace area structure data, divides the full-terrain three-dimensional model into grids and introduces operating condition data to set boundary conditions, starts a preset turbulence model to perform numerical simulation, outputs flow field distribution data carrying physical parameters, and completes the mapping from the data layer to the physical model layer.
[0020] 2. This invention extracts the distribution range of the mainstream region and the gradient elements of the velocity distribution within the flow field distribution data, establishes the flow pattern distribution boundary by combining spatial node coordinates, integrates the velocity parameters of the return region to perform spatial geometric boundary comparison, and generates flow pattern evaluation results to complete the transformation of physical flow field model parameters into engineering facility layout and site selection coordinates. Attached Figure Description
[0021] Figure 1 This is the overall main flowchart of the tailrace flow field numerical simulation analysis method based on all-terrain modeling of the present invention; Figure 2 This is a schematic diagram of the local mesh division of the present invention; Figure 3 This is a schematic diagram illustrating the evaluation of flow velocity and regional flow regime distribution in the tailrace area according to the present invention. Figure 4 This is a flowchart of the quantitative optimization process for assisting in the design of fishway inlet layout according to the present invention; Figure 5 This is a schematic diagram comparing candidate fishway inlet schemes of the present invention. Detailed Implementation
[0022] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] Please see the appendix Figure 1 To be continued Figure 5 This invention provides a numerical simulation analysis method for tailrace flow field based on all-terrain modeling. It relies on computer equipment to perform iterative calculations of fluid dynamic parameters, thereby realizing numerical quantitative optimization of the location of water conservancy engineering facilities.
[0024] The numerical simulation analysis method for tailrace flow field based on all-terrain modeling may include the following steps: S1: Obtain the original topographic data of the engineering area and the structural data of the tailrace area; S2, Based on the original terrain data and the structural data, construct a three-dimensional model of the entire tailrace area terrain; S3: Mesh the three-dimensional model of the entire terrain of the tailrace area to obtain a mesh model; S4: Obtain the operating condition data of the target water conservancy project, and set the boundary conditions of the mesh model based on the operating condition data; S5: Based on the preset turbulence model, numerical simulation of the flow field is performed on the grid model after setting boundary conditions to obtain the flow field distribution data of the tailrace area; S6: Based on the flow field distribution data of the tailrace area, analyze the flow regime in the tailrace area and generate flow regime assessment results to assist in the layout design of engineering facilities.
[0025] Computer equipment acquires raw topographic data of the engineering area and structural data of the tailrace area. The raw topographic data includes river channel elevation and riverbed boundary information of the engineering area, while the structural data includes the geometric dimensions of structures in the tailrace area of the hydraulic engineering project. The computer equipment imports the raw topographic and structural data into a 3D modeling environment to generate a full-scale 3D topographic model of the tailrace area that reflects the physical spatial morphology of the engineering area.
[0026] The computer equipment performs mesh generation on the 3D model of the entire tailrace terrain, generating a mesh model for numerical calculations. The mesh model consists of multiple discrete computational nodes and control volumes, which are used to carry and transmit physical quantities in subsequent flow field calculations.
[0027] The computer equipment acquires operational data of the target water conservancy project, including natural flow data and generator flow data. The computer equipment then transforms this operational data into initial parameters for fluid dynamics calculations and maps them to the corresponding boundary nodes of the mesh model, establishing the inlet flow boundary and downstream water level boundary.
[0028] The computer equipment invokes a preset turbulence model and, in conjunction with the set boundary conditions, iteratively solves the grid model, outputting the flow field distribution data of the tailrace region. The preset turbulence model adopts a renormalized group turbulence model, and the computer equipment solves the continuity equation and momentum equation based on the renormalized group turbulence model.
[0029] The numerical simulation of the flow field follows the laws of conservation of mass and momentum, and the expression for the continuity equation is:
[0030] The expression for the momentum equation is:
[0031] In the above formula, The time parameter is represented, and its discrete time step is set to 0.1s; and Represents spatial coordinate components in a three-dimensional coordinate system; Represents fluid density, set based on the physical property constants of standard water bodies; and Represents the velocity components of the fluid along the corresponding coordinate axis; This represents the pressure exerted by the fluid micro-element; The dynamic viscosity coefficient represents the fluid, and its value is determined based on the fluid temperature and historical experience parameter table. Represents the turbulent viscosity coefficient; This represents the mass force acting on a fluid micro-element.
[0032] To address the strong shear and swirling morphology in the tailrace region, the computer system incorporates the turbulent kinetic energy equation and turbulent kinetic energy dissipation rate equation from the renormalized group turbulence model to close the aforementioned fluid control equations. The expression for the turbulent kinetic energy equation is:
[0033] The expression for the turbulent kinetic energy dissipation rate equation is:
[0034] In the above formula, Represents kinetic energy; Represents the turbulent kinetic energy dissipation rate; Represents the effective dynamic viscosity coefficient and satisfies the following relationship: ,in ,constant Set to 0.0845; and These represent the reciprocals of the effective Prandtl numbers corresponding to turbulent kinetic energy and dissipation rate, respectively. This represents the turbulent kinetic energy generation term caused by the average velocity gradient; The correction parameter, representing the effect of the average strain rate on the turbulent kinetic energy dissipation rate, is set to 1.42, and its calculation formula is as follows: This is the ratio of the turbulence timescale to the mean shear timescale; The constant representing the ratio of the turbulent timescale to the mean shear timescale of typical shear flow is set to 4.38; This represents an empirical constant, set to 0.012; The representative empirical constant is set to 1.68. .
[0035] The computer equipment executes a numerical discretization algorithm to solve the above set of equations, iteratively calculates the numerical characteristics of each node in the grid model, and obtains tailrace flow field distribution data including water flow velocity, water flow direction and turbulent kinetic energy data at different spatial locations.
[0036] Computer equipment reads the flow field distribution data of the tailrace area and executes the flow regime assessment algorithm to generate flow regime assessment results containing regional flow regime distribution maps and candidate layout location information, which guides the optimization of the virtual space layout location of engineering facilities before actual construction.
[0037] In this embodiment, the computer device performs a three-dimensional digital reconstruction operation on the physical environment of the engineering area, completes the construction and discretization of the underlying model including underwater natural landforms and artificial building structures, and provides a spatial basis for flow field calculation.
[0038] Regarding the process of constructing a three-dimensional model of the tailrace area based on the original topographic and structural data in step S2, the computer equipment first reads the three-dimensional spatial coordinate set and elevation control point array from the original topographic data. Based on the three-dimensional spatial coordinate set and elevation control point array, the computer equipment calls a non-uniform rational B-spline surface fitting algorithm to generate an original topographic model reflecting the basic geomorphology of the engineering area, so as to ensure the continuity of the riverbed curvature. Subsequently, the computer equipment analyzes the boundary contour parameters and spatial coordinate positioning matrix of the hydraulic structures in the structural data.
[0039] In the three-dimensional coordinate system of the original terrain model, the computer equipment sets the boundary contour parameters based on the spatial coordinate positioning matrix, and superimposes and fuses the tailrace area structure, including the tailrace backslope structure and the tailrace funnel structure, into the original terrain model. One end of the tailrace backslope structure connects to the bottom plate of the power generation tailrace outlet of the target water conservancy project, and the other end extends upwards along the water flow diffusion direction to the natural riverbed elevation boundary of the original terrain model. The longitudinal slope ratio parameter of the tailrace backslope structure is set to a range of 1:4 to 1:6. The tailrace funnel structure extends outwards along both sides of the tailrace backslope structure in a divergent manner, forming the lateral boundary of the water flow diffusion channel. The computer equipment fuses the above structural entities through Boolean operations, outputting a three-dimensional full-terrain model of the tailrace area.
[0040] Regarding the process of meshing the three-dimensional model of the tailrace area's overall terrain in step S3 to obtain a mesh model, the computer equipment calls a hexahedral structured mesh topology program to perform overall spatial discretization on the three-dimensional model of the tailrace area's overall terrain. Based on a preset basic node distribution spacing (set to 0.5 meters to 2.0 meters), the computer equipment generates a basic mesh system within the model, composed of interwoven spatial mesh lines, establishing a spatial framework for calculating flow field variables.
[0041] To address the abrupt change in variable gradients caused by water flow through the tailrace backslope region, computer equipment employs nested meshing technology to perform local refinement processing on the tailrace backslope region within the 3D topographic model of the tailrace area. The computer equipment extracts the velocity gradient parameters from the mesh nodes, and the absolute value of the local velocity gradient is... At that time, the adaptive mesh splitting mechanism is triggered, generating nested mesh blocks. In the above formula, This represents the spatial gradient magnitude of the water flow velocity scalar at the grid nodes in the flow field within three-dimensional space. The computer compares the size transition ratio parameter with a preset densification transition limit, set to 1.2, to control the volume expansion rate of adjacent grid cells and adjust the subdivision hierarchy parameters within nested grid blocks. The computer defines the three-dimensional bounding box boundary of the tailrace backslope region and extracts the basic grid cells within this bounding box boundary. The computer triggers a grid splitting algorithm, progressively subdividing the grid cells within the three-dimensional bounding box boundary along the Cartesian coordinate axis, generating nested grid blocks with a grid density greater than the basic grid system. The nested grid blocks are then mapped and stitched together with the basic grid system at their boundary nodes, outputting a grid model for computation.
[0042] During mesh generation and stitching, the computer simultaneously calculates the geometric control parameters of the mesh elements and determines the convergence conditions of the numerical iterative solution. For the element volume of the structured mesh, the computer quantizes it using the following integral formula:
[0043] To control data transfer errors at the interface between the base grid system and nested grid blocks, the computer equipment calculates the size transition ratio parameter of adjacent grid cells. The calculation formula is as follows:
[0044] In the above formula, Volume control parameters representing a single mesh cell; This represents the integral region occupied by a mesh element in three-dimensional space. , , The Cartesian coordinate variable representing the integral operation of the grid cell is extracted based on the node coordinate values assigned by the grid generation algorithm; Represents the mesh size transition ratio parameter; This represents the characteristic side length of a grid cell located on one side of the basic grid system. This represents the feature side length of adjacent mesh cells on one side of the nested mesh block. The computer device compares the size transition ratio parameter with a preset encryption transition limit, which is set between 1.2 and 1.5. By limiting the volume expansion rate of adjacent meshes, the subdivision hierarchy parameters inside the nested mesh block are adjusted.
[0045] In this embodiment, the computer device performs fluid dynamic boundary constraint setting and numerical iteration operations for the mesh model, establishes the initial state of the three-dimensional flow field in the computational domain, and outputs stable and convergent dynamic distribution data.
[0046] Regarding the aforementioned process of acquiring operational data and setting boundary conditions, the computer equipment reads the natural flow data recorded by the hydrological monitoring system of the target water conservancy project and the generator flow data issued by the dispatching system. The natural flow data and the generator flow data constitute the underlying operational parameters reflecting the discharge status of the water conservancy project.
[0047] The computer equipment extracts numerical information from natural flow data and generator flow data, performs scalar summation, and determines the total input flow entering the tailrace calculation area. The calculation logic for the total input flow follows the equation below:
[0048] In the above formula, Represents the total input flow; The numerical value representing the natural flow data record; This represents the flow rate recorded in the generator unit's power generation flow data.
[0049] The computer equipment transmits the total input flow rate parameters to the mesh model data layer, matches the inlet boundary nodes of the mesh model, and completes the setting of the inlet flow rate boundary. The initial parameters of the water flow velocity at the inlet boundary nodes are calculated based on the geometric properties of the channel cross-section.
[0050] In the above formula, The average flow velocity parameter representing the boundary node of the inlet flow rate; The three-dimensional flow cross-sectional area representing the inlet boundary of the grid model is obtained by extracting data based on the aforementioned terrain construction.
[0051] The computer equipment synchronously reads the downstream water level control elevation data of the target water conservancy project during the corresponding operating water period, using this as the constraint basis at the model's outlet. The computer equipment sets the downstream water level boundary at the outlet boundary node of the mesh model, and the hydrostatic pressure parameter borne by the outlet boundary node exhibits a gradient distribution characteristic based on the fluid depth.
[0052] In the above formula, The calculated hydrostatic pressure representing the outlet boundary node; Represents fluid density; Represents the gravitational acceleration constant; The elevation value extracted from the downstream water level control elevation data; This represents the vertical elevation coordinates of the corresponding exit boundary node in the three-dimensional coordinate system.
[0053] For the bottom-layer mesh nodes in the mesh model that are close to the tailrace slope structure and the natural riverbed floor, the computer equipment uses standard wall functions to handle the water-blocking effect of the viscous bottom layer at the solid wall boundary. The dimensionless velocity parameters of the body-fitted mesh nodes are obtained by calculation based on the logarithmic law distribution model.
[0054] In the above formula, Represents a dimensionless velocity parameter; This represents the Kármán constant, set to 0.4187; The empirical coefficient representing the wall roughness is set to 9.81; This represents the dimensionless distance parameter from the wall.
[0055] Once the boundary conditions are set, the computer activates the renormalized group turbulence model solver. The computer uses the inlet flow boundary, downstream water level boundary, and standard wall function constraints as the initial values for the iterative calculations.
[0056] The computer equipment invokes the SIMPLEC algorithm based on the finite volume method to transform the aforementioned continuity equation, momentum equation, turbulent kinetic energy equation, and turbulent kinetic energy dissipation rate equation into a system of algebraic equations. The coupling of pressure and velocity employs a staggered grid technique, the spatial discretization of the convection term uses a second-order upwind scheme, and the time term is solved using an implicit scheme. The computer equipment performs iterative calculations of the algebraic equations, continuously monitoring the changes in the computational residuals of the flow field variables. The computational residuals of each physical quantity are reduced to a preset convergence tolerance range, specifically set to a continuity equation residual of less than 10. -4 And the residual of the momentum equation is less than 10. -5 At that time, the computer device triggers a solution stop command.
[0057] The computer equipment traverses all valid nodes within the grid model, extracts the flow field scalars and vectors at each spatial coordinate position, and integrates them to generate tailrace flow field distribution data including water flow velocity, water flow direction, and turbulent kinetic energy data.
[0058] In this embodiment, the computer device performs cross-domain mapping calculations from pure fluid dynamics parameters to engineering ecology evaluation indicators, completing the numerical definition and initial spatial screening of the physical boundaries of specific biological migrations within the water conservancy engineering environment.
[0059] The computer equipment traverses the discrete nodes in the tailrace flow field distribution data, reads the node flow velocity vectors, and extracts the distribution range of the main flow region, the distribution range of the backflow region, and the velocity distribution gradient. The computer equipment calculates the three-dimensional flow velocity scalar of the discrete nodes using the following formula:
[0060] In the above formula, Represents a three-dimensional scalar of water flow velocity; , , These represent the velocity vector components of the tailrace flow field distribution data along the three orthogonal axes of a three-dimensional Cartesian coordinate system. The computer equipment calculates the spatial gradient magnitude of the three-dimensional flow velocity scalar based on the three-dimensional flow velocity scalar, using the following formula:
[0061] In the above formula, The spatial gradient magnitude parameter, representing a three-dimensional scalar of water flow velocity, is used to characterize the degree of drastic change in flow velocity across the three spatial dimensions. , , Representing spatial coordinate components. The computer equipment sets spatial isolation isosurfaces based on velocity distribution gradient parameters to determine the spatial distribution boundary of the main flow region. The computer equipment extracts the overall discharge direction reference vector and defines the backflow attribute by calculating the dot product of the nodal flow velocity vector and the overall discharge direction reference vector. The calculation formula is:
[0062] In the above formula, Represents the flow direction determination factor; Represents the velocity vector of the water flow at the node; This represents the reference vector indicating the overall discharge direction. Computer equipment filters out those with... The set of attribute nodes defines the distribution range of the return flow region, and generates a regional flow pattern distribution map by combining the flow velocity scalar within the return flow region.
[0063] To meet the deployment requirements of fishway engineering facilities, computer equipment acquires migratory behavior data of target fish species through an ecological database interface. This migratory behavior data includes sensed swimming speed, critical swimming speed, and burst swimming speed. The sensed swimming speed corresponds to the lower limit of current velocity threshold that triggers upstream behavior in target fish; the critical swimming speed corresponds to the upper limit of current velocity extreme value for target fish to maintain aerobic cruising motion; and the burst swimming speed corresponds to the peak current velocity for target fish to sprint using anaerobic metabolism.
[0064] The computer equipment compares a three-dimensional water flow velocity scalar with migration behavior data using thresholds to determine the preferred flow velocity range suitable for the target fish species' upstream migration. The node constraints for the preferred flow velocity range are as follows:
[0065] In the above formula, Represents the speed of swimming by touch; Both represent the critical swimming velocity and are set based on historical biological data. The computer system identifies flow field spaces where the velocity scalar does not meet the aforementioned constraints as velocity barrier zones that cannot serve as passageways for fish.
[0066] The computer equipment matches and compares the flow field distribution data of the tailrace area with the preferred velocity range and velocity barrier areas. The computer equipment extracts the turbulent kinetic energy parameters output from the previous solution based on the renormalized group turbulence model, defined as... The computer equipment compares the turbulent energy parameters with the preset turbulence threshold and performs discretization calibration.
[0067] In the above formula, Represents a high-turbulence state identification code; This represents the preset turbulence threshold, set to 0.05m. 2 / s2 .
[0068] Computer equipment removes spatial nodes belonging to velocity obstruction zones from the three-dimensional model of the tailrace area's overall topography, and simultaneously removes nodes with velocity obstruction zones from the recirculation area. Spatial nodes of attributes. The computer equipment retains the remaining spatial node clusters and generates a spatially connected three-dimensional water corridor within the tailrace boundary, initially determining the candidate locations for the fishway inlet. The computer equipment encapsulates and outputs the three-dimensional coordinate lattice of the candidate locations along with a regional flow distribution map as a flow assessment result to assist in the layout design of engineering facilities.
[0069] For the advanced extension steps following the generation of the flow regime assessment results in step S6, in order to achieve optimal scheme selection, the computer equipment performs multi-scheme spatial topology reconstruction and fluid boundary state update based on the initially determined candidate layout positions, and completes the secondary flow field simulation after the engineering facility entity intervenes in the hydrodynamic environment.
[0070] The computer equipment extracts the three-dimensional coordinate matrix recorded in the flow regime assessment results. Following the distribution trajectory of the candidate placement locations, the computer equipment constructs a solid geometric shell of the fishway within the three-dimensional model of the entire tailrace terrain, generating multiple corresponding fishway scheme models. The fishway scheme models encompass the three-dimensional spatial feature data of the fishway inlet bottom plate, the guide wall, and the water replenishment and energy dissipation channel. Specifically, during the construction process, the computer equipment sets the angle between the guide wall and the main flow direction of the natural river channel to be within the range of 45 to 60 degrees; and sets the distance between the access location of the water replenishment and energy dissipation channel and the end of the fishway inlet to be greater than the reference length for turbulence dissipation, to prevent the replenishment flow from causing lateral scouring interference to the fish-inducing area. The computer equipment invokes mesh reconstruction commands to perform mesh correction operations on local areas that integrate the fishway solid geometric shell, ensuring that the boundary of the fluid computation domain conforms to the outer contour of the engineering facility entity.
[0071] The computer equipment activates the boundary condition reset procedure, introducing fishway makeup flow boundary conditions into multiple fishway scheme models. The computer equipment sets the fishway design makeup flow as an independent mass source term inflow boundary. The formula for calculating the normal flow velocity parameter of the fishway makeup flow boundary is:
[0072] In the above formula, The normal flow velocity parameter representing the boundary of the fishway replenishment; The water replenishment flow parameters for the fishway design are retrieved and input from the parameter database of ecological scheduling standards for water conservancy hubs. This represents the three-dimensional flow cross-sectional area of the fishway inlet. The computer equipment maintains the initial values of the inlet flow boundary and the downstream water level boundary constant, and assigns the normal flow velocity parameter to the three-dimensional mesh nodes of the fishway inlet.
[0073] The computer equipment initiates a fluid dynamics solver engine to perform secondary flow field numerical simulations on multiple fishway scheme models that incorporate fishway replenishment flow boundary conditions. The fluid dynamics solver engine recalculates the pressure and velocity coupling state within the flow field domain and outputs the corresponding secondary flow field numerical simulation results. The secondary flow field numerical simulation results record the spatial distribution of water flow velocity and the evolution characteristics of turbulent kinetic energy after superimposed interference from the engineering facility's discharge.
[0074] The computer equipment reads the secondary flow field numerical simulation results from multiple fishway scheme models, performs a comprehensive comparison and scheme optimization under multi-dimensional ecological constraints. The computer equipment scans spatially discrete nodes within the fluid computation domain, extracting local maximum flow velocity scalars and mainstream flow velocity scalars. The computer equipment imports the darting swimming velocity parameter of the target fish, defined as... .
[0075] The computer equipment compares the mainstream flow velocity scalar with the preferred flow velocity range as the first limit to determine whether the flow meets the requirements. The constraint condition is the spatial continuity of the water body. The computer equipment synchronously performs a second extreme value comparison to determine that the local maximum flow velocity scalar does not exceed the sudden extreme value. The corresponding constraint condition is:
[0076] In the above formula, Represents the local maximum flow velocity scalar extracted within the fluid computation domain; The parameter representing the surging swimming speed of the target fish is set based on historical data of aquatic biology.
[0077] The computer equipment invokes a fluid dynamics spatial integration algorithm to perform a third comparison targeting the reverse vortex blocking effect. The computer equipment inputs the upstream direction vector of the target fish and extracts the cluster of return flow nodes whose velocity direction is opposite to the upstream direction of the target fish through a dot product operation. The calculation formula is as follows:
[0078] In the above formula, Represents the factor determining the direction of tracing back; This represents the nodal flow velocity vector output in the numerical simulation results of the secondary flow field; This represents the upward direction vector of the target fish.
[0079] Computer equipment extraction has The spatial node set of attributes is used to calculate the 3D projected area of the reverse reflow region using a surface integral algorithm. The integral formula is as follows:
[0080] In the above formula, Represents the integral area of the reverse flow region; represent The projection integral region of the node group on the reference horizontal plane; , The Cartesian coordinate variables representing the projection plane.
[0081] The computer equipment determines the numerical correlation between the integral area of the reverse recirculation region and a preset area threshold, with the following constraints:
[0082] In the above formula, This represents the preset area threshold, set to 5.0m². 2 The computer equipment integrates the above three numerical comparison results, selects fishway scheme models where the mainstream flow velocity is within the preferred flow velocity range, the local maximum water flow velocity scalar does not exceed the sudden swimming speed, and there is no backflow area with an area greater than the preset area threshold and the flow velocity direction is opposite to the upstream direction of the target fish, marks it, and outputs it as the target fishway layout scheme to the engineering display terminal.
[0083] The computer system iterates through the mainstream region grid nodes within each fishway scheme model, extracting the scalar average value of the mainstream region's water flow velocity. The computer system then calculates the mainstream matching factor for each fishway scheme model, using the following formula:
[0084] In the above formula, Represents the mainstream matching factor; The scalar average value of the mainstream water flow velocity; The optimal upstream scalar speed for the target fish species is set at 0.8 m / s.
[0085] The computer equipment extracts the local maximum flow velocity scalar corresponding to each fishway scheme model, calculates the scour prevention safety margin factor, and sets the formula as follows:
[0086] In the above formula, Represents the erosion protection safety margin factor; The parameter representing the speed of the target fish's forward swimming; This represents the local maximum flow velocity scalar extracted from the aforementioned secondary flow field numerical simulation results.
[0087] The computer equipment extracts the integral area of the reverse flow region corresponding to each fishway scheme model, and introduces an exponential decay function to calculate the spatial penalty factor. The formula is set as follows:
[0088] In the above formula, Represents the spatial penalty factor; This represents the integral area of the reverse recirculation region obtained by the aforementioned integral algorithm; This represents the preset area threshold in the aforementioned constraints.
[0089] In the case of multiple fishway scheme models that simultaneously satisfy all the aforementioned constraints, the computer device calls the internally configured multi-objective weight evaluation function to perform quantitative scoring calculations on the multiple fishway scheme models that have passed the extreme value screening, and establishes a single target output node.
[0090] The computer equipment executes a linear weighted summation algorithm to integrate the above multi-dimensional evaluation indicators and generate a comprehensive evaluation score for each fishway scheme model. The calculation formula is as follows:
[0091] In the above formula, The representative proposal received a comprehensive evaluation score; , , These represent the first, second, and third weight coefficients, respectively, with each weight coefficient set to 0.4, 0.4, and 0.2, and the sum of all weight coefficients is always equal to the value 1.
[0092] The computer equipment compares the comprehensive evaluation scores of all fishway scheme models, extracts the parameter with the highest numerical score, and marks the corresponding fishway scheme model as the target fishway layout scheme. The computer equipment extracts the three-dimensional spatial coordinates, boundary contour dimensions, and regional flow distribution map of the target fishway layout scheme, and transmits them to the engineering display terminal through a communication interface.
[0093] In this embodiment, based on the same inventive concept, a numerical simulation analysis system for tailrace flow field based on all-terrain modeling, running on a computer device, is provided. This system completes the hardware-level computation and result output of the aforementioned method steps. The system is configured with a data acquisition module, a 3D modeling module, a mesh generation module, a boundary setting module, a flow field simulation module, and a flow regime assessment module. Specifically, the data acquisition module reads the original terrain elevation and structural dimensions, encapsulates the data, and transmits it to the 3D modeling module; the 3D modeling module generates surface boundary envelopes based on the received data and outputs the geometric entities to the mesh generation module; the mesh generation module performs spatial discretization operations and transmits the mesh array containing node coordinates to the boundary setting module; the boundary setting module assigns initial hydrological values to the nodes and triggers the flow field simulation module to perform iterative solutions; finally, the pressure and velocity vector flows of each node output by the flow field simulation module are transferred to the flow regime assessment module for threshold screening and scheme comparison of ecological indicators.
[0094] The computer device includes a processor and memory. The processor and memory establish an internal data transmission link via a bus. Computer program instructions are written into the memory. The computer device reads these instructions and controls the various modules to operate according to the aforementioned data transmission logic, executing the entire logical operation from acquiring terrain structure data to outputting the target fishway layout plan. The computer device utilizes its built-in graphics processing unit to accelerate the solution of the aforementioned renormalized group turbulence model and fluid boundary states.
[0095] In this embodiment, the computer device performs dimensionality reduction of the three-dimensional spatial data and terminal viewport mapping operation for the target fishway layout scheme, and completes pixel-level conversion and graphics rendering from the flow field evaluation data to the engineering display terminal.
[0096] The computer equipment performs data normalization processing on the three-dimensional water flow velocity scalar in the target fishway layout scheme, generating a normalized mapping factor to drive the screen color rendering. Based on this normalized mapping factor, the computer equipment assigns corresponding chromatographic gradient attributes to the grid nodes in the fluid computation domain, generates a comprehensive rendering command that integrates fluid dynamic parameters and spatial geometric boundaries, and sends it to the engineering display terminal to output a regional flow distribution map.
[0097] This embodiment provides a computer program product. The computer program product includes a sequence of computer-executable instructions. The instruction sequence resides in a non-volatile storage medium and, in response to a call level signal from a computer device, activates the underlying operational logic from acquiring terrain data, mesh generation, iterative flow field solution, to multi-scheme comparison. Those skilled in the art can input terrain files and hydrological feature boundaries of a specific water conservancy project into a computer device, and the computer device will output the corresponding target fishway layout scheme according to a preset logical sequence and control equation set.
Claims
1. A numerical simulation analysis method for tailrace flow field based on all-terrain modeling, characterized in that, Includes the following steps: S1: Obtain the original topographic data of the engineering area and the structural data of the tailrace area; S2: Construct a three-dimensional model of the entire tailrace area based on the original terrain data and the structural data; S3: Mesh the three-dimensional model of the entire terrain of the tailrace area to obtain a mesh model; S4: Obtain the operating condition data of the target water conservancy project, and set the boundary conditions of the mesh model based on the operating condition data; S5: Based on the preset turbulence model, numerical simulation of the flow field is performed on the grid model after setting boundary conditions to obtain the flow field distribution data of the tailrace area; S6: Based on the flow field distribution data of the tailrace area, analyze the flow regime in the tailrace area and generate flow regime assessment results to assist in the layout design of engineering facilities.
2. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 1, characterized in that, In step S2, the step of constructing a three-dimensional model of the tailrace area's full terrain based on the original terrain data and the structural data specifically includes: An original terrain model of the engineering area is established based on the original terrain data. Based on the original terrain model, a tailwater area structure including a tailwater reverse slope structure and a tailwater funnel structure is constructed to generate a three-dimensional model of the entire terrain of the tailwater area.
3. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 1, characterized in that, In step S3, the step of meshing the three-dimensional model of the tailrace area's overall terrain to obtain a mesh model specifically includes: The entire three-dimensional topographic model of the tailrace area is divided using a structured mesh. In the tailwater reverse slope area of the three-dimensional model of the tailwater area, nested meshes are used for local refinement to obtain the mesh model.
4. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 1, characterized in that, In step S4, the step of acquiring the operating condition data of the target water conservancy project and setting the boundary conditions of the mesh model based on the operating condition data specifically includes: Obtain the natural flow data and generator flow data of the target water conservancy project during the preset operating water period; Using the natural flow data and the generator flow data as input conditions, the inlet flow boundary and downstream water level boundary of the grid model are set under the corresponding operating conditions.
5. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 1, characterized in that, The preset turbulence model is a renormalized group turbulence model; In step S5, the step of performing numerical simulation of the flow field on the grid model with set boundary conditions based on a preset turbulence model to obtain the flow field distribution data of the tailrace area specifically includes: The continuity equation and momentum equation are solved using the renormalized group turbulence model to calculate the flow velocity, flow direction, and turbulent kinetic energy data at different spatial locations in the tailrace region, thereby generating flow field distribution data of the tailrace region that includes the turbulent kinetic energy data.
6. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 1, characterized in that, In step S6, the step of analyzing the flow regime within the tailrace zone based on the tailrace zone flow field distribution data and generating flow regime assessment results to assist in the layout design of engineering facilities specifically includes: Based on the tailrace flow field distribution data, the distribution range of the main flow area, the distribution range of the backflow area, and the velocity distribution gradient are extracted. Based on the distribution range of the mainstream region, the spatial distribution boundary of the mainstream region is determined, and combined with the flow velocity of the return region, a regional flow pattern distribution map is generated as the flow pattern assessment result.
7. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 5, characterized in that, The engineering facility is a fishway, and the layout design of the auxiliary engineering facility is the layout design of the fishway inlet; before step S6, the method further includes: Acquire migratory behavior data of the target fish, including the target fish's induced swimming speed, critical swimming speed, and sudden swimming speed; Based on the migratory behavior data, the preferred flow velocity range suitable for the upstream migration of the target fish is determined, and areas with flow velocities greater than the critical swimming speed or lower than the sensed swimming speed are identified as flow velocity obstacle zones that cannot be used as fish passageways.
8. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 7, characterized in that, In step S6, the step of analyzing the flow regime within the tailrace zone based on the tailrace zone flow field distribution data and generating flow regime assessment results to assist in the layout design of engineering facilities specifically includes: The tailrace flow field distribution data is matched and compared with the preferred flow velocity range and the flow velocity barrier zone; Based on the matching and comparison results, the flow velocity barrier area and the backflow area where the turbulent kinetic energy data is greater than the preset turbulence threshold are avoided in the three-dimensional model of the tailwater area. The candidate layout position of the fishway inlet is initially determined as the flow state evaluation result.
9. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 8, characterized in that, Following step S6, the method further includes: Based on the candidate placement locations, multiple fishway scheme models are established in the three-dimensional model of the tailrace area's all-terrain. In each of the multiple fishway scheme models, the boundary condition of fishway water replenishment flow rate is introduced, and secondary flow field numerical simulation is performed to obtain the corresponding secondary flow field numerical simulation results.
10. The numerical simulation analysis method for tailrace flow field based on all-terrain modeling according to claim 9, characterized in that, After obtaining the corresponding numerical simulation results of the secondary flow field, the method further includes: Compare the secondary flow field numerical simulation results of the multiple fishway scheme models; A fishway scheme model is selected as the target fishway layout scheme, where the mainstream flow velocity is within the preferred flow velocity range, the local maximum flow velocity does not exceed the sudden swimming speed, and there is no backflow area with an area greater than a preset area threshold and the flow velocity direction is opposite to the upstream direction of the target fish.
