CN115145496B - Simulation result data processing method, device and storage medium - Google Patents

Simulation result data processing method, device and storage medium Download PDF

Info

Publication number
CN115145496B
CN115145496B CN202211075410.3A CN202211075410A CN115145496B CN 115145496 B CN115145496 B CN 115145496B CN 202211075410 A CN202211075410 A CN 202211075410A CN 115145496 B CN115145496 B CN 115145496B
Authority
CN
China
Prior art keywords
simulation result
result data
data
frames
temporarily stored
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.)
Active
Application number
CN202211075410.3A
Other languages
Chinese (zh)
Other versions
CN115145496A (en
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.)
China Automotive Technology and Research Center Co Ltd
Automotive Data of China Tianjin Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
Automotive Data of China Tianjin 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 China Automotive Technology and Research Center Co Ltd, Automotive Data of China Tianjin Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN202211075410.3A priority Critical patent/CN115145496B/en
Publication of CN115145496A publication Critical patent/CN115145496A/en
Application granted granted Critical
Publication of CN115145496B publication Critical patent/CN115145496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of data processing, and discloses a simulation result data processing method, a device and a storage medium. The method comprises the following steps: temporarily storing each single-frame simulation result data sequentially generated by a simulation solver, wherein the single-frame simulation result data comprises numerical values of all parameters and variables related to a simulation model; and when the frame number of the temporarily stored simulation result data reaches a first preset number or the simulation solver generates the simulation result data of the last frame, processing the temporarily stored simulation result data according to the incidence relation among the data in different frames so as to reduce the data volume of the simulation result data. The embodiment realizes the maximum compression of the simulation result data, does not reduce the precision of the simulation result data, and fundamentally solves the difficult problems of output and storage of large-scale simulation models.

Description

Simulation result data processing method, device and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, device, and storage medium for processing simulation result data.
Background
Simulation models are widely applied to the fields of automobiles, fuel cells and the like, wherein some large-scale simulation models have more parameters and variables, are complex in calculation process, and generate a large amount of intermediate variables, so that simulation result data are too fat and complicated, in the process of outputting and storing the simulation result data, mass data can quickly consume resources such as a CPU (central processing unit), a memory, a hard disk and the like, and then the phenomena of computer resource exhaustion, thread process blockage, even blockage and the like occur, so that the upper limit of the scale of the large-scale simulation model needing to output and store the mass simulation result data is limited, and the development, application and popularization of the simulation technology are also hindered.
In view of the above, the present invention is particularly proposed.
Disclosure of Invention
In order to solve the technical problems, the invention provides a simulation result data processing method, a device and a storage medium, which realize the maximum compression of simulation result data without reducing the precision of the simulation result data and fundamentally solve the output and storage problems of large-scale simulation models.
The embodiment of the invention provides a simulation result data processing method, which comprises the following steps:
temporarily storing each single-frame simulation result data sequentially generated by a simulation solver, wherein the single-frame simulation result data comprises numerical values of all parameters and variables related to a simulation model;
and when the frame number of the temporarily stored simulation result data reaches a first preset number or the simulation solver generates the simulation result data of the last frame, processing the temporarily stored simulation result data according to the incidence relation among the data in different frames so as to reduce the data volume of the simulation result data.
An embodiment of the present invention provides an electronic device, including:
a processor and a memory;
the processor is used for executing the steps of the simulation result data processing method according to any embodiment by calling the program or the instruction stored in the memory.
Embodiments of the present invention provide a computer-readable storage medium, which stores a program or instructions for causing a computer to execute the steps of the simulation result data processing method according to any one of the embodiments.
The embodiment of the invention has the following technical effects:
the temporarily stored simulation result data are processed according to the incidence relation among the data in different frames, so that the simulation result data are compressed to the maximum extent, the precision of the simulation result data is not reduced, and the output and storage problems of a large-scale simulation model are solved fundamentally.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a simulation result data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a process for processing simulation result data according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below. It is to be understood that the disclosed embodiments are merely exemplary of the invention, and are not intended to be exhaustive or exhaustive. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The simulation result data processing method provided by the embodiment of the invention can be executed by electronic equipment. Fig. 1 is a flowchart of a simulation result data processing method according to an embodiment of the present invention. Referring to fig. 1, the simulation result data processing method specifically includes the following steps:
and S110, temporarily storing the single-frame simulation result data sequentially generated by the simulation solver, wherein the single-frame simulation result data comprises numerical values of all parameters and variables related to the simulation model.
The simulation solver refers to a solving kernel used for calculating simulation result data during model simulation. The simulation result data refers to the sum of values of parameters and variables in all frames generated by the simulation solver in simulation of the model.
Particularly, the simulation solver outputs simulation result data by taking a frame as a unit, and each frame of simulation result data comprises numerical values of all parameters and variables related to the simulation model at a corresponding moment of the frame. Namely, the simulation solver has time particularity of output data, and the simulation solver sequentially outputs simulation result data of each single frame as time goes on.
The simulation model comprises a battery-associated simulation model or an automobile-associated simulation model. The simulation model may vary depending on the application scenario.
And S120, when the number of the temporarily stored simulation result data reaches a first preset number or the simulation solver generates the simulation result data of the last frame, processing the temporarily stored simulation result data according to the incidence relation among the data in different frames so as to reduce the data volume of the simulation result data.
Optionally, a first preset number of simulation result data frames are used as a paragraph, and the simulation result data frames in the paragraph are processed.
Illustratively, the processing of the temporarily stored simulation result data according to the association relationship between data in different frames includes at least one of:
121. if the values in the temporarily stored single-frame simulation result data are the same, replacing all temporarily stored simulation result data with the value in any single-frame simulation result data, the frame number of the simulation result data and the first relation identifier.
The first relationship identifier may be T1, and is used to indicate an association relationship in which values in each piece of temporarily stored simulation result data are all the same.
For example, 4 frames of simulation result data are temporarily stored, and the value in each frame of simulation result data is 1, i.e., {1, 1}, in this case, all the temporarily stored simulation result data are replaced with the value 1 in any single frame of simulation result data, the frame number 4 of simulation result data, and the first relation identifier T1, i.e., { T1, 4}.
122. And if the temporarily stored numerical values in the simulation result data of part of the adjacent single frames are the same and the frame number of the part of the adjacent single frames meets the preset condition, replacing the temporarily stored simulation result data in the part of the adjacent single frames with the numerical values in the simulation result data of any single frame in the part of the adjacent single frames, the frame number of the part of the adjacent single frames and a second relation identifier.
For example, 7 frames of simulation result data are temporarily stored, the simulation result data of the first three frames are all 1, the simulation result data of the last four frames are all 2, and can be expressed as {1, 2}, at this time, the temporarily stored simulation result data (e.g., {1, 1} and {2,2 }) in the partial adjacent single frame may be replaced by the values (i.e., 1 and 2) in the simulation result data of any single frame in the partial adjacent single frame, the number of frames (i.e., 3 and 4) in the partial adjacent single frame, and the second relation identifier (e.g., T2), which may be specifically expressed as { T2,1,3,2,4}. The second relation identifier T2 is used to indicate an association relation with the same numerical value in the temporarily stored simulation result data of a part of adjacent single frames.
123. And if the numerical values in the temporarily stored simulation result data of the adjacent single frames meet the primary linear relation, replacing all the temporarily stored simulation result data by utilizing the slope, the intercept and the third relation identification in the primary linear relation.
For example, 5 frames of simulation result data, namely {1,3,5,7,9} are temporarily stored, and a linear relationship y = kx + b, specifically y =2x +1, is satisfied between numerical values in the simulation result data of adjacent single frames, at this time, all the temporarily stored simulation result data may be replaced by the slope k =2, the intercept b =1, and the third relationship identifier T3 in the linear relationship of one time, that is, all the temporarily stored simulation result data may be replaced by { T3,2,1}, which may significantly reduce the data amount of the simulation result data. The third relation mark T3 is used for indicating the incidence relation that the numerical values in the temporarily stored simulation result data of the adjacent single frames satisfy the linear relation of one time.
124. And if the numerical value in the temporarily stored simulation result data of part of the adjacent single frames meets a linear relation once and the frame number of the part of the adjacent single frames meets a preset condition, replacing the temporarily stored simulation result data in the part of the adjacent single frames by using the slope, the intercept, the frame number of the part of the adjacent single frames and a fourth relation identifier in the linear relation.
For example, 7 frames of simulation result data are temporarily stored, the simulation result data of the previous 4 frames satisfy the linear relationship y = x +1, specifically {1,2,3,4,9,2,1}, and the simulation result data of the previous 4 frames can be replaced by { T4,1, 4}. The fourth relation identifier T4 is used to indicate that the temporarily stored simulation result data of the previous 4 frames satisfy the association relation of the linear relation.
125. If the numerical value in the temporarily stored simulation result data of the adjacent single frame meets the quadratic linear relation y = ax 2 + bx + c, replacing all temporarily stored simulation result data with the identifiers of a, b and c of the quadratic linear relationship and a fifth relationship identifier;
126. if the numerical values in the temporarily stored simulation result data of part of the adjacent single frames meet the quadratic linear relation y = ax 2 And + bx + c, and if the number of frames of the partial adjacent single frames meets the preset condition, replacing the temporarily stored simulation result data in the partial adjacent single frames with the identifiers of a, b and c of the quadratic linear relationship, the number of frames of the partial adjacent single frames and the sixth relationship.
127. If the numerical values in the temporarily stored simulation result data of the adjacent single frames satisfy the trigonometric function relationship y = Asin ((B))ωx + φ) + b, using the amplitude A, period 2 π +in said trigonometric relationωPhase phi, offset b, and a seventh relationship identify all simulation result data in place of temporary storage, where omega represents angular velocity.
128. If the numerical values in the temporarily stored simulation result data of part of the adjacent single frames meet the trigonometric function relationship y = Asin ((B))ωx + phi) + b, and if the frame number of the partial adjacent single frames meets the preset condition, the amplitude A and the period of the trigonometric function relationship are utilized2π/ωPhase phi, offset b, number of frames of partial adjacent single frames and eighth relationship identification are substituted for temporarily stored simulation result data in the partial adjacent single frames.
It can be understood that, if it is determined according to the simulation model that the data in all frames or some adjacent frames satisfy a certain relationship (which may be a linear relationship, or a more complex nonlinear relationship), the data in the relevant frames may be represented based on the relationship, so as to achieve the purpose of reducing the data amount of the simulation result data.
Further, the number of the partial adjacent single frames meets a preset condition, and the method includes:
the number of the partial adjacent single frames reaches a second preset number, or the percentage of the number of the partial adjacent single frames in the total number of the temporarily stored single frames reaches a preset proportion. It can be understood that, the more the number of frames of the partial adjacent single frame is, the more prominent the beneficial effect of the technical solution of the embodiment of the present invention is, and therefore, in order to ensure a certain effect, the number of frames of the partial adjacent single frame may be defined.
Furthermore, in addition to processing the temporarily stored simulation result data according to the association relationship between the data in different frames, the temporarily stored simulation result data may also be processed according to the numerical relationship of the variables in different frames.
Illustratively, if the values of the first variable associated with the simulation model in all frames or in a part of adjacent frames and the values of the second variable associated with the simulation model in the corresponding frame form a linear relationship, the values of the second variable in the corresponding frame are replaced by the slope, the intercept, the index value of the first variable and the ninth relationship identifier in the linear relationship.
For example, 5 frames of simulation result data are temporarily stored, each frame of simulation result data includes a value of a first variable a and a value of a second variable B, the values of the first variable a in the 5 frames of simulation result data are {1,3,5,7,9}, respectively, and the values of the second variable B in the 5 frames of simulation result data are {2,4,6,8,10}, respectively, it can be found that a linear relationship of B = a +1 is satisfied between the first variable a and the second variable B, and at this time, the slope 1, the intercept 1, the index value of the first variable a (which may be the same as the variable symbol a of the first variable, i.e., the index value is represented by a), and a ninth relationship identifier T9 (i.e., { T9, a,1 }) may be used to replace the value of the second variable in the corresponding frame. The ninth relationship identifier T9 is used to represent the numerical values of the first variable associated with the simulation model in all frames or in some adjacent frames, and the numerical values of the second variable associated with the simulation model in the corresponding frames form the association relationship of the first linear relationship.
If the first variable and the second variable have partial primary linear correlation relationship under the constant value delay, replacing the value of the second variable in the correlation frame by using the slope, the intercept, the index value of the first variable, the delay frame number, the correlation frame number and the tenth relationship identifier in the primary linear relationship.
Furthermore, the purpose of reducing the data volume can be achieved by changing the data type of each datum in the simulation result data. Because the simulation solver can only output data of double-precision type, the storage bit number occupied by the data is more, in practice, some data are not necessarily stored as double-precision type, and at the moment, the data are only needed to be recovered according to the original data type of some data.
Optionally, the method further includes:
converting the data type of first target data in each single-frame simulation result data from a double-precision type into the original data type of the first target data; wherein the original data type comprises a Boolean type or an integer type; the first target data refers to data of which the original data type is not a double-precision type. The simulation result data output by the simulation solver comprises descriptions of the original data types of all parameters or variables, so that the descriptions can identify which data types are the first target data, and the data types of the first target data are converted from the double-precision type to the original data types. The storage bit occupied by the double-precision type data is 64 bits, the storage bit occupied by the boolean type data is 1 bit, and the storage bit occupied by the integer type data is 32 bits, so that the purpose of reducing the number can be achieved by converting the double-precision type data into the boolean type or the integer type.
Further, some arguments or variables, whose data precision is higher than it needs, are converted from a double precision type to an integer type or a boolean type for such data. For example, the values of the variable a of the double-precision type in the simulation result data of 6 consecutive frames are {0.0000,1.0000,0.0000, 1.0000}, respectively, and the values thereof show that the variable a is 1 when being divided by 0, which does not need to use the double-precision type, so that the variable a can be converted into an integer type to achieve the purpose of reducing the data amount. Illustratively, the method further comprises:
and converting the data type of second target data in each single-frame simulation result data from a double-precision type to a Boolean type or an integer type, wherein the second target data is determined based on the numerical value of the second target data.
Further, the method further comprises:
determining an association relationship between data in different frames based on an empirical expression of variable names (e.g., the relationship between voltage U, resistance R, and current I, U = IR; or a relationship between custom variable names, e.g., the relationship between custom variable name F data and variable name G data satisfies G = F + 1); determining the incidence relation between the data in different frames in the next adjacent paragraph based on the incidence relation between the data in different frames in the previous paragraph; each paragraph includes a first preset number of pieces of single-frame simulation result data, for example, each 1 ten thousand frames of simulation result data may be regarded as a paragraph.
Similarly, the numerical relationships of the variables with similar names in different frames are preferentially judged, and then the numerical relationships of the variables in different frames in the previous paragraph are determined according to the sequence by referring to the numerical relationships of other variables in different frames in the previous paragraph.
It should be noted that, processing the temporarily stored simulation result data according to the association relationship between the data in different frames and processing the temporarily stored simulation result data according to the numerical relationship of the variable in different frames may be performed independently.
In summary, the process of processing the simulation result data may be understood as a process of encoding the simulation result data to finally obtain compressed data, and decoding the compressed data when the simulation result data itself needs to be used to obtain original data before compression.
Exemplarily, referring to a schematic process diagram for processing simulation result data shown in fig. 2, the process diagram specifically includes: judging the original data of the simulation result data to identify the incidence relation among the data in different frames (defining the process as expressive judgment), and then processing the original data of the simulation result data according to the incidence relation among the data in different frames to obtain the compressed data of the simulation result data (defining the process as expressive compressed data). Then, the numerical relationship of the variable in different frames is judged (the process is defined as correlation judgment), and then the original data of the simulation result data is processed according to the numerical relationship of the variable in different frames to obtain the compressed data of the simulation result data (the process is defined as the process of correlation compressed data).
The technical scheme of the embodiment of the invention adopts a 'sectional type' coding mode to quickly judge whether parameters and variables have 'expressiveness' and 'relevance', uses a simplified expression method and a simplified relevance method to replace massive simulation result data, does not damage data precision, and fundamentally solves the output and storage problems of large-scale simulation models. Regarding the analysis of the expressiveness, the embodiment of the invention only performs the processing of the first-order linear expression, the second-order linear expression and the trigonometric function expression, and more expression methods can be added to realize a larger compression ratio when needed. The scheme of the embodiment of the invention can be used together with the traditional scheme, for example, the quality and the quantity of hardware equipment are increased, such as using an efficient CPU and increasing the capacity of a memory and a hard disk. The compression rate of the software to the data is improved, such as the data is stored through a compression algorithm or a database format.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 3, the electronic device 400 includes one or more processors 401 and memory 402.
The processor 401 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities and may control other components in the electronic device 400 to perform desired functions.
Memory 402 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by processor 401 to implement the simulation result data processing method of any of the embodiments of the present invention described above and/or other desired functions. Various contents such as initial external parameters, threshold values, etc. may also be stored in the computer-readable storage medium.
In one example, the electronic device 400 may further include: an input device 403 and an output device 404, which are interconnected by a bus system and/or other form of connection mechanism (not shown). The input device 403 may include, for example, a keyboard, a mouse, and the like. The output device 404 can output various information to the outside, including warning prompt information, braking force, etc. The output devices 404 may include, for example, a display, speakers, printer, and the like, as well as a communication network and its connected remote output devices.
Of course, for simplicity, only some of the components of the electronic device 400 relevant to the present invention are shown in fig. 3, omitting components such as buses, input/output interfaces, and the like. In addition, electronic device 400 may include any other suitable components depending on the particular application.
In addition to the above-described methods and apparatus, embodiments of the invention may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps of the simulation result data processing method provided by any of the embodiments of the invention.
The computer program product may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages, for carrying out operations according to embodiments of the present invention. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present invention may also be a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the steps of the simulation result data processing method provided by any of the embodiments of the present invention.
The computer readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only, and is not intended to limit the scope of the present application. As used in this specification, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to include the plural as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, 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, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, or apparatus that comprises the element.
It is further noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," "outer," and the like are used in the orientation or positional relationship indicated in the drawings for convenience in describing the invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," "coupled," and the like are to be construed broadly and encompass, for example, both fixed and removable coupling as well as integral coupling; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in a specific case to those of ordinary skill in the art.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the technical solutions of the embodiments of the present invention.

