[0056] Example one:
[0057] Please refer to figure 1 , The first embodiment of the present invention provides a parallel calculation method for the slamming of the bow of a ship based on a three-dimensional model, which runs on a computer terminal and specifically includes the following steps:
[0058] Step S1: The computer terminal discretizes the hull hull within the slamming range of the hull bow into multiple spatial quadrilaterals according to the input hull hull profile and through a preset discretization method;
[0059] A plurality of the space quadrilaterals and the hull hull profile line constitutes a hull bow slamming calculation database; the hull hull profile includes a water line and a cross section line, and the hull hull profile line can be processed by existing graphics Software processing formation.
[0060] Step S2: The computer terminal calculates the vertex attribute corresponding to each vertex of each spatial quadrilateral and the shape value corresponding to the hull hull profile according to the preset first calculation method;
[0061] The vertex attribute of each vertex includes the coordinate value of each vertex and the corresponding vertex normal vector;
[0062] The profile value of the hull hull profile is the coordinate value of each point that determines the spatial position of the profile.
[0063] Step S3: The computer terminal divides each of the spatial quadrilaterals into two corresponding triangles according to a preset dividing method, and determines multiple calculation points that need to be calculated for design parameters in each of the triangles;
[0064] Step S4, the computer terminal, according to the vertex attribute corresponding to each of the vertices received in the step S2 and the property corresponding to the hull hull profile, and using a preset second calculation method to obtain each A first design parameter index corresponding to one of the vertices and a second design parameter index corresponding to each of the calculation points inside each of the triangles;
[0065] The first design parameter index is one of the local waterline angle of each of the vertices, the local impact angle of the bow on each of the vertices, and the local linear angle of the tangent from the horizontal line to each of the vertices. Kind or more
[0066] The second design parameter index is the local waterline angle of each of the calculation points inside the triangle, the local impact angle of the bow at each calculation point, and the connection from the horizontal line to each calculation point. One or more of the local linear angles of the tangent.
[0067] The computer terminal is based on the first design parameter index and the second design parameter index, and according to the preset second calculation method to calculate the bow impact design pressure, the net thickness of the side shell plate, the frame and the Design parameters such as the effective net shaping section modulus of the effective plate, the net thickness of the frame web, the net section modulus of the hull support member, and the net shear area of the hull support member web;
[0068] Step S5, the graphics processor inside the computer terminal, according to a preset rendering method, converts each of the vertex and its corresponding first design parameter index and each of the calculation points and its corresponding second design parameter The indicator forms a rendered graphic and is displayed on the screen of the computer terminal as a calculation result.
[0069] Specifically, the preset rendering method is that the shader in the graphics processor is based on the different vertex attributes corresponding to each of the vertices, the different calculation point attributes corresponding to each of the calculation points, and the hull hull. The type value of the type line, using different colors and color depths to distinguish each of the vertices of each of the spatial quadrilaterals and the calculation points in the triangles, and finally display the graphics on the screen of the computer terminal after rendering .
[0070] In a preferred solution of the first embodiment of the present invention, please refer to image 3 In the step S2, the method for the computer terminal to calculate the vertex normal vector corresponding to each vertex of each of the spatial quadrilaterals according to the preset first calculation method specifically includes the following steps:
[0071] Step S21, the computer terminal obtains all the spatial quadrilaterals that include a designated vertex;
[0072] Step S22, in each of all the spatial quadrilaterals containing the designated vertex, connect the designated vertex and the two vertices respectively connected to the designated vertex to form the triangle;
[0073] Step S23, the computer terminal calculates the normal vector corresponding to each of the triangles obtained in the step S22;
[0074] Step S24: Take a weighted average of the normal vectors corresponding to each of the triangles obtained in step S23 to obtain the vertex corresponding to the designated vertex according to the size of the inner angle corresponding to the designated vertex in each of the triangles Normal vector
[0075] Step S25, repeating steps S21 to S24 until the vertex normal vectors corresponding to all the vertices in all the space quadrilaterals are calculated.
[0076] Please refer to Figure 4 , The discretization method described in step S1 specifically includes the following steps:
[0077] Step A1: Divide each of the waterlines up and down on the hull shell into equal number of line segments in a bisecting manner, and then record the bisecting nodes on each of the waterlines in turn along the bow to stern direction; Record the first node, the second node, the third node... until the final nth node is recorded on each of the water lines;
[0078] Step A2: Connect the bisecting nodes in the same order on each of the water lines in order in the height direction to form a plurality of isoparametric lines; each of the water lines and the isoparametric lines are mutually divided to form a plurality of the spatial quadrilaterals . For example, the first node of each waterline is connected up and down to form a first isoparm that divides each waterline; and then connected in the same way to form a second isoparm, a third, etc. that divide each waterline Parametric lines...until the formation of the nth isoparm; each of the water lines and each of the isoparms is divided from each other to form a plurality of the space quadrilaterals.
[0079] In order to ensure calculation accuracy, the grid size corresponding to each of the space quadrilaterals is preferably less than or equal to 200mm*200m.
[0080] In a preferred solution of the first embodiment of the present invention, in the step S4, the second calculation method includes a barycentric coordinate interpolation method, and the barycentric coordinate interpolation method is calculated by the following formula to obtain each position in each triangle The second design parameter index corresponding to the calculation point:
[0081] p=λ 1 a+λ 2 b+λ 3 c
[0082] among them,
[0083] P is used to represent the second design parameter index,
[0084] a, b, and c are respectively the first design parameter index of the three vertices A, B, and C corresponding to the triangle;
[0085] The ratio of the area of triangle PBC, triangle PCA and triangle PAB is λ 1 : Λ 2 : Λ 3 , And λ 1 +λ 2 +λ 3 =1;
[0086] P is used to represent the calculation point inside the triangle.
[0087] In a preferred solution of Embodiment 1 of the present invention, the computer terminal calculates the impact of each of the vertices of each of the spatial quadrilaterals and the calculated points of each of the triangles by the following formula: design pressure:
[0088]
[0089] among them,
[0090] P FB Used to indicate the impact design pressure of the bow of the hull;
[0091] f FB It is used to represent the longitudinal distribution coefficient of the impact pressure on the bow of the hull at each of the vertices or the calculation points;
[0092] V im Used to represent the impact velocity of each of the vertices or each of the calculation points;
[0093] γ wl Used to represent the local impact angle of the bow of each of the vertices or each of the calculation points;
[0094] C FB It is used to indicate the vertical position coefficient of each vertex or each calculation point.
[0095] In a preferred solution of the first embodiment of the present invention, in the step S4, the parallel calculation process is performed in the graphics processor inside the computer terminal, and then the parallel result is directly rendered in the step S5 And displayed on the screen of the computer terminal.
[0096] In addition, it should be noted that the coordinate value of each vertex in the vertex attribute corresponding to each vertex and the shape of the hull hull profile are calculated by using the first calculation method in the step S2. The value method is a calculation method in the prior art; in the step S4, the second calculation method is used to calculate the first design parameter index corresponding to each vertex and each of the triangles The method for calculating the second design parameter index corresponding to the point is also the calculation method in the prior art, and will not be elaborated here.