CN115438605A - Data processing method, data processing device, computer equipment and storage medium - Google Patents

Data processing method, data processing device, computer equipment and storage medium Download PDF

Info

Publication number
CN115438605A
CN115438605A CN202211003478.0A CN202211003478A CN115438605A CN 115438605 A CN115438605 A CN 115438605A CN 202211003478 A CN202211003478 A CN 202211003478A CN 115438605 A CN115438605 A CN 115438605A
Authority
CN
China
Prior art keywords
conductor
segmented
simulation
original
conductors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211003478.0A
Other languages
Chinese (zh)
Inventor
肖黎
张晶焯
陈龙
张繁
余广译
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202211003478.0A priority Critical patent/CN115438605A/en
Publication of CN115438605A publication Critical patent/CN115438605A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a data processing method, a data processing device, computer equipment and a storage medium. The method comprises the following steps: extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model; determining associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors; and generating a simulation observation file of the original conductor according to the initial position of the associated segmented conductor after the position sorting and the simulation observation data. By adopting the method, the related simulation observation data belonging to the original conductor can be quickly and accurately positioned from the simulation result.

Description

Data processing method, data processing device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, various types of electromagnetic field simulation software (such as CDEGS software) are gradually created, and the current electromagnetic field simulation software needs to segment an original conductor in a built circuit model, perform electromagnetic field simulation analysis based on the segmented conductor, and further output a corresponding simulation result.
Generally, the data size of the simulation result output by the electromagnetic field simulation software is large, for example, the data size includes the attribute information of the original conductor, the attribute information of the segmented conductor, the simulation result corresponding to the segmented conductor, and the like, and it is difficult to quickly and accurately locate the relevant simulation observation data belonging to the original conductor from the simulation result, and improvement is needed.
Disclosure of Invention
In view of the above, there is a need to provide a data processing method, an apparatus, a computer device and a readable storage medium for quickly and accurately positioning relevant simulation observation data of a segmented conductor associated with an original conductor in a circuit model from a simulation result with a large data volume.
In a first aspect, the present application provides a data processing method. The method comprises the following steps:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors;
and generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
In one embodiment, determining the associated segment conductors belonging to the original conductor from the simulated segment conductors according to the starting positions of the original conductor and the simulated segment conductors, and performing position ordering on the associated segment conductors includes:
determining the projection slope of the original conductor according to the initial position of the original conductor;
determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor;
and determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
In one embodiment, determining the associated segment conductors belonging to the original conductor from the simulated segment conductors according to the starting position and the projected slope of the original conductor and the starting position and the projected slope of the simulated segment conductors, and performing position ordering on the associated segment conductors comprises:
taking an original conductor as a reference conductor and taking a simulation segmented conductor as an alternative segmented conductor;
determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors;
updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor;
and taking the target segmented conductors of all times together as associated segmented conductors belonging to the original conductor, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of all times.
In one embodiment, extracting the starting position of the original conductor in the circuit model, the starting position of the simulated segmented conductor in the circuit model and the simulation observation data from the simulation result file of the circuit model containing the original conductor comprises:
respectively obtaining the initial position of an original conductor, the initial position of a simulation segmented conductor, search keywords corresponding to simulation observation data, and information extraction positions corresponding to the search keywords;
and according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulated segmented conductor in the circuit model and the simulated observation data from the simulation result file of the circuit model containing the original conductor.
In one embodiment, generating a simulation observation file of an original conductor according to the starting position of the associated segmented conductor after position sorting and simulation observation data includes:
carrying out data structure conversion on the initial position of the associated segmented conductor after position sequencing and the simulation observation data to obtain target file data of a target structure type;
and generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
In one embodiment, the method further comprises:
acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software;
and screening the simulation result file of the circuit model from the output data file according to the file type of the output data file.
In a second aspect, the present application further provides a data processing apparatus. The device includes:
the data extraction module is used for extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
the conductor determining module is used for determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors and sequencing the positions of the associated segmented conductors;
and the file generation module is used for generating a simulation observation file of the original conductor according to the initial position of the associated segmented conductor after the position sorting and the simulation observation data.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors;
and generating a simulation observation file of the original conductor according to the initial position of the associated segmented conductor after the position sorting and the simulation observation data.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated sectional conductors belonging to the original conductor from the simulated sectional conductors according to the initial position of the original conductor and the initial position of the simulated sectional conductors, and sequencing the positions of the associated sectional conductors;
and generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated sectional conductors belonging to the original conductor from the simulated sectional conductors according to the initial position of the original conductor and the initial position of the simulated sectional conductors, and sequencing the positions of the associated sectional conductors;
and generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
According to the data processing method, the data processing device, the computer equipment and the storage medium, the original conductor which is not segmented in the circuit model and the initial position of each simulation segmented conductor after conductor segmentation processing is carried out on the circuit model are extracted from the simulation result file of the circuit model, the simulation segmented conductor which belongs to each original conductor association is rapidly positioned according to the extracted information, namely the association segmented conductor, and then the simulation observation file which is related to the original conductor is generated based on the extracted simulation observation data and the initial position of the association segmented conductor of each original conductor. The application provides a solution for rapidly positioning each simulation segmented conductor belonging to an original conductor, namely an associated segmented conductor, based on the relationship between the initial position of the original conductor in a circuit model and the initial position of each simulation segmented conductor in the circuit model, and rapidly and accurately acquiring related simulation observation data of the associated segmented conductor belonging to the original conductor based on the solution according to the arrangement sequence corresponding to each associated segmented conductor, so as to obtain the related simulation observation data belonging to the original conductor, namely the data in a simulation observation file. Compared with the prior art, the method has the advantages that the simulation observation data of the original conductor is obtained through multiple mouse click operations or manual reading and analysis of long texts, and the efficiency and the accuracy are higher.
Drawings
FIG. 1 is a diagram of an application environment of a data processing method in one embodiment;
FIG. 2 is a flow diagram that illustrates a data processing method in one embodiment;
FIG. 3 is a flow diagram illustrating the determination of associated segmented conductors belonging to an original conductor and the positional ordering of the associated segmented conductors in one embodiment;
FIG. 4 is a schematic flow chart of extracting a start position of an original conductor in a circuit model, a start position of a simulated segmented conductor in the circuit model, and simulated observation data in one embodiment;
FIG. 5 is a schematic flow chart diagram that illustrates the generation of a simulated observation file of an original conductor, in one embodiment;
FIG. 6 is a schematic diagram illustrating a process for screening a simulation result file from output data of electromagnetic field simulation software in one embodiment;
FIG. 7 is a flow chart illustrating a data processing method according to another embodiment;
FIG. 8 is a block diagram showing the structure of a data processing apparatus according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in 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.
Before the embodiments of the present application are introduced, an application scenario of the present embodiment is described. The embodiment is applied to a scenario of performing electromagnetic field simulation on a pre-established circuit model based on electromagnetic field simulation software (such as CDEGS software), when the electromagnetic field simulation software executes a simulation task, a preset strategy is required to be adopted to segment part or all conductors (namely original conductors) in the circuit model to be simulated, the electromagnetic simulation task is executed based on the segmented conductors (namely simulated segmented conductors), and a graphical simulation result graph of the whole circuit model and a detailed record file covering all simulation processes and simulation results of the circuit model, namely a simulation result file, are output. However, for the user, since the user cannot know the conductor segmentation strategy of the electromagnetic field simulation software, that is, cannot know the corresponding relationship between the simulated segmented conductor and the original conductor, the user cannot quickly and intuitively know some simulation results to be observed corresponding to each original conductor in the circuit model in the face of the output result of the electromagnetic field simulation software. The simulation observation data of the original conductor is acquired by means of repeated mouse click operation or manual reading and analysis of the long text, and the efficiency and the accuracy are low. In addition, although the electromagnetic field simulation software can output the simulation result of the circuit model in a graphical mode, the imaging expression mode has the problem that specific data information cannot be visually seen. In order to solve the problem, the embodiments of the present application provide the following data processing method.
The data processing method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, the application environment includes a terminal 102 and a server 104, and the terminal 102 communicates with the server 104 through a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. Specifically, the method of this embodiment may be executed only by the server 104 in the application environment, may be executed only by the terminal 102 with strong computing power in the application environment, and may be executed by the terminal 102 and the server 104 interactively. For example, the terminal 102 may provide a simulation data observation interface interacting with a user, the user may input an absolute address of a simulation result file of a circuit model to be analyzed on the observation interface, the terminal 102 initiates a simulation result analysis request to the server 104 based on the absolute address of the simulation result file input by the user, the server 104 responds to the request, obtains the simulation result file of the circuit model from the data storage system according to the absolute address of the simulation result file, and extracts a starting position of an original conductor in the circuit model, and starting positions of simulation segmented conductors of the circuit model and simulation observation data in the circuit model, further determines an associated segmented conductor belonging to the original conductor and an arrangement order of the associated segmented conductors from the simulation segmented conductors according to a relationship between the starting position of the original conductor and the starting positions of the simulation segmented conductors, generates the simulation observation file terminal 102 of the original conductor according to the ordered associated segmented conductor and the simulation observation data, and displays the simulation observation file to the user by the terminal 102. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart televisions, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a data processing method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
s202, extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor.
The circuit model of this embodiment is an object to be subjected to electromagnetic field simulation, and is generally a model that is set up in advance by a user and needs to be subjected to electromagnetic field simulation. The conductor used when the user builds the circuit model is the original conductor.
The simulation result file of the circuit model is a long text file which is obtained by recording simulation result reports of all dimensions after electromagnetic field simulation processing is carried out on the circuit model by adopting electromagnetic field simulation software. For example, if the electromagnetic field simulation software is CDEGS software, the simulation result file may be all files output by the CDEGS software with the suffix name F09.
The simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model. Specifically, the electromagnetic field simulation software is obtained by performing segmentation processing on all or part of conductors in the circuit model according to a preset strategy before performing specific simulation processing on the circuit model. In general, the number of the simulated segmented conductors obtained by conducting the conductor segmentation process on the circuit model is multiple, and each simulated segmented conductor is a part of some original conductor.
The starting position of the original conductor may be the corresponding positions of the two ends of the original conductor in the circuit model, i.e. including the starting position and the ending position. The starting position of the simulated segmented conductor is the corresponding position of the two ends of the simulated segmented conductor in the circuit model, and also comprises a starting position and an ending position. It should be noted that the starting position of the original conductor and the starting position of the simulated segmented conductor are determined based on the same reference point, and the two starting positions can be represented by three-dimensional position coordinates (X, Y, Z).
The simulation observation data may be data that needs to be observed for the electromagnetic field simulation, and may include, but is not limited to: the current amplitude of the injected conductor section, the current angle of the injected conductor section, the longitudinal current amplitude of the inflow conductor section, the longitudinal current phase angle of the inflow conductor section, the longitudinal current amplitude of the outflow conductor section, the longitudinal current phase angle of the outflow conductor section, the leakage current amplitude of the conductor section, the leakage current phase angle of the conductor section, the rise amplitude of the conductor section to ground potential, the rise phase angle information of the conductor section to ground potential, the rise amplitude of the conductor section coating to ground potential, the rise phase angle information of the conductor section coating to ground potential, and the like. The method may be specifically determined according to actual observation requirements, and is not limited thereto. It should be noted that, when the electromagnetic field simulation software performs electromagnetic field simulation on the circuit, the electromagnetic field simulation software performs conductor segmentation on the circuit model and then executes the conductor segmentation, so that only simulation observation data corresponding to each simulation segmented conductor is recorded in the simulation result file, and the simulation observation data of the original conductor is not directly recorded.
Optionally, in this embodiment, there are many ways to extract the starting position of the original conductor in the circuit model, the starting position of the simulated segmented conductor in the circuit model, and the simulated observation data from the simulation result file containing the multi-dimensional information, which is not limited herein. For example, one possible implementation is: in the simulation result file, fields corresponding to the information to be extracted (i.e. the starting position of the original conductor, the starting position of the simulation segmented conductor, and the simulation observation data of the simulation segmented conductor) are located, and the corresponding information to be extracted is extracted from the corresponding fields. Another possible implementation is: the method comprises the steps of presetting regular expressions corresponding to information to be extracted (namely the initial position of an original conductor, the initial position of a simulation segmented conductor and simulation observation data of the simulation segmented conductor), and extracting the information to be extracted corresponding to each regular expression from a simulation result file in a regular expression matching mode. Yet another possible implementation is: keywords corresponding to information to be extracted (namely the initial position of the original conductor, the initial position of the simulation segmented conductor and simulation observation data of the simulation segmented conductor) are preset, and the information to be extracted corresponding to each keyword is extracted from the simulation result file in a keyword matching mode. Yet another possible implementation is: and inputting the simulation result file into a pre-trained information extraction model, wherein the information extraction model can analyze the initial position of the original conductor, the initial position of the simulation segmented conductor and the simulation observation data of the simulation segmented conductor in the simulation result file based on an algorithm during training and output the extracted information.
S204, determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
Wherein the associated segmented conductor is a simulated segmented conductor belonging to the original conductor, i.e. the associated segmented conductor belongs to a part of the original conductor. The associated segment conductors may be positionally ordered by arranging the associated segment conductors near the start position of the original conductor in front of the associated segment conductors and the associated segment conductors near the end position of the original conductor in the rear of the associated segment conductors.
One way to implement this embodiment is: and selecting at least two simulation segmented conductors which are positioned in the range of the starting position and the ending position of the original conductor and are sequentially connected end to end as associated segmented conductors belonging to the original conductor according to the starting position, namely the starting position and the ending position, of each original conductor in the circuit model, and using the end to end connection sequence as a position sequencing result of each associated segmented conductor.
Another implementation manner of this embodiment is: the initial positions of the original conductors in the circuit model and the initial positions of the simulated segmented conductors in the circuit model, which are extracted in the step S202, are input into a position analysis model trained in advance, and the position analysis model can output the associated segmented conductors belonging to the original conductors and the position sequencing results of the associated segmented conductors of the original conductors based on the relationship between the initial positions of the original conductors and the initial positions of the simulated segmented conductors.
And S206, generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
The simulation observation file of the original conductor may be a file corresponding to observation data for representing an electromagnetic simulation result of the original conductor.
Optionally, in this embodiment, a file generation function may be called, and for each original conductor, the start position of each associated segmented conductor and the simulation observation data are sequentially combined and analyzed according to the sorting result of the associated segmented conductor, so as to obtain the simulation observation file of each original conductor. Optionally, in this embodiment, a simulation observation file may be generated for each original conductor, or a simulation observation file may be generated for all the original conductors.
It should be noted that, compared with the simulation result file, the simulation observation file of the original conductor generated in this embodiment contains a large amount of information, which is simple and large, and is more convenient for the user to view the simulation observation data of the original conductor.
In the data processing method, original conductors which are not segmented in the circuit model and the initial positions of the simulation segmented conductors after conductor segmentation processing is carried out on the circuit model are extracted from the simulation result file of the circuit model, the simulation segmented conductors which belong to association of the original conductors, namely the association segmented conductors, are quickly positioned according to the extracted information, and the simulation observation files related to the original conductors are generated based on the extracted simulation observation data and the initial positions of the association segmented conductors of the original conductors. The method and the device have the advantages that based on the relationship between the initial position of the original conductor in the circuit model and the initial position of each simulation segmented conductor in the circuit model, each simulation segmented conductor, namely the associated segmented conductor, belonging to the original conductor is quickly positioned, and based on the solution of the corresponding arrangement sequence of each associated segmented conductor, the relevant simulation observation data of the associated segmented conductor belonging to the original conductor can be quickly and accurately acquired, so that the relevant simulation observation data belonging to the original conductor, namely the data in the simulation observation file, are obtained. Compared with the prior art, the method has the advantages that the simulation observation data of the original conductor is obtained through multiple mouse click operations or manual reading and analysis of long texts, and the efficiency and the accuracy are higher.
Optionally, in order to determine the associated segmented conductors belonging to the original conductor more accurately, in an embodiment, as shown in fig. 3, the step of determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the starting positions of the original conductor and the simulated segmented conductors, and performing position sorting on the associated segmented conductors includes:
s302, determining the projection slope of the original conductor according to the initial position of the original conductor.
Alternatively, since the starting position of the original conductor in this embodiment is represented by three-dimensional position coordinates, this step may be to first acquire the starting position (X1, Y1, Z1) and the ending position (X2, Y2, Z2) of the original conductor, and then calculate the slopes of the projections of the original conductor on the xy plane, the yz plane, and the xz plane as the projection slopes of the original conductor based on the starting position (X1, Y1, Z1) and the ending position (X2, Y2, Z2), respectively.
It should be noted that if the projection slope of the original conductor on a certain plane is calculated to be infinite, a uniform predetermined character (e.g., ∞) can be used instead of the representation.
S304, determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor.
Optionally, the manner of determining the projection slope of each simulated segmented conductor according to the starting position of each simulated segmented conductor is similar to the manner of determining the projection slope of the original conductor according to the starting position of the original conductor described in S302, and is not described herein again.
It should be noted that if the projection slope of the calculated simulated segment conductor on a certain plane is infinite, a uniform predetermined character (e.g., ∞) can be used instead of the representation.
S306, determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
Alternatively, this step may be based on the foregoing embodiment, and a projection slope is introduced to determine the associated segment conductors belonging to the original conductor, and the associated segment conductors are position-ordered. For example, for each original conductor in the circuit model, a plurality of simulation segmented conductors which are sequentially connected end to end and have the starting positions and the ending positions within the range of the starting positions and the ending positions of the original conductor and the projection slopes of which are the same as or similar to the projection slopes of the original conductor are selected as associated segmented conductors belonging to the original conductor, and the end to end connection sequence is used as the position sequencing result of each associated segmented conductor. The initial position and the projection slope of each original conductor in the circuit model, and the initial position and the projection slope of each simulated segmented conductor in the circuit model can be input into a position analysis model trained in advance, and the model can output the associated segmented conductors belonging to each original conductor and the position sequencing result of the associated segmented conductors of each original conductor based on the relationship between the initial position of each original conductor and the initial position of each simulated segmented conductor, and the relationship between the projection slope of each original conductor and the projection slope of each simulated segmented conductor.
In one embodiment, this step may be implemented by a process of determining, from the simulated segment conductors, associated segment conductors belonging to the original conductor according to the starting position and the projected slope of the original conductor and the starting position and the projected slope of the simulated segment conductors, and performing position ordering on the associated segment conductors: taking an original conductor as a reference conductor and taking a simulation segmented conductor as an alternative segmented conductor; determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors; updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor; and taking the target segmented conductors of all times together as associated segmented conductors belonging to the original conductor, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of all times.
Specifically, for each original conductor, it may be first used as a reference conductor, all the simulated segment conductors are used as alternative segment conductors, and then an alternative segment conductor whose starting position and projection slope are the same as those of the reference conductor is selected from the alternative segment conductors and used as the current target segment conductor, that is, the first associated segment conductor of the original conductor; and then, taking the current target segmented conductor as a reference conductor, and deleting the target segmented conductor from the alternative segmented conductors, thereby realizing the updating of the reference conductor and the alternative segmented conductors.
Then, based on the updated reference conductor and the updated candidate segment conductor, according to the manner described above, selecting a candidate segment conductor whose starting position and projection slope are the same as those of the reference conductor from the candidate segment conductors again, and using the candidate segment conductor as the target segment conductor of this time, that is, the second associated segment conductor of the original conductor, and so on until the ending position of the target segment conductor determined this time is the same as that of the original conductor. At this time, the target segment conductors determined at each time are collectively used as the associated segment conductors of the original conductor, and the determination sequence of the target segment conductors at each time can be used as the position sequence of the associated segment conductors corresponding to the target segment conductors, for example, the target segment conductor determined at the first time is the first associated segment conductor of the original conductor.
Optionally, in this embodiment, the target segmented conductors determined each time are stored in a preset list, then the target segmented conductors in the list are collectively used as the associated segmented conductors of the original conductor, and the arrangement sequence of the target segmented conductors in the preset list at each time is used as the position arrangement sequence of the associated segmented conductors corresponding to each target segmented conductor.
It should be noted that, since the projection slopes of the present embodiment are projection slopes projected onto the xy plane, the yz plane, and the xz plane, when it is determined that the projection slopes are the same or similar, it is necessary that the projection slopes of the three planes are all the same or similar.
In this embodiment, the associated segment conductors belonging to the original conductor and the position sorting results of the associated segment conductors are determined by introducing the starting positions and the projection slopes of the original conductor and the associated segment conductors, and compared with the determination only based on the starting positions, the accuracy of determining the associated segment conductors and the position sorting results thereof can be greatly improved. The method provides guarantee for the subsequent rapid and accurate generation of the simulation observation file of the original conductor.
Optionally, in order to extract the starting positions of the original conductor and the associated segment conductor and the simulation observation data of the associated segment conductor more accurately, in an embodiment, as shown in fig. 4, the step of extracting the starting position of the original conductor in the circuit model from the simulation result file of the circuit model containing the original conductor and the process of extracting the starting position of the simulated segment conductor in the circuit model and the simulation observation data include:
s402, respectively obtaining the initial position of the original conductor, the initial position of the simulation segmented conductor, search keywords corresponding to the simulation observation data, and information extraction positions corresponding to the search keywords.
The search keywords may be keywords of each preset information to be extracted (i.e., the initial position of the original conductor, the initial position of the simulated segmented conductor, and the simulated observation data of the simulated segmented conductor) in an indication statement corresponding to the simulated result model, and in order to ensure the accuracy of the search result, the search keywords corresponding to each information to be extracted may include a search start keyword and a search end keyword. And the number of the corresponding search starting keywords can be one or more and the number of the search ending keywords can also be one or more for each information to be extracted. The information extraction position corresponding to the search keyword may represent a position where information to be extracted appears after the search keyword, and specifically, the corresponding information extraction position is usually set for the search keyword, and the corresponding information extraction position is not required to be set for the search keyword.
Optionally, in order to distinguish different types of information to be extracted, in this embodiment, incompletely identical keywords may be set for the different types of information to be extracted, and the selection of the keywords may be determined by the instruction statement of the information to be extracted in the simulation result file.
For example, the start search keyword corresponding to the start position of the original conductor may be a key position header word in the position indication statement of the original conductor, such as a first definition word (CON), IMPEDANCE (impendence), and start point (ORIGIN); ending the search keyword may include: calculation result (= composition RESULTS =); the information extraction position corresponding to the search start keyword may be four lines of text after the search keyword appears. The search starting keyword corresponding to the starting position of the simulation segmented conductor can be a key position head vocabulary in a position indication statement of the simulation segmented conductor, such as longitude and latitude COORDINATES (COORDINATES), segmentation (SEGMENT) and RADIUS (RADIUS); ending the search keyword may include: follower (foldingnode), node (NODES), and PSEUDO-node (PSEUDO-NODES); the information extraction position corresponding to the search start keyword may be four lines of text after the search keyword appears. The start search key corresponding to the simulated observation data of the simulated segmented conductor may be a key data header in an observation data indication statement of the simulated segmented conductor, such as a second definitional word (ORI) and a CURRENT (CURRENT); ending the search keyword may include: third definitional words (SEG) and ORIGINs (ORIGIN); the information extraction position corresponding to the search start keyword may be six lines of text after the search start keyword appears.
Optionally, in this embodiment, the simulation result file may be a simulation result file that performs information extraction as needed, and search keywords (including a start search keyword and an end search keyword) corresponding to the start position of the original conductor and information extraction positions corresponding to the search keywords are respectively obtained from a keyword library that records various types of information to be extracted; acquiring search keywords (including a start search keyword and an end search keyword) corresponding to the initial position of the simulation segmented conductor and information extraction positions corresponding to the search keywords; and acquiring search keywords (including a start search keyword and an end search keyword) corresponding to the simulation observation data of the simulation segmented conductor and information extraction positions corresponding to the search keywords.
It should be noted that, in this embodiment, the same type of information to be extracted (such as any one of the starting position of the original conductor, the starting position of the simulated segmented conductor, and the simulated observation data of the simulated segmented conductor) may be the same or different in the simulation result files of different electromagnetic field simulation software, and the corresponding search keywords may be the same or different.
S404, according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from the simulation result file of the circuit model containing the original conductor.
Optionally, in this embodiment, for each type of data to be extracted (i.e., any one of the start position of the original conductor, the start position of the simulated segmented conductor, and the simulated observation data of the simulated segmented conductor), the type of data to be extracted is preliminarily extracted according to the start search keyword and the corresponding information extraction position in the search keywords, and then the finally required data to be extracted is locked from the preliminarily extracted data to be extracted according to the end search keyword of the type of data to be extracted.
Specifically, each line of text information in the simulation result file of the circuit model may be sequentially read through a text reading function (readlines), for example, after reading a character "/n" each time the text reading function is called, it is considered that reading of one line is completed, and the text information read this time is obtained as the text information of the current line.
After reading the text information of the current line, inputting the text information of the current line and the search starting keyword corresponding to the initial position of the original conductor into a keyword search function (re.search), running the function to give out whether the text information of the line contains the search starting keyword corresponding to the initial position of the original conductor, if not, indicating that the text information of the current line does not contain the information to be extracted, and executing the operation of reading the text information of the next line. If the analysis result contains the key word, continuing to read the text at the information extraction position corresponding to the starting search key through a text reading function (readlines) to be used as a text to be analyzed, inputting the text to be analyzed and the end search key word corresponding to the starting position of the original conductor into a key word search function (re.search), operating the function, giving the position of the end search key word corresponding to the starting position of the original conductor in the text to be analyzed, and taking the text positioned before the position of the end search key word in the text to be analyzed as the starting position of the original conductor. Optionally, when there are a plurality of original conductors, in order to distinguish the original conductors, the extracted information may include: the number of the original conductor, and its corresponding starting position. Optionally, the number of the extracted original conductor and its corresponding start position may be recorded in the original conductor position list. It should be noted that, for the subsequent unread text in the simulation result file, the repeated processing is performed according to the above introduction manner, so as to ensure that the serial numbers and the start positions of all the recorded original conductors are extracted from the simulation result file.
After reading the text information of the current line, in addition to performing the above operation of extracting the start position of the original conductor, the start position of the simulated segmented conductor in the circuit model needs to be extracted in a similar manner. Specifically, the text information of the current line and the search start keyword corresponding to the start position of the simulation segmented conductor may be input into a keyword search function (re. If the result of the analysis is contained, continuing reading the text at the information extraction position corresponding to the starting search key as a text to be analyzed through a text reading function (readlines), inputting the text to be analyzed and the end search key word corresponding to the starting position of the simulation segmented conductor into a key word search function (re.search), operating the function, giving the position of the end search key word corresponding to the starting position of the simulation segmented conductor in the text to be analyzed, and taking the text in the text to be analyzed before the position of the end search key word as the starting position of the simulation segmented conductor. Optionally, since the number of the simulation segment conductors in this embodiment is multiple, in order to distinguish the simulation segment conductors, the extracted information may include: the number of the segment conductor is simulated, and the corresponding starting position is obtained. It should be noted that, for the subsequent unread text in the simulation result file, the repeated processing is performed according to the above introduction manner, so as to ensure that the serial numbers and the start positions of all the recorded simulation segmented conductors are extracted from the simulation result file.
After reading the text information of the current line, in addition to performing the above operations of extracting the start position of the original conductor and extracting the start position of the simulated segmented conductor, it is also necessary to extract simulated observation data of the simulated segmented conductor in a similar manner. Specifically, the text information of the current line and the start search keyword corresponding to the simulation observation data of the simulation segmented conductor may be input into a keyword search function (re.search), and the function is run, so that whether the text information of the line contains the start search keyword corresponding to the simulation observation data of the simulation segmented conductor or not can be given, and if not, it is indicated that the text information of the current line does not contain the information to be extracted, and the operation of reading the text information of the next line is performed. If the simulation segmented conductor simulation observation data exists, continuing reading the text at the information extraction position corresponding to the starting search key as the text to be analyzed through a text reading function (readlines), inputting the text to be analyzed and the end search key word corresponding to the simulation observation data of the simulation segmented conductor into a key word search function (re.researsh), operating the function, giving the position of the end search key word corresponding to the simulation observation data of the simulation segmented conductor appearing in the text to be analyzed, and taking the text positioned before the position of the end search key word in the text to be analyzed as the simulation observation data of the simulation segmented conductor. Optionally, since the number of the simulation segmented conductors in this embodiment is multiple, in order to distinguish the simulation segmented conductors, the extracted information may include: the serial number of the simulation subsection conductor and the corresponding simulation observation data. It should be noted that, for the subsequent unread text in the simulation result file, the repeated processing is performed according to the above introduction manner, so as to ensure that the serial numbers and simulation observation data of all the simulation segmented conductors recorded in the simulation result file are extracted.
Optionally, in this embodiment, the number of the extracted simulation segmented conductor and the start position corresponding to the number may be recorded in a simulation segmented conductor position list, the number of the extracted simulation segmented conductor and the simulation observation data corresponding to the number are recorded in a simulation segmented conductor observation data list, and then the data recorded in the two lists are matched and combined, that is, the data in the two lists are combined according to the number of the simulation segmented conductor, for example, the start position of the simulation segmented conductor corresponding to the same number and the simulation observation data are recorded in the same list in an associated manner.
In this embodiment, the initial position of the original conductor, the initial position of the simulated segmented conductor, and the simulated observation data of the simulated segmented conductor are extracted from the simulation result file by setting different search keywords for different information to be extracted (the initial position of the original conductor, the initial position of the simulated segmented conductor, and the simulated observation data of the simulated segmented conductor) and the corresponding information extraction positions. The accuracy and the high efficiency of information extraction are greatly improved. The method provides guarantee for the subsequent rapid and accurate generation of the simulation observation file of the original conductor.
In order to ensure that the finally generated simulated observation file of the original conductor meets the viewing requirements of the user and is convenient for subsequent searching, in an embodiment, as shown in fig. 5, the step of generating the simulated observation file of the original conductor according to the starting position and the simulated observation data of the associated segmented conductor after position sorting includes:
and S502, performing data structure conversion on the initial position of the associated segmented conductor after position sorting and the simulation observation data to obtain target file data of a target structure type.
The target structure type may be preset according to a display requirement of the simulation observation file, for example, if a simulation observation file of a form type is required, the target structure type at this time is a form data structure type.
Optionally, in this embodiment, according to the position sorting condition of the multiple associated segment conductors of each original conductor, the starting positions and the simulation observation data of the multiple associated segment conductors of each original conductor are sequentially converted from the current structure type to the target result type, and the starting positions and the simulation observation numbers of the multiple associated segment conductors of each original conductor after conversion are used as target file data.
For example, the starting positions of the plurality of associated segment conductors of each original conductor of the F09 structure type and the simulation observation data may be used as input of a structure conversion function (pandas. Dataframe), and the function is run, so that the data structure types of the plurality of associated segment conductors of each original conductor and the simulation observation data are converted from the F09 structure type to a target structure type, such as a table data structure type, and the obtained starting positions of the plurality of associated segment conductors of each original conductor of the table data structure type and the simulation observation data are used as target file data.
S504, according to the target file data, a simulation observation file of the original conductor is generated under a preset storage address.
The preset storage address can be preset according to the storage requirement of the simulation observation file.
Optionally, in this embodiment, the target file data generated in S502 may be stored in a preset storage address in a text form, so that the simulation observation file of the original conductor is generated at the preset storage address. For example, the preset memory address and the target file data may be input into a file storage function (such as a pandas excel writer), and the file storage function is executed, that is, the simulated observation file of the original conductor is generated at the preset memory address, and the data structure type of the simulated observation file written to the original conductor at the preset memory address is the target structure type.
In the embodiment, by introducing the data structure conversion and presetting the storage address, the simulation observation file of the original conductor is stored according to the user-defined data structure and the storage address, and the flexibility of generating the simulation observation file of the original conductor is improved.
Optionally, the electromagnetic field simulation software outputs a plurality of types of data, and in an embodiment, as shown in fig. 6, on the basis of the above embodiment, a concept for quickly screening a simulation result file from output data of the electromagnetic field simulation software is provided, which includes:
s602, acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software.
Wherein, the data output address of the electromagnetic field simulation software may be an address of an output data file storing the electromagnetic field simulation software, and the data output address may be determined in advance based on the configuration parameters of the electromagnetic field simulation software.
Optionally, in this embodiment, based on a data output address of the electromagnetic field simulation software, the storage space corresponding to the data output address is accessed, and all data in the storage space is acquired as an output data file after the electromagnetic field simulation software simulates the circuit model. For example, the data output address of the electromagnetic field simulation software may be input to a file reading function (os.listdir), and a file list (i.e., a project file directory list) of names and absolute addresses of all files included in the data output address may be obtained by running the function, and the obtained file may be used as an output data file after the electromagnetic field simulation software simulates the circuit model.
It should be noted that the types of the output data file in the present embodiment are many, and may include, but are not limited to: one or more of an image type, a text type, an audio type, and a video type. For each type, it can be further divided into a plurality of sub-types, for example, the text type can be further divided into: table (xlsx) type, report (F09) type, comma separated value (csv) type, and the like.
And S604, screening the simulation result file of the circuit model from the output data file according to the file type of the output data file.
Optionally, in this embodiment, the file types of the output data files obtained in step S602 may be analyzed, and then the output data files belonging to the file types corresponding to the simulation result file are selected from the output data files, and used as the simulation result files for screening the circuit model from the output data files. For example, since the text type of the simulation result file of the circuit model is the report (F09) type, the present embodiment may be to screen the output data file of which the file type is the F09 type from the output data file as the simulation result file of the circuit model. Optionally, if the output data file obtained in S602 is a file list including names and absolute addresses of all files, in this step, the simulation result file of the circuit model may be screened from the file list, and retained, and other types of files may be deleted from the file list, so as to obtain a file list including only the simulation result file of the circuit model.
Specifically, one implementation manner of determining the file type of each output data file is as follows: and checking the attribute information of each output data file, and taking the file type recorded in the attribute information as the file type of the corresponding output data file. Another way to implement is: the file types of the respective data files are distinguished by suffixes of file names. For example, the file type corresponding to the file with the file name suffix of.xlsx is a table type, and the file type corresponding to the file with the file name suffix of.f 09 is a report type; the file type corresponding to the file with the csv suffix is comma separated value type and the like.
It should be noted that the simulation result file of the circuit model screened in this step is a simulation result file of the circuit model including the original conductor.
In this embodiment, a simulation result file belonging to a circuit model is screened from a large number of output data files based on the file type of the output data file of the electromagnetic field simulation software. By screening the files based on the file types, the screening efficiency and accuracy are greatly improved, and a guarantee is provided for the subsequent generation of the simulation observation files of the original conductors quickly and accurately.
In one embodiment, a data processing method of the present embodiment is an alternative. As shown in fig. 7, the method includes the steps of:
and S701, acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software.
S702, according to the file type of the output data file, a simulation result file of the circuit model is screened from the output data file.
S703, respectively obtaining the initial position of the original conductor, the initial position of the simulation segmented conductor, the search keywords corresponding to the simulation observation data, and the information extraction positions corresponding to the search keywords.
S704, according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from the simulation result file of the circuit model containing the original conductor.
S705, determining the projection slope of the original conductor according to the initial position of the original conductor.
S706, determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor.
And S707, determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
Optionally, the specific implementation manner of this step may be: for each original conductor, taking the original conductor as a reference conductor and taking each simulated segmented conductor as an alternative segmented conductor; determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors; updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor; and taking the target segmented conductors of each time as associated segmented conductors belonging to the original conductor together, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of each time.
S708, performing data structure conversion on the initial positions of the associated segmented conductors after position sorting and simulation observation data to obtain target file data of a target structure type;
and S709, generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
For the specific processes of S701 to S709, reference may be made to the description of the method embodiments, which implement the principle and the technical effect similar to each other, and further description is omitted here.
It should be noted that the data processing method described in the above embodiments of the present application can be implemented by any computer programming language, such as Python language.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a data processing apparatus for implementing the above-mentioned data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme and the beneficial effects described in the method, so the specific limitations in one or more embodiments of the data processing device provided below may refer to the limitations on the data processing method provided above, and details are not described herein again.
In one embodiment, as shown in fig. 8, there is provided a data processing apparatus including: a data extraction module 801, a conductor determination module 802, and a file generation module 803, wherein:
a data extraction module 801, configured to extract, from a simulation result file of a circuit model including an original conductor, a starting position of the original conductor in the circuit model, a starting position of a simulated segmented conductor in the circuit model, and simulated observation data; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
a conductor determining module 802, configured to determine, according to the starting position of the original conductor and the starting position of the simulated segmented conductor, associated segmented conductors belonging to the original conductor from the simulated segmented conductors, and perform position sorting on the associated segmented conductors;
the file generating module 803 is configured to generate a simulation observation file of the original conductor according to the start position and the simulation observation data of the associated segmented conductor after the position sorting.
In one embodiment, the conductor determination module 802 includes:
the first slope unit is used for determining the projection slope of the original conductor according to the initial position of the original conductor;
the second slope unit is used for determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor;
and the conductor determining unit is used for determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the starting position and the projection slope of the original conductor and the starting position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
In one embodiment, the conductor determining unit is specifically configured to:
taking an original conductor as a reference conductor and taking a simulation segmented conductor as an alternative segmented conductor;
determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors;
updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor;
and taking the target segmented conductors of each time as associated segmented conductors belonging to the original conductor together, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of each time.
In one embodiment, the data extraction module 801 includes:
the first extraction unit is used for respectively acquiring the initial position of the original conductor, the initial position of the simulation segmented conductor, a search keyword corresponding to the simulation observation data and an information extraction position corresponding to the search keyword;
and the second extraction unit is used for determining the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor according to the search keyword and the information extraction position corresponding to the search keyword.
In one embodiment, the file generation module 803 comprises:
the structure conversion unit is used for carrying out data structure conversion on the initial positions of the associated segmented conductors after position sequencing and the simulation observation data to obtain target file data of a target structure type;
and the file generation unit is used for generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
In one embodiment, the data processing apparatus 8 may further include:
the text acquisition module is used for acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software;
and the file screening module is used for screening the simulation result file of the circuit model from the output data file according to the file type of the output data file.
The various modules in the data processing apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of 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.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface 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 includes a non-volatile 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 may be used to store simulation result file data of a circuit model containing the original conductors. 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 data processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 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 and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors;
and generating a simulation observation file of the original conductor according to the initial position of the associated segmented conductor after the position sorting and the simulation observation data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the projection slope of the original conductor according to the initial position of the original conductor; determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor; and determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
In one embodiment, the processor, when executing the computer program, further performs the steps of: taking an original conductor as a reference conductor and taking a simulation segmented conductor as an alternative segmented conductor; determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors; updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor; and taking the target segmented conductors of each time as associated segmented conductors belonging to the original conductor together, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of each time.
In one embodiment, the processor, when executing the computer program, further performs the steps of: respectively acquiring the initial position of an original conductor, the initial position of a simulation segmented conductor, search keywords corresponding to simulation observation data and information extraction positions corresponding to the search keywords; and according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulated segmented conductor in the circuit model and the simulated observation data from the simulation result file of the circuit model containing the original conductor.
In one embodiment, the processor, when executing the computer program, further performs the steps of: carrying out data structure conversion on the initial position of the associated segmented conductor after position sorting and the simulation observation data to obtain target file data of a target structure type; and generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software; and screening a simulation result file of the circuit model from the output data file according to the file type of the output data file.
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:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated sectional conductors belonging to the original conductor from the simulated sectional conductors according to the initial position of the original conductor and the initial position of the simulated sectional conductors, and sequencing the positions of the associated sectional conductors;
and generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the projection slope of the original conductor according to the initial position of the original conductor; determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor; and determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
In one embodiment, the computer program when executed by the processor further performs the steps of: taking an original conductor as a reference conductor and taking a simulation segmented conductor as an alternative segmented conductor; determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors; updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor; and taking the target segmented conductors of each time as associated segmented conductors belonging to the original conductor together, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of each time.
In one embodiment, the computer program when executed by the processor further performs the steps of: respectively obtaining the initial position of an original conductor, the initial position of a simulation segmented conductor, search keywords corresponding to simulation observation data, and information extraction positions corresponding to the search keywords; and according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulated segmented conductor in the circuit model and the simulated observation data from the simulation result file of the circuit model containing the original conductor.
In one embodiment, the computer program when executed by the processor further performs the steps of: carrying out data structure conversion on the initial position of the associated segmented conductor after position sorting and the simulation observation data to obtain target file data of a target structure type; and generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software; and screening a simulation result file of the circuit model from the output data file according to the file type of the output data file.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
extracting the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors;
and generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the projection slope of the original conductor according to the initial position of the original conductor; determining the projection slope of the simulation segmental conductor according to the initial position of the simulation segmental conductor; and determining the associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated segmented conductors, and sequencing the positions of the associated segmented conductors.
In one embodiment, the computer program when executed by the processor further performs the steps of: taking an original conductor as a reference conductor and taking a simulation segmented conductor as an alternative segmented conductor; determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors; updating the reference conductor and the alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor; and taking the target segmented conductors of each time as associated segmented conductors belonging to the original conductor together, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of each time.
In one embodiment, the computer program when executed by the processor further performs the steps of: respectively acquiring the initial position of an original conductor, the initial position of a simulation segmented conductor, search keywords corresponding to simulation observation data and information extraction positions corresponding to the search keywords; and according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor.
In one embodiment, the computer program when executed by the processor further performs the steps of: carrying out data structure conversion on the initial position of the associated segmented conductor after position sorting and the simulation observation data to obtain target file data of a target structure type; and generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software; and screening a simulation result file of the circuit model from the output data file according to the file type of the output data file.
It should be noted that the simulation structure files referred to in this application (including but not limited to the starting position of the original conductor, the starting position of the simulated segmented conductor, and the simulated observation data) are all data that are fully authorized by all parties.
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 related to 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, databases, or other media used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
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 examples 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 present application. 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 application shall be subject to the appended claims.

Claims (10)

1. A method of data processing, the method comprising:
extracting a starting position of an original conductor in a circuit model, a starting position of a simulation segmented conductor in the circuit model and simulation observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
determining associated segmented conductors belonging to the original conductor from the simulated segmented conductors according to the initial positions of the original conductor and the simulated segmented conductors, and sequencing the positions of the associated segmented conductors;
and generating a simulation observation file of the original conductor according to the initial position of the associated segmented conductor after the position sorting and the simulation observation data.
2. The method of claim 1, wherein the determining associated segment conductors belonging to the original conductor from the simulated segment conductors according to the starting positions of the original conductor and the simulated segment conductors and the position ordering of the associated segment conductors comprises:
determining the projection slope of the original conductor according to the initial position of the original conductor;
determining the projection slope of the simulation segmented conductor according to the initial position of the simulation segmented conductor;
and determining associated sectional conductors belonging to the original conductor from the simulated sectional conductors according to the initial position and the projection slope of the original conductor and the initial position and the projection slope of the simulated sectional conductors, and sequencing the positions of the associated sectional conductors.
3. The method of claim 2, wherein determining and position ordering associated segment conductors from the simulated segment conductors that belong to the original conductor according to the starting position and projected slope of the original conductor and the starting position and projected slope of the simulated segment conductors comprises:
taking the original conductor as a reference conductor and taking the simulated segmented conductor as an alternative segmented conductor;
determining the current target segmented conductor from the alternative segmented conductors according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductors;
updating a reference conductor and an alternative segmented conductor according to the current target segmented conductor, and returning to execute the operation of determining the current target segmented conductor from the alternative segmented conductor according to the initial position and the projection slope of the reference conductor and the initial position and the projection slope of the alternative segmented conductor until the end position of the current target segmented conductor is the same as the end position of the original conductor;
and taking the target segmented conductors of all times together as associated segmented conductors belonging to the original conductor, and sequencing the positions of the associated segmented conductors according to the determined sequence of the target segmented conductors of all times.
4. The method of claim 1, wherein said extracting from a simulation results file containing a circuit model of original conductors, starting locations of the original conductors in the circuit model, starting locations of simulated segmented conductors in the circuit model, and simulated observation data, comprises:
respectively acquiring the initial position of an original conductor, the initial position of a simulation segmented conductor, search keywords corresponding to simulation observation data and information extraction positions corresponding to the search keywords;
and according to the search keyword and the information extraction position corresponding to the search keyword, determining the initial position of the original conductor in the circuit model, the initial position of the simulated segmented conductor in the circuit model and simulated observation data from a simulation result file of the circuit model containing the original conductor.
5. The method of claim 1, wherein generating a simulated observation file of the original conductor from the position-ordered starting positions and simulated observation data of the associated segmented conductors comprises:
carrying out data structure conversion on the initial position of the associated segmented conductor after position sorting and the simulation observation data to obtain target file data of a target structure type;
and generating a simulation observation file of the original conductor under a preset storage address according to the target file data.
6. The method according to any one of claims 1 to 5, further comprising:
acquiring an output data file after the electromagnetic field simulation software simulates the circuit model according to the data output address of the electromagnetic field simulation software;
and screening the simulation result file of the circuit model from the output data file according to the file type of the output data file.
7. A data processing apparatus, characterized in that the apparatus comprises:
the data extraction module is used for extracting the initial position of the original conductor in the circuit model, the initial position of the simulated segmented conductor in the circuit model and simulated observation data from a simulation result file of the circuit model containing the original conductor; the simulation segmented conductor is obtained by conducting conductor segmentation on the circuit model in the process of simulating the circuit model;
a conductor determining module, configured to determine, according to a start position of the original conductor and a start position of the simulated segmented conductor, an associated segmented conductor belonging to the original conductor from the simulated segmented conductor, and perform position sorting on the associated segmented conductor;
and the file generation module is used for generating a simulation observation file of the original conductor according to the initial position and the simulation observation data of the associated segmented conductor after the position sorting.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202211003478.0A 2022-08-19 2022-08-19 Data processing method, data processing device, computer equipment and storage medium Pending CN115438605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211003478.0A CN115438605A (en) 2022-08-19 2022-08-19 Data processing method, data processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211003478.0A CN115438605A (en) 2022-08-19 2022-08-19 Data processing method, data processing device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115438605A true CN115438605A (en) 2022-12-06

Family

ID=84242334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211003478.0A Pending CN115438605A (en) 2022-08-19 2022-08-19 Data processing method, data processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115438605A (en)

Similar Documents

Publication Publication Date Title
CN110134965A (en) Method, apparatus, equipment and computer readable storage medium for information processing
CN117332766A (en) Flow chart generation method, device, computer equipment and storage medium
CN108228611B (en) Document information copying method and device
CN115438605A (en) Data processing method, data processing device, computer equipment and storage medium
US20150006578A1 (en) Dynamic search system
CN116541454B (en) Event configuration method, device, computer equipment and storage medium
CN117033242A (en) Test data generation method, device, computer equipment and storage medium
CN116011380A (en) Cable connection diagram generation method, device, computer equipment and storage medium
CN117130909A (en) Test analysis method, apparatus, device, storage medium, and program product
CN118113595A (en) Test case generation method, device, computer equipment and storage medium
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN116880852A (en) Code data checking method and device based on machine learning and computer equipment
CN117033172A (en) Test data processing method, apparatus, device, storage medium and program product
CN116049009A (en) Test method, test device, computer equipment and computer readable storage medium
CN116010256A (en) Test data generation method, device, equipment and storage medium
CN115118616A (en) Display result testing method and device, computer equipment and storage medium
CN117435185A (en) Code generation method, device, computer equipment and storage medium
CN116094770A (en) Data consistency verification method, device, system and computer equipment
CN118035423A (en) Information query method, device, computer equipment and storage medium
CN117609538A (en) Model retrieval method, device, equipment and medium based on three-dimensional model characteristics
CN115146104A (en) Audio distribution information acquisition method, computer device, and computer program product
CN117290540A (en) Song recommendation model training method, song recommendation method, device and storage medium
CN117453561A (en) Test script calling method, device, computer equipment and storage medium
CN116882008A (en) Substation building information model generation method and device based on data driving
CN117540915A (en) Big data technology-based selection scheme generation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination