Method for calculating a hinge deflection angle, electronic device and storage medium

By establishing a Cartesian coordinate system on the arc-shaped gate and calculating the angle between the normal vectors of the hinges, the calculation of the hinge deflection angle is simplified, solving the problem of complex calculation in the existing technology and realizing fast and accurate hinge angle adjustment.

CN116108313BActive Publication Date: 2026-06-19GUIZHOU SURVEY & DESIGN RES INST FOR WATER RESOURCES & HYDROPOWER

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUIZHOU SURVEY & DESIGN RES INST FOR WATER RESOURCES & HYDROPOWER
Filing Date
2022-12-05
Publication Date
2026-06-19

Smart Images

  • Figure CN116108313B_ABST
    Figure CN116108313B_ABST
Patent Text Reader

Abstract

This application discloses a method, electronic device, and storage medium for calculating the hinge deflection angle, relating to the field of hydraulic engineering technology. The method for calculating the hinge deflection angle includes: establishing a Cartesian coordinate system based on data from an arc-shaped gate, with the line connecting the rotation centers of the two inclined arms of the arc-shaped gate as the axis; and calculating a first normal vector of the plane perpendicular to the axis. The arc-shaped gate includes an arc-shaped gate leaf and two inclined arms disposed inside the gate leaf. The end of each inclined arm away from the gate leaf is connected to a hinge shaft via a hinge to achieve rotation of the arc-shaped gate. The side of the hinge has a deflection angle relative to the plane of hinge rotation. A second normal vector of the plane containing one of the inclined arms is calculated. The hinge deflection angle is calculated based on the first and second normal vectors. The method, electronic device, and storage medium provided in this application simplify the calculation process of the hinge deflection angle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of water conservancy engineering technology, and more specifically, to a method for calculating the hinge deflection angle, an electronic device, and a storage medium. Background Technology

[0002] An arc-shaped gate is a gate with a partially arc-shaped cylindrical water-retaining surface. It consists of three parts: a rotating gate body, embedded components, and opening / closing equipment. The rotating gate body comprises a gate leaf, support arms, and hinges (including hinges, hinge shafts, and hinge seats). The gate leaf serves as the water-retaining surface. The support arms connect the gate leaf to the hinges, which in turn connect to the embedded components in the hydraulic structure, transmitting the water pressure borne by the gate leaf to the hinges, and then to the hydraulic structure via the hinge seats. Arc-shaped gates are classified into inclined-arm arc-shaped gates and straight-arm arc-shaped gates based on the formation of their support arms. A common type of inclined-arm arc-shaped gate has two inclined arms on the inner side of the gate leaf. Each inclined arm consists of an upper and lower support, with vertical supports and diagonal tie rods spaced between them, connecting the upper and lower arms into a single unit, often referred to as a V-shaped support arm.

[0003] The plane containing the inclined support arm has a certain angle with the rotating surface of the hinge. In order to fix the inclined support arm well, the side of the hinge is parallel to the plane containing the inclined support arm, so that there is a certain angle between the side of the hinge and the rotating surface of the hinge, which is called the deflection angle of the hinge. After the parameters of the inclined support arm are determined, the deflection angle of the hinge is closely related to the installation and stable operation of the arc gate. The current methods for determining the deflection angle of the hinge are to build a three-dimensional model for layout or to calculate using spatial geometric angle relationships. These two methods are complex and require the use of auxiliary graphics. When the gate layout parameters change, the drawing and calculation need to be re-done. Summary of the Invention

[0004] The purpose of this application is to provide a method for calculating the hinge deflection angle, an electronic device, and a storage medium that can simplify the calculation process of the hinge deflection angle.

[0005] One embodiment of this application provides a method for calculating the hinge deflection angle, comprising: establishing a Cartesian coordinate system based on data of an arc-shaped gate, with the line connecting the rotation centers of the two inclined arms of the arc-shaped gate as the axis, and calculating a first normal vector of the plane perpendicular to the axis, wherein the arc-shaped gate includes an arc-shaped gate leaf and two inclined arms disposed on the inner side of the gate leaf, the inclined arms extending away from the gate leaf, and the end of the inclined arm away from the gate leaf being connected to a hinge shaft through a hinge to realize the rotation of the arc-shaped gate, wherein the side of the hinge has a deflection angle relative to the rotation plane of the hinge; calculating a second normal vector of the plane where one of the inclined arms is located; and calculating the deflection angle of the hinge based on the first normal vector and the second normal vector.

