A numerical-analytical hybrid optimization transient response algorithm for segmented systems
Through the numerical-analytic hybrid optimization transient response algorithm, the complex problem of solving the transient response of linear and nonlinear hybrid systems in segmented systems is solved, and efficient and accurate calculation results are achieved, which are suitable for different states of complex segmented systems. and input.
Patent Information
- Application Number
- CN202010587348.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the existing technology deals with a segmented system composed of a mixture of linear systems and nonlinear systems, the analytical method is complex and the efficiency and accuracy of the numerical method are difficult to balance. Especially when solving the transient response of the segmented system, errors are prone to occur, resulting in Computational time and accuracy issues.
Using a numerical-analytic hybrid optimization transient response algorithm, by establishing a set of motion differential equations of the vibration system, the system state is judged and an appropriate numerical or analytical algorithm is selected for calculation. The search for state switching points and error point elimination are optimized to improve calculation efficiency and Accuracy.
This algorithm is not only suitable for linear segmented systems, but also for complex segmented systems containing linear and nonlinear components. Through detailed analysis of state switching and optimized switching point search, the calculation efficiency and accuracy are significantly improved, and it is suitable for different inputs. and system.
Smart Images

Figure CN111832128B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of mechanical vibration, and in particular relates to a numerical-analytical hybrid optimization transient response algorithm for a segmented system. Background Art
[0002] For linear vibration systems, their vibration responses can be represented by accurate analytical solutions. For nonlinear systems, analytical methods such as perturbation method, average method, asymptotic method, multi-scale method and harmonic balance method have been proposed. Similarly, numerical algorithms such as single-step method and multi-step method have also been proposed, such as Runge-Kutta algorithm. In particular, for segmented nonlinear systems, scholars have proposed methods such as joint method and average method to solve them. For example, the harmonic balance method is used to solve the analytical solution of nonlinear systems composed of linear systems.
[0003] However, for solving the actual segmented system composed of a mixture of linear and nonlinear systems, the analytical method is too complicated and inconvenient to solve the vibration response. The numerical method has the problem that efficiency and accuracy cannot be taken into account at the same time. For example, Runge-Kutta will inevitably produce error points when solving the segmented system, which greatly increases the calculation time while improving the accuracy.
[0004] The present invention combines vibration-related knowledge and computer technology, and discloses a numerical-analytical hybrid optimization transient response algorithm for segmented systems. This calculation method refers to the seam theory to respectively use numerical and analytical algorithms to calculate the systems in different states, and make reasonable connections. The algorithm of the present invention patent is not only applicable to segmented systems with linear components, but also to complex segmented systems with linear and nonlinear components, and has good applicability to different inputs and different systems. In particular, the algorithm of the present invention patent makes a detailed analysis of the switching between different states, identifies and selects corresponding methods for different states; optimizes the methods for finding and refining switching points; and eliminates the error points generated when the state switches, thereby improving the calculation efficiency and accuracy of the algorithm.
[0005] For convenience, this algorithm is abbreviated as AMS. Summary of the invention
[0006] The present invention provides a numerical-analytical hybrid optimization transient response algorithm for a segmented system to solve the problems in the prior art.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A numerical-analytical hybrid optimization transient response algorithm for a segmented system comprises the following steps:
[0009] Step 1, establish the vibration system motion differential equations:
[0010]
[0011] Formula (1) represents a generalized differential equation of motion. The form of the generalized differential equation of motion is determined by the vibration system. The generalized differential equation of motion is a single degree of freedom system, a multi-degree of freedom system (limited to decoupling of the linear part), a continuous system or a segmented system (segmented linear system, segmented linear-nonlinear system).
[0012] In formula (1), M is the generalized mass matrix; C is the generalized damping matrix; K is the generalized stiffness matrix; F is the generalized exciting force matrix; t represents the time constant; X is the solution of formula (1), which is the system displacement vector; represents the velocity vector, obtained by taking the derivative of X with respect to t; is the acceleration vector, given by Taking the derivative with respect to t, we get;
[0013] Step 2, determine the number of states contained in the system according to the generalized differential equations of motion, and judge whether the system is segmented and the linearity of each segment in the segmentation;
[0014] Step 3: Establish state corresponding conditions and state change conditions
[0015] According to step 2, the linear state and nonlinear state of the selected system are established along with the displacement vector X and the initial condition X0. The corresponding relationship between state change and displacement vector X and initial condition X0 is established. The corresponding relationship; at this time, formula (1) is rewritten in the segmented case as follows:
[0016]
[0017]
[0018] Where: M l C is the mass matrix of the equation in the linear state; l is the damping matrix in the linear state; K l is the stiffness matrix in the linear state; F l is the exciting force matrix in the linear state; M n C is the mass matrix of the equation under nonlinear state; n is the damping matrix under nonlinear state; K n is the stiffness matrix under nonlinear state; F n is the exciting force matrix under nonlinear state; O l is the displacement velocity set in the linear state; O n is the displacement velocity set under nonlinear state; X0 represent the initial displacement vector and initial velocity vector respectively;
[0019] Step 4: preset initial conditions; preset initial switching points; preset solution formulas;
[0020] Preset initial conditions, give X0 Assignment; time constant t=0; preset calculation time step de;
[0021] The initial switching point is preset as t_o; t_n; where t_o; t_n represent the time of the last state change and the time of the next state change in the current state, respectively, and the initial values are both 0;
[0022] For the determined linear state part, the displacement vector and velocity vector in formula (1) are expressed as:
[0023]
[0024]
[0025] Among them: U l (t), V l (t) represents the free vibration matrix of the system caused by the unit initial displacement of each degree of freedom and the free vibration matrix caused by the unit initial velocity of each degree of freedom; τ is the integral variable; h(t-τ) is the unit impulse response matrix of the system with t-τ as the variable; represents the derivative with respect to t.
[0026] For the nonlinear state determination part, the 4th order Runge-Kutta algorithm is selected:
[0027]
[0028] Where: R1, R2, R3, R4 are the first coefficient, second coefficient, third coefficient and fourth coefficient of Runge-Kutta algorithm respectively; t i is the i-th time of the Runge-Kutta algorithm; the f() function is the first-order differential equation system with reduced order of formula (3); X i t i The value vector composed of displacement and velocity of each degree of freedom at time; X i+1 t i+1 The value vector composed of displacement and velocity of each degree of freedom at time;
[0029] Step 5: Determine the current state
[0030] Determine the state of the system at time t according to the definition in step 3;
[0031] Step 6: Select the calculation method to calculate the relevant values corresponding to the current time
[0032] According to the judgment of steps 2 and 3, when the system is in the linear part, use formulas (4) and (5) for calculation; when it is in the nonlinear part, use formula (6) for calculation;
[0033] Step 7: Determine whether a state change occurs
[0034] According to the definition in step 3, determine whether the state has changed. Each time you use formula (6) to calculate whether the state has changed, you need to update the initial condition, X0 = X i+1 ;
[0035] Step 8: Find the state switching point
[0036] Step 81, when the state switching is from a linear state switching, the Fzeros() reconstructed and optimized for the MATLAB built-in program fzero() is used as a switching point finding method. Due to the characteristics of the fzero function, multi-point problems will occur for long-term calculations, resulting in non-negligible errors. Based on the optimization and adaptation of the program, it can accurately find points and solve multiple equations at the same time to find the state switching point this time; the adaptation and optimization steps are: X a (t a -t_o) by t f =t a -t_o is rewritten as X f (t f ), use a loop to solve for X with fzero() f (t f ) Each function element at the crossing point near the corresponding element of A at time t-t_o returns a vector to complete the construction of Fzeros(), which can solve multiple equations. Finally, add t_o, and the logical expression is: t_n=Fzeros(X f (t f ),t-t_o)+t_o, return the next switching time t_n, record the displacement X at the switching point c =X(t_n), switching point speed
[0037] Where: t a is a temporary time variable; X a (t a -t_o) is t a -The displacement vector at time t_o, in the form of t a -t_o is an expression of a variable; t f is the temporary difference time variable; X f (t f ) is t f The displacement vector at time t is expressed in terms of fis the expression of variables; X(t_n) is the displacement vector at time t_n; is the velocity vector at t_n; A is the displacement threshold vector when the system switches state according to steps 1, 2, and 3, X a (t a -t_o) is determined according to steps 2 and 3. The number of elements can be the same as or different from the number of degrees of freedom of the system. The elements are selected from the displacements of the degrees of freedom directly related to the state switching during the vibration process;
[0038] Step 81 is to optimize the switch point finding function based on the long-term calculation response. The comparison before and after optimization in this algorithm is as follows: Figure 3 As shown;
[0039] Step 82: When the state is switched from a nonlinear state, the step-reducing point-finding program is used as the switching point-finding method. The calculation logic of the step-reducing point-finding program is as follows:
[0040] For a multi-degree-of-freedom system, there are many different state switching situations. When the state switches, you only need to a (t a -t_o) The precise search for the state switching point time of an element can satisfy the precise search for the state switching point of the entire system; the function of the step length reduction point search program is to target X a (t a -t_o) The degree of freedom of one of the elements accurately finds the state switching time;
[0041] The specific steps of the step length reduction point finding procedure in step 82 are:
[0042] Step 8201, input parameters, c is the time point t before the state changes, d is the time point t before the state changes, x1 and x2 are the displacement before the state changes and the displacement after the state changes of the degree of freedom respectively; dx1 and dx2 are the speed before the state changes and the speed after the state changes of the degree of freedom respectively; h r is the calculation step length of the point finding program, and its initial input value is de; error is the accuracy of the point finding program, which is usually given by the user; rA is the threshold of the point finding program, and its value is the value of the corresponding X in A. a (t a -t_o) element value of the degrees of freedom;
[0043] Step 8202, infinite loop avoidance, when x1 and x2 meet the requirements, the output can be executed in step 9 to avoid falling into an infinite loop;
[0044] Step 8203, initialization,
[0045] t e =d;x e=x2;dx e =dx2;t c =c;x c =x1;dx c =dx1;t d =d;x d =x2;dx d =dx2, where: t c 、x c 、dx c are respectively switching left time, switching left displacement, and switching left speed; t d 、x d 、dx d They are switch right time, switch right displacement, switch right speed respectively;
[0046] Step 8204, cycle error judgment, when |x e -rA|≥error continues to calculate, otherwise directly output the required value;
[0047] Step 8205: Reduce the step length, reduce the step length, and take h r =h r / 2;
[0048] Step 8206: Refer to formula (6) and use the Runge-Kutta algorithm to calculate a more accurate x e =X e (1) dx e =X e (2); where: X e Indicates a closer value, X e (1) indicates X e The first element, X e (2) indicates X e Second element;
[0049] Step 8207: Determine x e x c Are they on the same side of rA? If not, return to step 8204. If they are on the same side, execute step 8208 and return to step 8205.
[0050] Step 8208, redefine t c ;x c ;dx c ;t c =t c +h r ;x c =x e ;dx c =dx e
[0051] Step 8209: When x1 and x2 satisfy the error analysis, directly execute step 8210 and output t e ;x e ;dx e ;
[0052] Step 8210: Set the t that meets the condition e ;x e ;dx e Output;
[0053] Where: t e 、x e 、dx e It is defined as the closer point time, closer point displacement, and closer point acceleration near the switching point;
[0054] The final output t e 、x e 、dx e Assign values to t_n, x respectively f , dx f ; where: x f For X a (t a -t_o) corresponding to the degree of freedom of the selected element at t_n, dx f For X a (t a -t_o) is the acceleration at t_n corresponding to the degree of freedom of the selected element;
[0055] After testing, it was found that the time to find a point in this method was less than 0.001s when the highest calculation accuracy was set, which was characterized by high efficiency and high accuracy.
[0056] Step 9. Update initial conditions
[0057] When the state switching is from the linear state, the initial condition is
[0058] When the state switching is from a nonlinear state, the initial condition is
[0059] It should be noted that X(t_n), The definition is given, but the calculation formula should be determined according to the specific system.
[0060] Step 10: Calculate the correct point of the next state to cover the error point of this calculation and update the switching point time
[0061] When the state t changes, the displacement vector and velocity vector X(t) at time t, This is a point with large deviation. For ease of understanding, it is rewritten as the displacement and velocity X obtained without switching the calculation method. d(t) This step reselects the algorithm corresponding to the switched state to calculate the real displacement and velocity X at the current time t. e (t) and replace X d (t) And assign it to X(t),
[0062] Update t_o = t_n;
[0063] In particular, the error point of this step is explained. When using the numerical method to calculate the response, due to the existence of the step size and the fact that the state properties at both ends of the segmented system state switching point are completely different, the response belonging to the latter state will be calculated using the parameters of the former state, resulting in a large error. The specific explanation is as follows Figure 4 This step is combined with step 801 to specifically remove the error points; a P d are the error points caused by the step length, and they are the first error point and the second error point respectively, P b P c are the recalculated correct points, and are the first correct point and the second correct point respectively, and l is the state dividing line;
[0064] Step 11. Update time
[0065] t=t+de.
[0066] Compared with the prior art, the present invention has the following beneficial effects:
[0067] The present invention is a hybrid optimization transient response calculation algorithm program based on analytical-numerical transient vibration response of joint theory. The algorithm in the present invention is not only applicable to segmented systems with linear components, but also to complex segmented systems with linear and nonlinear components. It has good applicability for different inputs and different systems. The algorithm of the present invention patent makes a detailed analysis of the switching between different states, identifies and selects corresponding methods for different states; optimizes the method of finding and refining the switching point; eliminates the error points generated when the state switches, thereby improving the calculation efficiency and calculation accuracy of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a logic flow chart of the present invention;
[0069] Figure 2 It is a calculation logic diagram of the step length reduction point finding program in the present invention;
[0070] Figure 3 It is a comparison diagram of the calculation results before and after optimization of the switching point finding function in step 801 of the present invention under the condition of long-term calculation response;
[0071] Figure 4 is an illustration of an error point in step 10 of the present invention;
[0072] Figure 5 is a diagram of a piecewise linear-linear oscillator model with a single degree of freedom and a gap in Example 1;
[0073] Figure 6 The calculation results of the AMS algorithm in Example 1 and the ode algorithm are compared. Figure 1 (ode accuracy Rel = 1e-9; Abs = 1e-9);
[0074] Figure 7 The calculation results of the AMS algorithm in Example 1 and the ode algorithm are compared. Figure 2 (ode accuracy Rel = 1e-15; Abs = 1e-12);
[0075] Figure 8 The calculation results of the AMS algorithm in Example 1 and the ode algorithm are compared. Figure 3 (ode accuracy Rel = 1e-15; Abs = 1e-15);
[0076] Fig. 9 is a comparison chart of the calculation time of the algorithm AMS and the ode algorithm in Example 1;
[0077] Fig.10 is a diagram of a single-degree-of-freedom linear-nonlinear oscillator model with a gap in Example 2;
[0078] Fig.11 It is a comparison chart of the calculation results of the AMS and ode algorithms of the algorithm of Example 2 under periodic excitation (ode accuracy Rel=1e-12, Abs=1e-15).
[0079] Fig.12 It is a comparison chart of the calculation results of the AMS and ode algorithms of the algorithm of Example 2 under step excitation (ode accuracy Rel=1e-12, Abs=1e-15). DETAILED DESCRIPTION
[0080] The algorithm of the present invention is further described below in conjunction with three embodiments.
[0081] Example 1, a single degree of freedom piecewise linear-linear model with gap is selected to illustrate the calculation accuracy and calculation speed;
[0082] Example 2, a single degree of freedom linear-nonlinear model is selected to perform calculations and the results are displayed to prove that the algorithm is also applicable to nonlinear systems;
[0083] Example 3: Select a two-degree-of-freedom model with rigid body modes to show the calculation results and illustrate the applicability of the algorithm to special systems.
[0084] Example 1: Single-degree-of-freedom piecewise linear-linear with clearance, as Figure 5 shown
[0085] 1. Establish the differential equation of motion for the vibration system
[0086]
[0087] where: m is the mass of the oscillator, k1 and k2 are the spring stiffnesses, c1 and c2 are the damping coefficients, D is the displacement threshold when switching states, i.e., the clearance in the figure, B is the excitation amplitude, w is the excitation frequency, y is the displacement of the oscillator, is the velocity of the oscillator, is the acceleration of the oscillator, y0, are the initial displacement and initial velocity of the oscillator, respectively.
[0088] 2. Determine the number of states in the system according to the equation
[0089] According to the equation, the system states are determined to be 3 segments, 3 linear segments, and 0 non-linear segments.
[0090] 3. Establish the state correspondence conditions and state change conditions
[0091] Taking the displacement y as a variable, establish the state correspondence conditions:
[0092] Linear state 1: Others;
[0093] Linear state 2: y = D & dy0 > 0 || y0 > D;
[0094] Linear state 3: y = -D & dy0 < 0 || y0 < -D
[0095] Establish the state change conditions:
[0096] State 1 → 2: y > D; State 1 → 3: y < -D; State 2 → 1: y < D; State 3 → 1: y > -D
[0097] 4. Preset the initial conditions Preset t_n = 0; t_o = 0, t = 0;
[0098] Preset the solution formulas: The simplified solution formulas for states 1, 2, and 3 are:
[0099]
[0100]
[0101]
[0102] Acceleration:
[0103]
[0104]
[0105]
[0106] Among them: y1, y2, y3 are the oscillator displacement in state 1, the oscillator displacement in state 2, and the oscillator displacement in state 3 respectively. are the oscillator speed in state 1, state 2, and state 3, respectively. e represents the natural logarithm, and p 11 、p 12 、p 21 、p 22 、p 31 、p 32 They represent the state 11 coefficient, the state 12 coefficient, the state 21 coefficient, the state 22 coefficient, the state 31 coefficient, and the state 32 coefficient respectively. represents the first natural frequency, represents the second natural frequency, represents the first damping ratio, Denotes the second damping ratio, B 01 =B / k1 represents the first static displacement, B 02 =B / (k1+k2) represents the second static displacement, represents the first damped natural frequency, represents the second damped natural frequency,
[0107]
[0108] They represent the first solution amplitude and the second solution amplitude respectively. represents the first solution phase, represents the second solution phase.
[0109] 5. Determine the current state
[0110] Combined with step 3, determine the state at time t.
[0111] 6. Select calculation method
[0112] State 1:
[0113] And use formula (7).
[0114] State 2:
[0115] And use formula (8).
[0116] State 3:
[0117] And use formula (9).
[0118] It should be noted that y0, It is a global initial condition and changes as the state changes.
[0119] 7. Determine whether a state change occurs according to step 3
[0120] 8. Find the switching point
[0121] State 1→2 / 3: Use the Fzeros function and formula (7) and formula (10a) to find the switching point.
[0122] State 2→1: Use the Fzeros function and formula (8) and formula (10b) to find the switching point.
[0123] State 3→1: Use the Fzeros function and formula (9) and formula (10c) to find the switching point.
[0124] 9. Update initial conditions
[0125] Combined with step 8:
[0126] State 1 → 2:
[0127] State 1 → 3:
[0128] State 2 → 1:
[0129] State 3 → 1:
[0130] in, Respectively represented as the The numerical value of .
[0131] 10. Calculate the correct point / update the switching point time
[0132] State 1→2: Use formula (10b) + formula (8),
[0133] State 1→3: Use formula (10c) + formula (9),
[0134] State 2 / 3→1: Use formula (10a) + formula (7),
[0135] t_o=t_n
[0136] In particular, the error point of this step is explained. When using the numerical method to calculate the response, due to the existence of the step size and the fact that the state properties at both ends of the segmented system state switching point are completely different, the response belonging to the latter state will be calculated using the parameters of the former state, resulting in a large error. The specific explanation is as follows Figure 4 This step is combined with step 801 to specifically remove the error points; a P d are the first error point and the second error point, respectively. b P c are the first correct point and the second correct point respectively, and l is the state dividing line;
[0137] 11. Update time and loop
[0138] t=t+de
[0139] 12. Calculation results: Select the calculation results of the ode algorithm at different absolute accuracy / relative accuracy and compare them with the results of this algorithm to illustrate the accuracy and calculation efficiency of this algorithm. Figure 6-8 As shown in the figure, it can be seen that as the relative error and absolute error limited by the ode algorithm continue to decrease, its response curve gradually tends to the response curve calculated by AMS, proving that the response calculated by AMS has excellent accuracy. Fig. 9 It can be seen that as the relative error and absolute error limited by the ODE algorithm continue to shrink, the ODE calculation time increases greatly and the efficiency gradually decreases, while the AMS calculation time is short, the efficiency is extremely high, and it guarantees extremely high calculation accuracy.
[0140] Example 2, single degree of freedom linear-nonlinear model, such as Fig.10 As shown,
[0141] The biggest feature of this algorithm is that it is also applicable to segmented vibration systems containing nonlinear segments.
[0142] 1. Establish the differential equation of motion of the vibration system
[0143]
[0144] 2. Determine the number of states in the system based on the equation
[0145] According to the equation, the system state is determined to be 2 sections, 1 section of linear state and 1 section of nonlinear state.
[0146] 3. Establish state corresponding conditions and state change conditions
[0147] Using displacement y as a variable, establish the state corresponding condition:
[0148] Linear state 1:
[0149] Nonlinear state 2:
[0150] Establish state change conditions:
[0151] State 1→2: y>D
[0152] State 2→1: y≤D
[0153] 4. Initial condition setting Preset initial switching point t_n=0; t_o=0, t=0;
[0154] Preset solution formula: The simplified solution formula for state 1 is written as:
[0155]
[0156]
[0157] 5. Determine the current state
[0158] Combined with step 3, determine the system state at time t.
[0159] 6. Select calculation method
[0160] State 1:
[0161] And use formula (12).
[0162] State 2: Use formula (6).
[0163] 7. Determine whether a state change occurs according to step 3. When the calculation is finished using formula (6), the initial condition y0 = X is updated even if the state does not change. i+1 (1) X i+1 (1) X i+1 (2) are respectively represented as vector X i+1 The first element and the second element of .
[0164] 8. Find the switching point:
[0165] State 1→2: Use the Fzeros() function and formulas (12) and (13) to find the switching point.
[0166] State 2→1: Use the 'reduced step length point search procedure' to search for the switching point.
[0167] 9. Update initial conditions
[0168] Combined with step 8:
[0169] State 1 → 2:
[0170] State 2→1: Use the step-length reduction procedure to find the point to get y0,
[0171] 10. Calculate the correct point / update the switching point time
[0172] State 1→2: Calculate using formula (6) with a calculation step of t-t_n
[0173] State 2→1: Calculate using formula (12) and formula (13), with a calculation step of t-t_n
[0174] t_o=t_n
[0175] 11. Update time and loop
[0176] t=t+de
[0177] 12. Calculation results: Fig.11 As shown in the figure, it is obvious that the calculation results of the two algorithms are basically the same. At the same time, the calculation time using AMS is 0.4s, and the calculation time using ode is 1.5s, which proves that AMS also has the advantages of high efficiency and high precision for nonlinear segmented systems.
[0178] Example 3, select the model of Example 2, change the excitation to step excitation F = 5. Referring to the above calculation process, the system response under step excitation can be obtained. The response comparison diagram of the AMS algorithm and the ode calculation method is as follows: Fig.12 It is obvious from the figure that the calculation results of the two algorithms are basically the same. At the same time, the calculation time using AMS is 0.2s, and the calculation time using ode is 1.3s, which proves that AMS also has the advantages of high efficiency and high precision for the segmented system with step input.
[0179] It is particularly noted that, as described above, this algorithm AMS is applicable to single-degree-of-freedom systems, multi-degree-of-freedom systems (limited to decoupling of linear parts), continuous systems or segmented systems (segmented linear components, segmented linear-nonlinear components), and systems with different inputs. In fact, for restricted decoupling of linear parts, multi-degree-of-freedom systems can be decoupled into multiple single-degree-of-freedom systems. For convenience, this algorithm uses Example 1 to solve the segmented system of a single degree of freedom, and does not give an example for the overall solution of the multi-degree-of-freedom system.
[0180] The greatest advantage of this algorithm is that it can excellently calculate segmented systems containing linear-nonlinear components. This algorithm uses Example 2 to solve this type of system.
[0181] It is impossible to take all different inputs into consideration. This algorithm uses Example 3 to solve the system under step input, and does not give examples for other inputs.
[0182] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A numerical-analytical hybrid optimization transient response algorithm for segmented systems, characterized in that: The following steps are involved: Step 1, establish the vibration system motion differential equations: Formula (1) represents a generalized differential equation system of motion. The form of the generalized differential equation system of motion is determined by the vibration system. The generalized differential equation system of motion is a single degree of freedom system, a multi-degree of freedom system, a continuous system or a piecewise system. In formula (1), M is the generalized mass matrix; C is the generalized damping matrix; K is the generalized stiffness matrix; F is the generalized exciting force matrix; t represents the time constant; X is the solution of formula (1), which is the system displacement vector; represents the velocity vector, obtained by taking the derivative of X with respect to t; is the acceleration vector, given by Taking the derivative with respect to t, we get; Step 2, determine the number of states contained in the system according to the generalized differential equations of motion, and judge whether the system is segmented and the linearity of each segment in the segmentation; Step 3: Establish state corresponding conditions and state change conditions: According to step 2, the linear state and nonlinear state of the selected system are established along with the displacement vector X and the initial condition X0. The corresponding relationship between state change and displacement vector X and initial condition X0 is established. The corresponding relationship; at this time, formula (1) is rewritten in the segmented case as follows: Where: M l C is the mass matrix of the equation in the linear state; l is the damping matrix in the linear state; K l is the stiffness matrix in the linear state; F l is the exciting force matrix in the linear state; M n C is the mass matrix of the equation under nonlinear state; n is the damping matrix under nonlinear state; K n is the stiffness matrix under nonlinear state; F n is the exciting force matrix under nonlinear state; O l is the displacement velocity set in the linear state; O n is the displacement velocity set under nonlinear state; X0 represent the initial displacement vector and initial velocity vector respectively; Step 4: preset initial conditions; preset initial switching points; preset solution formulas; Preset initial conditions, give X0 Assignment; time constant t = 0; calculation time step de preset; The initial switching point is preset as t_o; t_n; where t_o; t_n represent the time of the last state change and the time of the next state change in the current state, respectively, and the initial values are both 0; For the determined linear state part, the displacement vector and velocity vector in formula (1) are expressed as: Among them: U l (t), V l (t) represents the free vibration matrix of the system caused by the unit initial displacement of each degree of freedom and the free vibration matrix caused by the unit initial velocity of each degree of freedom; τ is the integral variable; h(t-τ) is the unit impulse response matrix of the system with t-τ as the variable; represents the derivative with respect to t; For the nonlinear state determination part, the 4th order Runge-Kutta algorithm is selected: Where: R1, R2, R3, R4 are the first coefficient, second coefficient, third coefficient and fourth coefficient of Runge-Kutta algorithm respectively; t i is the i-th time of the Runge-Kutta algorithm; the f() function is the first-order differential equation system with reduced order of formula (3); X i t i The value vector composed of displacement and velocity of each degree of freedom at time; X i+1 t i+1 The value vector composed of displacement and velocity of each degree of freedom at time; Step 5, determine the current state: Determine the state of the system at time t according to the definition in step 3; Step 6: Select the calculation method to calculate the relevant values corresponding to the current time: According to the judgment of steps 2 and 3, when the system is in the linear part, use formulas (4) and (5) for calculation; when it is in the nonlinear part, use formula (6) for calculation; Step 7: Determine whether a state change occurs: According to the definition in step 3, determine whether the state has changed. Each time you use formula (6) to calculate whether the state has changed, you need to update the initial condition, X0 = X i+1 ; Step 8, find the state switching point: Step 81, when the state switching is from a linear state switching, the Fzeros() reconstructed and optimized from the MATLAB built-in program fzero() is used as a switching point finding method to accurately find the point and solve multiple equations at the same time to find the state switching point; Step 82: When the state is switched from a nonlinear state, the step length reduction point finding program is used as the switching point finding method, and the time, displacement and acceleration t of the closest point near the switching point are output. e ;x e ;dx e ; The final output t e 、x e 、dx e Assign values to t_n, x respectively f , dx f ; where: x f For X a (t a -t_o) corresponding to the degree of freedom of the selected element at t_n, dx f For X a (t a -t_o) is the acceleration at t_n corresponding to the degree of freedom of the selected element; Step 9. Update initial conditions: When the state switching is from the linear state, the initial condition is When the state switching is from a nonlinear state, the initial condition is Step 10: Calculate the correct point of the next state to cover the error point of this calculation, and update the switching point time: When the state t changes, the displacement vector and velocity vector X(t) at time t, For points with large deviations, rewrite the displacement and velocity X obtained without switching the calculation method. d (t) Reselect the algorithm corresponding to the switched state to calculate the real displacement and velocity X at the current time t e (t) and replace X d (t) And assign it to X(t), Update t_o = t_n; Step 11, Update time: t=t+de; In step 81, the steps of constructing the optimization of the program Fzeros() are: a (t a -t_o) by t f =t a -t_o is rewritten as X f (t f ), use a loop and use the MATLAB built-in program fzero() to solve X f (t f ) Each function element at the crossing point near the corresponding element of A at time t-t_o returns a vector to complete the construction of Fzeros(), which can solve multiple equations. Finally, add t_o, and the logical expression is: t_n=Fzeros(X f (t f ),t-t_o)+t_o, return the next switching time t_n, record the displacement X at the switching point c =X(t_n), switching point speed Where: t a is a temporary time variable; X a (t a -t_o) is t a -The displacement vector at time t_o, in the form of t a -t_o is an expression of a variable; t f is the temporary difference time variable; X f (t f ) is t f The displacement vector at time t is expressed in terms of f is the expression of variables; X(t_n) is the displacement vector at time t_n; is the velocity vector at t_n; A is the displacement threshold vector when the system switches state according to steps 1, 2, and 3, X a (t a -t_o) is determined according to steps 2 and 3. The number of elements is the same as or different from the number of system degrees of freedom. The elements are selected from the displacements of the degrees of freedom directly related to the state switching during the vibration process; In step 82, the calculation logic of the step length reduction point finding program is as follows: For a multi-degree-of-freedom system, there are many different state switching situations. When the state switches, you only need to a (t a -t_o) The precise search for the state switching point time of an element can satisfy the precise search for the state switching point of the entire system; the function of the step length reduction point search program is to target X a (t a -t_o) The degree of freedom of one of the elements accurately finds the state switching time; In step 82, the specific steps of the step length reduction point finding procedure are: Step 8201, input parameters, c is the time point t before the state changes, d is the time point t before the state changes, x1 and x2 are the displacement before the state changes and the displacement after the state changes of the degree of freedom respectively; dx1 and dx2 are the speed before the state changes and the speed after the state changes of the degree of freedom respectively; h r is the calculation step of the point finding program, and its initial input value is de; error is the accuracy of the point finding program, which is usually given by the user; rA is the threshold of the point finding program, and its value is the value of the corresponding X in A. a (t a -t_o) element value of the degrees of freedom; Step 8202, infinite loop avoidance, when x1 and x2 meet the requirements, the output can be executed in step 9 to avoid falling into an infinite loop; Step 8203, initialization, t e =d;x e =x2;dx e =dx2;t c =c;x c =x1;dx c =dx1;t d =d;x d =x2;dx d =dx2, where: t c 、x c 、dx c are respectively switching left time, switching left displacement, and switching left speed; t d 、x d 、dx d They are switch right time, switch right displacement, switch right speed respectively; Step 8204, cycle error judgment, when |x e -rA|≥error continues to calculate, otherwise directly output the required value; Step 8205: Reduce the step length, reduce the step length, and take h r =h r / 2; Step 8206: Refer to formula (6) and use the Runge-Kutta algorithm to calculate a more accurate x e =X e (1) dx e =X e (2); where: X e Indicates a closer value, X e (1) indicates X e The first element, X e (2) indicates X e Second element; Step 8207: Determine x e x c Are they on the same side of rA? If not, return to step 8204. If they are on the same side, execute step 8208. Step 8208, redefine t c =t c ;x c ;dx c ;t c =t c +h r ;x c =x e ;dx c =dx e ; Step 8209: When x1 and x2 satisfy the error analysis, directly execute step 8210 and output t e ;x e ;dx e ; Step 8210: Set t that meets the conditions e ;x e ;dx e Output; Where: t e 、x e 、dx e It is defined as the closer point time, closer point displacement, and closer point acceleration near the switching point; The final output t e 、x e 、dx e Assign values to t_n, x respectively f , dx f ; where: x f For X a (t a -t_o) corresponding to the degree of freedom of the selected element at t_n, dx f For X a (t a -t_o) corresponds to the acceleration at t_n of the degree of freedom selected.
