Gravity dam displacement prediction method and device and computer readable storage medium
The gravity dam cross-section model is constructed through the physical information neural network, and combined with the constitutive and equilibrium equations, it solves the problem of low efficiency of the finite element method and achieves fast and accurate gravity dam displacement prediction.
Patent Information
- Application Number
- CN202410653776.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-10-11
AI Technical Summary
The gravity dam displacement prediction method in the existing technology relies on finite element numerical simulation, resulting in low solution efficiency. It is highly dependent on the theoretical basis and engineering experience of the gravity dam model, and the discretization of the model space results in low calculation efficiency.
Using physical information neural network, by constructing a gravity dam cross-section model, based on constitutive equations, equilibrium equations and geometric equations, combined with stress boundary conditions, a loss function is constructed and parameters are iteratively updated to obtain a fast and accurate displacement prediction model.
It improves the calculation efficiency of gravity dam displacement prediction, solves the problem that the finite element method relies on theoretical foundation and engineering experience, and achieves fast and accurate displacement solution.
Smart Images

Figure CN118761308A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of water conservancy, and in particular to a method, device, system, computer equipment and computer-readable storage medium for predicting displacement of a gravity dam. Background Art
[0002] In the field of water conservancy, gravity dams are a common water conservancy engineering structure. Gravity dams rely on the friction between the dam's own weight and the foundation to withstand the thrust of water and maintain stability, thereby achieving the effect of water discharge. During the use of gravity dams, under the influence of factors such as water pressure and temperature load, gravity dams will produce deformation displacement. If the deformation displacement exceeds the safety threshold range, it will cause harm. Therefore, predicting the deformation displacement of gravity dams will effectively conduct safety assessments and prevent disasters.
[0003] At present, the technology for predicting the deformation and displacement of gravity dams generally adopts the finite element numerical simulation method to solve the partial differential equations of the gravity dam model. However, the solution of this technology is highly dependent on the theoretical basis of the gravity dam model, engineering experience and the discretization of the model space, so there is a problem of low solution efficiency. Summary of the invention
[0004] The embodiments of the present application provide a method, device and computer-readable storage medium for predicting the displacement of a gravity dam, so as to at least solve the problem of low efficiency in solving the displacement of a gravity dam using a numerical simulation method of finite element in the related art.
[0005] In a first aspect, an embodiment of the present application provides a method for predicting displacement of a gravity dam, comprising:
[0006] A cross-section model is constructed according to the structural data of the gravity dam, and sampling is performed based on the cross-section model to obtain sample coordinate data. The cross-section model includes an inclined boundary, a straight boundary, and a vertical boundary;
[0007] The constitutive equation, equilibrium equation, geometric equation and stress boundary conditions of the gravity dam are constructed according to the cross-section model. The stress boundary conditions include the first stress conditions for the straight boundary and the vertical boundary, and the second stress conditions for the inclined boundary;
[0008] Using the sample coordinate data as input data, obtaining a displacement prediction result according to the neural network part of the physical information neural network, and determining a displacement partial derivative according to the derivation part of the physical neural network based on the displacement prediction result;
[0009] A first loss function is constructed according to the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivative; a second loss function is constructed according to the first stress boundary condition and the displacement partial derivative; a third loss function is constructed according to the second stress boundary condition and the displacement partial derivative; and a model loss function of a physical information neural network is constructed according to the first loss function, the second loss function, and the third loss function;
[0010] The parameters of the physical information neural network are iteratively updated until the model loss function is less than or equal to a preset threshold, thereby obtaining a gravity dam displacement prediction model.
[0011] In one embodiment, the displacement prediction result includes a displacement prediction result along the x-axis direction and a displacement prediction result along the y-axis direction, and the displacement prediction result and the displacement boundary condition of the gravity dam position satisfy the following relationship:
[0012] u(x,y)=preu(x,y)*y
[0013] v(x,y)=prev(x,y)*y
[0014] Wherein, preu(x, y) is the displacement prediction result along the x-axis direction,
[0015] prev(x, y) is the displacement prediction result along the y-axis direction,
[0016] y is the coordinate of the y-axis of the gravity dam section model, u(x, y) is the displacement value along the x-axis, and v(x, y) is the displacement value along the y-axis.
[0017] In one embodiment, the displacement partial derivatives include first-order partial derivatives and second-order partial derivatives of the displacement boundary conditions with respect to x and y, and a first loss function is constructed according to the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivatives, including:
[0018] The control equation of the gravity dam is constructed based on the constitutive equation, equilibrium equation, geometric equation, and displacement partial derivative. The control equation is as follows:
[0019]
[0020]
[0021] Among them, Ge x is the governing equation along the x-axis, Ge y is the governing equation along the y-axis,
[0022] λ and G are Lamé constants, and
[0023] E is the elastic modulus, v is Poisson’s ratio, ρ is the density of concrete, and g is the acceleration due to gravity;
[0024] According to Ge x and Ge y The first loss function is constructed by taking the mean square error of the sum.
[0025] In one embodiment, the displacement partial derivatives include first-order partial derivatives of the displacement boundary conditions with respect to x and y, the flat boundary includes the bottom line and the top line, and the vertical boundary includes the upstream line and the downstream line; the second loss function is as follows:
[0026] Loss2=MSE(σ ux +σ uy )+MSE(σ bx +σ by )+MSE(σ lx -f l +σ ly )+MSE(σ rx +σ ry )
[0027] Among them, σ ux is the normal stress of the top line along the x-axis, σ uy is the normal stress of the top line along the y-axis,
[0028] σ bx is the normal stress of the bottom line along the x-axis, σ by is the normal stress of the bottom line along the y-axis,
[0029] σ lx is the normal stress of the upstream line along the x-axis, σ ly is the normal stress of the upstream line along the y-axis,
[0030] f l is the surface water pressure upstream of the gravity dam, σ rx is the normal stress of the downstream line along the x-axis, σ ry is the normal stress of the upstream line along the y-axis.
[0031] In one embodiment, the displacement partial derivative includes a first-order partial derivative of the displacement boundary condition with respect to x and y, and the inclined boundary includes an inclined line; and the third loss function is as follows:
[0032] Loss3=MSE(p x +p y )
[0033] Among them, p x is the projection of the stress on the inclined line on the x-axis, p y is the projection of the stress on the inclined line on the y-axis.
[0034] In one embodiment, coordinate sampling is performed in the cross-sectional model according to a preset interval using an equal-value sampling method to obtain sample coordinate data.
[0035] In a second aspect, an embodiment of the present application provides a gravity dam displacement prediction device, comprising:
[0036] A sampling module is used to construct a cross-section model according to the gravity dam structure data, and to obtain sample coordinate data by sampling based on the cross-section model. The cross-section model includes an inclined boundary, a straight boundary, and a vertical boundary.
[0037] A construction module, used to construct the constitutive equation, equilibrium equation, geometric equation and stress boundary conditions of the gravity dam according to the cross-section model, wherein the stress boundary conditions include the first stress conditions for the straight boundary and the vertical boundary, and the second stress conditions for the inclined boundary;
[0038] A determination module, configured to use the sample coordinate data as input data, obtain a displacement prediction result according to a neural network part of a physical information neural network, and determine a displacement partial derivative according to a derivation part of a physical neural network based on the displacement prediction result;
[0039] Constructing a loss function module, for constructing a first loss function according to a constitutive equation, an equilibrium equation, a geometric equation, and a displacement partial derivative, constructing a second loss function according to a first stress boundary condition and a displacement partial derivative, constructing a third loss function according to a second stress boundary condition and a displacement partial derivative, and constructing a model loss function of a physical information neural network according to the first loss function, the second loss function, and the third loss function;
[0040] The acquisition module is used to iteratively update the parameters of the physical information neural network until the model loss function is less than or equal to a preset threshold, thereby obtaining a gravity dam displacement prediction model.
[0041] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the gravity dam displacement prediction method as described in the first aspect above is implemented.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the gravity dam displacement prediction method as described in the first aspect above.
[0043] A gravity dam displacement prediction method provided in an embodiment of the present application has at least the following technical effects.
[0044] By constructing a gravity dam cross-section model and adding the gravity dam's constitutive equation, internal force balance equation, geometric equation and stress boundary conditions as physical constraints to the loss function, a gravity dam displacement prediction model based on a physical neural network is obtained. By training the physical neural network to minimize the loss function, the gravity dam displacement prediction model can quickly and accurately solve the displacement of the gravity dam model, solving the problem that the numerical method of finite element displacement is highly dependent on the theoretical basis of the gravity dam model, engineering experience and discretization of the model space, resulting in low efficiency in solving the displacement of the gravity dam model, thereby improving the efficiency of solving the displacement of the gravity dam model.
[0045] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0047] Figure 1 is a flow chart of a method for predicting displacement of a gravity dam according to an exemplary embodiment;
[0048] Figure 2 is a schematic diagram of a cross-sectional model according to an exemplary embodiment;
[0049] Figure 3A is a cloud diagram of calculating the displacement of a gravity dam using a finite element method according to an exemplary embodiment;
[0050] Figure 3B is a cloud diagram of gravity dam displacement calculated according to a gravity dam displacement prediction method shown in an exemplary embodiment;
[0051] Figure 4 is a block diagram of a gravity dam displacement prediction device according to an exemplary embodiment;
[0052] Figure 5 is a block diagram of an electronic device according to an exemplary embodiment.
[0053] In the above drawings, the meanings of the reference numerals are as follows:
[0054] 100, top line; 200, downstream line; 300, downstream diagonal line; 400, bottom line; 500, upstream line. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0056] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0057] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0058] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0059] In a first aspect, an embodiment of the present application provides a method for predicting displacement of a gravity dam. Figure 1 is a flow chart of a method for predicting displacement of a gravity dam according to an exemplary embodiment. Figure 1 As shown in Figure 2, the gravity dam displacement prediction method includes:
[0060] Step S101: construct a cross-section model according to the gravity dam structure data, and perform sampling based on the cross-section model to obtain sample coordinate data. The cross-section model includes an inclined boundary, a straight boundary, and a vertical boundary.
[0061] The gravity dam structural data includes but is not limited to the geometric information of the gravity dam. The cross-sectional model constructed in step S101 represents the structural features of the cross section of the gravity dam along the vertical direction. Figure 2 is a schematic diagram of a cross-sectional model according to an exemplary embodiment. Figure 2 As shown, the cross-section model is a two-dimensional model including an x-axis and a y-axis, wherein the x-axis is the horizontal direction and the y-axis is the vertical direction. The boundaries of the cross-section model include: a top line 100, a downstream line 200, a downstream oblique line 300, a bottom line 400, and an upstream line 500. The inclined boundary includes the downstream oblique line 300, the straight boundary includes the top line 100 and the bottom line 400, and the vertical boundary includes the downstream line 200 and the upstream line 500.
[0062] In step S101, the cross-section model is sampled to obtain the nodes of the cross-section model. The sampling distance of the nodes can be set according to the specific application scenario. Optionally, according to the preset spacing, an equal sampling method is used to perform coordinate sampling in the cross-section model to obtain sample coordinate data. For example, when the preset spacing is set to 1m, combined with the cross-section model, there are 2433 nodes in total. Based on the 2433 nodes, the coordinates of all nodes of the cross-section model are sampled using the equal sampling method to obtain 2433 node coordinates.
[0063] Step S102: constructing the constitutive equation, equilibrium equation, geometric equation and stress boundary conditions of the gravity dam according to the cross-section model. The stress boundary conditions include first stress conditions for straight boundaries and vertical boundaries, and second stress conditions for inclined boundaries.
[0064] Specifically, the equations and stress boundary conditions in step S102 are constructed by performing elastic mechanical analysis on the gravity dam according to the cross-section model.
[0065] The constitutive equation characterizes the relationship between stress and strain of the gravity dam, including:
[0066] σ i,j =λ(ε xx +ε yy )+2Gε i,j ,
[0067] Among them, σ i,j is the stress tensor, ε i,j is the strain tensor,
[0068] λ and G are Lamé constants, E is the elastic modulus and ν is the Poisson's ratio.
[0069] The equilibrium equation characterizes the relationship between the stress tensor of the gravity dam and the external force, including:
[0070]
[0071]
[0072] Among them, σ x is the normal stress in the x-axis direction of the cross-section model,
[0073] σ y is the normal stress of the cross-section model along the y-axis direction,
[0074] τ xy is the shear stress of the cross-section model,
[0075] f x is the body force of the cross-section model along the x-axis,
[0076] fy is the body force of the cross-section model along the y-axis.
[0077] The geometric equations characterize the relationship between the strain and displacement of the gravity dam, including:
[0078]
[0079]
[0080]
[0081] Among them, u(x, y) is the displacement prediction expression of the cross-section model in the x-axis direction,
[0082] v(x, y) is the displacement prediction expression of the cross-section model in the y-axis direction.
[0083] ε xx is the normal strain of the cross-section model along the x-axis,
[0084] ε yy is the normal strain of the cross-section model along the y-axis,
[0085] γ xy is the shear strain of the cross-section model.
[0086] In step S102, the stress boundary condition represents that the stress components of each point on the gravity dam boundary should satisfy the equilibrium equation, that is, each point on the gravity dam boundary is in equilibrium. The stress boundary condition includes the first stress condition for the straight boundary and the vertical boundary. Figure 2 As shown, the straight boundary includes the bottom line 400 and the top line 100, and the vertical boundary includes the upstream line 500 and the downstream line 200, then the first stress condition includes:
[0087] The stress along the x-axis and the stress along the y-axis at the bottom line 400 are given by the following formula:
[0088]
[0089]
[0090] Among them, stress includes normal stress and shear stress, σ bx is the normal stress along the x-axis at the bottom line 400, σ by is the normal stress along the y-axis at the bottom line 400,
[0091] u bx (x, y) is the displacement along the x-axis on the bottom line 400, v bx (x, y) is the displacement along the y-axis on the bottom line 400, and λ and G are Lame constants.
[0092] The stress of the top line 100 along the x-axis and the stress along the y-axis, the stress formula is as follows:
[0093]
[0094]
[0095] Among them, stress includes normal stress and shear stress, σ ux is the normal stress along the x-axis at the top line 100, σ uy is the normal stress along the y-axis direction of the top line 100,
[0096] u ux (x, y) is the displacement of the top line 100 along the x-axis direction, v ux (x, y) is the displacement along the y-axis on the top line 100, and λ and G are Lame constants.
[0097] The stress of the upstream line 500 along the x-axis and the stress along the y-axis, the stress formula is as follows:
[0098]
[0099]
[0100] Among them, stress includes normal stress and shear stress, σ lx is the normal stress of the upstream line 500 along the x-axis, σ ly is the normal stress of the upstream line 500 along the y-axis direction,
[0101] u lx (x, y) is the displacement of the upstream line 500 along the x-axis direction, v ls (x, y) is the displacement of the upstream line 500 along the y-axis direction, and λ and G are Lame constants.
[0102] The stress of the downstream line 200 along the x-axis and the stress along the y-axis, the stress formula is as follows:
[0103]
[0104]
[0105] Among them, stress includes normal stress and shear stress, σ rx is the normal stress of the downstream line 200 along the x-axis, σ ry is the normal stress of the downstream line 200 along the y-axis direction,
[0106] u rx (x, y) is the displacement of the downstream line 200 along the x-axis direction, v rx (x, y) is the displacement of the downstream line 200 along the y-axis direction,
[0107] λ and G are Lamé constants.
[0108] The second stress condition of the inclined boundary includes the stress of the downstream inclined line 300, and the second stress condition includes:
[0109] The stress of the downstream inclined line 300 along the x-axis direction and the stress along the y-axis direction, the stress formula is as follows:
[0110]
[0111]
[0112]
[0113] p x = lσ sx +mσ sxy
[0114] p y = lσ sxy +mσ sy
[0115] Among them, stress includes normal stress and shear stress, p x is the stress projection on the downstream inclined line 300 along the x-axis direction, p y is the projection of the stress on the downstream inclined line 300 along the y-axis direction,
[0116] l is the direction cosine between the downstream inclined line 300 and the x-axis, m is the direction cosine between the downstream inclined line 300 and the y-axis,
[0117] σ sx is the normal stress of the unit cell of the downstream inclined line 300 along the x-axis direction, σ sy is the normal stress of the unit cell of the downstream inclined line 300 along the y-axis direction, wherein the downstream inclined line includes the unit cell.
[0118] σ sxy is the shear stress of the downstream inclined line 300 along the y-axis direction or along the x-axis direction,
[0119] u s (x, y) is the displacement along the x-axis on the downstream inclined line 300, v s (x, y) is the displacement along the y-axis on the downstream inclined line 300, and λ and G are Lame constants.
[0120] Based on the equilibrium equation, constitutive equation, geometric equation and stress boundary conditions, the physical constraints of the gravity dam cross-section model are obtained, and these physical constraints are used to construct the model loss function of the physical information neural network. In this way, the model loss function satisfies the physical constraints of the gravity dam cross-section model. The specific implementation method will be described in detail below.
[0121] Step S103: using the sample coordinate data as input data, obtaining a displacement prediction result according to the neural network part of the physical information neural network, and determining a displacement partial derivative according to the derivation part of the physical neural network based on the displacement prediction result.
[0122] Optionally, two neural networks with two layers and 20 neurons in each layer are created to predict and output the displacements of the gravity dam cross-section model in the x-axis direction and the y-axis direction.
[0123] Optionally, the x-coordinate and y-coordinate of the node obtained by sampling are used as inputs of the physical information neural network. Optionally, based on the x-coordinate and y-coordinate of the input node, multiple groups of displacement prediction results can be obtained through the physical information neural network.
[0124] The displacement boundary conditions for gravity dams include:
[0125] u(x,y)=preu(x,y)*y
[0126] v(x,y)=prev(x,y)*y
[0127] Among them, preu(x, y) is the displacement value along the x-axis direction predicted by the neural network part of the physical information neural network,
[0128] prev(x, y) is the displacement value along the y-axis predicted by the neural network part of the physical information neural network.
[0129] y is the coordinate of the y-axis of the gravity dam section model, u(x, y) is the displacement value of the bottom line 400 along the x-axis, and v(x, y) is the displacement value of the bottom line 400 along the y-axis.
[0130] preu(x, y) and prev(x, y) include the configuration parameters of the neural network, specifically the weight w and bias b.
[0131] Based on the displacement boundary conditions of the gravity dam, the displacement results predicted by the neural network part are associated with the displacement boundary conditions, so that the physical neural information neural network naturally satisfies the displacement boundary conditions of the gravity dam, and the displacement boundary conditions of the gravity dam are no longer used as part of the subsequent construction of the loss function, so that the physical information neural network no longer constructs the loss function of the displacement boundary conditions during each training process, thereby improving the efficiency of the physical information neural network in solving the displacement of the gravity dam.
[0132] The displacement prediction results output by the neural network part are related to the configuration parameters of the neural network part. Through the above displacement boundary conditions, the displacement of the gravity dam section model is associated with the configuration parameters.
[0133] Furthermore, the displacement partial derivatives include the first-order partial derivatives and second-order partial derivatives with respect to x and y. The partial derivative expressions with respect to x and y are as follows:
[0134] The first-order partial derivatives about x include:
[0135] The first-order partial derivatives about y include:
[0136] The second-order partial derivatives about x include:
[0137] The second-order partial derivatives of y include:
[0138] The second-order partial derivatives with respect to x and y include:
[0139] Since the displacement results predicted by the neural network are associated with the configuration parameters, the partial derivatives are related to the configuration parameters of the neural network in the subsequent partial derivative calculation process of the displacement prediction expression. Therefore, the loss function constructed based on the partial derivative is related to the configuration parameters, and the configuration parameters are updated in the iterative process using the automatic differentiation principle or the back propagation algorithm in the physical information neural network.
[0140] According to the displacement prediction results of the neural network part and the displacement boundary conditions of the gravity dam, the displacement prediction expression u(x, y) along the x-axis and the displacement prediction expression v(x, y) along the y-axis of the overall model are obtained. Then, in the derivation part of the physical information neural network, the partial derivatives of the displacement prediction expression with respect to x and y are obtained to obtain the partial derivatives of the displacement along the x-axis and along the y-axis to satisfy the equilibrium equations, constitutive equations, geometric equations and stress boundary conditions in the above-mentioned gravity dam section model. On the one hand, the physical information neural network is adapted to the gravity dam section model, and on the other hand, the model loss function satisfies the physical constraints of the gravity dam section model. The specific implementation method will be elaborated in detail below.
[0141] Step S104, construct a first loss function according to the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivative, construct a second loss function according to the first stress boundary condition and the displacement partial derivative, construct a third loss function according to the second stress boundary condition and the displacement partial derivative, and construct a model loss function of the physical information neural network according to the first loss function, the second loss function, and the third loss function.
[0142] In step S104, a first loss function is constructed, which specifically includes:
[0143] Step S1041: construct the gravity dam control equation according to the constitutive equation, equilibrium equation, geometric equation, and displacement partial derivative. The control equation is as follows:
[0144]
[0145]
[0146] Among them, Ge x is the governing equation along the x-axis, Ge y is the governing equation along the y-axis,
[0147] λ and G are Lamé constants, and
[0148] E is the elastic modulus, v is Poisson's ratio, ρ is the density of concrete, and g is the acceleration due to gravity.
[0149] The control equation of the gravity dam is constructed according to the constitutive equation, equilibrium equation, geometric equation and partial derivative of displacement. The specific steps are as follows: Substitute the obtained displacement prediction expression into the geometric equation to obtain the strain of the cross-section model; Substitute the obtained strain into the constitutive equation to obtain the stress of the cross-section model; Substitute the obtained stress into the equilibrium equation, and the control equation can be obtained through deduction.
[0150] Step S1042: According to Ge x and Ge y The first loss function is constructed by taking the mean square error of the sum.
[0151] Loss1=MSE(Ge x +Ge y )
[0152] Among them, the first loss function is the loss function of the control equation.
[0153] The displacement partial derivatives include the first-order partial derivatives of the displacement boundary conditions with respect to x and y, the straight boundary includes the bottom line 400 and the top line 10 (0, vertical edge), and the boundary includes the upstream line 500 and the downstream line 200; the second loss function is as follows:
[0154] Loss2=MSE(σ ux +σ uy )+MSE(σ bx +σ by )+MSE(σ lx -f l +σ ly )+MSE(σ rx +σry )
[0155] Among them, the second loss function is the loss function of the first stress boundary condition,
[0156] σ ux is the normal stress along the x-axis at the top line 100, σ by is the normal stress along the y-axis direction of the top line 100,
[0157] σ bx is the normal stress along the x-axis at the bottom line 400, σ by is the normal stress along the y-axis at the bottom line 400,
[0158] σ lx is the normal stress of the upstream line 500 along the x-axis, σ ly is the normal stress of the upstream line 500 along the y-axis direction,
[0159] f l is the surface water pressure upstream of the gravity dam, σ rx is the normal stress of the downstream line 200 along the x-axis, σ ry is the normal stress of the downstream line 200 along the y-axis direction.
[0160] The displacement partial derivatives include the first-order partial derivatives of the displacement boundary conditions with respect to x and y, and the inclined boundary includes the downstream inclined line 300; the third loss function is as follows:
[0161] Loss3=MSE(p x +p y )
[0162] Among them, the third loss function is the loss function of the second stress boundary condition,
[0163] p x is the projection of the stress on the downstream inclined line 300 along the x-axis direction, p y is the projection of the stress on the downstream inclined line 300 along the y-axis direction.
[0164] The model loss function of the physical information neural network is constructed according to the first loss function, the second loss function and the third loss function. The model loss function is as follows:
[0165] Loss = MSE (Loss1 + Loss2 + Loss3) Displacement boundary conditions, control equations, and stress boundary conditions are the physical constraints for physical information neural networks to solve the displacement of gravity dams. Before constructing the model loss function of the physical information neural network, the displacement boundary conditions have been met when constructing the gravity dam cross-section model, so that the model loss function of the physical information neural network only includes the control equations and stress boundary conditions of the gravity dam. When calculating the loss value of the loss function, it is only necessary to meet the physical constraints of the control equations and stress boundaries of the gravity dam, without adding the displacement boundary conditions to the loss function, thereby improving the efficiency of solving the displacement of the gravity dam.
[0166] Step S105, iteratively update the parameters of the physical information neural network until the model loss function is less than or equal to a preset threshold, thereby obtaining a gravity dam displacement prediction model.
[0167] Calculate the loss value of the loss function and compare the loss value with the preset threshold. If the loss value is greater than the preset threshold, apply the automatic differentiation principle or back propagation algorithm to iteratively update the parameters of the neural network, update the weights w and bias b of the neural network part of the physical information neural network, and re-predict the displacement value; if the loss value is less than or equal to the preset threshold, output the displacement value to obtain the gravity dam displacement prediction model.
[0168] Optionally, an optimization algorithm is selected to solve the loss value of the loss function, wherein the optimization algorithm includes but is not limited to the l_bfgs_b optimization algorithm and the adam algorithm.
[0169] In summary, the physical information neural network satisfies the displacement boundary conditions in the process of adapting the cross-sectional model of the gravity dam. Therefore, when constructing the loss function, it is only necessary to satisfy the control equations and stress boundary conditions of the gravity dam, thereby simplifying the training process of the physical information neural network for solving the displacement of the gravity dam and improving the efficiency of solving the displacement of the gravity dam.
[0170] Based on the above gravity dam displacement prediction method, the displacement of the gravity dam can be solved, and the finite element method is a traditional method for solving the displacement of the gravity dam. By comparing this method with the finite element method, the applicability of this method for solving the displacement of the gravity dam can be ensured. Table 1 is a list of displacement parameters for calculating the gravity dam model. Taking the parameters in Table 1 as an example, the displacement of the gravity dam is calculated by the finite element method and the gravity dam displacement prediction method respectively.
[0171] Table 1
[0172]
[0173]
[0174] Figure 3A This is the cloud diagram of gravity dam displacement calculated by finite element method. Figure 3B It is a cloud diagram of gravity dam displacement calculated by gravity dam displacement prediction method.
[0175] pass Figure 3A and Figure 3B By comparison, the maximum error between the displacement of the gravity dam calculated by the gravity dam displacement prediction method and the displacement of the gravity dam calculated by the finite element method is within 10%. It can be concluded that the displacement prediction method of the gravity dam can accurately calculate the displacement of the gravity dam.
[0176] In summary, the gravity dam displacement prediction method provided in the embodiment of the present application applies the theory of elastic mechanics to the physical information neural network to construct a gravity dam cross-section model, uses the equivalent sampling method to sample the node coordinates of the gravity dam cross-section model, and inputs the x and y coordinates of each node into the neural network part of the physical information neural network to obtain the predicted displacement value, and establishes a connection between the predicted displacement value and the displacement boundary condition of the gravity dam to obtain a displacement prediction expression, so that the physical information neural network naturally satisfies the displacement constraint condition. Based on the displacement prediction expression, the partial derivative of the displacement prediction expression with respect to x and y is obtained in the derivation part of the physical information neural network, so that the physical neural network is adapted to the gravity dam cross-section model, thereby reconstructing the loss function. The loss function includes the control equation and stress boundary conditions of the gravity dam. The loss value of the loss function is solved by the optimization algorithm and compared with the preset threshold. If the loss value is less than or equal to the preset threshold, the displacement value is output; if the loss value is greater than the preset threshold, the weights and biases in the physical information neural network are iteratively updated until the loss value is less than or equal to the preset threshold, thereby improving the efficiency of solving the gravity dam displacement and solving the problem that the finite element method for solving the gravity dam displacement is highly dependent on the theoretical basis of the gravity dam model, engineering experience and the discretization of the model space, resulting in low solution efficiency.
[0177] In a second aspect, an embodiment of the present application provides a gravity dam displacement prediction device. Figure 4 FIG. 1 is a block diagram of a gravity dam displacement prediction device according to an exemplary embodiment. Figure 4 As shown, the gravity dam displacement prediction device includes: a sampling module, a construction module, a determination module, a loss function construction module and an acquisition module.
[0178] Among them, the sampling module is used to construct a cross-section model according to the gravity dam structure data, and to obtain sample coordinate data by sampling based on the cross-section model. The cross-section model includes an inclined boundary, a straight boundary and a vertical boundary.
[0179] The construction module is used to construct the constitutive equation, equilibrium equation, geometric equation and stress boundary conditions of the gravity dam according to the cross-section model. The stress boundary conditions include the first stress conditions for the straight boundary and the vertical boundary, and the second stress conditions for the inclined boundary.
[0180] A determination module uses the sample coordinate data as input data, obtains a displacement prediction result according to the neural network part of the physical information neural network, and determines a displacement partial derivative according to the derivation part of the physical neural network based on the displacement prediction result.
[0181] A loss function module is constructed to construct a first loss function based on the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivative, to construct a second loss function based on the first stress boundary condition and the displacement partial derivative, to construct a third loss function based on the second stress boundary condition and the displacement partial derivative, and to construct a model loss function of the physical information neural network based on the first loss function, the second loss function, and the third loss function.
[0182] The acquisition module is used to iteratively update the parameters of the physical information neural network until the model loss function is less than or equal to a preset threshold, thereby obtaining a gravity dam displacement prediction model.
[0183] In summary, the gravity dam displacement prediction device provided by the present application obtains the node coordinates of the gravity dam cross-section model through the sampling module, and inputs the node coordinates into the determination module. In the determination module, the displacement prediction result is obtained and the displacement partial derivative is determined through the neural network part of the physical information neural network. The loss function of the model is constructed in the loss function module based on the displacement partial derivative, and finally the gravity dam prediction model is obtained in the acquisition module, thereby using the gravity dam prediction model based on the physical information neural network to solve the gravity dam displacement and improve the solution efficiency.
[0184] It should be noted that the gravity dam displacement prediction device provided in this embodiment is used to implement the above-mentioned implementation mode, and the descriptions that have been made will not be repeated. As used above, the terms "module", "unit", "subunit" and the like can implement a combination of software and / or hardware for a predetermined function. Although the device described in the above embodiment is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0185] In a third aspect, an embodiment of the present application provides an electronic device, Figure 5 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 5 As shown, the electronic device may include a processor 81 and a memory 82 storing computer program instructions.
[0186] Specifically, the processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0187] Among them, the memory 82 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 82 may be inside or outside the data processing device. In a specific embodiment, the memory 82 is a non-volatile memory. In a specific embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0188] The memory 82 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81 .
[0189] The processor 81 reads and executes computer program instructions stored in the memory 82 to implement any one of the gravity dam displacement prediction methods in the above embodiments.
[0190] In one embodiment, a gravity dam displacement prediction device may further include a communication interface 83 and a bus 80. Figure 5 As shown, the processor 81, the memory 82, and the communication interface 83 are connected via a bus 80 and communicate with each other.
[0191] The communication interface 83 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication port 83 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0192] The bus 80 includes hardware, software or both, and couples the components of the gravity dam displacement prediction device to each other. The bus 80 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0193] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, a gravity dam displacement prediction method provided in the first aspect is implemented.
[0194] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0195] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of a gravity dam displacement prediction method provided in the first aspect.
[0196] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0197] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0198] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for predicting displacement of a gravity dam, characterized in that: include: Constructing a cross-section model according to the gravity dam structure data, and sampling based on the cross-section model to obtain sample coordinate data, wherein the cross-section model includes an inclined boundary, a straight boundary, and a vertical boundary; Constructing the constitutive equation, equilibrium equation, geometric equation and stress boundary conditions of the gravity dam according to the cross-section model, wherein the stress boundary conditions include first stress conditions for the straight boundary and the vertical boundary, and second stress conditions for the inclined boundary; Using the sample coordinate data as input data, obtaining a displacement prediction result according to the neural network part of the physical information neural network, and determining a displacement partial derivative according to the derivation part of the physical neural network based on the displacement prediction result; Constructing a first loss function according to the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivative, constructing a second loss function according to the first stress boundary condition and the displacement partial derivative, constructing a third loss function according to the second stress boundary condition and the displacement partial derivative, and constructing a model loss function of the physical information neural network according to the first loss function, the second loss function, and the third loss function; The parameters of the physical information neural network are iteratively updated until the model loss function is less than or equal to a preset threshold, thereby obtaining a gravity dam displacement prediction model.
2. The method for predicting displacement of a gravity dam according to claim 1, characterized in that: The displacement prediction results include displacement prediction results along the x-axis direction and displacement prediction results along the y-axis direction. The displacement prediction results and the displacement boundary conditions of the gravity dam position satisfy the following relationship: u(x,y)=preu(x,y)*y v(x,y)=prey(x,y)*y Wherein, preu(x, y) is the displacement prediction result along the x-axis direction, prev(x, y) is the displacement prediction result along the y-axis direction, y is the y-axis coordinate of the gravity dam section model, u(x, y) is the displacement value along the x-axis direction, and v(x, y) is the displacement value along the y-axis direction.
3. The method for predicting displacement of a gravity dam according to claim 1, characterized in that: The displacement partial derivatives include first-order partial derivatives and second-order partial derivatives of the displacement boundary conditions with respect to x and y, and constructing a first loss function according to the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivatives includes: The control equation of the gravity dam is constructed according to the constitutive equation, equilibrium equation, geometric equation and displacement partial derivative. The control equation is as follows: Among them, Ge x is the governing equation along the x-axis, Ge y is the governing equation along the y-axis, λ and G are Lamé constants, and E is the elastic modulus, v is Poisson's ratio, ρ is the density of concrete, and g is the acceleration of gravity; according to Ge x and Ge y The first loss function is constructed by summing the mean square error.
4. The method for predicting displacement of a gravity dam according to claim 1, characterized in that: The displacement partial derivative includes the first-order partial derivative of the displacement boundary condition with respect to x and y, the flat boundary includes the bottom line and the top line, and the vertical boundary includes the upstream line and the downstream line; the second loss function is as follows: Loss2=MSE(σ ux +s uy )+MSE(σ bx +s by )+MSE(σ lx -f l +s ly )+MSE(σ rx +s ry ) Among them, σ ux is the normal stress of the top line along the x-axis, σ uy is the normal stress of the top line along the y-axis, σ bx is the normal stress of the bottom line along the x-axis, σ by is the normal stress of the bottom line along the y-axis, σ lx is the normal stress of the upstream line along the x-axis, σ ly is the normal stress of the upstream line along the y-axis direction, f l is the surface water pressure upstream of the gravity dam, σ rx is the normal stress of the downstream line along the x-axis, σ ry is the normal stress of the downstream line along the y-axis.
5. The method for predicting displacement of a gravity dam according to claim 1, characterized in that: The displacement partial derivative includes the first-order partial derivative of the displacement boundary condition with respect to x and y, and the inclined boundary includes an inclined line; the third loss function is as follows: Loss3=MSE(p x +p y ) Among them, p x is the projection of the stress on the inclined line on the x-axis, p y is the projection of the stress on the inclined line on the y-axis.
6. The method for predicting displacement of a gravity dam according to any one of claims 1 to 5, characterized in that: The step of sampling based on the cross-section model to obtain sample coordinate data includes: According to the preset interval, coordinate sampling is performed in the cross-section model using an equal-value sampling method to obtain the sample coordinate data.
7. A gravity dam displacement prediction device, characterized in that: include: A sampling module, used for constructing a cross-section model according to the gravity dam structure data, and performing sampling based on the cross-section model to obtain sample coordinate data, wherein the cross-section model includes an inclined boundary, a straight boundary and a vertical boundary; A construction module, for constructing a constitutive equation, an equilibrium equation, a geometric equation and a stress boundary condition of the gravity dam according to the cross-section model, wherein the stress boundary condition includes a first stress condition for the straight boundary and the vertical boundary, and a second stress condition for the inclined boundary; A determination module, configured to use the sample coordinate data as input data, obtain a displacement prediction result according to a neural network part of a physical information neural network, and determine a displacement partial derivative according to a derivation part of a physical neural network based on the displacement prediction result; Constructing a loss function module, used to construct a first loss function according to the constitutive equation, the equilibrium equation, the geometric equation, and the displacement partial derivative, construct a second loss function according to the first stress boundary condition and the displacement partial derivative, construct a third loss function according to the second stress boundary condition and the displacement partial derivative, and construct a model loss function of the physical information neural network according to the first loss function, the second loss function, and the third loss function; The acquisition module is used to iteratively update the parameters of the physical information neural network until the model loss function is less than or equal to a preset threshold, thereby obtaining a gravity dam displacement prediction model.
8. An electronic device, characterized in that: It comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for predicting displacement of a gravity dam as claimed in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a gravity dam displacement prediction method according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Intelligent diagnosis method and system for dam safety state cooperatively driven by mechanism data
CN119578908A
Intelligent diagnosis method and system for dam safety status driven by mechanism data collaboration
CN119578908B