[0006] As an feasible approach, based on the data of the arc-shaped gate, a Cartesian coordinate system is established with the line connecting the rotation centers of the two inclined arms of the arc-shaped gate as the axis, and the first normal vector of the plane perpendicular to the axis is calculated. This includes: establishing a Cartesian coordinate system with the line connecting the rotation centers of the two inclined arms as the X-axis, the direction perpendicular to the X-axis in the horizontal direction as the Y-axis, and the vertical direction as the Z-axis; taking point A on the Y-axis and point B on the Z-axis, and calculating the normal vector of the OYZ plane based on the coordinates of point A, the coordinates of point B, and the origin of the Cartesian coordinate system, where the OYZ plane is a plane perpendicular to the X-axis.

[0007] As one feasible approach, the inclined arm includes an upper arm and a lower arm with an included angle. Calculating the second normal vector of the plane containing one of the inclined arms includes: taking a point C on the upper arm and a point D on the lower arm, and calculating the coordinates of points C and D; calculating the second normal vector of the OCD plane based on points C, D, and the origin of the Cartesian coordinate system, where the OCD plane is the plane containing the inclined arm.

[0008] As one feasible approach, the upper and lower arms are fixed to the door leaf. Point C is taken on the upper arm and point D is taken on the lower arm. The coordinate values ​​of points C and D are calculated, including: taking the endpoint of the upper arm as point C and the endpoint of the lower arm as point D; calculating the angle φ2 between the upper arm and the Z-axis and the angle φ1 between the lower arm and the Z-axis; calculating the coordinates of point C (S3, h2sinφ2, h2cosφ2) based on the angle φ2, and calculating the coordinates of point D (S3, h2sinφ1, h2cosφ1) based on the angle φ1, where h2 is the length of the lower and upper arms, and S3 is the offset of the endpoints of the upper and lower arms relative to the X-axis.

[0009] As an implementable method, calculating the angle φ2 between the upper support arm and the Z-axis and the angle φ1 between the lower support arm and the Z-axis includes: obtaining the angle φ2 between the upper support arm and the Z-axis and the angle φ1 between the lower support arm and the Z-axis based on the formulas: φ1=arcsin(R / L)+(S1×360) / 2πR, φ2=arcsin(R / L)+[(S1+S2)×360] / 2πR, where S1 is the arc length along the cylindrical surface from the point of the lower support arm corresponding to the door leaf to the lower end of the door leaf, S2 is the arc length on the lower support arm and the corresponding door leaf of the upper support arm; L is the distance between the lower end of the door leaf and the Z-axis.

[0010] As one feasible approach, take point A on the Y-axis and point B on the Z-axis. Calculate the normal vector of the OYZ plane based on the coordinates of point A, point B, and the origin of the Cartesian coordinate system. The OYZ plane is a plane perpendicular to the axes. This includes taking point A on the Y-axis with coordinates (0, 1, 0) and point B on the Z-axis with coordinates (0, 0, 1); and converting line segment OA into a vector. Convert line segment OB into a vector For vectors sum vector Perform a vector product operation to obtain the normal vector of the OYZ plane. .

[0011] As one feasible approach, the second normal vector of the OCD plane is calculated based on points C, D, and the origin of the Cartesian coordinate system. The OCD plane, i.e., the plane containing the inclined arm, includes: transforming line segment OC into a vector. (S3, h2sinφ2, h2cosφ2), transform the line segment OD into a vector. (S3, h2sinφ1, h2cosφ1); for vectors Perform a vector product operation to calculate the normal vector of the OCD plane. =( ).

[0012] As one feasible approach, calculating the hinge deflection angle based on the first and second normal vectors includes: in, That is, the angle between the OCD plane and the OYZ plane.

[0013] Another embodiment of this application provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the above-described hinge deflection angle calculation method.

[0014] In another aspect, embodiments of this application provide a storage medium storing a computer program, which, when run by a processor, executes the steps of the above-described hinge deflection angle calculation method.

[0015] The beneficial effects of the embodiments of this application include:

[0016] The method for calculating the hinge deflection angle provided in this application includes: establishing a Cartesian coordinate system based on the data of the arc-shaped gate, with the line connecting the rotation centers of the two inclined arms of the arc-shaped gate as the axis, and calculating the first normal vector of the plane perpendicular to the axis. The arc-shaped gate includes an arc-shaped gate leaf and two inclined arms disposed on the inner side of the gate leaf. The inclined arms extend away from the gate leaf, and the end of the inclined arm away from the gate leaf is connected to the hinge shaft through a hinge to realize the rotation of the arc-shaped gate. The side of the hinge has a deflection angle relative to the rotation plane of the hinge. The first normal vector is the normal vector of the plane perpendicular to the axis. Since the axis is the line connecting the rotation centers of the two hinges, the axis and the rotation plane of the hinge are perpendicular to the axis, so the first normal vector is the normal vector of the rotation plane of the hinge. Calculate the second normal vector of the plane where one of the inclined arms is located. In this design, the plane containing the diagonal support arm is the same plane containing the side surface of the hinge. The hinge deflection angle is calculated based on the first and second normal vectors. The angle between the two planes is the same as the angle between the normal vectors of the two planes. Therefore, the angle between the first and second normal vectors is the angle between the plane containing the diagonal support arm and the hinge rotation plane, and also the angle between the plane containing the side surface of the hinge and the hinge rotation plane support, i.e., the hinge deflection angle. This application uses the angle between two normal vectors to calculate the hinge deflection angle, simplifying the calculation process. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 One of the flowcharts for calculating the hinge deflection angle provided in the embodiments of this application;

[0019] Figure 2 This is a schematic diagram of the arc-shaped gate according to an embodiment of this application;

[0020] Figure 3 This is one of the structural schematic diagrams of the hinge in an embodiment of this application;

[0021] Figure 4 This is a second schematic diagram of the hinge structure according to an embodiment of this application;

[0022] Figure 5 A schematic diagram of the plane in which the inclined support arm is located, provided for an embodiment of this application;

[0023] Figure 6A second flowchart illustrating a method for calculating the hinge deflection angle provided in an embodiment of this application;

[0024] Figure 7 The third flowchart illustrates a method for calculating the hinge deflection angle provided in this application embodiment.

[0025] Icons: 10-Arch-shaped gate; 11-Gate leaf; 12-Slanted support arm; 121-Upper support arm; 122-Lower support arm; 13-Hinge; 131-Rotation plane; 132-Side; 14-Hinge seat; 15-Hinge shaft. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0027] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0028] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0029] In the description of this application, it should be noted that the terms "center," "vertical," "horizontal," "inner," and "outer," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings, or the orientation or positional relationships commonly used when the product is in use. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on this application. Furthermore, the terms "horizontal," "vertical," etc., do not mean that the component is required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" simply means that its direction is more horizontal than "vertical," and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0030] In practical use, such as Figure 2As shown, two inclined arms 12 are arranged along the axis of rotation of the cylindrical surface, and the same side end of the two inclined arms 12 is fixedly connected to the inner side of the arc-shaped gate leaf 11. The hinges 13 at the other side end of the two inclined arms 12 are rotatably connected to the hinge seat 14 through the pivot shaft. This allows the gate leaf 11 to rotate when the two inclined arms 12 rotate at the same time, so as to block the gate when needed and rotate it above the water surface when not needed, allowing water to flow through the gate.

[0031] The inclined support arm 12 is connected to the hydraulic structure via a hinge, which includes a hinge 13, a hinge shaft 15, and a hinge seat 14 mounted on the hydraulic structure. When the gate leaf 11 is blocking the gate, the pressure of the water on the gate leaf 11 is transmitted to the hydraulic structure through the hinge. To improve the spatial stability of the arc gate 10, the support arm is usually inclined in the direction of water flow, which increases the lateral stiffness of the gate and ensures the stable operation of the gate. The angle between the inclined support arm 12 and the direction of water flow is the inclination angle of the inclined support arm 12. In order to fix the inclined support arm 12, the side 132 of the hinge 13 is usually set to be parallel to the connection surface of the inclined support arm 12, so that there is an angle between the side 132 of the hinge 13 and the rotation plane 131 of the hinge 13.

[0032] This application provides a method for calculating the deflection angle of hinge 13, such as... Figure 1 As shown, it includes:

[0033] S10: Based on the data of the arc-shaped gate 10, establish a Cartesian coordinate system with the line connecting the rotation centers of the two inclined arms 12 of the arc-shaped gate 10 as the axis, and calculate the first normal vector of the plane perpendicular to the axis, where, for example... Figure 2 As shown, the arc-shaped gate 10 includes an arc-shaped gate leaf 11 and two inclined support arms 12 disposed inside the gate leaf 11. The inclined support arms 12 extend away from the gate leaf 11, and the end of the inclined support arm 12 away from the gate leaf 11 is connected to a hinge shaft via a hinge 13 to realize the rotation of the arc-shaped gate 10. Figure 3 and Figure 4 As shown, the side surface 132 of hinge 13 has a deflection angle relative to the rotation plane 131 of hinge 13. Figure 3 , Figure 4 θ in the figure represents the deflection angle of hinge 13.

[0034] Since the door leaf 11 is perpendicular to the direction of water flow, the line connecting the rotation centers of the two inclined arms 12 is also perpendicular to the direction of water flow. That is, the line connecting the rotation centers of the two inclined arms 12 is perpendicular to the rotation plane 131 of the inclined arms 12. In other words, the plane perpendicular to the axis is the rotation plane 131 of the inclined arms 12. By calculating the first normal vector of the plane perpendicular to the axis, the normal vector of the rotation plane 131 of the inclined arms 12 can be obtained, which is the normal vector of the rotation plane 131 of the hinge 13.

[0035] S20: Calculate the second normal vector of the plane containing one of the inclined arms 12;

[0036] Using the data from the inclined arm 12, the second normal vector of the plane containing the inclined arm 12 is calculated. Furthermore, it should be noted that to balance the water pressure perpendicular to the water flow direction, both inclined arms 12 are tilted towards the center at the same angle. Therefore, this application only needs to calculate the tilt angle of one of the inclined arms 12. Since the plane containing the inclined arm 12 is parallel to the side surface 132 of the hinge 13, the second normal vector is the normal vector of the plane containing the side surface 132 of the hinge 13.

[0037] S30: Calculate the deflection angle of hinge 13 based on the first normal vector and the second normal vector.

[0038] The first normal vector is the normal vector of the rotation plane 131 of the hinge 13, and the second normal vector is the normal vector of the plane on which the side surface 132 of the hinge 13 is located. The angle between the two planes is the same as the angle between the normal vectors of the two planes. In this embodiment, the deflection angle of the hinge 13 is the angle between the inclined arm 12 and the rotation plane 131 of the hinge 13. The deflection angle of the inclined arm 12 relative to the rotation plane 131 of the hinge 13 can be obtained by the angle between the normal vector of the rotation plane 131 of the hinge 13 and the normal vector of the plane on which the inclined arm 12 is located. This is the deflection angle of the side surface 132 of the hinge 13 relative to the rotation plane 131 of the hinge 13, which is the deflection angle of the hinge 13.

[0039] The method for calculating the deflection angle of the hinge 13 provided in this application includes: establishing a Cartesian coordinate system based on the data of the arc gate 10, with the line connecting the rotation centers of the two inclined arms 12 of the arc gate 10 as the axis, and calculating the first normal vector of the plane perpendicular to the axis; the first normal vector is the normal vector of the plane perpendicular to the axis, since the axis is the line connecting the rotation centers of the two hinges 13, the axis and the rotation plane 131 of the hinge 13 are perpendicular to the axis, so the first normal vector is the normal vector of the rotation plane 131 of the hinge 13; and calculating the second normal vector of the plane where one of the inclined arms 12 is located. In this design, the plane containing the inclined arm 12 is the same plane containing the side surface 132 of the hinge 13. The deflection angle of the hinge 13 is calculated based on the first and second normal vectors. The angle between the two planes is the same as the angle between the normal vectors of the two planes. Therefore, the angle between the first and second normal vectors is the angle between the plane containing the inclined arm 12 and the rotation plane 131 of the hinge 13, and also the angle between the plane containing the side surface 132 of the hinge 13 and the support of the rotation plane 131 of the hinge 13, i.e., the deflection angle of the hinge 13. This application uses the angle between two normal vectors to calculate the deflection angle of the hinge 13, simplifying the calculation process.

[0040] Optional, such as Figure 6 As shown, based on the data of the arc-shaped gate 10, a Cartesian coordinate system is established with the line connecting the rotation centers of the two inclined arms 12 of the arc-shaped gate 10 as the axis, and the first normal vector of the plane perpendicular to the axis is calculated, including:

[0041] S11: Establish a Cartesian coordinate system with the line connecting the rotation centers of the two inclined arms 12 as the X-axis, the direction perpendicular to the X-axis in the horizontal direction as the Y-axis, and the vertical direction as the Z-axis.