Claims (6)

1. A simulation result data processing method is characterized by comprising the following steps:
temporarily storing each single-frame simulation result data generated by the simulation solver in sequence, wherein the single-frame simulation result data comprises numerical values of all parameters and variables related to the simulation model;
determining the association relation between data in different frames based on the empirical expression mode of the variable type; determining an incidence relation between data in different frames based on an empirical expression mode of variable names; determining the incidence relation between the data in different frames in the next adjacent paragraph based on the incidence relation between the data in different frames in the previous paragraph; each paragraph comprises a first preset number of single-frame simulation result data;
when the number of the temporarily stored simulation result data reaches a first preset number or the simulation solver generates the simulation result data of the last frame, processing the temporarily stored simulation result data according to the incidence relation among the data in different frames so as to reduce the data volume of the simulation result data;
if the numerical values of the first variable associated with the simulation model in all frames or part of adjacent frames and the numerical values of the second variable associated with the simulation model in the corresponding frames form a linear relationship, replacing the numerical values of the second variable in the corresponding frames by using the slope, the intercept, the index value of the first variable and a ninth relationship identifier in the linear relationship;
if the first variable and the second variable have partial primary linear association relationship under the constant value delay, replacing the numerical value of the second variable in an association frame by using the slope, the intercept, the index value of the first variable, the delay frame number, the association frame number and a tenth relationship identifier in the primary linear relationship;
the simulation model includes a battery-associated simulation model or an automobile-associated simulation model.
2. The method according to claim 1, wherein the processing the temporarily stored simulation result data according to the association relationship between data in different frames to reduce the data amount of the simulation result data includes at least one of:
if the numerical values in the temporarily stored single-frame simulation result data are the same, replacing all temporarily stored simulation result data with the numerical values in any single-frame simulation result data, the frame number of the simulation result data and the first relation identification;
if the temporarily stored numerical values in the simulation result data of part of the adjacent single frames are the same and the frame number of the part of the adjacent single frames meets the preset condition, replacing the temporarily stored simulation result data in the part of the adjacent single frames by using the numerical value in the simulation result data of any single frame in the part of the adjacent single frames, the frame number of the part of the adjacent single frames and a second relation identifier;
if the numerical value in the temporarily stored simulation result data of the adjacent single frame meets a primary linear relation, replacing all temporarily stored simulation result data by utilizing the slope, the intercept and a third relation identification in the primary linear relation;
if the temporarily stored numerical values in the simulation result data of part of the adjacent single frames meet a linear relationship, and the frame numbers of the part of the adjacent single frames meet a preset condition, replacing the temporarily stored simulation result data in the part of the adjacent single frames by using the slope, the intercept, the frame numbers of the part of the adjacent single frames and a fourth relationship identifier in the linear relationship;
if the numerical value in the temporarily stored simulation result data of the adjacent single frame meets the quadratic linear relation y = ax 2 + bx + c, replacing all temporarily stored simulation result data with the identifiers of a, b and c and the fifth relation of the quadratic linear relation;
if the numerical value in the temporarily stored simulation result data of part of the adjacent single frames meets the secondary lineThe relationship y = ax 2 + bx + c, and if the number of frames of the partial adjacent single frames meets the preset condition, replacing the temporarily stored simulation result data in the partial adjacent single frames with the identifiers of a, b and c of the quadratic linear relationship, the number of frames of the partial adjacent single frames and the sixth relationship;
if the numerical value in the temporarily stored simulation result data of the adjacent single frame meets the trigonometric function relationship y = Asin (b: (b))ωx + phi) + b, the amplitude A and the period 2 pi-ωThe phase phi, the offset b and the seventh relation identification replace all temporarily stored simulation result data, wherein omega represents angular velocity;
if the numerical value in the temporarily stored simulation result data of part of the adjacent single frames meets the trigonometric function relationship y = Asin (b:)ωx + phi) + b, and if the frame number of the partial adjacent single frames meets the preset condition, the amplitude A and the period 2 pi-ωPhase phi, offset b, number of frames of partial adjacent single frames and eighth relationship identification are substituted for temporarily stored simulation result data in the partial adjacent single frames.
3. The method of claim 2, wherein the number of the partial adjacent single frames meets a preset condition, and the method comprises:
the number of the partial adjacent single frames reaches a second preset number, or the percentage of the number of the partial adjacent single frames in the total number of the temporarily stored single frames reaches a preset proportion.
4. The method of claim 1, further comprising:
converting the data type of first target data in each single-frame simulation result data from a double-precision type to an original data type of the first target data;
wherein the original data type comprises a Boolean type or an integer type;
and converting the data type of second target data in each single-frame simulation result data from a double-precision type to a Boolean type or an integer type, wherein the second target data is determined based on the numerical value of the second target data.
5. An electronic device, characterized in that the electronic device comprises:
a processor and a memory;
the processor is adapted to perform the steps of the simulation result data processing method of any of claims 1 to 4 by calling a program or instructions stored in the memory.
6. A computer-readable storage medium characterized in that it stores a program or instructions for causing a computer to execute the steps of the simulation result data processing method according to any one of claims 1 to 4.
CN202211075410.3A 2022-09-05 2022-09-05 Simulation result data processing method, device and storage medium Active CN115145496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211075410.3A CN115145496B (en) 2022-09-05 2022-09-05 Simulation result data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211075410.3A CN115145496B (en) 2022-09-05 2022-09-05 Simulation result data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115145496A CN115145496A (en) 2022-10-04
CN115145496B true CN115145496B (en) 2023-01-06

Family

ID=83415543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211075410.3A Active CN115145496B (en) 2022-09-05 2022-09-05 Simulation result data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115145496B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117311889B (en) * 2023-11-28 2024-04-09 中汽研汽车检验中心(广州)有限公司 Simulation result display method, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270262A (en) * 2011-08-23 2011-12-07 复旦大学 Method and device for compressing and decompressing analog waveform of integrated circuit
CN110830437A (en) * 2019-09-25 2020-02-21 平安科技(深圳)有限公司 Data compression method, device, equipment and storage medium for high-frequency service data
CN111262587A (en) * 2018-11-30 2020-06-09 康泰医学系统(秦皇岛)股份有限公司 Data compression method, device, equipment and computer readable storage medium
CN112260694A (en) * 2020-09-21 2021-01-22 广州中望龙腾软件股份有限公司 Data compression method of simulation file
CN112328544A (en) * 2020-09-18 2021-02-05 广州中望龙腾软件股份有限公司 Multidisciplinary simulation data classification method, device and storage medium
US11176018B1 (en) * 2018-12-13 2021-11-16 Cadence Design Systems, Inc. Inline hardware compression subsystem for emulation trace data
CN115002465A (en) * 2022-05-30 2022-09-02 深圳市吉迩科技有限公司 Lossless compression algorithm and device based on embedded system picture, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008473A (en) * 2019-12-03 2020-04-14 南方电网科学研究院有限责任公司 Simulation analysis method and device for power equipment and storage medium
CN111667544B (en) * 2020-07-02 2023-03-10 腾讯科技(深圳)有限公司 Animation data compression method, device, equipment and storage medium
CN114021378A (en) * 2021-11-18 2022-02-08 北京索为系统技术股份有限公司 Model simulation method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270262A (en) * 2011-08-23 2011-12-07 复旦大学 Method and device for compressing and decompressing analog waveform of integrated circuit
CN111262587A (en) * 2018-11-30 2020-06-09 康泰医学系统(秦皇岛)股份有限公司 Data compression method, device, equipment and computer readable storage medium
US11176018B1 (en) * 2018-12-13 2021-11-16 Cadence Design Systems, Inc. Inline hardware compression subsystem for emulation trace data
CN110830437A (en) * 2019-09-25 2020-02-21 平安科技(深圳)有限公司 Data compression method, device, equipment and storage medium for high-frequency service data
CN112328544A (en) * 2020-09-18 2021-02-05 广州中望龙腾软件股份有限公司 Multidisciplinary simulation data classification method, device and storage medium
CN112260694A (en) * 2020-09-21 2021-01-22 广州中望龙腾软件股份有限公司 Data compression method of simulation file
CN115002465A (en) * 2022-05-30 2022-09-02 深圳市吉迩科技有限公司 Lossless compression algorithm and device based on embedded system picture, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115145496A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN109491989B (en) Data processing method and device, electronic equipment and storage medium
JP5754824B2 (en) Data conversion method and data transformer
WO2017148266A1 (en) Method and system for training machine learning system
CN115145496B (en) Simulation result data processing method, device and storage medium
CN113641701B (en) Data query method, system, heterogeneous acceleration platform and storage medium
CN102929646B (en) Application program generation method and device
CN111240640A (en) Data quantization method and device based on hardware environment and readable storage medium
CN113268403B (en) Time series analysis and prediction method, device, equipment and storage medium
CN109241494A (en) Page processing method, system, computer equipment and storage medium
CN110688118A (en) Webpage optimization method and device
CN103425692A (en) Data exporting method and data exporting device
CN110955438A (en) Method, device and equipment for monitoring performance of small program and storage medium
CN112000848A (en) Graph data processing method and device, electronic equipment and storage medium
CN111126008A (en) XSD-based code generation method and device, computer equipment and storage medium
CN114116431B (en) System operation health detection method and device, electronic equipment and readable storage medium
US20230060957A1 (en) Creation of Message Serializer for Event Streaming Platform
US20220374398A1 (en) Object Creation from Schema for Event Streaming Platform
CN115185456A (en) Cluster capacity shrinkage risk prompting method, device, equipment and medium
CN111612300B (en) Scene anomaly perception index calculation method and system based on depth hybrid cloud model
CN113468258A (en) Heterogeneous data conversion method and device and storage medium
CN113537631A (en) Method and device for predicting medicine demand, electronic equipment and storage medium
CN109033467B (en) Compression method, device, medium and electronic equipment for multi-option form
CN112330502A (en) Contract auditing method and device, electronic equipment and storage medium
CN111126834A (en) Evaluation model adjusting method and device, scoring simulator and storage medium
CN114580543B (en) Model training method, interaction log analysis 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
GR01 Patent grant
GR01 Patent grant