Disclosure of Invention
In view of the above, it is desirable to provide a disconnection resistance calculation apparatus, a system, a method, a computer device, and a storage medium capable of improving calculation efficiency.
A wire break impedance calculation apparatus comprising:
the system comprises a controller, a scheduling manager, a memory and a resource server;
the dispatching management machine is connected with a memory through a controller, the dispatching management machine is connected with the resource server, and the memory is connected with the resource server;
the scheduling management machine sends a first scheduling instruction to the controller, the controller receives the first scheduling instruction and feeds back port data called from the memory to the scheduling management machine, the scheduling management machine sends a second scheduling instruction and the port data to the resource server, and the resource server receives the second scheduling instruction and the port data and sends a port disconnection impedance value obtained through calculation to the memory for storage.
A wire break impedance calculation system comprises the wire break impedance calculation device and a control terminal;
the control terminal is connected with the controller;
and the control terminal sends an access request to the controller, and the controller receives the access request and controls the control terminal to access the authority of the disconnection impedance calculation device.
In one embodiment, the disconnection impedance calculation system further comprises a network management server;
the network management server is respectively connected with the controller and the control terminal;
the controller receives a control instruction sent by the control terminal through a network provided by the network management server, wherein the control instruction comprises a calculation condition, selected calculation data and expected calculation time;
and the scheduling management machine calls the port data from the memory according to the calculation conditions, the selected calculation data and the expected calculation time and distributes the port data to different threads of the resource server to calculate the port disconnection impedance.
In one embodiment, the disconnection impedance calculating system includes a plurality of control terminals;
and each control terminal is respectively connected with the controller.
A disconnection impedance calculation method based on the disconnection impedance calculation system comprises the following steps:
acquiring access authority generated in the controller, and acquiring information of each target port to be calculated according to the access authority; the access authority is generated by the controller according to an access request sent by the control terminal;
sending each piece of target port information to the controller, wherein each piece of target port information is used for indicating the controller to call each piece of corresponding target port data in the memory;
and receiving the data of each target port fed back by the controller, and distributing the data of each target port to different threads of the resource server to calculate the port disconnection impedance.
In an embodiment, the method for calculating a disconnection impedance, where the allocating each target port data to a different thread of the resource server for port disconnection impedance calculation, includes:
generating priority ranking according to the access authority of each control terminal;
and according to the priority ranking, distributing the target port data to different threads of the resource server in sequence to calculate the port disconnection impedance.
In one embodiment, the method for calculating the disconnection impedance further includes:
monitoring the calculation process of the resource server, and sending an information storage instruction and an information sending instruction to the resource server when monitoring the port disconnection impedance value obtained by calculation;
the information storage instruction is used for indicating the resource server to store the port disconnection impedance value into a memory, and the information sending instruction is used for indicating the resource server to send the port disconnection impedance value to a corresponding control terminal.
A wire break impedance calculation apparatus comprising:
the acquisition module is used for acquiring the access authority generated in the controller and acquiring information of each target port to be calculated according to the access authority; the access authority is generated by the controller according to an access request sent by the control terminal;
the calling module is used for sending each piece of target port information to the controller, and each piece of target port information is used for indicating the controller to call each piece of corresponding target port data in the memory;
and the calculation module is used for receiving the target port data fed back by the controller and distributing the target port data to different threads of the resource server to calculate the port disconnection impedance.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring access authority generated in the controller, and acquiring information of each target port to be calculated according to the access authority; the access authority is generated by the controller according to an access request sent by the control terminal;
sending each piece of target port information to the controller, wherein each piece of target port information is used for indicating the controller to call each piece of corresponding target port data in the memory;
and receiving the data of each target port fed back by the controller, and distributing the data of each target port to different threads of the resource server to calculate the port disconnection impedance.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring access authority generated in the controller, and acquiring information of each target port to be calculated according to the access authority; the access authority is generated by the controller according to an access request sent by the control terminal;
sending each piece of target port information to the controller, wherein each piece of target port information is used for indicating the controller to call each piece of corresponding target port data in the memory;
and receiving the data of each target port fed back by the controller, and distributing the data of each target port to different threads of the resource server to calculate the port disconnection impedance.
According to the method and the device for calculating the disconnection impedance, the computer equipment and the storage medium, the scheduling management machine calls the port data of the power system network in the memory through the controller, and the same data source can be obtained in the calculation process. The port data are distributed to different threads of the resource server by the scheduling management machine to calculate the port disconnection impedance, a unified algorithm in the scheduling management machine can be obtained to calculate, the difference of results caused by different data sources or different calculation methods in the calculation process is avoided, the port disconnection impedance is calculated on each thread simultaneously, the calculation speed and the calculation efficiency are improved, the port disconnection impedance value obtained by calculation is stored in the memory, the calculation result can be directly obtained from the memory when the same calculation is carried out next time, repeated calculation is not needed, and the calculation speed and the calculation efficiency are further improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The disconnection impedance calculation method provided by the application can be applied to a disconnection impedance calculation device shown in fig. 1. Wherein, disconnected line impedance calculation device includes: a controller 101, a scheduling manager 102, a memory 103, and a resource server 104; the scheduling manager 102 is connected to a memory 103 through a controller 101, the scheduling manager 102 is connected to the resource server 104, and the memory 103 is connected to the resource server 104.
The dispatch manager 102 calls port data (data source) of the power system network in the memory 103 through the controller 101, and allocates the port data to different threads of the resource server to perform port disconnection impedance calculation, and the resource server stores the calculated port disconnection impedance value in the memory 103. The scheduling manager 102 sends a first scheduling instruction to the controller 101, the controller 101 receives the first scheduling instruction and feeds back port data called from the memory 103 to the scheduling manager 102, the scheduling manager 102 sends a second scheduling instruction and the port data to the resource server 104, and the resource server 104 receives the second scheduling instruction and the port data and sends a port disconnection impedance value obtained through calculation to a memory for storage.
In the above embodiment, the controller may be an access controller for receiving the computation request from the client. The dispatch manager may be used to consolidate the dispersed server resources. The resource server 104 may be a cloud server, which is an important component of cloud computing services and is a service platform that provides comprehensive business capabilities for various internet users. The cloud computing can uniformly manage and schedule a large number of resources connected by a network to form a resource pool to serve users as required, and effective storage and processing of big data are realized. Cloud computing may include three types, namely public cloud, private cloud and hybrid cloud, wherein the private cloud is built for a company or an organization to use alone, and can provide more private data, higher security and better service quality. The resource server 104 in the embodiment of the present application may perform disconnection impedance calculation through a private cloud.
In one embodiment, as shown in fig. 2, there is provided a disconnection impedance calculating system, comprising the disconnection impedance calculating device and a control terminal; the control terminal is connected with the controller; and the control terminal sends an access request to the controller, and the controller receives the access request and controls the control terminal to access the authority of the disconnection impedance calculation device.
In the above embodiment, the control terminal 105 may be a client, and the client may send a calculation request to the controller 101, where the calculation request may include calculation conditions set by a user, selected calculation data, a desired calculation time, and the like. The controller 101 may obtain target data from the memory 103 according to the calculation conditions set by the user, the selected calculation data, and the expected calculation time, and perform the port disconnection impedance calculation of the power system network when the preset calculation time is reached.
In the above embodiment, the scheduling manager calls the port data of the power system network in the memory through the controller, so as to ensure that the same data source can be obtained in the calculation process. The port data are distributed to different threads of the resource server by the scheduling management machine to calculate the port disconnection impedance, a unified algorithm in the scheduling management machine can be obtained to calculate, the difference of results caused by different data sources or different calculation methods in the calculation process is avoided, the port disconnection impedance is calculated on each thread simultaneously, the calculation speed and the calculation efficiency are improved, the port disconnection impedance value obtained by calculation is stored in the memory, the calculation result can be directly obtained from the memory when the same calculation is carried out next time, repeated calculation is not needed, and the calculation speed and the calculation efficiency are further improved.
In one embodiment, the disconnection impedance calculation system may further include a network management server; the network management server is respectively connected with the controller and the control terminal.
The controller receives a control instruction sent by the control terminal through a network provided by the network management server, wherein the control instruction comprises a calculation condition, selected calculation data and expected calculation time; and the scheduling management machine calls the port data from the memory according to the calculation conditions, the selected calculation data and the expected calculation time and distributes the port data to different threads of the resource server to calculate the port disconnection impedance.
In the above embodiments, the network management server is a core component of the computer local area network. The network operating system is operated on a network server, and the efficiency of the network management server directly influences the efficiency of the whole network. Clients of different addresses may send a disconnection impedance calculation request to the controller 101 through a network provided by the network management server.
The embodiment can monitor and control the network activity through the network management server, actually manage the network, better distribute the system resources and better know and adjust the system running state.
In one embodiment, the number of the control terminals in the disconnection impedance calculation system is multiple; and each control terminal is respectively connected with the controller.
In the above embodiment, the control terminal 105 may be a client, and clients with different addresses may send the disconnection impedance calculation request to the controller 101 through a wired or wireless network.
In the above embodiment, the scheduling manager calls the port data of the power system network in the memory through the controller, so as to ensure that the same data source can be obtained in the calculation process. The port data are distributed to different threads of the resource server by the scheduling management machine to calculate the port disconnection impedance, a unified algorithm in the scheduling management machine can be obtained to calculate, the difference of results caused by different data sources or different calculation methods in the calculation process is avoided, the port disconnection impedance is calculated on each thread simultaneously, the calculation speed and the calculation efficiency are improved, the port disconnection impedance value obtained by calculation is stored in the memory, the calculation result can be directly obtained from the memory when the same calculation is carried out next time, repeated calculation is not needed, and the calculation speed and the calculation efficiency are further improved.
In one embodiment, as shown in fig. 3, a method for calculating a disconnection impedance is provided, which is described by taking the method as an example for being applied to the dispatch management machine in fig. 1 and fig. 2, and includes the following steps:
step 302, obtaining the access authority generated in the controller, and obtaining information of each target port to be calculated according to the access authority; and the access authority is generated by the controller according to an access request sent by the control terminal.
For step 302, the control terminal may be a client, and clients with different addresses may send a disconnection impedance calculation request to the access controller through a wired or wireless network. The access request may carry access rights of each client.
Step 304, sending each piece of target port information to the controller, where each piece of target port information is used to instruct the controller to call each piece of corresponding target port data in the memory.
Specifically, the memory may store a data source (port data) in the power system network, which may be a node name, a node voltage, a line impedance, a transformer reactance, and the like corresponding to the port to be requested.
Step 306, receiving each target port data fed back by the controller, and allocating each target port data to a different thread of the resource server to perform port disconnection impedance calculation.
For the above steps, after the controller receives the calculation request from the client, the scheduling manager may call the corresponding data source from the data storage, and may also obtain the calculation resource in the resource server, and map the task of the disconnection impedance calculation to the resource server for calculation. For example, if there are N target lines, the disconnection impedance calculation tasks of the N target lines are mapped to the N threads of the resource server 104 in a one-to-one correspondence, where N is a positive integer. In one embodiment, the task of calculating the disconnection impedance of each target line may be mapped to each corresponding thread of the resource server 104 according to a Unified Device Architecture (CUDA).
In the above embodiment, the scheduling manager calls the port data of the power system network in the memory through the controller, so as to ensure that the same data source can be obtained in the calculation process. The port data are distributed to different threads of the resource server by the scheduling management machine to calculate the port disconnection impedance, a unified algorithm in the scheduling management machine can be obtained to calculate, the difference of results caused by different data sources or different calculation methods in the calculation process is avoided, the port disconnection impedance is calculated on each thread simultaneously, the calculation speed and the calculation efficiency are improved, the port disconnection impedance value obtained by calculation is stored in the memory, the calculation result can be directly obtained from the memory when the same calculation is carried out next time, repeated calculation is not needed, and the calculation speed and the calculation efficiency are further improved.
In one embodiment, the dispatch manager may perform port outage impedance calculations by allocating each target port data to a different thread of the resource server by: generating priority ranking according to the access authority of each control terminal; and according to the priority ranking, distributing the target port data to different threads of the resource server in sequence to calculate the port disconnection impedance.
In the above embodiment, the port disconnection impedance calculation may be performed by: acquiring a node admittance matrix corresponding to each port in the power system network, then performing LDU decomposition on the node admittance matrix, acquiring two target node information corresponding to a target port in each thread of a graphic processor according to target line information in the current thread, and calculating a point location vector between the two target nodes according to the two target node information. Wherein the point location vector is calculated by the following formula:
b={…0i-11i0i+1…0j-1-1j0j+1…}
the upper typeWherein b is a point location vector, b has n items in total, n is the node number day of the network node of the power system, i and j are the serial numbers of two target nodes in n nodes respectively, wherein the subscript of each numerical value in the b vector represents the item number of the numerical value in the b vector, such as Oi-1Is the i-1 term of the b vector, whose value is O, 1iIs the i-th term of the b vector, whose value is 1, Oi+1Is the i +1 th term of the b vector, whose value is O, 0j-1Is the j-1 term of the v vector, and has the value of O, -1jIs the jth term of the b vector, whose value is-1, 0j+1Is the j +1 th term of the b vector, whose value is O.
And in each thread of the resource server, processing according to the point location vector and the node admittance matrix after LDU decomposition to obtain the disconnection impedance of each target port. In one embodiment, the line break impedance of the target line is calculated by solving the following equation:
in the above formula, Yn×nIs a node admittance matrix, (Y)n×n)LDUFor the node admittance matrix after LDU decomposition, n is the node number days of all nodes of the power system network, X is the set vector and X is the set vectoriIs the ith term in the X vector, XjIs the jth term, Z, in the X vectori-jIs the line break impedance of the target line.
According to the principle, the task of the broken line impedance scanning calculation is mapped into the resource server to execute the following work: assuming that the network has m disconnected lines, m threads are required, each thread handling one port (corresponding to two nodes, head and tail). When private cloud computing is utilized, in the private cloud computing resources, all threads are synchronously conducted, and the disconnection impedance is computed according to the principle. And completing the line break impedance scanning until all nodes are exhausted. The calculated disconnect impedance value may also be returned to the client.
In the above embodiment, the scheduling manager calls the port data of the power system network in the memory through the controller, so as to ensure that the same data source can be obtained in the calculation process. The port data are distributed to different threads of the resource server by the scheduling management machine to calculate the port disconnection impedance, a unified algorithm in the scheduling management machine can be obtained to calculate, the difference of results caused by different data sources or different calculation methods in the calculation process is avoided, the port disconnection impedance is calculated on each thread simultaneously, the calculation speed and the calculation efficiency are improved, the port disconnection impedance value obtained by calculation is stored in the memory, the calculation result can be directly obtained from the memory when the same calculation is carried out next time, repeated calculation is not needed, and the calculation speed and the calculation efficiency are further improved.
In one embodiment, the method for calculating the disconnection impedance may further include the steps of: monitoring the calculation process of the resource server, and sending an information storage instruction and an information sending instruction to the resource server when monitoring the port disconnection impedance value obtained by calculation; the information storage instruction is used for indicating the resource server to store the port disconnection impedance value into a memory, and the information sending instruction is used for indicating the resource server to send the port disconnection impedance value to a corresponding control terminal.
In the above embodiment, the disconnection impedance value in the memory is a value obtained by the resource server after performing the disconnection impedance calculation, and the disconnection impedance value is stored in the memory, so that the calculation result can be directly obtained from the memory when the same calculation is performed next time, repeated calculation is not required, and the calculation speed and the calculation efficiency are further improved.
In the above embodiment, the scheduling manager calls the port data of the power system network in the memory through the controller, so as to ensure that the same data source can be obtained in the calculation process. The port data are distributed to different threads of the resource server by the scheduling management machine to calculate the port disconnection impedance, a unified algorithm in the scheduling management machine can be obtained to calculate, the difference of results caused by different data sources or different calculation methods in the calculation process is avoided, the port disconnection impedance is calculated on each thread simultaneously, the calculation speed and the calculation efficiency are improved, the port disconnection impedance value obtained by calculation is stored in the memory, the calculation result can be directly obtained from the memory when the same calculation is carried out next time, repeated calculation is not needed, and the calculation speed and the calculation efficiency are further improved.
It should be understood that, although the steps in the flowchart of fig. 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a disconnection impedance calculating apparatus including:
an obtaining module 402, configured to obtain an access right generated in the controller, and obtain information of each target port to be calculated according to the access right; the access authority is generated by the controller according to an access request sent by the control terminal;
a calling module 404, configured to send each piece of target port information to the controller, where each piece of target port information is used to instruct the controller to call each piece of corresponding target port data in the memory;
a calculating module 406, configured to receive each target port data fed back by the controller, and allocate each target port data to a different thread of the resource server to perform port disconnection impedance calculation.
For the specific definition of the disconnection impedance calculating device, reference may be made to the above definition of the disconnection impedance calculating method, which is not described herein again. The modules in the disconnection resistance calculation device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention are merely used for distinguishing similar objects, and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange a specific order or sequence order if allowed. It should be understood that the terms first, second, and third, as used herein, are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or otherwise described herein.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store the values of the disconnection impedances. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of calculating a disconnect impedance.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring access authority generated in the controller, and acquiring information of each target port to be calculated according to the access authority; the access authority is generated by the controller according to an access request sent by the control terminal;
sending each piece of target port information to the controller, wherein each piece of target port information is used for indicating the controller to call each piece of corresponding target port data in the memory;
and receiving the data of each target port fed back by the controller, and distributing the data of each target port to different threads of the resource server to calculate the port disconnection impedance.
In one embodiment, the processor, when executing the computer program, further performs the steps of: generating priority ranking according to the access authority of each control terminal; and according to the priority ranking, distributing the target port data to different threads of the resource server in sequence to calculate the port disconnection impedance.
In one embodiment, the processor, when executing the computer program, further performs the steps of: monitoring the calculation process of the resource server, and sending an information storage instruction and an information sending instruction to the resource server when monitoring the port disconnection impedance value obtained by calculation; the information storage instruction is used for indicating the resource server to store the port disconnection impedance value into a memory, and the information sending instruction is used for indicating the resource server to send the port disconnection impedance value to a corresponding control terminal.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring access authority generated in the controller, and acquiring information of each target port to be calculated according to the access authority; the access authority is generated by the controller according to an access request sent by the control terminal;
sending each piece of target port information to the controller, wherein each piece of target port information is used for indicating the controller to call each piece of corresponding target port data in the memory;
and receiving the data of each target port fed back by the controller, and distributing the data of each target port to different threads of the resource server to calculate the port disconnection impedance.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating priority ranking according to the access authority of each control terminal; and according to the priority ranking, distributing the target port data to different threads of the resource server in sequence to calculate the port disconnection impedance.
In one embodiment, the computer program when executed by the processor further performs the steps of: monitoring the calculation process of the resource server, and sending an information storage instruction and an information sending instruction to the resource server when monitoring the port disconnection impedance value obtained by calculation; the information storage instruction is used for indicating the resource server to store the port disconnection impedance value into a memory, and the information sending instruction is used for indicating the resource server to send the port disconnection impedance value to a corresponding control terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.