The present invention provides a method and a related device for calculating the solution time of a node
voltage equation in an electromagnetic transient
simulation. The method determines the number of non-zero elements and the number of zero elements in each column of an equivalent conductance matrix of the node
voltage equation in the electromagnetic transient
simulation; solves the element substitution time of the equivalent conductance matrix based on the number of non-zero elements in each column of the equivalent conductance matrix; solves the element solution time of the equivalent conductance matrix and the first
matrix solution time of the equivalent conductance matrix after substitution; solves the second
matrix solution time based on
LU decomposition of the equivalent conductance matrix of the node
voltage equation in the electromagnetic transient
simulation; solves the order threshold of the equivalent conductance matrix based on the first
matrix solution time and the second matrix solution time, selects a solution method with a shorter matrix solution
time based on the order of the equivalent conductance matrix, and obtains the corresponding solution time. The present invention provides the matrix solution time of the equivalent
conductivity matrix of the node voltage equation in electromagnetic transient simulation and the solution time of the equivalent
conductivity matrix based on
LU decomposition, which can quantify the computational performance of the node voltage equation and theoretically quantify the performance advantages and disadvantages of different solution methods.