[0042] To calculate the normal vector of the rotation plane 131 of hinge 13, a Cartesian coordinate system is established. First, the line connecting the rotation centers of the two inclined arms 12 is set as the X-axis. Since the water flow direction is horizontal, for ease of calculation, the direction perpendicular to the X-axis in the horizontal plane is set as the Y-axis, which is the water flow direction. At the same time, a Cartesian coordinate system is established with the vertical direction as the Z-axis.

[0043] S12: Take point A on the Y-axis and point B on the Z-axis. Calculate the normal vector of the OYZ plane based on the coordinates of point A, the coordinates of point B, and the origin of the Cartesian coordinate system. The OYZ plane is a plane perpendicular to the axes.

[0044] According to the established coordinate system, the plane on which the hinge 13 rotates is located is the OYZ plane. In order to calculate the normal vector of the OYZ plane, those skilled in the art should know that three points determine a plane, and the normal vector of the plane can be calculated based on the coordinates of the three points. In order to reduce the amount of calculation, this application takes points A and B on the Y-axis and Z-axis of the OYZ plane, and adds the origin O. The normal vector of the OYZ plane is calculated through the coordinates of points A, B and O, which is the normal vector of the hinge 13 rotating plane 131, i.e., the first normal vector.

[0045] In one possible implementation of the embodiments of this application, such as Figure 2 As shown, the inclined support arm 12 includes an upper support arm 121 and a lower support arm 122 with an included angle. The second normal vector of the plane containing one of the inclined support arms 12 is calculated as follows:

[0046] S21: Take point C on the upper support arm 121 and point D on the lower support arm 122, and calculate the coordinate values ​​of point C and point D;

[0047] To calculate the normal vector of the plane containing the inclined support arm 12, point C is taken on the upper support arm 121 and point D is taken on the lower support arm 122. Using the data of the inclined support arm 12, that is, the data of the upper support arm 121 and the lower support arm 122, the coordinate values ​​of point C and point D are calculated.

[0048] It should be noted that the data for the inclined support arm 12 is set according to the application scenario of the arc gate 10 and industry regulations.

[0049] S22: Calculate the second normal vector of the OCD plane based on points C, D and the origin of the Cartesian coordinate system, where the OCD plane is the plane where the inclined support arm 12 is located.

[0050] Similar to the calculation of the normal vector of the OYZ plane, the normal vector of the OCD plane is calculated using the coordinates of points C, D, and O. This normal vector is the normal vector of the plane containing the inclined support arm 12, also known as the second normal vector.

[0051] Optionally, the upper support arm 121 and the lower support arm 122 are fixed to the door leaf 11. Point C is taken on the upper support arm 121, and point D is taken on the lower support arm 122. The coordinate values ​​of points C and D are calculated, such as... Figure 5 , Figure 7 As shown, it includes:

[0052] S211: Take the endpoint of the upper support arm 121 as point C, and the endpoint of the lower support arm 122 as point D;

[0053] For ease of calculation, we take the endpoint of the upper arm 121 as point C, since the length of the upper arm 121 is known. Similarly, we take the endpoint of the lower arm 122 as point D.

[0054] S212: Calculate the angle φ2 between the upper support arm 121 and the Z-axis and the angle φ1 between the lower support arm 122 and the Z-axis;

[0055] S213: Calculate the coordinates of point C (S3, h2sinφ2, h2cosφ2) based on the included angle φ2, and calculate the coordinates of point D (S3, h2sinφ1, h2cosφ1) based on the included angle φ1. Where H2 is the length of the lower support arm 122 and the upper support arm 121, and S3 is the offset of the endpoints of the upper support arm 121 and the lower support arm 122 relative to the X-axis.

[0056] Where S3 is the offset of the upper support arm 121 and the lower support arm 122 relative to the X-axis, which is set according to the specific project. h2 is the length of the upper support arm 121 and the lower support arm 122. Since the length of the upper support arm 121 and the lower support arm 122 is constant, the coordinates of points C and D can be obtained by projecting the upper support arm 121 and the lower support arm 122 onto the OXY plane and the OXZ plane.

[0057] In one possible implementation of the embodiments of this application, such as Figure 5 As shown, calculating the angle φ2 between the upper support arm 121 and the Z-axis and the angle φ1 between the lower support arm 122 and the Z-axis includes:

[0058] Based on the formula: φ1=arcsin(R / L)+(S1×360) / 2πR

