A side type water inlet and outlet full model parameterization modeling method and system
By establishing global and local coordinate systems, processing unit normals, and generating equidistant offset lines, the problem of slow and unstable parametric modeling of the entire model of the side-type inlet and outlet reservoir area was solved, and a fast and stable modeling process was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NORTHWEST ENGINEERING CORPORATION LIMITED
- Filing Date
- 2026-03-11
- Publication Date
- 2026-06-09
Smart Images

Figure CN122174485A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water conservancy engineering technology, and more specifically, to a parametric modeling method and system for a side-type inlet and outlet. Background Technology
[0002] The side-mounted inlet and outlet in a pumped storage power station is a core structure of the hydraulic engineering. Its three-dimensional model consists of multiple complex spatial structures, including the forebay reverse slope section, anti-vortex beam, adjustment section, diffusion section, square-to-circular section, and tunnel section. Since parameters such as the number of inlets and outlets and the type of reservoir boundary need to be dynamically adjusted according to actual requirements during engineering design, it is necessary to perform parametric modeling of the entire side-mounted inlet and outlet reservoir area. By optimizing and adjusting the parameters, the model can be adapted to the actual needs of the engineering design process.
[0003] In related technologies, parametric modeling of side-mounted inlets and outlets often relies on sketch constraint solvers to obtain contour control points by iteratively solving geometric constraints such as tangency, parallelism, and distance. However, for 3D models containing complex spatial structures, there are numerous geometric constraints such as tangent arcs at the pier heads, gradual cross-sections, and spatial slope changes at the junctions of multiple structures. Changes in parameters will trigger a re-solution of the constraint topology. The computational domain is large, making it difficult to update the entire model stably at the second level, resulting in long processing times. At the same time, it is also prone to solution failures or the need for manual intervention. Summary of the Invention
[0004] The problem addressed by this invention is how to improve the parametric modeling speed and stability of the modeling process for a full model of a reservoir with side inlets and outlets.
[0005] To address the aforementioned issues, this invention provides a parametric modeling method and system for a full-model side-mounted inlet / outlet.
[0006] In a first aspect, the present invention provides a parametric modeling method for a side-mounted inlet / outlet water outlet, comprising: Based on the engineering parameters and number of side inlets and outlets, a global coordinate system for the side inlets and outlets and a local coordinate system corresponding to each individual structure in the side inlets and outlets are established, and a coordinate transformation matrix from the local coordinate system to the global coordinate system is constructed. The individual structure includes the core structure and other structures of the side inlets and outlets, and the core structure is the inlet and outlet structure of the side inlets and outlets. In the local coordinate system of the inlet and outlet structure, the two-dimensional control points of the inlet and outlet structure contour are integrated and processed by unit normal to obtain the homogeneous unit normal matrix corresponding to the contour. Based on the unit normal homogeneous matrix, determine the equidistant offset line tangent to the pier head arc of the inlet / outlet structure, and generate two-dimensional control points for the pier head arc based on the equidistant offset line. All the two-dimensional control points of the inlet and outlet structure are stacked into a control point matrix, and a three-dimensional model of the inlet and outlet structure is generated based on the control point matrix. In the local coordinate system of the other structures, and in combination with the engineering parameters of the other structures, a three-dimensional model of the other structures is generated; Based on the coordinate transformation matrix, the three-dimensional models of the inlet / outlet structure and other structures are assembled and combined, and Boolean operations are performed to generate the full model of the side inlet / outlet.
[0007] Optionally, establishing a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure within the side-type inlet and outlet, based on the engineering parameters and the number of inlets and outlets, includes: The engineering parameters corresponding to each of the individual structures in the side-type inlet and outlet are obtained, and the engineering parameters are subjected to unit unification, legality verification and derivation calculation to obtain standardized engineering parameters. Based on the standardized engineering parameters and the number of inlets and outlets, the main flow direction of the side inlets and outlets and the geometric features corresponding to each individual structure are determined. Establish the global coordinate system based on the main direction of the water flow; Based on the geometric features corresponding to each of the individual structures, a local coordinate system corresponding to the individual structure is established.
[0008] Optionally, the step of integrating and processing the two-dimensional control points of the inlet / outlet structure's contour using unit normals in the local coordinate system of the inlet / outlet structure to obtain the homogeneous unit normal matrix corresponding to the contour includes: Based on the engineering parameters of the inlet and outlet structure, determine the two-dimensional control points of the outline of the inlet and outlet structure; Convert the coordinates of the two-dimensional control points in the local coordinate system to homogeneous coordinates; Based on the homogeneous coordinates, the homogeneous line vectors of the line segments corresponding to the contour are obtained; The homogeneous line vector is normalized to obtain a homogeneous matrix with unit normal.
[0009] Optionally, determining the equidistant offset line tangent to the pier head arc of the inlet / outlet structure based on the unit normal homogeneous matrix, and generating two-dimensional control points for the pier head arc based on the equidistant offset line, includes: Based on the unit normal line parameters in the unit normal homogeneous matrix, two target lines are identified. Based on the design radius of the pier head arc and the position requirements of the pier head arc, determine the equidistant offset direction of the normal of each target straight line; Based on the design radius, the equidistant offset direction, and the unit normal line parameter, the equations of the equidistant offset lines corresponding to the two target lines are determined, and the equations of the equidistant offset lines are solved to obtain the center coordinates of the pier head arc in the local coordinate system of the inlet and outlet structure. Based on the center coordinates of the arc of the pier head, the starting coordinates and ending coordinates of the arc of the pier head in the local coordinate system of the inlet and outlet structure are obtained; The center coordinates, the starting point coordinates, and the ending point coordinates are used as the two-dimensional control points of the pier head arc.
[0010] Optionally, the step of stacking all the two-dimensional control points of the inlet / outlet structure into a control point matrix, and generating a three-dimensional model of the inlet / outlet structure based on the control point matrix, includes: All the two-dimensional control points of the inlet and outlet structures are stacked in a preset order to form the control point matrix; Construct an operator chain based on the affine generation operator, the offset line intersection operator, and the normal projection operator; The control point matrix is solved in batches using the operator chain to obtain the set of coordinates of the full contour control points of the inlet and outlet structure. A closed two-dimensional contour is generated based on the set of coordinates of the full contour control points; Based on the engineering design requirements of the inlet and outlet structure, the three-dimensional modeling method of the inlet and outlet structure is determined; Using the aforementioned 3D modeling method, the closed 2D contour is used to generate a 3D model of the inlet / outlet structure along a preset direction or path.
[0011] Optionally, the other structures include tunnel section structures. Generating a three-dimensional model of the other structures in their local coordinate system, in conjunction with their engineering parameters, includes: Based on the engineering parameters of the tunnel section structure, the spatial axis of the tunnel section structure is constructed; According to the preset segmentation type, the spatial axis is divided into multiple axis segments; For each segment of the axis, a segmented three-dimensional model corresponding to the axis is generated based on the cross-sectional parameters of the axis. By stitching together the segmented three-dimensional models of all the axes, a three-dimensional model of the tunnel section structure is obtained.
[0012] Optionally, the other structures include a forebay reverse slope section structure. The process of generating a three-dimensional model of the other structures in their local coordinate system, combined with their engineering parameters, includes: Based on the engineering parameters of the forebay reverse slope section structure, determine the slope ratio and control dimensions of the forebay reverse slope section structure; Based on the slope ratio and the control dimensions, determine the key control points of the forebay reverse slope section structure; Based on the key control points, generate the regular and twisted surfaces of the forebay reverse slope section structure; By enclosing the regular surface and the twisted surface, a three-dimensional model of the forebay reverse slope section structure is obtained.
[0013] Optionally, the other structures include reservoir area structures. Generating a three-dimensional model of the other structures in their local coordinate system, in conjunction with their engineering parameters, includes: Based on the engineering parameters of the reservoir area structure, a six-control point matrix of the boundary of the reservoir area structure is constructed; Based on the six control point matrix, the reservoir area morphology is fitted to generate a three-dimensional model of the reservoir area structure.
[0014] Optionally, the step of assembling and combining the three-dimensional models of the inlet / outlet structure and other structures based on the coordinate transformation matrix and performing Boolean operations to generate the full model of the side inlet / outlet includes: Based on the coordinate transformation matrix, the 3D model corresponding to each local coordinate system is transformed to the global coordinate system to obtain the transformed 3D model; Based on the number of inlets and outlets of the side-type inlet and outlet, and combined with the rigid body transformation matrix of the coordinate transformation matrix, the transformed three-dimensional model of the inlet and outlet structure is arrayed, copied, and spatially arranged to obtain a multi-inlet and outlet structure model. The multi-inlet / outlet structure model and the three-dimensional models of other structures in the global coordinate system are geometrically assembled to form a composite body, and a trimmed body is generated according to the preset maintenance platform position. In the global coordinate system, the clipped body in the combined body is removed by Boolean difference operation to obtain the full model of the side inlet and outlet.
[0015] Secondly, the present invention provides a full-model parametric modeling system for a side-mounted inlet / outlet, comprising: The coordinate system establishment unit is used to establish a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure in the side-type inlet and outlet based on the engineering parameters and the number of inlets and outlets. It also constructs a coordinate transformation matrix from the local coordinate system to the global coordinate system. The individual structure includes the core structure and other structures of the side-type inlet and outlet, and the core structure is the inlet and outlet structure of the side-type inlet and outlet. The core structural building unit is used to integrate and process the two-dimensional control points of the inlet / outlet structure's contour in the local coordinate system of the inlet / outlet structure to obtain the homogeneous unit normal matrix corresponding to the contour; based on the homogeneous unit normal matrix, determine the equidistant offset line tangent to the pier head arc of the inlet / outlet structure, and generate the two-dimensional control points of the pier head arc based on the equidistant offset line; stack all the two-dimensional control points of the inlet / outlet structure into a control point matrix, and generate the three-dimensional model of the inlet / outlet structure based on the control point matrix. Other structural building units are used to generate a three-dimensional model of the other structure in the local coordinate system of the other structure, in combination with the engineering parameters of the other structure; An integrated processing unit is used to assemble and combine the three-dimensional models of the inlet / outlet structure and other structures in the global coordinate system based on the coordinate transformation matrix and to perform Boolean operations to generate the full model of the side inlet / outlet.
[0016] The parametric modeling method and system for the side-type inlet / outlet reservoir model of this invention improves the speed of parametric modeling of the entire model and enhances the stability of the modeling process. Specifically, firstly, by establishing a global coordinate system and local coordinate systems for each individual structure and constructing a coordinate transformation matrix, a unified coordinate reference is built, enabling the geometric features of each structure to be mapped between the local and global coordinate systems. This avoids modeling deviations and repeated adjustments caused by inconsistent coordinate references, thus improving modeling efficiency. Secondly, under the local coordinate system of the inlet / outlet structure, the two-dimensional control points of the contour are integrated and processed with unit normals to obtain a homogeneous unit normal matrix. This achieves a standardized expression of the contour line segments, avoiding calculation errors caused by inconsistent expression forms of line segments in traditional modeling, ensuring the accuracy of subsequent geometric feature solutions, and laying a highly accurate geometric foundation for rapid modeling. Furthermore, based on the homogeneous unit normal matrix, the equidistant offset lines tangent to the arc of the pier head are determined and two-dimensional control points of the arc are generated. The geometric solution of the arc of the pier head is transformed into a direct derivation based on the homogeneous matrix, avoiding the problems encountered in the traditional iterative constraint solution process. The method addresses common problems such as solution failures and numerical divergence, reducing the likelihood of modeling interruptions and improving the stability of the modeling process. Direct derivation also shortens the computation time for circular arc features. Furthermore, by stacking all two-dimensional control points of the inlet and outlet into a control point matrix and generating a three-dimensional model based on this matrix, the method achieves batch processing of all contour control points, replacing the traditional method of calculating and adjusting control points one by one. This improves the generation speed of the three-dimensional model of the inlet and outlet structure. Simultaneously, the matrix-based processing ensures the consistency of control point solutions, avoids the accumulation of single-point calculation errors, and further enhances modeling stability. By independently generating 3D models in the local coordinate systems of each structure in conjunction with engineering parameters, parallel modeling of each structure can be achieved without waiting for the modeling of other structures to complete, effectively shortening the overall modeling time. Simultaneously, independent modeling in local coordinate systems can accurately match the geometric features of each structure, reducing modeling interference between structures and ensuring the accuracy of each structural model. Finally, based on the coordinate transformation matrix, all structural models are assembled and combined in the global coordinate system, and Boolean operations are performed to generate the full model. The coordinate transformation matrix enables rapid and accurate assembly of each structural model in the global coordinate system, avoiding positional deviations and repeated adjustments caused by manual assembly, thus improving the speed of full model assembly. Furthermore, Boolean operations enable rapid fusion of the geometric features of the entire model. When engineering parameters or the number of inlets and outlets change, the model can be quickly reconstructed simply by re-driving the calculations based on the parameters. This avoids the problem of rebuilding the model and reconstructing constraint chains required by traditional modeling when parameters change, improving the overall speed of parametric modeling while ensuring the stability of the modeling process due to the absence of iterative constraints and manual intervention. Attached Figure Description
[0017] Figure 1This is a flowchart illustrating the parametric modeling method for the side-type inlet and outlet in an embodiment of the present invention. Figure 2 These are schematic diagrams of the two-dimensional and three-dimensional models of the inlet and outlet in an embodiment of the present invention; Figure 3 This is a schematic diagram of a three-dimensional model of a tunnel section according to an embodiment of the present invention; Figure 4 This is a schematic diagram of a three-dimensional model of the forebay reverse slope section according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the XZ symmetrical array under varying inlet and outlet unit numbers N according to an embodiment of the present invention. Figure 6 This is a schematic diagram of the full model of the side-type inlet and outlet in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of the side-type inlet / outlet full-model parametric modeling system according to an embodiment of the present invention. Detailed Implementation
[0018] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the accompanying drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0019] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0020] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to"; the term "based on" means "at least partially based on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; and the term "optionally" means "optional embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first," "second," etc., mentioned in this invention are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0021] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0022] Combination Figure 1 As shown in the figure, an embodiment of the present invention provides a parametric modeling method for a side-type inlet / outlet, comprising: Based on the engineering parameters and number of side-type inlet and outlet, a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure in the side-type inlet and outlet are established. A coordinate transformation matrix from the local coordinate system to the global coordinate system is constructed. The individual structure includes the core structure and other structures of the side-type inlet and outlet, and the core structure is the inlet and outlet structure of the side-type inlet and outlet.
[0023] Specifically, firstly, taking the basic engineering parameters of the side-type inlet and outlet as the core conditions, the overall structure of the side-type inlet and outlet is divided into individual units, clarifying the inlet and outlet structure as the core structure and the other supporting hydraulic structures as other structures. Then, based on the spatial positioning requirements of the engineering design, a global coordinate system suitable for the overall spatial planning of the entire model is built. At the same time, for each individual structure after division, a corresponding exclusive local coordinate system is established according to its own geometric characteristics and design layout. Finally, based on the spatial parameters such as the origin position and coordinate axis direction of the global coordinate system and each local coordinate system, a transformation matrix that can realize coordinate transformation is constructed to form a coordinate system that combines global and local coordinates.
[0024] In the local coordinate system of the inlet and outlet structure, the two-dimensional control points of the inlet and outlet structure contour are integrated and processed with unit normals to obtain the homogeneous unit normal matrix corresponding to the contour.
[0025] Specifically, firstly, all the two-dimensional control points preset in the contour design of the inlet and outlet structure are extracted, and the discrete two-dimensional control points are collected, sorted and integrated to form a regular set of control points. Then, the contour line segments corresponding to the control point set are processed by unit normal vector. Through standardization operation, the normal vector of the line segment meets the unit modulus requirement. Finally, the features of all contour line segments after unit normal vector processing are integrated and expressed in the form of homogeneous matrix to form the unit normal homogeneous matrix corresponding to the contour of the inlet and outlet structure.
[0026] Based on the unit normal homogeneous matrix, determine the equidistant offset line tangent to the pier head arc of the inlet / outlet structure, and generate two-dimensional control points for the pier head arc based on the equidistant offset line.
[0027] Specifically, the outline of the side inlet and outlet is a closed boundary composed of straight and curved segments. The pier head arc serves as a transitional geometric feature in the outline. The center of the pier head arc is the intersection of the equidistant offset lines of the straight segments on both sides of the outline, and its tangent point is the normal projection point of the center onto the corresponding straight segment. The existence of the pier head arc ensures a smooth transition of the inlet and outlet outline at the junction of the straight segments, which not only meets the requirement of smooth water flow transition in hydraulic design, but also avoids stress concentration and water flow turbulence at the sharp corners of the outline. This step uses the generated homogeneous matrix of the inlet and outlet structure outline as a basis to extract the parameters of the outline straight line segments tangent to the pier head arc from the homogeneous matrix of the outline. Based on the outline straight line segment parameters and combined with the design requirements of the pier head arc, the equidistant offset lines that maintain a tangent relationship with the pier head arc are derived and determined. Then, using the equidistant offset lines as geometric references, the coordinates of the center of the pier head arc, as well as the starting and ending coordinates of the arc connecting with the adjacent outline straight line segments, are determined sequentially through coordinate calculation. These coordinates are integrated as the two-dimensional control points of the pier head arc.
[0028] All the two-dimensional control points of the inlet and outlet structure are stacked into a control point matrix, and a three-dimensional model of the inlet and outlet structure is generated based on the control point matrix.
[0029] Specifically, all two-dimensional control points of the inlet and outlet structure are first summarized, including both the original two-dimensional control points of the outline straight line segment and the subsequently generated two-dimensional control points of the pier head arc. The coordinate information of these control points is stacked in an orderly manner according to the preset arrangement rules to construct a unified control point matrix. Then, based on the control point matrix, the complete two-dimensional closed outline of the inlet and outlet structure is restored. Subsequently, combined with the three-dimensional design parameters of the inlet and outlet structure, the two-dimensional outline is transformed into a three-dimensional model of the inlet and outlet structure with spatial form through a three-dimensional modeling method corresponding to the inlet and outlet structure.
[0030] In the local coordinate system of the other structures, and in conjunction with the engineering parameters of the other structures, a three-dimensional model of the other structures is generated.
[0031] Specifically, for each of the other individual structures after division, modeling operations are carried out in its respective local coordinate system. Specifically, firstly, the engineering parameters that match each other structure are retrieved, which may include various geometric and design parameters such as dimensions, slope ratio, cross-sectional shape, and boundary features. Then, the engineering parameters are used as the core basis for modeling. According to the corresponding structural modeling logic, the two-dimensional contour construction and three-dimensional solid generation of all other structures such as the tunnel section, the forebay reverse slope section, and the reservoir area are completed in sequence, and finally, the independent three-dimensional models of each other structure are obtained.
[0032] Based on the coordinate transformation matrix, the three-dimensional models of the inlet / outlet structure and other structures are assembled and combined, and Boolean operations are performed to generate the full model of the side inlet / outlet.
[0033] Specifically, firstly, the previously constructed local-to-global coordinate transformation matrix needs to be invoked. The 3D models of the core structures of the inlet and outlet, which are independently generated in each local coordinate system, are combined with the 3D models of other structures such as the tunnel section, the forebay reverse slope section, and the reservoir area, and uniformly mapped and transformed to the global coordinate system. Then, according to the actual spatial layout of the side inlet and outlet, the 3D models of each structure are precisely matched and assembled in the global coordinate system to form an overall model assembly. Finally, Boolean operations are performed on the assembly to complete the geometric fusion and integration of the various structures, ultimately generating a complete full model of the side inlet and outlet.
[0034] The parametric modeling method for the side-mounted inlet / outlet reservoir model of this invention improves the speed of parametric modeling of the entire reservoir model and enhances the stability of the modeling process. Specifically, firstly, by establishing a global coordinate system and local coordinate systems for each individual structure and constructing a coordinate transformation matrix, a unified coordinate reference is built, enabling the geometric features of each structure to be mapped between the local and global coordinate systems. This avoids modeling deviations and repeated adjustments caused by inconsistent coordinate references, thus improving modeling efficiency. Secondly, under the local coordinate system of the inlet / outlet structure, the two-dimensional control points of the contour are integrated and processed with unit normals to obtain a homogeneous unit normal matrix. This achieves a standardized expression of the contour line segments, avoiding calculation errors caused by inconsistent expression forms of line segments in traditional modeling, ensuring the accuracy of subsequent geometric feature solutions, and laying a highly accurate geometric foundation for rapid modeling. Furthermore, based on the homogeneous unit normal matrix, the equidistant offset lines tangent to the arc of the pier head are determined and two-dimensional control points of the arc are generated. The geometric solution of the arc of the pier head is transformed into a direct derivation based on the homogeneous matrix, avoiding the problems encountered in the traditional iterative constraint solution process. The method addresses common problems such as solution failures and numerical divergence, reducing the likelihood of modeling interruptions and improving the stability of the modeling process. Direct derivation also shortens the computation time for circular arc features. Furthermore, by stacking all two-dimensional control points of the inlet and outlet into a control point matrix and generating a three-dimensional model based on this matrix, the method achieves batch processing of all contour control points, replacing the traditional method of calculating and adjusting control points one by one. This improves the generation speed of the three-dimensional model of the inlet and outlet structure. Simultaneously, the matrix-based processing ensures the consistency of control point solutions, avoids the accumulation of single-point calculation errors, and further enhances modeling stability. By independently generating 3D models in the local coordinate systems of each structure in conjunction with engineering parameters, parallel modeling of each structure can be achieved without waiting for the modeling of other structures to complete, effectively shortening the overall modeling time. Simultaneously, independent modeling in local coordinate systems can accurately match the geometric features of each structure, reducing modeling interference between structures and ensuring the accuracy of each structural model. Finally, based on the coordinate transformation matrix, all structural models are assembled and combined in the global coordinate system, and Boolean operations are performed to generate the full model. The coordinate transformation matrix enables rapid and accurate assembly of each structural model in the global coordinate system, avoiding positional deviations and repeated adjustments caused by manual assembly, thus improving the speed of full model assembly. Furthermore, Boolean operations enable rapid fusion of the geometric features of the entire model. When engineering parameters or the number of inlets and outlets change, the model can be quickly reconstructed simply by re-driving the calculations based on the parameters. This avoids the problem of rebuilding the model and reconstructing constraint chains required by traditional modeling when parameters change, improving the overall speed of parametric modeling while ensuring the stability of the modeling process due to the absence of iterative constraints and manual intervention.
[0035] Optionally, establishing a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure within the side-type inlet and outlet, based on the engineering parameters and the number of inlets and outlets, includes: The engineering parameters corresponding to each of the individual structures in the side-type inlet and outlet are obtained, and the engineering parameters are subjected to unit unification, legality verification and derivation calculation to obtain standardized engineering parameters. Based on the standardized engineering parameters and the number of inlets and outlets, the main flow direction of the side inlets and outlets and the geometric features corresponding to each individual structure are determined. Establish the global coordinate system based on the main direction of the water flow; Based on the geometric features corresponding to each of the individual structures, a local coordinate system corresponding to the individual structure is established.
[0036] Specifically, by acquiring the engineering parameters and the number of inlets and outlets for each individual structure, and based on these parameters, standardized engineering parameters are formed through unit unification, legality verification, and derived calculations. This provides a unified parameter basis for establishing the coordinate system. Furthermore, the mainstream water flow direction and the geometric characteristics of each individual structure are clarified based on these standardized engineering parameters, which serve as the basis for establishing the global and local coordinate systems, respectively. The standardized engineering parameters form an engineering parameter vector. And the number of inlets and outlets N. Based on the standardized parameters, determine the main flow direction of the entire model as the basis for establishing the global coordinate system Σ. g A key basis for this is, for example, setting the positive X-axis of the global coordinate system to the direction of the main water flow. Simultaneously, establishing a separate local coordinate system Σ for each individual structure (such as the inlet / outlet core area, tunnel section, etc.). k And construct the three-dimensional coordinate transformation matrix G from local to global. k (p)∈SE(3) and the two-dimensional coordinate transformation matrix T k (p)∈SE(2), respectively used to realize coordinate transformation in three dimensions and coordinate transformation in two dimensions. In a preferred embodiment of the present invention, for the inlet and outlet structure, the center of the inlet section of the diffuser section of the inlet and outlet is taken as the origin, and the axial direction is taken as the X-axis, so that its Y-direction coordinate in the global coordinate system satisfies the symmetrical arrangement formula (y) obtained based on the number of inlets and outlets. i =(i (N+1) / 2)S, where y i Let S be the coordinate of the centerline of the i-th inlet / outlet unit in the Y-axis direction of the global coordinate system, and let S be the distance between the centerlines of two adjacent inlet / outlet units.
[0037] In this embodiment of the invention, unit unification and legality verification eliminate parameter input errors and dimensional inconsistencies. Derivative calculations generate derived geometric parameters in advance, avoiding redundant calculations during the modeling process and improving data quality and computational stability. Simultaneously, decoupling local geometry generation from global assembly allows for automatic regeneration and repositioning of all relevant individual model units simply by updating these matrices when engineering parameters or the number of inlet / outlet ports change, avoiding the tedious manual adjustments required in traditional methods.
[0038] Optionally, the step of integrating and processing the two-dimensional control points of the inlet / outlet structure's contour using unit normals in the local coordinate system of the inlet / outlet structure to obtain the homogeneous unit normal matrix corresponding to the contour includes: Based on the engineering parameters of the inlet and outlet structure, determine the two-dimensional control points of the outline of the inlet and outlet structure; Convert the coordinates of the two-dimensional control points in the local coordinate system to homogeneous coordinates; Based on the homogeneous coordinates, the homogeneous line vectors of the line segments corresponding to the contour are obtained; The homogeneous line vector is normalized to obtain a homogeneous matrix with unit normal.
[0039] Specifically, firstly, the key two-dimensional control points of the profile are determined by engineering parameters, and then the coordinates (x, y) of these two-dimensional control points in the corresponding local coordinate system of the inlet and outlet structures are converted into homogeneous coordinates of the two-dimensional profile control points. Next, using the cross product of the homogeneous coordinates of two points on the same straight line segment, i.e. This yields the homogeneous line vector representing the line segment. =[A,B,C] T It satisfies the equation of a straight line. Finally, align the secondary line vectors. The normal component n = [A, B] T Unitization processing ( ), to obtain the unit normal form That is, the homogeneous matrix with unit normal. It is worth mentioning that when... < or < When the line is close to vertical or horizontal, the calculation branch will automatically switch to avoid numerical degradation caused by the slope approaching infinity or zero, thus ensuring the stability of subsequent calculations. This is a numerical threshold used to determine whether a straight line is sufficiently close to horizontal or vertical.
[0040] In this embodiment of the invention, by expressing the linear equation in homogeneous form and normalizing the normal, the slope degradation problem that cannot be represented by traditional slope-intercept or two-point equations when the line is perpendicular is eliminated. This ensures that all lines can be treated uniformly and robustly, avoiding the instability and time-consuming problems of traditional iterative constraint solvers. Furthermore, the normalization process and automatic branch switching mechanism further enhance the algorithm's robustness to arbitrary geometric inputs.
[0041] Optionally, determining the equidistant offset line tangent to the pier head arc of the inlet / outlet structure based on the unit normal homogeneous matrix, and generating two-dimensional control points for the pier head arc based on the equidistant offset line, includes: Based on the unit normal line parameters in the unit normal homogeneous matrix, two target lines are identified. Based on the design radius of the pier head arc and the position requirements of the pier head arc, determine the equidistant offset direction of the normal of each target straight line; Based on the design radius, the equidistant offset direction, and the unit normal line parameter, the equations of the equidistant offset lines corresponding to the two target lines are determined, and the equations of the equidistant offset lines are solved to obtain the center coordinates of the pier head arc in the local coordinate system of the inlet and outlet structure. Based on the center coordinates of the arc of the pier head, the starting coordinates and ending coordinates of the arc of the pier head in the local coordinate system of the inlet and outlet structure are obtained; The center coordinates, the starting point coordinates, and the ending point coordinates are used as the two-dimensional control points of the pier head arc.
[0042] Specifically, this embodiment transforms the geometric tangency constraint between the arc of the pier head and its adjacent contour boundary from a nonlinear problem that traditional sketch constraint solvers need to iteratively process into a linear system that can be solved in a closed loop, thereby improving computational efficiency and stability. Specifically, it transforms the quadratic constraint of the arc being tangent to a straight line (the distance from the center of the circle to the straight line equals the radius R) into a linear equation. This is achieved by first converting the homogeneous matrix of the unit normal... Two target straight lines tangent to the arc to be determined were identified. 1 and 2. Among them, Let be the homogeneous coordinate components of the normalized line, satisfying . =1.
[0043] Based on the design radius R of the arc and its required position inside (or outside) the contour, determine the normal offset direction of each straight line, i.e., σ∈{+1, 1}, for example, let the reference point If it is located inside the contour, then take... This ensures the center of the circle falls on the correct side. At the analytical calculation level, the equation of the offset line is obtained by offsetting the normal vector of the original boundary line, resulting in two equidistant offset line equations, expressed as: 1x+ 1y+( 1-σ1R)=0; 2x+ 2y+( 2-σ²R)=0; For a tangent circular arc of radius R, the tangency constraint between its center and the line can be written in the form of the square of the distance from the point to the line: ; Representing it as a quadratic form: , ; in, The line from the center s to the boundary The tangency constraint function is given, where s is the homogeneous coordinate vector of the center of the circle, s=[x0,y0,1]. T Let the coordinates of the center of the circle be homogeneous coordinates. Let be a homogeneous linear vector, satisfying R is the design radius of the arc, and n is the normal vector of the line, where n = [A, B]. T , Let n be the Euclidean norm (module) of the normal vector n, and let its module be n. Q is a homogeneous vector formed by a straight line. The constructed quadratic form matrix is essentially the outer product of two vectors (a homogeneous vector of a line multiplied by the transpose of the homogeneous vector of a line).
[0044] When the arc coincides with two boundaries 1 and When tangent, the center of the circle is the intersection of the two offset lines, and the analytical solution is given by the closed form of the linear system: ; Among them, symbolic branches and The selection can be achieved by a preset reference point or the inner side of the contour. O is the coordinate vector of the center of the arc O=[x0,y0], and ±R is the offset, the sign of which is determined by σ, which indicates that the offset distance of the center in the normal direction is the radius R.
[0045] The tangent point (start / end point) of the arc is obtained using a closed normal projection: x0+ y0+ ; t= - ; in, The directed distance from the center of the circle to the unitary line. The directed distance is given by t, where t is the coordinate of the point of tangency of the arc on the boundary line.
[0046] The starting point coordinate t is thus calculated. start Center coordinates O, endpoint coordinates t end This allows the construction of the circular arc segment. Analytical elimination from secondary constraints to primary offset lines avoids iterative propagation of the constraint chain, significantly improving robustness under parameter changes and achieving second-level reconstruction efficiency. The center, start point, and end point constitute all the two-dimensional control points required to define the arc of this pier head.
[0047] It is worth mentioning that when there are multiple tangent constraints, such as multiple pier head arcs and multiple tangent boundaries, the set of quadratic constraint tensors is constructed as follows: , ; Where Q is the set of quadratic constraint tensors, Q j Let l be the homogeneous vector of the j boundary lines. j The constructed quadratic form matrix, where q represents the total number of boundary lines tangent to the circular arcs, forms the constraint vector: ; in, The constraint is the tangency between the arc at the pier head and the first boundary line. The constraint is the tangency between the arc at the top of the pier and the qth boundary line.
[0048] In this embodiment of the invention, the solution of nonlinear tangent constraints is transformed into the solution of deterministic linear equations, avoiding problems such as convergence failure, sudden increases in time consumption, or the need for manual intervention that may occur with iterative algorithms. This invention features low computational complexity, fast solution speed, and accurate results. Furthermore, the preprocessing with unit normal ensures good condition numbers for the equation coefficients, further enhancing numerical stability.
[0049] Optionally, the step of stacking all the two-dimensional control points of the inlet / outlet structure into a control point matrix, and generating a three-dimensional model of the inlet / outlet structure based on the control point matrix, includes: All the two-dimensional control points of the inlet and outlet structures are stacked in a preset order to form the control point matrix; Construct an operator chain based on the affine generation operator, the offset line intersection operator, and the normal projection operator; The control point matrix is solved in batches using the operator chain to obtain the set of coordinates of the full contour control points of the inlet and outlet structure. A closed two-dimensional contour is generated based on the set of coordinates of the full contour control points; Based on the engineering design requirements of the inlet and outlet structure, the three-dimensional modeling method of the inlet and outlet structure is determined; Using the aforementioned 3D modeling method, the closed 2D contour is used to generate a 3D model of the inlet / outlet structure along a preset direction or path.
[0050] Specifically, firstly, all two-dimensional control points of the inlet and outlet structural contours (including the endpoints of straight lines, the centers of arcs, the starting points, and the ending points calculated in the previous steps) are stacked into a control point matrix P∈R according to a preset contour order. n×2 Each row represents the (x, y) coordinates of a control point. Next, an operator chain consisting of three types of operators is constructed for batch computation: affine generation operator, offset line intersection operator, and normal projection operator. The affine generation operator is used to calculate points directly derived from existing points through linear transformations (such as scaling or offset), in the form p. i =M i p+b i , where p i Let M be the coordinates of the i-th control point in the global coordinate system. i Let p be the linear transformation matrix of the i-th control point from the local coordinate system to the global coordinate system, and b be the original point coordinates in the local coordinate system. i This is the translation vector for the i-th control point from the local coordinate system to the global coordinate system, used to implement the coordinate translation operation. The offset line intersection operator is used to write a linear system as a block diagonal system for multiple circular arcs. Solve in one step, where blkdiag(L1,…,L M ) is composed of M linear submatrices L1, L2, ..., L M The resulting block diagonal matrix, where O is the unknown vector to be solved, is formed by stacking the center coordinates of all the arcs at the top of the piers, i.e.: O=[x 01 ,y 01 ,x 02 ,y 02 ,…,x 0M ,y 0M ] T c is a constant vector, formed by stacking the constant terms on the right side of the equations for the equidistant offset lines corresponding to the circular arcs of each pier head, i.e.: c = [c1, c2, ..., c M ] T The system enables closed-loop recalculation and second-level model reconstruction after parameter changes. The normal projection operator is used to calculate the tangent points of the circular arc. The above operator chain solves the control point matrix P(p) in a single operation using closed-loop or block matrix batch processing, obtaining the set of coordinates of all control points constituting the complete contour. Combined with... Figure 2As shown, a closed two-dimensional contour polygon is then generated by sequentially connecting this set. Finally, according to engineering design requirements (such as extrusion, path lofting, or sweeping), the two-dimensional contour is extended in three dimensions along a specific direction (such as the normal to the contour plane) or a specific spatial path (such as a gradient axis) to generate the final three-dimensional solid model of the inlet and outlet.
[0051] In this embodiment of the invention, the calculation of a large number of control points is encapsulated in operators such as affine generation, offset line intersection, and normal projection, and is solved in batches in matrix form. This avoids the problems of accumulated calculation errors, long processing time, and high failure rate caused by point-by-point iteration and constraint propagation in traditional sketch constraints. Through matrix stacking and operator chain batch processing, efficient, stable, and automated modeling from two-dimensional control points to three-dimensional solids is achieved.
[0052] Optionally, the other structures include tunnel section structures. Generating a three-dimensional model of the other structures in their local coordinate system, in conjunction with their engineering parameters, includes: Based on the engineering parameters of the tunnel section structure, the spatial axis of the tunnel section structure is constructed; According to the preset segmentation type, the spatial axis is divided into multiple axis segments; For each segment of the axis, a segmented three-dimensional model corresponding to the axis is generated based on the cross-sectional parameters of the axis. By stitching together the segmented three-dimensional models of all the axes, a three-dimensional model of the tunnel section structure is obtained.
[0053] Specifically, firstly, a spatial axis describing the tunnel's orientation is constructed based on the tunnel section's structural engineering parameters (such as entrance / exit locations, slope, turning radius, etc.). Next, according to pre-defined segment types (including at least square-to-circular transition segments, circular cross-section straight segments, circle-to-square transition segments, rectangular straight segments, and vertical arc-to-slope segments), this spatial axis is logically divided into multiple sub-axis segments, each corresponding to a specific cross-sectional form and geometric behavior. Then, for each axis segment, based on its corresponding cross-sectional parameters (such as the width and height of rectangular segments, the radius of circular segments, and the gradation pattern of transition segments) and the geometric attributes of that axis segment (such as straight line length, the center and radius of the arc), a corresponding 3D modeling method (lofting or sweeping along the axis) is used to generate a 3D solid model of each segment. Additionally, for special vertical arc-to-slope segments, the center and endpoints are obtained from the upstream slope angle, downstream slope angle, and turning radius R. The axis arc is generated using these three points, and the cross-section is swept along this axis arc to generate a solid model. Finally, combined with... Figure 3 As shown, all the segmented 3D models are precisely geometrically spliced at the interface to ensure continuous and seamless connections, thereby assembling a complete 3D structure of the tunnel segment.
[0054] In this embodiment of the invention, by pre-setting multiple segment types to describe the complex geometric features of tunnels in actual engineering, such as cross-sectional gradient changes and slope changes, the geometric definition of the tunnel is decomposed into axis parameters and cross-sectional parameters. When the engineering parameters change, only the axis and cross-section need to be recalculated, which can automatically trigger the reconstruction and re-splicing of each segment model without the need for manual remodeling, greatly improving design efficiency and ensuring the stability of the full model linkage update.
[0055] Optionally, the other structures include a forebay reverse slope section structure. The process of generating a three-dimensional model of the other structures in their local coordinate system, combined with their engineering parameters, includes: Based on the engineering parameters of the forebay reverse slope section structure, determine the slope ratio and control dimensions of the forebay reverse slope section structure; Based on the slope ratio and the control dimensions, determine the key control points of the forebay reverse slope section structure; Based on the key control points, generate the regular and twisted surfaces of the forebay reverse slope section structure; By enclosing the regular surface and the twisted surface, a three-dimensional model of the forebay reverse slope section structure is obtained.
[0056] Specifically, firstly, the slope ratio and control dimensions of the forebay's reverse slope section are determined based on engineering parameters. The slope ratio parameter supports at least two expressions, including 1:n, 1 / n, decimal slope, and percentage slope, and is resolved into a unified slope or angle value, serving as the driving force for subsequent geometric generation. Next, using the resolved slope ratio and control dimensions, such as the length, width, and depth of the reverse slope section, key control points defining its spatial morphology are calculated. Then, based on these key control points, geometric algorithms generate regular surfaces (such as planes and cylinders) and twisted surfaces (such as complex hyperboloids or NURBS surfaces defined by multiple control points) to characterize the smoothly transitioning base and twisted slopes within the forebay's reverse slope section. Combined with... Figure 4 As shown, all generated regular surfaces and twisted surfaces are connected and stitched together to form a completely closed, watertight three-dimensional shell, thus obtaining a three-dimensional solid model of the forebay reverse slope section that can be used for subsequent Boolean operations and assembly.
[0057] In this embodiment of the invention, multiple slope ratio expressions and unified analysis are used to directly connect with diverse engineering design input habits, ensuring the accuracy of slope definition. Based on key control point generation rules and twisted surfaces, the true geometric shape of the reverse slope section can be reflected in detail, especially for twisted slopes, where the fitting is more accurate. Furthermore, when design parameters are adjusted, control point updates and surface reconstruction can be automatically driven, eliminating the need for manual remodeling and improving the efficiency of design iteration.
[0058] Optionally, the other structures include reservoir area structures. Generating a three-dimensional model of the other structures in their local coordinate system, in conjunction with their engineering parameters, includes: Based on the engineering parameters of the reservoir area structure, a six-control point matrix of the boundary of the reservoir area structure is constructed; Based on the six control point matrix, the reservoir area morphology is fitted to generate a three-dimensional model of the reservoir area structure.
[0059] Specifically, this invention uses a six-control-point matrix as a unified parameterized representation and driving variable for the reservoir boundary morphology. The six-control-point matrix Q is directly given by the reservoir type template tensor Q0(τ), where τ represents the reservoir type. In the reservoir boundary fitting mode, which requires precise fitting of complex actual terrain, the following formula is satisfied: vec(Q) = vec(Q0(τ)) + B(τ)α; Among them, vec( The vectorization operation involves expanding a matrix (or multidimensional array) into a one-dimensional column vector by columns (or rows). B(τ)α is the morphological basis matrix, and α is the low-dimensional coefficient vector, used to controllably fit the boundaries of basin-type, open-channel-type, or composite reservoir areas while ensuring closure and continuity. By adjusting α, a controllable and continuous low-dimensional fit of the reservoir boundary can be performed based on the template Q0(τ). A three-dimensional model of the reservoir area is generated through geometric fitting.
[0060] In a preferred embodiment of the present invention, the center line (or main axis) of the reservoir area is defined as a broken line / curve c(s), and three stations are selected, namely the upstream end s. u The middle transition end s m Downstream end s d Calculate the unit tangential vector and unit lateral vector for each station using the following formula: , , T , ; in, Let j be the unit tangential vector of the j-th station. For the center line at The tangent vector at that point, tangent vector The 2-norm, i.e., the modulus; k is the vertically upward unit vector. For control point t j The unit vector corresponding to the tangential direction perpendicular to the normal vector k.
[0061] The engineering parameters are set to have equivalent half-widths of w for upstream, middle, and downstream respectively.u w m and w d The water level elevation is Z. w The formula for defining six control points is: ; ; ; ; ; ; Q1, Q2, Q3, Q4, Q5, and Q6 are the coordinate vectors of six control points. Q1 and Q2 are the left and right boundary control points of the upstream section, Q3 and Q4 are the left and right boundary control points of the middle section, and Q5 and Q6 are the left and right boundary control points of the downstream section. , and These are the equivalent half-widths for the upstream, midstream, and downstream regions, respectively. , and These are the unit tangential direction vectors of the three contour baselines: upstream, middle, and downstream. , and These are the reference position vectors of the three contour baselines (upstream, middle, and downstream) in the local coordinate system. Finally, these six three-dimensional control points are connected sequentially and fitted to generate the reservoir boundary surface, thus forming a three-dimensional model of an open channel reservoir with gradually changing width.
[0062] In this embodiment of the invention, the reservoir area boundary is parametrically represented by a six-control-point matrix, achieving efficient and controllable modeling of the reservoir area morphology. The six control points correspond to the left and right bank boundaries of the upstream, middle, and downstream areas, respectively, ensuring the spatial symmetry and continuity of the reservoir area. It supports both direct calculation based on engineering parameters and can be extended to a low-dimensional coefficient fitting mode, facilitating integration with topographic data or optimization algorithms.
[0063] Optionally, the step of assembling and combining the three-dimensional models of the inlet / outlet structure and other structures based on the coordinate transformation matrix and performing Boolean operations to generate the full model of the side inlet / outlet includes: Based on the coordinate transformation matrix, the 3D model corresponding to each local coordinate system is transformed to the global coordinate system to obtain the transformed 3D model; Based on the number of inlets and outlets of the side-type inlet and outlet, and combined with the rigid body transformation matrix of the coordinate transformation matrix, the transformed three-dimensional model of the inlet and outlet structure is arrayed, copied, and spatially arranged to obtain a multi-inlet and outlet structure model. The multi-inlet / outlet structure model and the three-dimensional models of other structures in the global coordinate system are geometrically assembled to form a composite body, and a trimmed body is generated according to the preset maintenance platform position. In the global coordinate system, the clipped body in the combined body is removed by Boolean difference operation to obtain the full model of the side inlet and outlet.
[0064] Specifically, firstly, the local coordinate system Σ constructed in the preceding steps is used. k To the global coordinate system Σ g Transformation matrix G k (p)∈SE(3) and T k (p)∈SE(2), the three-dimensional models of each individual structure (inlet / outlet, tunnel section, forebay reverse slope section, reservoir area) generated in its own local coordinate system are transformed using the homogeneous coordinate transformation formula. and Transform to the global coordinate system, where, Let these be the homogeneous coordinates of the three-dimensional control points defined for a given single structure in its own local coordinate system. This refers to the homogeneous coordinates of a three-dimensional point of a single structure in the local coordinate system after coordinate transformation, in the global coordinate system. It is a three-dimensional special Euclidean group transformation matrix. These are the homogeneous coordinates of a two-dimensional control point defined in a local coordinate system. This transforms a two-dimensional point to its corresponding homogeneous coordinates in the global coordinate system. It is a two-dimensional special Euclidean group transformation matrix.
[0065] Next, based on the number of inlets and outlets N, and using rigid body transformation matrices consisting of translation and rotation, the individual inlet and outlet models are arrayed and spatially arranged. The Y-coordinate of the arrangement is given by the formula y i =(i (N+1) / 2)S is determined, where y i Let S be the coordinate of the centerline of the i-th inlet / outlet unit in the Y-axis direction of the global coordinate system, and let S be the distance between the centerlines of two adjacent inlet / outlet units. Figure 5 As shown, a symmetrical distribution about the XZ plane is achieved, and mirror symmetry can be achieved through the reflection matrix, resulting in a multi-inlet / outlet structure model, where the formula is: ; in, Let be the mirror matrix of the mirror image of the XZ plane, satisfying ,in, These are the coordinates of the point after the mirroring operation. This refers to the homogeneous coordinates of a three-dimensional point of a single structure in the local coordinate system after coordinate transformation, in the global coordinate system.
[0066] Subsequently, the multi-inlet / outlet structural model obtained from the array is geometrically assembled with other structural models in the global coordinate system to form a unified composite object. Figure 6 As shown, a trimmed body (i.e., the part to be removed) is generated based on the preset maintenance platform location. Finally, in the global coordinate system, the trimmed body is subtracted from the combined body through Boolean difference operations to obtain the final usable full model entity of the side inlet / outlet. If the Boolean operation fails, the combined body will be output according to the degradation strategy, and the datum and topology will be recorded to ensure the output capability of the model.
[0067] In this embodiment of the invention, the integration of a complete model of a complex hydraulic structure is achieved through coordinate transformation, matrix array, and Boolean operation, enabling precise spatial positioning and efficient replication of multi-component models. In addition, non-computational domain parts such as maintenance platforms are removed through Boolean difference operations, so that the generated complete model entity meets the real geometric requirements of the computational domain for fluid calculation or structural analysis, ensuring the geometric integrity and engineering authenticity of the complete model.
[0068] Combination Figure 7 As shown, another embodiment of the present invention provides a parametric modeling system for a side-mounted inlet / outlet, comprising: The coordinate system establishment unit is used to establish a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure in the side-type inlet and outlet based on the engineering parameters and the number of inlets and outlets. It also constructs a coordinate transformation matrix from the local coordinate system to the global coordinate system. The individual structure includes the core structure and other structures of the side-type inlet and outlet, and the core structure is the inlet and outlet structure of the side-type inlet and outlet. The core structural building unit is used to integrate and process the two-dimensional control points of the inlet / outlet structure's contour in the local coordinate system of the inlet / outlet structure to obtain the homogeneous unit normal matrix corresponding to the contour; based on the homogeneous unit normal matrix, determine the equidistant offset line tangent to the pier head arc of the inlet / outlet structure, and generate the two-dimensional control points of the pier head arc based on the equidistant offset line; stack all the two-dimensional control points of the inlet / outlet structure into a control point matrix, and generate the three-dimensional model of the inlet / outlet structure based on the control point matrix. Other structural building units are used to generate a three-dimensional model of the other structure in the local coordinate system of the other structure, in combination with the engineering parameters of the other structure; An integrated processing unit is used to assemble and combine the three-dimensional models of the inlet / outlet structure and other structures in the global coordinate system based on the coordinate transformation matrix and to perform Boolean operations to generate the full model of the side inlet / outlet.
[0069] The side-type inlet / outlet full-model parametric modeling system of the present invention has the same advantages over the prior art as the above-mentioned side-type inlet / outlet full-model parametric modeling method, and will not be repeated here.
[0070] While the present invention has been disclosed above, its scope of protection is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and all such changes and modifications will fall within the scope of protection of the present invention.
Claims
1. A parametric modeling method for a side-mounted inlet / outlet water outlet, characterized in that, include: Based on the engineering parameters and number of side inlets and outlets, a global coordinate system for the side inlets and outlets and a local coordinate system corresponding to each individual structure in the side inlets and outlets are established, and a coordinate transformation matrix from the local coordinate system to the global coordinate system is constructed. The individual structure includes the core structure and other structures of the side inlets and outlets, and the core structure is the inlet and outlet structure of the side inlets and outlets. In the local coordinate system of the inlet and outlet structure, the two-dimensional control points of the inlet and outlet structure contour are integrated and processed by unit normal to obtain the homogeneous unit normal matrix corresponding to the contour. Based on the unit normal homogeneous matrix, determine the equidistant offset line tangent to the pier head arc of the inlet / outlet structure, and generate two-dimensional control points for the pier head arc based on the equidistant offset line. All the two-dimensional control points of the inlet and outlet structure are stacked into a control point matrix, and a three-dimensional model of the inlet and outlet structure is generated based on the control point matrix. In the local coordinate system of the other structures, and in combination with the engineering parameters of the other structures, a three-dimensional model of the other structures is generated; Based on the coordinate transformation matrix, the three-dimensional models of the inlet / outlet structure and other structures are assembled and combined, and Boolean operations are performed to generate the full model of the side inlet / outlet.
2. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, The step of establishing a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure within the side-type inlet and outlet, based on the engineering parameters and number of inlets and outlets, includes: The engineering parameters corresponding to each of the individual structures in the side-type inlet and outlet are obtained, and the engineering parameters are subjected to unit unification, legality verification and derivation calculation to obtain standardized engineering parameters. Based on the standardized engineering parameters and the number of inlets and outlets, the main flow direction of the side inlets and outlets and the geometric features corresponding to each individual structure are determined. Establish the global coordinate system based on the main direction of the water flow; Based on the geometric features corresponding to each of the individual structures, a local coordinate system corresponding to the individual structure is established.
3. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, In the local coordinate system of the inlet and outlet structure, the two-dimensional control points of the inlet and outlet structure's contour are integrated and processed with unit normals to obtain the homogeneous unit normal matrix corresponding to the contour, including: Based on the engineering parameters of the inlet and outlet structure, determine the two-dimensional control points of the outline of the inlet and outlet structure; Convert the coordinates of the two-dimensional control points in the local coordinate system to homogeneous coordinates; Based on the homogeneous coordinates, the homogeneous line vectors of the line segments corresponding to the contour are obtained; The homogeneous line vector is normalized to obtain the homogeneous matrix with unit normal.
4. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, The step of determining an equidistant offset line tangent to the arc of the pier head structure based on the homogeneous unit normal matrix, and generating two-dimensional control points for the arc of the pier head based on the equidistant offset line, includes: Based on the unit normal line parameters in the unit normal homogeneous matrix, two target lines are identified. Based on the design radius of the pier head arc and the position requirements of the pier head arc, determine the equidistant offset direction of the normal of each target straight line; Based on the design radius, the equidistant offset direction, and the unit normal line parameter, the equations of the equidistant offset lines corresponding to the two target lines are determined, and the equations of the equidistant offset lines are solved to obtain the center coordinates of the pier head arc in the local coordinate system of the inlet and outlet structure. Based on the center coordinates of the arc of the pier head, the starting coordinates and ending coordinates of the arc of the pier head in the local coordinate system of the inlet and outlet structure are obtained; The center coordinates, the starting point coordinates, and the ending point coordinates are used as the two-dimensional control points of the pier head arc.
5. The parametric modeling method for a full-model of a side-mounted inlet / outlet according to claim 1, characterized in that, The step of stacking all the two-dimensional control points of the inlet and outlet structure into a control point matrix, and generating a three-dimensional model of the inlet and outlet structure based on the control point matrix, includes: All the two-dimensional control points of the inlet and outlet structures are stacked in a preset order to form the control point matrix; Construct an operator chain based on the affine generation operator, the offset line intersection operator, and the normal projection operator; The control point matrix is solved in batches using the operator chain to obtain the set of coordinates of the full contour control points of the inlet and outlet structure. A closed two-dimensional contour is generated based on the set of coordinates of the full contour control points; Based on the engineering design requirements of the inlet and outlet structure, the three-dimensional modeling method of the inlet and outlet structure is determined; Using the aforementioned 3D modeling method, the closed 2D contour is used to generate a 3D model of the inlet / outlet structure along a preset direction or path.
6. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, The other structures include tunnel section structures. The process of generating a three-dimensional model of the other structures in their local coordinate system, combined with their engineering parameters, includes: Based on the engineering parameters of the tunnel section structure, the spatial axis of the tunnel section structure is constructed; According to the preset segmentation type, the spatial axis is divided into multiple axis segments; For each segment of the axis, a segmented three-dimensional model corresponding to the axis is generated based on the cross-sectional parameters of the axis. By stitching together the segmented three-dimensional models of all the axes, a three-dimensional model of the tunnel section structure is obtained.
7. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, The other structures include the forebay reverse slope section structure. The process of generating a three-dimensional model of the other structures in their local coordinate system, combined with their engineering parameters, includes: Based on the engineering parameters of the forebay reverse slope section structure, determine the slope ratio and control dimensions of the forebay reverse slope section structure; Based on the slope ratio and the control dimensions, determine the key control points of the forebay reverse slope section structure; Based on the key control points, generate the regular and twisted surfaces of the forebay reverse slope section structure; By enclosing the regular surface and the twisted surface, a three-dimensional model of the forebay reverse slope section structure is obtained.
8. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, The other structures include reservoir area structures. The process of generating a three-dimensional model of the other structures in their local coordinate system, combined with their engineering parameters, includes: Based on the engineering parameters of the reservoir area structure, a six-control point matrix of the boundary of the reservoir area structure is constructed; Based on the six control point matrix, the reservoir area morphology is fitted to generate a three-dimensional model of the reservoir area structure.
9. The parametric modeling method for a side-mounted inlet / outlet according to claim 1, characterized in that, Based on the coordinate transformation matrix, the assembly and Boolean operations are performed on the three-dimensional models of the inlet / outlet structure and other structures to generate the full model of the side-type inlet / outlet, including: Based on the coordinate transformation matrix, the 3D model corresponding to each local coordinate system is transformed to the global coordinate system to obtain the transformed 3D model; Based on the number of inlets and outlets of the side-type inlet and outlet, and combined with the rigid body transformation matrix of the coordinate transformation matrix, the transformed three-dimensional model of the inlet and outlet structure is arrayed, copied, and spatially arranged to obtain a multi-inlet and outlet structure model. The multi-inlet / outlet structure model and the three-dimensional models of other structures in the global coordinate system are geometrically assembled to form a composite body, and a trimmed body is generated according to the preset maintenance platform position. In the global coordinate system, the clipped body in the combined body is removed by Boolean difference operation to obtain the full model of the side inlet and outlet.
10. A parametric modeling system for a side-mounted inlet / outlet water outlet, characterized in that, include: The coordinate system establishment unit is used to establish a global coordinate system for the side-type inlet and outlet and a local coordinate system corresponding to each individual structure in the side-type inlet and outlet based on the engineering parameters and the number of inlets and outlets. It also constructs a coordinate transformation matrix from the local coordinate system to the global coordinate system. The individual structure includes the core structure and other structures of the side-type inlet and outlet, and the core structure is the inlet and outlet structure of the side-type inlet and outlet. The core structural building unit is used to integrate and process the two-dimensional control points of the inlet / outlet structure's contour in the local coordinate system of the inlet / outlet structure to obtain the homogeneous unit normal matrix corresponding to the contour; based on the homogeneous unit normal matrix, determine the equidistant offset line tangent to the pier head arc of the inlet / outlet structure, and generate the two-dimensional control points of the pier head arc based on the equidistant offset line; stack all the two-dimensional control points of the inlet / outlet structure into a control point matrix, and generate the three-dimensional model of the inlet / outlet structure based on the control point matrix. Other structural building units are used to generate a three-dimensional model of the other structure in the local coordinate system of the other structure, in combination with the engineering parameters of the other structure; An integrated processing unit is used to assemble and combine the three-dimensional models of the inlet / outlet structure and other structures in the global coordinate system based on the coordinate transformation matrix and to perform Boolean operations to generate the full model of the side inlet / outlet.