Disclosure of Invention
Aiming at the problem of large computing time and resource consumption in the existing industrial simulation computing, the invention aims to provide a residual error curve data filtering and screening scheme, so that the computing data volume is reduced, and a large amount of time and resources are saved.
In order to achieve the above object, a first aspect of the present invention provides a residual curve data filtering and screening method, including:
(1) The data is filtered, and the data is filtered,
separating residual data from the acquired data;
(2) The data is screened out, and the data is filtered out,
screening out various residual error values in the iteration step range according to the iteration step range aiming at the separated residual error data;
(3) The data is divided into blocks, and the data is divided into blocks,
partitioning according to the total amount of data to form a plurality of data blocks to be processed;
(4) The value of the data block is calculated,
regarding each data block determined in the step (3), taking the iteration step of the first data point of each data block as the abscissa value of the data block, and taking the point with the maximum absolute value in each data block as the ordinate value of the data block;
(5) The result is returned back to the server in the form of a file,
and (4) returning the numerical values of all the data blocks based on the horizontal and vertical coordinates determined in the step (4).
Further, different data filtering modes are matched for different output data in the step (1).
Further, when the data is filtered in step (2), firstly, the processing range of the original data needs to be determined, and then the required data is filtered based on the determined processing range of the original data.
Furthermore, when the data is blocked in the step (3),
if the screened total number N of the iterative steps is less than or equal to N, dividing the data into N data blocks, wherein each block comprises data of one iterative step;
if the screened total number N > of the iterative steps needs to be divided into N blocks, dividing the data into N data blocks, wherein the mth data block contains N m And (5) iteration step data.
In order to achieve the above object, a second aspect of the present invention provides a computer-readable storage medium having a program stored thereon, where the program is executed by a processor to implement the steps of the above residual curve data filtering and screening method.
In order to achieve the above object, a third aspect of the present invention provides a processor for executing a program, where the program is executed to perform the steps of the above residual curve data filtering and screening method.
In order to achieve the above object, a fourth aspect of the present invention provides a terminal device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, where the program code is loaded and executed by the processor to implement the steps of the above residual curve data filtering and screening method.
In order to achieve the above object, a fifth aspect of the present invention provides a computer program product adapted to perform the steps of the above residual curve data filtering and screening method when executed on a data processing apparatus.
The residual curve data filtering and screening scheme provided by the invention can realize the simplification of data generated by calculation of some common simulation software, and can ensure that the simplified curve has the same shape as the original curve.
The residual curve data filtering and screening scheme provided by the invention greatly reduces the data volume after simplifying the original data generated by the simulation software calculation compared with the original data, and can save a large amount of time and resources when a curve is drawn on equipment which needs network transmission or has a tense memory.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below by combining the specific drawings.
Aiming at the problems of low calculation efficiency and high resource consumption caused by large calculation data amount in the existing industrial simulation calculation process, the invention provides a residual curve data filtering and screening scheme to simplify the original data generated by the simulation software, so that the calculation data amount can be reduced in reply, the calculation efficiency is improved, and simultaneously the simplified curve and the original curve can be ensured to have the same shape.
Accordingly, the residual curve data filtering and screening scheme provided by the invention is mainly realized by the mutual cooperation of 5 functional steps of data filtering, data screening, data blocking, data block value calculation and result return.
Referring to fig. 1, the specific processing flow of the residual curve data filtering and screening scheme is as follows:
step (1): filtering data;
original data generated by simulation software calculation is filtered, and residual data is separated out.
Step (2): screening data;
and (2) screening out various residual error numerical values in the iteration step range according to the iteration step range aiming at the residual error data separated in the step (1).
And (3): data is partitioned;
and partitioning according to the total amount of the data to form a plurality of data blocks to be processed.
And (4): calculating the value of the data block;
and (4) regarding each data block determined in the step (3), taking the iteration step of the first data point of each data block as the abscissa value of the data block, and taking the point with the maximum absolute value in each data block as the ordinate value of the data block.
And (5): returning a numerical value;
and (4) returning the numerical values of all the data blocks based on the horizontal and vertical coordinates determined in the step (4) for drawing a residual error curve.
Specific embodiments of the residual curve data filtering and screening scheme provided by the present invention are further described below.
Specifically, when the residual curve data filtering and screening scheme is implemented, in the step (1) of the scheme, a corresponding data filtering algorithm is constructed in advance according to different software and is stored in a corresponding database in advance aiming at the characteristic that data output by different software has a large difference when data filtering is performed.
According to the scheme, for the acquired data, firstly, the data is analyzed to determine the software characteristic information for outputting the data, the corresponding data filtering algorithm is called from the database based on the determined software characteristic information, and finally, the acquired data is filtered through the called filtering algorithm to separate out corresponding residual data.
In the scheme, when data screening is performed on residual data separated in the step (1) in the step (2), an iteration step range is determined at first.
By way of example, where an iterative step range is determined, it may be supported that the range of iterative steps is specified, and if not, all iterative steps are defaulted.
Then, screening out various residual error values in the range based on the determined iteration walking range.
Furthermore, when the data is screened, the processing range of the original data needs to be determined first, and then the required data is screened based on the determined processing range of the original data. For example, if the software currently calculates 10000 iteration step data in total, if the user only needs to check the data of 2000 to 3000 iteration steps, the user can screen out various residual error values in the range from the processed original data based on the iteration step range (2000 to 3000 iteration steps) selected by the user, and the subsequent processing is performed based on the data.
In order to control the total amount of the processed data, the scheme firstly carries out blocking on the data through the step (3). By way of example, if the total amount of data is at most 500 (the maximum value is determined by combining the network environment and the front-end rendering capability), the processed data is at most 500 groups, that is, at most 500 data blocks are divided.
On this basis, when data blocking is performed in step (3) in this scheme, it is preferable that data blocking be performed as follows.
The total number of screened iterative steps is set to be N, and the iterative steps are divided into N blocks (default N = 500).
1. If N is less than or equal to N, dividing the data into N data blocks, wherein each block contains data of one iteration step.
2. If N is present>N, divided into N data blocks, the mth data block containing N m Iteration step data.
Further, for the case of incomplete division, the number of iteration steps of each actual data block is:
after the block division, N iterative steps are basically and uniformly distributed into each data block, so that the value calculated in the subsequent step can reflect the original residual variation trend as accurately as possible.
In the scheme, when the data block value is calculated in the step (4), the iteration step of the first data point of each data block is taken as the value of the abscissa of the data block, and the point with the maximum absolute value in each data block is taken as the value of the ordinate of the data block.
According to the scheme, each data block corresponds to a residual value of one coordinate point on the result, and the value of each data block is calculated based on the mode, so that the result data can reflect the change trend of the original residual error as accurately as possible, the wave peak value on the residual error curve can be effectively reflected, and a user can conveniently and quickly know the extreme value in the residual error data.
When the formed residual curve data filtering and screening scheme is implemented, original data generated by industrial simulation calculation can be effectively simplified, and the data volume can be greatly reduced compared with the original data, so that the calculation efficiency can be effectively improved, and the simplified curve and the original curve can be ensured to have the same shape.
When the scheme provided by the invention is applied specifically, a corresponding software program can be formed to form a corresponding system for filtering and screening the residual curve data. When the software program runs, the residual curve data filtering and screening method is executed, and the residual curve data filtering and screening method is stored in a corresponding storage medium for being called and executed by a processor.
The embodiment of the invention also provides a computer readable storage medium, on which a program is stored, and the program, when executed by a processor, implements the steps of the residual curve data filtering and screening method.
The embodiment of the invention also provides a processor, which is used for running a program, wherein the step of the residual error curve data filtering and screening method is executed when the program runs.
The embodiment of the invention also provides terminal equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the program code is loaded and executed by the processor to realize the steps of the residual curve data filtering and screening method.
The invention also provides a computer program product adapted to perform the steps of the above-described residual curve data filtering screening method when executed on a data processing apparatus.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Meanwhile, it should be understood that portions not described in detail in this specification belong to the prior art.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.