[0059] φ2=arcsin(R / L)+[(S1+S2)×360] / 2πR

[0060] Obtain the angle φ2 between the upper support arm 121 and the Z-axis and the angle φ1 between the lower support arm 122 and the Z-axis, where S1 is the arc length along the cylindrical surface from the point of the lower support arm 122 corresponding to the door leaf 11 to the end of the door leaf 11, S2 is the arc length along the cylindrical surface from the point of the lower support arm 122 and the point of the upper support arm 121 corresponding to the door leaf 11; L is the distance between the end of the door leaf 11 and the Z-axis.

[0061] Since the Z-axis is vertical, the horizontal distance between the end of the gate leaf 11 and the center of rotation of the arc-shaped gate 10 can be determined based on the application scenario of the arc-shaped gate 10. Figure 5 As shown in the diagram, L represents angle A1 plus angle A2. A1 can be obtained using the arccosine arcsin(R / L), and A2 can be obtained by the ratio of arc length to circumference, which is the ratio of A2 to 360. Therefore, φ1 = arcsin(R / L) + (S1 × 360) / 2πr. Similarly, φ2 = arcsin(R / L) + [(S1 + S2) × 360] / 2πr.

[0062] Optionally, take point A on the Y-axis and point B on the Z-axis. Calculate the normal vector of the OYZ plane based on the coordinates of point A, the coordinates of point B, and the origin of the Cartesian coordinate system. The OYZ plane is a plane perpendicular to the axes, including:

[0063] S121: Take the coordinates of point A on the Y-axis as (0, 1, 0) and the coordinates of point B on the Z-axis as (0, 0, 1).

[0064] To facilitate calculation, when taking the coordinates of point A on the Y-axis, we choose 1, which is the most favorable value for calculation, so that the coordinates of point A are (0, 1, 0). Similarly, the coordinates of point B on the Z-axis are (0, 0, 1).

[0065] S122: Convert line segment OA into a vector Convert line segment OB into a vector ;

[0066] S123: For vectors sum vector Perform a vector product operation to obtain the normal vector of the OYZ plane. .

[0067] Those skilled in the art should know that the normal vector of a plane can be obtained by multiplying two vectors that lie on the same plane. Based on the above theory, the normal vector of the OYZ plane can be calculated. .

[0068] In one possible implementation of this application embodiment, the second normal vector of the OCD plane is calculated based on points C, D, and the origin of the Cartesian coordinate system, wherein the OCD plane is the plane containing the inclined support arm 12, including:

[0069] S221: Convert line segment OC into a vector (S3, h2sinφ2, h2cosφ2), transform the line segment OD into a vector. (S3, h2sinφ1, h2cosφ1);

[0070] S222: For vectors Perform a vector product operation to calculate the normal vector of the OCD plane. =( ).

[0071] Similar to obtaining the normal vector of the OYZ plane, this is based on two vectors located on the OCD plane. and The vector product is used to calculate the normal vector of the OCD plane.

[0072] Optionally, calculating the deflection angle of hinge 13 based on the first normal vector and the second normal vector includes:

[0073] ,in, That is, the angle between the OCD plane and the OYZ plane.

[0074] Calculate the angle between the first and second normal vectors using the formula for calculating the angle between normal vectors. That is, the angle between the OCD plane and the OYZ plane, which is also the angle between the inclined arm 12 and the cylindrical cross-section of the hinge 13, is the deflection angle of the hinge 13.

[0075] Additionally, it should be noted that in practical applications, the deflection angle of hinge 13 only exists in one case: an acute angle. This is calculated first. And then according to get When calculating the value, only the acute angle needs to be taken.

[0076] This application also provides an electronic device, which may include a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the above-described hinge deflection angle calculation method. The specific implementation and technical effects are similar to the hinge 13 deflection angle calculation method, and will not be repeated here.

[0077] This application also provides a storage medium storing a computer program. When the computer program is run by a processor, it executes the steps of the above-described hinge deflection angle calculation method. The specific implementation and technical effects are similar to those of the hinge deflection angle calculation method, and will not be repeated here.

