A method and device for rapid modeling and simulation of ship power system based on node voltage method
Through the rapid modeling and simulation method based on the node voltage method, the problem of insufficient accuracy and adaptability of the ship power system simulation method in the existing technology is solved, and the rapid modeling and simulation of the ship power system is realized, which is highly versatile. timely and real-time, enabling better analysis and optimization of system performance.
Patent Information
- Application Number
- CN202410284038.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-03-12
AI Technical Summary
The existing ship power system simulation method has a component library that is too ideal, cannot achieve accurate simulation, is difficult to adapt to high-frequency circuit and complex topology simulation, and cannot meet the needs of new devices and customized special devices, especially in ship power systems. There are a variety of special equipment and devices in the system, and there is a lack of suitable spice models.
A fast modeling and simulation method based on the node voltage method is used to determine the nodes and branches of the ship's power system, construct a topology diagram, establish a matrix equation system of Kirchhoff's current law and voltage law, and apply numerical solution methods such as Gaussian elimination. The element method, LU decomposition method and iteration method are used to obtain the voltage value of each node and the current value of the branch to evaluate the stability and performance of the system.
It achieves rapid modeling and simulation of ship power systems in a short period of time, with high versatility, rapidity and real-time performance, and can better analyze and evaluate the performance of ship power systems and make necessary optimizations and improvements.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of simulation modeling, and in particular relates to a method and device for rapid modeling and simulation of a ship power system based on a node voltage method. Background Art
[0002] In ships that use electric propulsion, the power system generally includes power generation, distribution, transformation, propulsion, etc. The simulation of the ship's power system mainly considers the stability of the ship's power system when the propulsion working condition switches and when typical short circuits, circuit breaks, and load increases and decreases occur. The key equipment that needs to be simulated includes: generators, rectifiers, inverters, DC converters, transformers, propulsion motors, energy storage batteries, etc.
[0003] At present, there are two main methods for power system simulation: principle simulation represented by MATLAB / Simulink, which builds models based on idealized component libraries; simulation based on spice models represented by Multisim and Pspice. The spice model is a series of standardized models for electronic circuit simulation and analysis based on the working mechanism and physical details of basic circuit components (such as transistors, resistors, capacitors, etc.). However, the principle simulation represented by MATLAB / Simulink has the disadvantage that the component library is too idealized, and it is impossible to achieve accurate simulation, and it is not suitable for high-frequency circuit simulation; when the simulation model topology is more complex, the simulation convergence takes a long time, which is not conducive to expanding the function of real-time simulation; and when the FMU model of special devices needs to be connected, the simulation speed will be further slowed down. The disadvantage of simulation based on spice models represented by Multisim and Pspice is that it is highly dependent on the spice model library and cannot meet the simulation of new devices and custom special devices. However, there are many special equipment and devices in the ship power system, and there is currently no spice model, so it is difficult to meet the needs of flexible custom equipment and device models. Summary of the invention
[0004] In view of the defects existing in the above-mentioned prior art, the present invention provides a method for rapid modeling and simulation of a ship power system based on a node voltage method, the method comprising the following steps:
[0005] Step 1: According to the structure and equipment of the ship power system, determine the nodes and branches in the ship power system, construct a topological diagram of the ship power system, and model the branches of the ship power system. The nodes include generators, transformers, motors and load electrical equipment, and the branches include electrical connections of cables, switches and protection devices.
[0006] Step 2: establishing a node voltage equation group based on Kirchhoff's current law and Kirchhoff's voltage law, and constructing a matrix form of the node voltage equation group, including converting the node voltage equation group into a matrix equation, converting coefficients and variables in the node voltage equation group into a matrix form, wherein the matrix form includes an impedance matrix and an admittance matrix;
[0007] Step 3: Determine the boundary conditions of the ship power system, including generator voltage, load current, and transformer ratio, and apply the above boundary conditions to the node voltage equation group;
[0008] Step 4: Solve the matrix equation based on a numerical solution method to obtain the voltage value of each node and the current value of the branch, and evaluate the stability and performance of the system, wherein the solution method includes one or more of Gaussian elimination method, LU decomposition method, and iterative method;
[0009] Step 5: Based on the established power system model and the converted circuit parameters, simulation and analysis are performed, including one or more of short circuit analysis, overload analysis, and voltage stability analysis.
[0010] Wherein, the generator, transformer, motor and load device are identified by using symbols or numbers, including, the generator node is represented as G_i, the transformer node is represented as T_i, the motor node is represented as M_i, the load node is represented as L_i, wherein i represents the number of the device;
[0011] The connection relationship of the branch is indicated by the symbol or number of the node to determine the branch, including: the cable branch is indicated as C_ij, which indicates the connection between the node G_i and the node G_j; the switch branch is indicated as S_ij, which indicates the connection between the node G_i and the node T_j; the protection device branch is indicated as P_ij, which indicates the connection between the node T_i and the node M_j;
[0012] Constructing a topology graph, based on selecting an adjacency matrix to represent the topology graph of the ship power system, includes creating an N×N matrix, where N is the number of nodes;
[0013] If there is a branch between node i and node j, the element in the i-th row and j-th column of the matrix is set to 1, indicating that there is a connection;
[0014] If there is no branch between node i and node j, the element in the i-th row and j-th column of the matrix is set to 0, indicating that there is no connection.
[0015] This also includes the modeling of cable branches:
[0016] Zc = Rc + jXc
[0017] Yc = Gc + jBc
[0018] Among them, Zc is the equivalent impedance of the cable, Rc is the resistance of the cable, Xc is the reactance of the cable, Yc is the equivalent admittance of the cable, Gc is the conductance of the cable, and Bc is the susceptance of the cable. The parameters of the equivalent circuit model of the cable are calculated according to the parameters and length of the cable.
[0019] Modeling of switch branches:
[0020] Zs = Rs + jXs
[0021] Ys = Gs + jBs
[0022] Among them, Zs is the equivalent impedance of the switch, Rs is the resistance of the switch, Xs is the reactance of the switch, Ys is the equivalent admittance of the switch, Gs is the conductance of the switch, and Bs is the susceptance of the switch. The parameters of the equivalent circuit model of the switch are calculated according to the parameters of the switch.
[0023] Modeling of protection device branches:
[0024] Zp = Rp + jXp
[0025] Yp = Gp + jBp
[0026] Among them, Zp is the equivalent impedance of the protection device, Rp is the resistance of the protection device, Xp is the reactance of the protection device, Yp is the equivalent admittance of the protection device, Gp is the conductance of the protection device, and Bp is the susceptance of the protection device. The parameters of the equivalent circuit model of the protection device are calculated according to the parameters of the protection device.
[0027] Wherein, step 2 also includes that, according to Kirchhoff's current law, at each node, the current flowing in is equal to the current flowing out, and the following equation is obtained for each node i:
[0028] ∑(j=1 to N) Y_ij * (V_i - V_j) = I_i (i = 1, 2, ..., N)
[0029] Where Yi_ij is the admittance (also called impedance) between nodes i and j, V_i is the voltage at node i, V_j is the voltage at node j, and I_i is the injected current at node i;
[0030] Convert the above equations into matrix form to obtain the matrix form of the node current equations:
[0031] Y * (V - e) = I
[0032] Where Y is an N×N admittance matrix, V is an N×1 node voltage vector, e is an N×1 all-one vector, and I is an N×1 injected current vector;
[0033] According to Kirchhoff's voltage law, in each loop, the voltage drop is equal to the voltage rise, and for each loop j, the following equation is obtained:
[0034] ∑(k=1 to K) Z_jk * I_k = 0 (j = 1, 2, ..., M)
[0035] Where Z_jk is the impedance between loop j and branch k, and I_k is the current in branch k;
[0036] Convert the above equations into matrix form to obtain the matrix form of the loop voltage equation group:
[0037] Z * I = 0
[0038] Where Z is an M×K impedance matrix, and I is a K×1 branch current vector;
[0039] The matrix form of the node current equations and the matrix form of the loop voltage equations are combined into one matrix equation to obtain the matrix form of the node voltage equations:
[0040] [Y, -Y_e; Z, 0] * [V; I]= [I; 0]
[0041] Among them, [Y, -Y_e] is an N×(N+K) matrix, which represents the combination of the admittance matrix and the negative of the admittance matrix multiplied by the all-1 vector; [Z, 0] is an M×(N+K) matrix, which represents the combination of the impedance matrix and the zero matrix.
[0042] Wherein, step 3 also includes substituting known quantities such as generator voltage, load current and transformer ratio into corresponding equations or branch voltage relationship expressions according to the node voltage equation group;
[0043] The unknown node voltages and currents in the equations are expressed in matrix form,
[0044] V = [V_1, V_2, ..., V_N]^T
[0045] Wherein, V_1 represents the voltage of node 1, V_2 represents the voltage of node 2, ... V_N represents the voltage of node N, ^T represents the transposition operation;
[0046] I = [I_1, I_2, ..., I_M]^T
[0047] Where, I_1 represents the current of branch 1, I_2 represents the current of branch 2, ...I_M represents the current of branch N, ^T represents the transposition operation;
[0048] Substitute the known generator voltage and load current into the corresponding equations of the node voltage equation group, and substitute the transformer ratio into the branch voltage relationship expression;
[0049] A linear equation group containing unknown node voltages and currents is obtained, and the voltage and current values of the unknown nodes are obtained by solving the linear equation group.
[0050] Among them, step 4 solves the matrix equation based on Gaussian elimination method, including:
[0051] Split the matrix equation [Y, -Y_e; Z, 0] * [V; I] = [I; 0] into two systems of equations:
[0052] Y * V-Y_e * I = I
[0053] Z * V = 0
[0054] Then, the system of equations is represented by an augmented matrix:
[0055] [Y, -Y_e, I; Z, 0, 0]
[0056] Use Gaussian elimination method to transform the augmented matrix into an upper triangular matrix form, gradually perform row transformation, eliminate the coefficients of unknown quantities, until an upper triangular matrix is obtained;
[0057] Through the back substitution process, the values of the unknown quantities are solved; starting from the last row, the value of the last unknown quantity is calculated, and then the values of other unknown quantities are calculated upwards row by row until the voltage values of all nodes and the current values of the branches are obtained.
[0058] Among them, step 4 solves the matrix equation based on the LU decomposition method, including:
[0059] Perform LU decomposition on the admittance matrix Y to obtain Y = L * U, where L is a lower triangular matrix and U is an upper triangular matrix;
[0060] Substituting the matrix equation [Y, -Y_e; Z, 0] * [V; I] = [I; 0] into the equation after LU decomposition, we get:
[0061] L * U * V - L * U * Y_e * I = I
[0062] Z * V = 0
[0063] Let U * V = Y_e * I, and substitute it into the above equations to obtain:
[0064] L * (Y_e * I) - L * U * Y_e * I = I
[0065] Z * (Y_e * I) = 0
[0066] Solve the two equations separately, solve the value of Y_e * I by forward substitution, and solve the value of V by backward substitution.
[0067] Among them, step 4 solves the matrix equation based on the iteration method, including:
[0068] Convert the matrix equation [Y, -Y_e; Z, 0] * [V; I] = [I; 0] into two systems of equations:
[0069] Y * V - Y_e * I = I
[0070] Z * V = 0
[0071] Select Jacobi iteration method to solve matrix equations including,
[0072] The values of node voltage and branch current are updated through iteration. According to the updating rule of Jacobi iteration method, in the n+1th iteration, the updating formula of node voltage and branch current is:
[0073] V^(n+1) = inv(Y) * (Y_e * I + I - Z * V^n)
[0074] I^(n+1) = inv(Z) * Z * V^n
[0075] Among them, V^n represents the node voltage vector of the nth iteration, V^(n+1) represents the node voltage vector of the n+1th iteration, I^n represents the branch current vector of the nth iteration, and I^(n+1) represents the branch current vector of the n+1th iteration.
[0076] The present invention converts the system parameters into matrix variables by establishing a power system model library and a ship power system topology diagram, and obtains the voltage of each node and the current of the branch by solving the matrix equation. This method can model and simulate the ship power system in a short time, and has high versatility, rapidity and real-time performance. Such a method can better analyze and evaluate the performance of the ship power system, and perform necessary optimization and improvement. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0078] Figure 1 The present invention is a flowchart showing a method for rapid modeling and simulation of a ship power system based on a node voltage method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0081] It should be understood that although the terms first, second, third, etc. may be used to describe ... in the embodiments of the present invention, these ... should not be limited to these terms. These terms are only used to distinguish .... For example, without departing from the scope of the embodiments of the present invention, the first ... may also be referred to as the second ..., and similarly, the second ... may also be referred to as the first ....
[0082] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can 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. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0083] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0084] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0085] The rapid modeling and simulation of ship power systems requires a combination of specialized ship power system simulation software, general power system simulation tools, and other auxiliary technologies. The modeling of ship power systems is usually very complex, involving multiple mutually coupled subsystems and a large number of electrical equipment. The challenge of rapid modeling is to accurately capture the complexity of the system and ensure the accuracy and reliability of modeling. It may be difficult to obtain the parameters of electrical equipment in the ship power system. The parameters of some equipment may not be easy to obtain or need to be obtained through experimental measurements. The lack of accurate parameters may lead to inaccurate modeling. The established ship power system model may not fully reflect the characteristics and behavior of the actual system. The simplification or idealization of the model may lead to differences from the actual system, thus affecting the accuracy of the simulation results.
[0086] In order to achieve rapid modeling and simulation, simulation tools may encounter long calculation times when dealing with complex ship power systems and cannot achieve real-time simulation, which may not be suitable for control system analysis that requires real-time response. For data-driven modeling methods, the quality and reliability of data are crucial to the accuracy of the model. If the data is noisy, missing or incomplete, the established model may be affected. There is still a lack of unified standards and specifications in the field of ship power system modeling and simulation, which may lead to different methods and assumptions in different studies and practices, making it difficult to compare and verify the results.
[0087] like Figure 1 As shown, the present invention discloses a rapid modeling and simulation method for a ship power system based on a node voltage method, the method comprising:
[0088] Step 1: According to the structure and equipment of the ship power system, determine the nodes and branches in the ship power system, construct a topological diagram of the ship power system, and model the branches of the ship power system. The nodes include generators, transformers, motors and load electrical equipment, and the branches include electrical connections of cables, switches and protection devices.
[0089] In one embodiment, symbols or numbers are used to represent generators, transformers, motors, and load devices to determine nodes, including generator nodes represented as G_i, transformer nodes represented as T_i, motor nodes represented as M_i, and load nodes represented as L_i, where i represents the number of the device;
[0090] The connection relationship of the branch is indicated by the symbol or number of the node to determine the branch, including: the cable branch is indicated as C_ij, indicating the connection between the node G_i and the node G_j; the switch branch is indicated as S_ij, indicating the connection between the node G_i and the node T_j; the protection device branch is indicated as P_ij, indicating the connection between the node T_i and the node M_j;
[0091] Representing a topological graph of the ship power system based on the selected adjacency matrix includes creating an N×N matrix, where N is the number of nodes;
[0092] If there is a branch between node i and node j, the element in the i-th row and j-th column of the matrix is set to 1, indicating that there is a connection;
[0093] If there is no branch between node i and node j, the element in the i-th row and j-th column of the matrix is set to 0, indicating that there is no connection.
[0094] In one embodiment, a basic ship power system model library is established, which includes models of various electrical equipment, such as generators, transformers, motors, loads, etc., and electrical connection models between them. These models can be models based on physical equations or empirical models.
[0095] Further, the cable branch modeling:
[0096] Zc = Rc + jXc
[0097] Yc = Gc + jBc
[0098] Among them, Zc is the equivalent impedance of the cable, Rc is the resistance of the cable, Xc is the reactance of the cable, Yc is the equivalent admittance of the cable, Gc is the conductance of the cable, and Bc is the susceptance of the cable. The parameters of the equivalent circuit model of the cable are calculated according to the parameters and length of the cable.
[0099] Further, the modeling of the switch branch:
[0100] Zs = Rs + jXs
[0101] Ys = Gs + jBs
[0102] Among them, Zs is the equivalent impedance of the switch, Rs is the resistance of the switch, Xs is the reactance of the switch, Ys is the equivalent admittance of the switch, Gs is the conductance of the switch, and Bs is the susceptance of the switch. The parameters of the equivalent circuit model of the switch are calculated according to the parameters of the switch.
[0103] Further, the modeling of the protection device branch:
[0104] Zp = Rp + jXp
[0105] Yp = Gp + jBp
[0106] Among them, Zp is the equivalent impedance of the protection device, Rp is the resistance of the protection device, Xp is the reactance of the protection device, Yp is the equivalent admittance of the protection device, Gp is the conductance of the protection device, and Bp is the susceptance of the protection device. The parameters of the equivalent circuit model of the protection device are calculated according to the parameters of the protection device.
[0107] According to the structure and equipment of the ship's power system, nodes and branches are determined, the topology of the ship's power system is constructed, and branches such as cables, switches and protection devices are modeled. Such a modeling process can accurately describe the electrical connection relationship of the ship's power system and provide a basis for subsequent analysis and simulation.
[0108] Step 2: Establish a node voltage equation group based on Kirchhoff's current law and Kirchhoff's voltage law, and construct a matrix form of the node voltage equation group, including converting the node voltage equation group into a matrix equation, and converting the coefficients and variables in the node voltage equation group into a matrix form, wherein the matrix form includes an impedance matrix and an admittance matrix.
[0109] In one embodiment, according to the principle of the node voltage method, a voltage equation is established for each node. The voltage equation describes the relationship between node voltages and can be established using circuit theories such as Kirchhoff's current law and Kirchhoff's voltage law.
[0110] According to Kirchhoff's current law, at each node, the current flowing in is equal to the current flowing out, and the following equation is obtained for each node i:
[0111] ∑(j=1 to N) Y_ij * (V_i - V_j) = I_i (i = 1, 2, ..., N)
[0112] Where Yi_ij is the admittance (also called impedance) between nodes i and j, V_i is the voltage at node i, V_j is the voltage at node j, and I_i is the injected current at node i;
[0113] Convert the above equations into matrix form to obtain the matrix form of the node current equations:
[0114] Y * (V - e) = I
[0115] Where Y is an N×N admittance matrix, V is an N×1 node voltage vector, e is an N×1 all-one vector, and I is an N×1 injected current vector;
[0116] According to Kirchhoff's voltage law, in each loop, the voltage drop is equal to the voltage rise, and for each loop j, the following equation is obtained:
[0117] ∑(k=1 to K) Z_jk * I_k = 0 (j = 1, 2, ..., M)
[0118] Where Z_jk is the impedance between loop j and branch k, and I_k is the current in branch k;
[0119] Convert the above equations into matrix form to obtain the matrix form of the loop voltage equation group:
[0120] Z * I = 0
[0121] Where Z is an M×K impedance matrix, and I is a K×1 branch current vector;
[0122] The matrix form of the node current equations and the matrix form of the loop voltage equations are combined into one matrix equation to obtain the matrix form of the node voltage equations:
[0123] [Y, -Y_e; Z, 0] * [V; I]= [I; 0]
[0124] Among them, [Y, -Y_e] is an N×(N+K) matrix, which represents the combination of the admittance matrix and the negative of the admittance matrix multiplied by the all-1 vector; [Z, 0] is an M×(N+K) matrix, which represents the combination of the impedance matrix and the zero matrix.
[0125] Based on Kirchhoff's current law and Kirchhoff's voltage law, the node voltage equations are established and converted into matrix form. The impedance matrix Z, the admittance matrix Y and the node current-voltage relationship matrix B provide the topology and parameter information of the power system, which facilitates the subsequent solution and analysis.
[0126] By converting the node voltage equations into matrix equations, numerical solutions and analysis can be performed more conveniently. The formal representation of the admittance matrix and the impedance matrix facilitates matrix operations and equation solution.
[0127] Step 3: Determine the boundary conditions of the ship power system, including generator voltage, load current, and transformer ratio, and apply the above boundary conditions to the node voltage equation group.
[0128] Determining boundary conditions plays a key role in the accuracy of the model and the reliability of the simulation results. Boundary conditions specify parameters such as voltage, current or power at some specific nodes in the power system to ensure that the model obtains reasonable results during the simulation process.
[0129] In one embodiment, according to the node voltage equations, known quantities such as generator voltage, load current and transformer ratio are substituted into corresponding equations or branch voltage relationship expressions;
[0130] The unknown node voltages and currents in the equations are expressed in matrix form,
[0131] V = [V_1, V_2, ..., V_N]^T
[0132] Wherein, V_1 represents the voltage of node 1, V_2 represents the voltage of node 2, ... V_N represents the voltage of node N, ^T represents the transposition operation;
[0133] I = [I_1, I_2, ..., I_M]^T
[0134] Where, I_1 represents the current of branch 1, I_2 represents the current of branch 2, ...I_M represents the current of branch N, ^T represents the transposition operation;
[0135] Substitute the known generator voltage and load current into the corresponding equations of the node voltage equation group, and substitute the transformer ratio into the branch voltage relationship expression;
[0136] A linear equation group containing unknown node voltages and currents is obtained, and the voltage and current values of the unknown nodes are obtained by solving the linear equation group.
[0137] Step 4: Solve the matrix equation based on a numerical solution method, obtain the voltage value of each node and the current value of the branch, and evaluate the stability and performance of the system. The solution method includes one or more of Gaussian elimination method, LU decomposition method, and iterative method.
[0138] By solving the matrix equation, the voltage value of each node and the current value of the branch can be obtained. These results reflect the voltage, current and power status of each device in the system. According to the solution results, the relevant variables can be converted into circuit parameters, such as voltage, current, power, etc.
[0139] In one embodiment, solving the matrix equation based on Gaussian elimination method includes:
[0140] Split the matrix equation [Y, -Y_e; Z, 0] * [V; I] = [I; 0] into two systems of equations:
[0141] Y * V-Y_e * I = I
[0142] Z * V = 0
[0143] Then, the system of equations is represented by an augmented matrix:
[0144] [Y, -Y_e, I; Z, 0, 0]
[0145] Use Gaussian elimination method to transform the augmented matrix into an upper triangular matrix form, gradually perform row transformation, eliminate the coefficients of unknown quantities, until an upper triangular matrix is obtained;
[0146] Through the back substitution process, the values of the unknown quantities are solved; starting from the last row, the value of the last unknown quantity is calculated, and then the values of other unknown quantities are calculated upwards row by row until the voltage values of all nodes and the current values of the branches are obtained.
[0147] In one embodiment, solving the matrix equation based on the LU decomposition method includes:
[0148] Perform LU decomposition on the admittance matrix Y to obtain Y = L * U, where L is a lower triangular matrix and U is an upper triangular matrix;
[0149] Substituting the matrix equation [Y, -Y_e; Z, 0] * [V; I] = [I; 0] into the equation after LU decomposition, we get:
[0150] L * U * V - L * U * Y_e * I = I
[0151] Z * V = 0
[0152] Let U * V = Y_e * I, and substitute it into the above equations to obtain:
[0153] L * (Y_e * I) - L * U * Y_e * I = I
[0154] Z * (Y_e * I) = 0
[0155] Solve the two equations separately, solve the value of Y_e * I by forward substitution, and solve the value of V by backward substitution.
[0156] In one embodiment, solving the matrix equation based on an iterative method includes,
[0157] Convert the matrix equation [Y, -Y_e; Z, 0] * [V; I] = [I; 0] into two systems of equations:
[0158] Y * V - Y_e * I = I
[0159] Z * V = 0
[0160] Select Jacobi iteration method to solve matrix equations including,
[0161] The values of node voltage and branch current are updated through iteration. According to the updating rule of Jacobi iteration method, in the n+1th iteration, the updating formula of node voltage and branch current is:
[0162] V^(n+1) = inv(Y) * (Y_e * I + I - Z * V^n)
[0163] I^(n+1) = inv(Z) * Z * V^n
[0164] Among them, V^n represents the node voltage vector of the nth iteration, V^(n+1) represents the node voltage vector of the n+1th iteration, I^n represents the branch current vector of the nth iteration, and I^(n+1) represents the branch current vector of the n+1th iteration.
[0165] Step 5: Based on the established power system model and the converted circuit parameters, simulation and analysis are performed, including one or more of short circuit analysis, overload analysis, and voltage stability analysis.
[0166] After completing the numerical solution, the stability and performance of the system can be evaluated. The following are some common evaluation indicators:
[0167] Stability analysis: Check whether the node voltage and branch current satisfy Kirchhoff's current and voltage laws and other system constraints. Verify whether the node voltage and branch current remain within a reasonable range to ensure system stability.
[0168] System performance evaluation: Calculate the power loss, power factor, voltage stability and other indicators of the power system to evaluate the system performance. These indicators can be calculated and analyzed based on the calculation results of node voltage and branch current.
[0169] Branch current analysis: Analyze the magnitude and direction of branch current to determine the power flow in the system. Check if the branch current exceeds the rated value to determine if there is an overload or other problem in the system.
[0170] Node voltage analysis: Analyze the size and stability of node voltages, and check whether there are voltage deviations, voltage imbalances, or voltage fluctuations. Ensure that node voltages meet the requirements of the power system.
[0171] The fast modeling and simulation method for ship power system based on node voltage method of the present invention can convert system parameters into matrix variables by establishing power system model library and ship power system topology diagram, and obtain the voltage of each node and the current of the branch by solving matrix equation. This method can model and simulate the ship power system in a relatively short time, and has high versatility, rapidity and real-time performance.
[0172] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0173] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0174] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0175] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0176] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0177] The above introduces the preferred embodiments of the present invention, which is intended to make the spirit of the present invention clearer and easier to understand, but is not intended to limit the present invention. All modifications, substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection outlined by the claims attached to the present invention.
Claims
1. A fast modeling and simulation method for ship power system based on node voltage method, comprising: Step 1: According to the structure and equipment of the ship power system, determine the nodes and branches in the ship power system, construct a topological diagram of the ship power system, and model the branches of the ship power system. The nodes include generators, transformers, motors and load electrical equipment, and the branches include electrical connections of cables, switches and protection devices. Step 2: establishing a node voltage equation group based on Kirchhoff's current law and Kirchhoff's voltage law, and constructing a matrix form of the node voltage equation group, including converting the node voltage equation group into a matrix equation, converting coefficients and variables in the node voltage equation group into a matrix form, wherein the matrix form includes an impedance matrix and an admittance matrix; Step 3: Determine the boundary conditions of the ship power system, including generator voltage, load current, and transformer ratio, and apply the above boundary conditions to the node voltage equation group; Step 4: Solve the matrix equation based on a numerical solution method to obtain the voltage value of each node and the current value of the branch, and evaluate the stability and performance of the system, wherein the solution method includes one or more of Gaussian elimination method, LU decomposition method, and iterative method; Step 5: Based on the established power system model and the converted circuit parameters, simulation and analysis are performed, including one or more of short circuit analysis, overload analysis, and voltage stability analysis; Wherein, the step 2 further comprises: According to Kirchhoff's current law, at each node, the current flowing in is equal to the current flowing out, and the following equation is obtained for each node i: Where Yi_ij is the admittance between nodes i and j, V_i is the voltage at node i, V_j is the voltage at node j, I_i is the injected current at node i, and the value range of i is 1 to N; Convert the above equations into matrix form to obtain the matrix form of the node current equations: Where Y is an N×N admittance matrix, V is an N×1 node voltage vector, e is an N×1 all-one vector, and I is an N×1 injected current vector; According to Kirchhoff's voltage law, in each loop, the voltage drop is equal to the voltage rise, and for each loop j, the following equation is obtained: Where Z_jk is the impedance between loop j and branch k, I_k is the current of branch k, and the value range of j is 1 to M; Convert the above equations into matrix form to obtain the matrix form of the loop voltage equation group: Where Z is an M×K impedance matrix, and I is a K×1 branch current vector; The matrix form of the node current equations and the matrix form of the loop voltage equations are combined into one matrix equation to obtain the matrix form of the node voltage equations: Among them, [Y, -Y_e] is an N×(N+K) matrix, which represents the combination of the admittance matrix and the negative of the admittance matrix multiplied by the all-1 vector; [Z, 0] is an M×(N+K) matrix, which represents the combination of the impedance matrix and the zero matrix; Wherein, the step 3 further comprises: According to the node voltage equation group, the generator voltage, load current and transformer ratio are substituted into the corresponding equation or branch voltage relationship expression; The unknown node voltages and currents in the equations are expressed in matrix form, V = [V_1, V_2, ..., V_N]^T Wherein, V_1 represents the voltage of node 1, V_2 represents the voltage of node 2, ... V_N represents the voltage of node N, ^T represents the transposition operation; I = [I_1, I_2, ..., I_M]^T Where, I_1 represents the current of branch 1, I_2 represents the current of branch 2, ...I_M represents the current of branch N, ^T represents the transposition operation; Substitute the known generator voltage and load current into the corresponding equations of the node voltage equations, and substitute the transformer ratio into the branch voltage relationship expression; A linear equation group including unknown node voltages and currents is obtained, and the voltage and current values of the unknown nodes are obtained by solving the linear equation group; Wherein, the step 4 of solving the matrix equation based on Gaussian elimination method includes: The matrix equation Divide into two systems of equations: Then, the system of equations is represented by an augmented matrix: [Y, -Y_e, I; Z, 0, 0] Use Gaussian elimination method to transform the augmented matrix into an upper triangular matrix form, gradually perform row transformation, eliminate the coefficients of unknown quantities, until an upper triangular matrix is obtained; Solve the unknown values through the back-substitution process; start from the last row, calculate the value of the last unknown, and then calculate the values of other unknowns row by row until the voltages of all nodes and the currents of all branches are obtained; Wherein, the step 4 of solving the matrix equation based on the LU decomposition method includes: Perform LU decomposition on the admittance matrix Y and get , where L is a lower triangular matrix and U is an upper triangular matrix; The matrix equation Substituting into the equation after LU decomposition, we get: set up , substituting it into the above equations, we get: Solve the two equations separately and solve them by forward substitution. The value of V is solved by backward substitution; Wherein, the step 4 solves the matrix equation based on the iteration method and includes: The matrix equation Transformed into two systems of equations: Select Jacobi iteration method to solve matrix equations including, The values of node voltage and branch current are updated through iteration. According to the updating rule of Jacobi iteration method, in the n+1th iteration, the updating formula of node voltage and branch current is: Among them, V^n represents the node voltage vector of the nth iteration, V^(n+1) represents the node voltage vector of the n+1th iteration, I^n represents the branch current vector of the nth iteration, and I^(n+1) represents the branch current vector of the n+1th iteration.
2. A method for rapid modeling and simulation of a ship power system based on a node voltage method according to claim 1, characterized in that: Step 1 also includes, Determine the nodes and use symbols or numbers to represent the generator, transformer, motor and load equipment, including that the generator node is represented as G_i, the transformer node is represented as T_i, the motor node is represented as M_i, and the load node is represented as L_i, where i represents the number of the equipment; Determine the branch, and use the node symbol or number to indicate the connection relationship of the branch, including: the cable branch is indicated as C_ij, indicating the connection between the node G_i and the node G_j; the switch branch is indicated as S_ij, indicating the connection between the node G_i and the node T_j; the protection device branch is indicated as P_ij, indicating the connection between the node T_i and the node M_j; Constructing a topology graph, based on selecting an adjacency matrix to represent the topology graph of the ship power system, includes creating an N×N matrix, where N is the number of nodes; If there is a branch between node i and node j, the element in the i-th row and j-th column of the matrix is set to 1, indicating that there is a connection; If there is no branch between node i and node j, the element in the i-th row and j-th column of the matrix is set to 0, indicating that there is no connection.
3. A method for rapid modeling and simulation of a ship power system based on a node voltage method according to claim 1, characterized in that: Step 1 also includes, Modeling of cable branches: Zc = Rc + jXc Yc = Gc + jBc Among them, Zc is the equivalent impedance of the cable, Rc is the resistance of the cable, Xc is the reactance of the cable, Yc is the equivalent admittance of the cable, Gc is the conductance of the cable, and Bc is the susceptance of the cable. The parameters of the equivalent circuit model of the cable are calculated according to the parameters and length of the cable; Modeling of switch branches: Zs = Rs + jXs Ys = Gs + jBs Among them, Zs is the equivalent impedance of the switch, Rs is the resistance of the switch, Xs is the reactance of the switch, Ys is the equivalent admittance of the switch, Gs is the conductance of the switch, and Bs is the susceptance of the switch. The parameters of the equivalent circuit model of the switch are calculated according to the parameters of the switch; Modeling of protection device branches: Zp = Rp + jXp Yp = Gp + jBp Among them, Zp is the equivalent impedance of the protection device, Rp is the resistance of the protection device, Xp is the reactance of the protection device, Yp is the equivalent admittance of the protection device, Gp is the conductance of the protection device, and Bp is the susceptance of the protection device. The parameters of the equivalent circuit model of the protection device are calculated according to the parameters of the protection device.
4. A fast modeling and simulation device for ship power system based on node voltage method, characterized in that: include: at least one processor; as well as At least one memory comprising computer program code, wherein the at least one memory and the computer program code are configured to, together with the at least one processor, cause the apparatus to perform the method of any one of claims 1 to 3.
5. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 3.