[0078] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for calculating the hinge deflection angle, characterized in that, include: Based on the data of the arc-shaped gate, a Cartesian coordinate system is established with the line connecting the rotation centers of the two inclined arms of the arc-shaped gate as the axis, and the first normal vector of the plane perpendicular to the axis is calculated. The arc-shaped gate includes a gate leaf and two inclined arms disposed on the inner side of the gate leaf. The inclined arms extend away from the gate leaf, and the end of the inclined arm away from the gate leaf is connected to the hinge shaft through a hinge to realize the rotation of the arc-shaped gate. The side of the hinge has a deflection angle relative to the rotation plane of the hinge. Calculate the second normal vector of the plane containing one of the inclined arms; Calculate the hinge deflection angle based on the first and second normal vectors; The inclined support arm includes an upper support arm and a lower support arm with an included angle. The calculation of the second normal vector of the plane where one of the inclined support arms is located includes: taking point C on the upper support arm and point D on the lower support arm, and calculating the coordinate values ​​of point C and point D; calculating the second normal vector of the OCD plane based on point C, point D and the origin of the Cartesian coordinate system, wherein the OCD plane is the plane where the inclined support arm is located. The step of establishing a Cartesian coordinate system based on the arc-shaped gate data, with the line connecting the rotation centers of the two inclined arms of the arc-shaped gate as the axis, and calculating the first normal vector of the plane perpendicular to the axis, includes: A Cartesian coordinate system is established with the line connecting the rotation centers of the two inclined arms as the X-axis, the direction perpendicular to the X-axis in the horizontal direction as the Y-axis, and the vertical direction as the Z-axis. Take point A on the Y-axis and point B on the Z-axis. Calculate the normal vector of the OYZ plane based on the coordinates of point A, the coordinates of point B, and the origin of the Cartesian coordinate system. The OYZ plane is a plane perpendicular to the X-axis. The upper support arm and the lower support arm are fixed by the door leaf. Point C is taken on the upper support arm, and point D is taken on the lower support arm. The coordinate values ​​of points C and D are calculated, including: Let point C be the endpoint of the upper support arm and point D be the endpoint of the lower support arm; Calculate the angle φ2 between the upper support arm and the Z-axis and the angle φ1 between the lower support arm and the Z-axis; The coordinates of point C (S3, h2sinφ2, h2cosφ2) are calculated based on the included angle φ2, and the coordinates of point D (S3, h2sinφ1, h2cosφ1) are calculated based on the included angle φ1, where h2 is the length of the lower support arm and the upper support arm, and S3 is the offset of the endpoints of the upper support arm and the lower support arm relative to the X-axis. Calculating the angle φ2 between the upper support arm and the Z-axis and the angle φ1 between the lower support arm and the Z-axis includes: Based on the formula: φ1=arcsin(R / L)+(S1×360) / 2πR φ2 = arcsin(R / L) + [(S1 + S2) × 360] / 2πR is used to calculate the angle φ2 between the upper support arm and the Z-axis and the angle φ1 between the lower support arm and the Z-axis, where S1 is the arc length from the point of the lower support arm corresponding to the door leaf to the lower end of the door leaf, S2 is the arc length of the lower support arm and the upper support arm corresponding to the door leaf; L is the distance between the lower end of the door leaf and the Z-axis.

2. The method of calculating the hinge deflection angle according to claim 1, wherein The step involves taking point A on the Y-axis and point B on the Z-axis, and calculating the first normal vector of the OYZ plane based on the coordinates of point A, the coordinates of point B, and the origin of the Cartesian coordinate system. The OYZ plane, which is the plane perpendicular to the X-axis, includes: Take point A on the Y-axis with coordinates (0, 1, 0) and point B on the Z-axis with coordinates (0, 0, 1). Converting the line segment OA into a vector Converting the line segment OB into a vector ; On the vector And the vector Vector product operation is carried out to obtain the normal vector of the OYZ plane .

3. The method of claim 1, wherein, The second normal vector of the OCD plane is calculated based on points C, D, and the origin of the Cartesian coordinate system. The OCD plane, i.e., the plane containing the inclined support arm, includes: Convert line segment OC into a vector (S3, h2sinφ2, h2cosφ2), transform the line segment OD into a vector. (S3, h2sinφ1, h2cosφ1); For vectors and Perform vector product operation to calculate the normal vector of the OCD plane. .

4. The method of calculating the hinge deflection angle according to claim 3, wherein The calculation of the hinge deflection angle based on the first normal vector and the second normal vector includes: wherein, i.e. the angle between the OCD plane and the OYZ plane.

5. An electronic device, comprising: include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method for calculating the hinge deflection angle as described in any one of claims 1-4.

6. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, performs the steps of the hinge deflection angle calculation method as described in any one of claims 1-4.