CN117311889B - Simulation result display method, electronic device and storage medium - Google Patents

Simulation result display method, electronic device and storage medium Download PDF

Info

Publication number
CN117311889B
CN117311889B CN202311594694.1A CN202311594694A CN117311889B CN 117311889 B CN117311889 B CN 117311889B CN 202311594694 A CN202311594694 A CN 202311594694A CN 117311889 B CN117311889 B CN 117311889B
Authority
CN
China
Prior art keywords
time
simulation
precision
determining
preset variable
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
CN202311594694.1A
Other languages
Chinese (zh)
Other versions
CN117311889A (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 Automobile Research And Test Center Guangzhou Co ltd
Automotive Data of China Tianjin Co Ltd
Original Assignee
China Automobile Research And Test Center Guangzhou 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 Automobile Research And Test Center Guangzhou Co ltd, Automotive Data of China Tianjin Co Ltd filed Critical China Automobile Research And Test Center Guangzhou Co ltd
Priority to CN202311594694.1A priority Critical patent/CN117311889B/en
Publication of CN117311889A publication Critical patent/CN117311889A/en
Application granted granted Critical
Publication of CN117311889B publication Critical patent/CN117311889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Abstract

The invention discloses a simulation result display method, electronic equipment and a storage medium, comprising the following steps: determining target precision, starting time and ending time according to the interactive operation of a user and a display interface of an original simulation image; determining, by a solver, a new simulation value of a preset variable that satisfies the target precision according to the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, wherein the original simulation image is generated based on the original simulation value of the preset variable, and the solver is generated when solving a preset simulation model once to obtain the original simulation value of the preset variable; and correspondingly displaying the new simulation numerical value of the preset variable between the starting time and the ending time on a display interface. Real-time display of simulation images with different precision is realized, and the user's consulting efficiency and consulting experience are improved.

Description

Simulation result display method, electronic device and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a simulation result display method, an electronic device, and a storage medium.
Background
The process of model simulation and simulation image (such as graph) reference by simulation software is specifically as follows: first, in simulation software, a simulation model is newly created and edited, or an existing simulation model is selected. Then, a solver is used for solving to obtain a simulation image of the simulation model. Finally, the time axis and the variable simulation images are matched one by one to form a time-value point sequence, and the time-value point sequence is displayed in a Y (t) coordinate axis graph form for users to review. Typically, the simulated image contains a time axis, e.g., from 0 seconds to 1 second, at 0.01 second intervals, with the time axis ranging in time from 0 seconds, 0.01 seconds, 0.02 seconds..1 second, and a numerical array of several time-varying variables, e.g., the speed variable of the car increases from 0 meters/second to 10 meters/second, i.e., 0 meters/second, 0.1 meters/second, 0.2 meters/second..10 meters/second (101 frames for this group, and several other groups are possible). The time axis and the simulation values of the variables are matched one by one to form a time-value point array, and the points are connected to form a graph.
When the graph is reviewed, a minute disturbance is sometimes found, resulting in image distortion. To better review such small perturbations, the user typically chooses to zoom in on the deformed portion of the image. However, the highest accuracy that the image can be enlarged is only the accuracy of the simulation image, and the higher accuracy display cannot be satisfied, so that the user cannot refer to the image better.
In view of this, the present invention has been made.
Disclosure of Invention
In order to solve the technical problems, the invention provides a simulation result display method, electronic equipment and a storage medium, which realize real-time display of simulation images with different precision and are beneficial to improving the consulting efficiency and consulting experience of users.
The embodiment of the invention provides a simulation result display method, which comprises the following steps:
determining target precision, starting time and ending time according to the interactive operation of a user and a display interface of an original simulation image;
determining, by a solver, a new simulation value of a preset variable that satisfies the target precision according to the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, wherein the original simulation image is generated based on the original simulation value of the preset variable, and the solver is generated when solving a preset simulation model once to obtain the original simulation value of the preset variable;
and correspondingly displaying the new simulation numerical value of the preset variable between the starting time and the ending time on a display interface.
The embodiment of the invention provides electronic equipment, which comprises:
a processor and a memory;
the processor is configured to execute the steps of the simulation result display method according to any one of the embodiments by calling a program or an instruction stored in the memory.
An embodiment of the present invention provides a computer-readable storage medium storing a program or instructions that cause a computer to execute the steps of the simulation result display method described in any of the embodiments.
According to the simulation result display method provided by the embodiment of the invention, after an original simulation image is generated by primary simulation solution, the target precision, the starting time and the ending time are determined according to the interactive operation of a user and a display interface of the original simulation image; determining, by a solver, a new simulation value of a preset variable that satisfies the target precision according to the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, wherein the original simulation image is generated based on the original simulation value of the preset variable, and the solver is generated when solving a preset simulation model once to obtain the original simulation value of the preset variable; and correspondingly displaying the new simulation values of the preset variables between the starting time and the ending time on a display interface, so that real-time display of simulation images with different precision is realized, and the user's consulting efficiency and consulting experience are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a simulation result display method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a simulation result display method 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 will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the invention, are within the scope of the invention.
Before describing the aspects of embodiments of the present invention, the meanings of the related terms will be specifically described:
time-value points: the simulation results contain a queue of time-value points for a plurality of parameters (e.g., vehicle speed, acceleration).
Graph diagram: the time-value point queue of a certain parameter in the simulation result is shown in a graph on a Y (t) coordinate system, the horizontal axis represents time t, and the vertical axis represents the value Y (t) of the parameter.
Sparsing: when displaying the graph of simulation results, only part of the time-value points currently necessary are loaded to avoid overload of single load. (As a general default, the time-value points generated will be much larger than the number that can be displayed on the screen, so it is not possible nor necessary to load all points.)
And (3) densification: and when the simulation result graph is displayed, continuously loading the rest time-value points for the current sparse partial time period so as to display a higher-precision image or a complete image.
Primary simulation solution: i.e. simulation solution, i.e. normal simulation solution. The simulation model is input, a solver is generated, and a simulation result of each frame, namely a queue of time-value points of all parameters, is output. ( Input: a simulation model; and (3) outputting: and a solver, simulating the result. )
Real-time rapid secondary simulation solving: when the graph of the simulation result is displayed, all time-value points in a specific time period are loaded, namely the complete image is displayed, the display precision can not be improved any more, and at the moment, more time-value points in the area are generated for densification loading through real-time simulation solving. The scheme of the embodiment of the invention can achieve the purpose of real-time simulation solving the output result. ( Input: the solver is used for partially simulating a simulation result of one-time simulation solving; and (3) outputting: new simulation results. )
If the user needs to review or display the image with higher precision, the traditional solution is: the simulation solving process is redone for one time, namely the simulation result is abandoned, the simulation attribute of the model is changed again, the simulation result is set to be higher precision (the essence of the simulation result is that the step length of a time axis is set to be smaller, so that the number of output time-value points is larger, for example, the step length of the original time axis is 1s, then 11 time-value points exist between 0 and 10s, and if the step length of the time axis is set to be 0.5s, 21 time-value points exist between 0 and 10 s), then the simulation result with higher precision is solved again through a solver, the essence of the simulation result is that more time-value points are solved, and if the new precision still does not meet the requirement, the operation is repeated again. Obviously, such an operation is too cumbersome, affecting the user experience. In addition, especially for the result review of gradually improving the precision for a plurality of times in a specific time period, the frequent repeated operation is not only time-consuming, but also has no meaning, and the user experience is greatly influenced.
Aiming at the problems, the scheme of the embodiment of the application is provided, specifically, in a specific time period concerned by a user, based on a known partial simulation result, secondary simulation solution is carried out, and the solution principle is different from that of primary simulation solution. The principle of one-time simulation solution is as follows: knowing the current time result, solving for the next time result, and then recursing. For example, the result at the time of 0 seconds is known, and the result is solved every 0.02 seconds within 0 seconds to 1 second. Alternatively, knowing the results at time 0 seconds, the results are solved for every 0.002 seconds for 0.46 to 0.54 seconds. The principle of the secondary simulation solution is as follows: knowing the results of the start time, the end time, and some of the intermediate times, the results of the other intermediate times are solved. For example, the results at 0.46 seconds, 0.48 seconds, 0.50 seconds, 0.52 seconds, and 0.54 seconds are known, and the results every 0.002 seconds are solved for within 0.46 seconds to 0.54 seconds.
In summary, the scheme of the embodiment of the application is as follows: when modeling a model and solving the simulation (when a solver of the model is generated), referring to a simulation result graph of a certain parameter: if the current precision is lower than the simulation solving precision (for example, the number of the currently displayed time-numerical points is less than the number of the time-numerical points obtained by simulation solving in the corresponding time interval), sparsification and densification are used, so that the reference requirement of a user is met; if the simulation result exceeding the original simulation solving precision is required to be consulted, the generated solver (from the primary simulation solving) is automatically called, the proper simulation precision is automatically regulated according to the actual requirement, the existing primary simulation result data is used as an initial value to be input into the solver, the primary model is subjected to real-time quick secondary simulation solving, a new simulation result with higher precision is generated, and the result is loaded into a graph (sparsable) for the user to review. One typical application scenario is: a specific region of the displayed graph needs to be displayed with higher accuracy than the original model simulation solution accuracy. For example, when the user zooms in on the image beyond the original accuracy, the accuracy required for the current image is determined by the graph browser; directly calling a solver (generated by primary solution), modifying simulation precision, inputting initial values of secondary simulation, including values of start time, end time and part of intermediate time of required parameters, and starting the solver to start simulation solution. The graph dynamically loads the newly generated time-value point queue of the solver until the required accuracy is met (generally, there will be a sparsification process) for review by the user.
Fig. 1 is a schematic flow chart of a simulation result display method according to an embodiment of the present invention, where the method may be performed by a simulation result display device, and the device may be implemented by software and/or hardware. The method comprises the following steps:
s110, determining target precision, starting time and ending time according to the interactive operation of the user and the display interface of the original simulation image.
Illustratively, the determining the target precision, the start time and the end time according to the interactive operation of the user and the display interface of the original simulation image includes any one of the following:
after detecting that a user moves an original simulation image displayed on a display interface leftwards and/or rightwards, performing an operation of amplifying the original simulation image again, determining real-time display precision and expected display precision according to a current simulation image in the display interface, if the real-time display precision is lower than the expected display precision, determining the expected display precision as the target precision, determining a starting point of a time interval corresponding to the current simulation image in the display interface as the starting time, and determining an end point of the time interval as the ending time; at this time, the user is likely to zoom out the image in the next operation, so that the expected display precision at this time is most suitable for the user's requirement, which is favorable for improving the user experience and providing the user with satisfactory display precision.
When the operation of continuously executing at least twice amplifying the original simulation image by a user is detected, determining real-time display precision and expected display precision according to the current simulation image in a display interface, if the absolute value of the difference between the real-time display precision and the expected display precision is smaller than a threshold value (namely, when the real-time display precision is close to the expected display precision), determining the precision higher than the expected display precision as the target precision, and determining the starting point of a time interval corresponding to the current simulation image in the display interface as the starting time, and determining the end point of the time interval as the ending time. Because the subsequent operation may be to continue to zoom in the image multiple times when the user zooms in continuously, a slightly higher target precision may be determined in advance to perform the second simulation solution in response to the user's requirement at this time, so that when the user zooms in again, the user may display the image with high precision faster, and the instantaneity and the user experience are improved.
When detecting that the original simulation image is moved leftwards and/or rightwards after the user executes the operation of amplifying the original simulation image once, determining real-time display precision and expected display precision according to the current simulation image in a display interface, if the real-time display precision is lower than the expected display precision, determining the expected display precision as the target precision, determining a time point before the starting point of a time interval corresponding to the current simulation image in the display interface as the starting time, and determining a time point after the ending point of the time interval as the ending time. For example, if the start point of the time interval corresponding to the current simulation image in the display interface is 10s and the end point is 11s, a time point (for example, 9s or 8 s) before 10s may be determined as the start time, and a time point (for example, 12s or 13 s) after 11s may be determined as the end time. The reason for this is that after the operation habits of a large number of users are investigated, it is found that when the user zooms in on the image, the image is shifted left and right, and the next operation is likely to continue to shift left and right, so that the range of the start time and the end time can be determined to be larger at this time, the requirements of the users can be responded in advance, and when the user actually shifts left and right the image, the image with high precision can be displayed more quickly, thereby achieving the purpose of improving the instantaneity and the user experience.
The higher the real-time display precision is, the more the number of original simulation values of the preset variable is included in the current simulation image in the display interface, and the simulation image is a graph with the horizontal axis as time and the vertical axis as the original simulation value of the preset variable.
Further, the determining the real-time display precision and the expected display precision according to the current simulation image in the display interface includes:
determining the distance between two adjacent original simulation numerical points in the current graph in the display interface; the distance may refer to the Euclidean distance between two points. And determining real-time display precision and expected display precision according to the distance. The larger the distance is, the lower the current real-time display precision is, and the higher the expected display precision is, the corresponding relation among the distance, the real-time display precision and the expected display precision can be formulated in advance, so that the real-time display precision and the expected display precision can be determined quickly.
Optionally, the determining the real-time display precision and the expected display precision according to the current simulation image in the display interface includes:
if the current graph in the display interface comprises an extreme point, determining real-time display precision and expected display precision according to the distance between the extreme point and the non-extreme point; wherein the desired display accuracy is not lower than the highest display accuracy of the display interface. In other words, when an extreme point occurs in the graph, its accuracy should at least satisfy: the number of time-numerical points from the extreme point to the non-extreme point (the position where the curve is smoother) is at least not lower than the number of points that can be displayed by a display interface (e.g., a display screen) so as to avoid repeated two-time simulation solutions. The reason is that through investigation and analysis of the behavior characteristics of the user, the operation intention of the user in the scene can be to look up the extreme point and the surrounding numerical values, so that through carrying out secondary simulation solving in advance on the extreme point and the surrounding numerical values, repeated secondary simulation solving can be avoided on the one hand, and the user experience can be improved on the other hand.
S120, determining, by a solver, a new simulation value of the preset variable meeting the target precision according to the target precision, the starting time, the ending time and an original simulation value of the preset variable between the starting time and the ending time, wherein the original simulation image is generated based on the original simulation value of the preset variable, and the solver is generated when solving a preset simulation model once to obtain the original simulation value of the preset variable.
Illustratively, marking the start time as 0s, the end time as 10s, and the time between start time and end time as 5s, the pass solver determining a new simulation value of a preset variable that meets the target precision from the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, comprising:
determining a new simulation value of the preset variable at the time of 2.5s by a solver according to the original simulation value of the preset variable at the time of 0s and the original simulation value of the preset variable at the time of 5 s;
and determining a new simulation value of the preset variable at the time of 7.5s according to the original simulation value of the preset variable at the time of 5s and the original simulation value of the preset variable at the time of 10s by a solver.
The determining, by the solver, a new simulation value of the preset variable that meets the target precision according to the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, further includes:
determining a new simulation value of the preset variable at the time of 1.25s by a solver according to the original simulation value of the preset variable at the time of 0s and the new simulation value of the preset variable at the time of 2.5 s;
determining a new simulation value of the preset variable at the time of 3.75s by a solver according to the original simulation value of the preset variable at the time of 5s and the new simulation value of the preset variable at the time of 7.5 s;
and determining the new simulation value of the preset variable at the 8.75s time according to the new simulation value of the preset variable at the 7.5s time and the original simulation value of the preset variable at the 10s time by a solver.
In summary, in the secondary simulation solving process, one value of each variable is output when the value is solved, and the value can be displayed at the moment without uniformly displaying all the values after all the values are solved, so that the response time of graph loading can be further shortened, and a better user experience effect is achieved.
S130, correspondingly displaying the new simulation numerical value of the preset variable between the starting time and the ending time on a display interface.
Exemplary, the displaying the new simulation value of the preset variable between the start time and the end time on the display interface includes:
and displaying the new simulation numerical value on a display interface every time the solver calculates the new simulation numerical value of one preset variable.
In particular, in addition to the graph, the solution of the embodiment of the present application may also be in the display form of various simulation results like bar graphs, pie charts, 2D, 3D animations, and the like.
The simulation result display method provided by the embodiment of the invention can avoid repeating the operation simulation process for a plurality of times due to consulting the high-precision simulation result in a part of time period; for model parameters of certain specific extremum, only one-time common-precision simulation solution is needed, and then, in a graph, more time-value points with higher precision are continuously loaded by gradually amplifying images and rapidly carrying out secondary simulation solution in real time, so that the extremum points and the value change conditions on the two sides of the extremum points are conveniently and efficiently referred. Through prejudging the target precision and the preloading, the number of times of secondary solving can be effectively reduced, and the single time consumption of secondary loading is shortened, so that the instantaneity is further ensured, and the user experience (no delay and no sense operation) is ensured.
Furthermore, a switch button can be arranged on the interactive interface, and when the button is opened, zero delay can be realized, and a high-precision simulation result can be displayed in real time; when the button is closed, the normal consulting mode (namely, the mode of adjusting the display precision by continuously repeating the solving process once) can be restored.
On the basis of the above embodiments, referring to a flow chart of a simulation result display method shown in fig. 2, the method specifically includes: and carrying out primary solution on the simulation model to obtain result data, and taking the result data obtained by the primary solution as input of secondary solution to obtain high-precision data of the secondary solution. The low-precision graph can improve the display precision of the graph through the densification operation, but the highest precision of the graph cannot be exceeded, for example, the number of numerical points displayed in a certain time period cannot exceed the number of numerical points in a corresponding time period obtained through simulation. A high-precision graph can obtain a low-precision graph through a thinning operation. When the magnification of the user is large and the original simulation precision cannot meet the real-time display precision, taking the starting time and the ending time of the time interval of the transverse axis displayed by the magnified display interface and the original simulation result in the time interval as the input of the solver, and adjusting the precision of the solver to carry out secondary solving so as to obtain a numerical value point capable of meeting the magnified display requirement, so that the user can clearly review the local area of the graph and realize real-time display.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 3, 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) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that may be executed by the processor 401 to implement the simulation result display method and/or other desired functions of any of the embodiments of the present invention described above. Various content such as initial arguments, thresholds, 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 forms of connection mechanisms (not shown). The input device 403 may include, for example, a keyboard, a mouse, and the like. The output device 404 may output various information to the outside, including early warning prompt information, braking force, etc. The output device 404 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device 400 that are relevant to the present invention are shown in fig. 3 for simplicity, components such as buses, input/output interfaces, etc. are omitted. In addition, electronic device 400 may include any other suitable components depending on the particular application.
In addition to the methods and apparatus described above, 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 display method provided by any of the embodiments of the invention.
The computer program product may write program code for performing operations of embodiments of the present invention 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. 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, 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, on which computer program instructions are stored, which, when being executed by a processor, cause the processor to perform the steps of the simulation result display method provided by any embodiment of the present invention.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted 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 limiting, but rather are to be construed as covering the singular and the plural, unless the context clearly dictates 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 phrase "comprising one … …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements.
It should also be noted that the positional or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the positional or positional relationship shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or element in question must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. Unless specifically stated or limited otherwise, the terms "mounted," "connected," and the like are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims (5)

1. The simulation result display method is characterized by comprising the following steps of:
determining target precision, starting time and ending time according to the interactive operation of a user and a display interface of an original simulation image;
determining, by a solver, a new simulation value of a preset variable that satisfies the target precision according to the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, wherein the original simulation image is generated based on the original simulation value of the preset variable, and the solver is generated when solving a preset simulation model once to obtain the original simulation value of the preset variable;
correspondingly displaying new simulation values of the preset variables between the starting time and the ending time on a display interface;
the determining the target precision, the starting time and the ending time according to the interactive operation of the user and the display interface of the original simulation image comprises the following steps:
after detecting that a user moves an original simulation image displayed on a display interface leftwards and/or rightwards, performing an operation of amplifying the original simulation image again, determining real-time display precision and expected display precision according to a current simulation image in the display interface, if the real-time display precision is lower than the expected display precision, determining the expected display precision as the target precision, determining a starting point of a time interval corresponding to the current simulation image in the display interface as the starting time, and determining an end point of the time interval as the ending time;
when the operation of continuously executing at least twice of amplifying the original simulation image by a user is detected, determining real-time display precision and expected display precision according to the current simulation image in a display interface, if the absolute value of the difference between the real-time display precision and the expected display precision is smaller than a threshold value, determining the precision higher than the expected display precision as the target precision, determining the starting point of a time interval corresponding to the current simulation image in the display interface as the starting time, and determining the end point of the time interval as the ending time;
when detecting that the original simulation image is moved leftwards and/or rightwards after the user executes the operation of amplifying the original simulation image once, determining real-time display precision and expected display precision according to the current simulation image in a display interface, if the real-time display precision is lower than the expected display precision, determining the expected display precision as the target precision, determining a time point before the starting point of a time interval corresponding to the current simulation image in the display interface as the starting time, and determining a time point after the ending point of the time interval as the ending time;
the higher the real-time display precision is, the more the number of original simulation values of the preset variables are included in the current simulation image in the display interface, and the simulation image is a graph with the horizontal axis as time and the vertical axis as the original simulation values of the preset variables;
the determining the real-time display precision and the expected display precision according to the current simulation image in the display interface comprises the following steps:
if the current graph in the display interface comprises an extreme point, determining real-time display precision and expected display precision according to the distance between the extreme point and the non-extreme point;
wherein the desired display accuracy is not lower than the highest display accuracy of the display interface;
the determining, by the solver, a new simulation value of the preset variable satisfying the target precision according to the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, including:
if the absolute value of the difference between the real-time display precision and the parameter precision which can be met by the original simulation value of the preset variable is smaller than a threshold value, determining a new simulation value of the preset variable which meets the target precision by a solver according to the target precision, the starting time, the ending time and the original simulation value of the preset variable between the starting time and the ending time;
marking the starting time as 0s, the ending time as 10s, and the time between the starting time and the ending time as 5s, wherein the determining, by a solver, a new simulation value of a preset variable satisfying the target precision according to the target precision, the starting time, the ending time, and the original simulation values of the preset variable between the starting time and the ending time comprises:
determining a new simulation value of the preset variable at the time of 2.5s by a solver according to the original simulation value of the preset variable at the time of 0s and the original simulation value of the preset variable at the time of 5 s;
and determining a new simulation value of the preset variable at the time of 7.5s according to the original simulation value of the preset variable at the time of 5s and the original simulation value of the preset variable at the time of 10s by a solver.
2. The method of claim 1, wherein the determining, by the solver, a new simulation value of the preset variable that meets the target precision based on the target precision, the start time, the end time, and an original simulation value of the preset variable between the start time and the end time, further comprises:
determining a new simulation value of the preset variable at the time of 1.25s by a solver according to the original simulation value of the preset variable at the time of 0s and the new simulation value of the preset variable at the time of 2.5 s;
determining a new simulation value of the preset variable at the time of 3.75s by a solver according to the original simulation value of the preset variable at the time of 5s and the new simulation value of the preset variable at the time of 7.5 s;
and determining the new simulation value of the preset variable at the 8.75s time according to the new simulation value of the preset variable at the 7.5s time and the original simulation value of the preset variable at the 10s time by a solver.
3. The method according to claim 1 or 2, wherein displaying the new simulation value of the preset variable corresponding between the start time and the end time on the display interface comprises:
and displaying the new simulation numerical value on a display interface every time the solver calculates the new simulation numerical value of one preset variable.
4. An electronic device, the electronic device comprising:
a processor and a memory;
the processor is configured to execute the steps of the simulation result display method according to any one of claims 1 to 3 by calling a program or instructions stored in the memory.
5. A computer-readable storage medium storing a program or instructions that cause a computer to execute the steps of the simulation result display method according to any one of claims 1 to 3.
CN202311594694.1A 2023-11-28 2023-11-28 Simulation result display method, electronic device and storage medium Active CN117311889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311594694.1A CN117311889B (en) 2023-11-28 2023-11-28 Simulation result display method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311594694.1A CN117311889B (en) 2023-11-28 2023-11-28 Simulation result display method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN117311889A CN117311889A (en) 2023-12-29
CN117311889B true CN117311889B (en) 2024-04-09

Family

ID=89255513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311594694.1A Active CN117311889B (en) 2023-11-28 2023-11-28 Simulation result display method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117311889B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7774172B1 (en) * 2003-12-10 2010-08-10 The Mathworks, Inc. Method for using a graphical debugging tool
CN108319411A (en) * 2017-01-16 2018-07-24 阿里巴巴集团控股有限公司 A kind of method, apparatus and electronic equipment of chart partial enlargement
CN110502784A (en) * 2019-07-09 2019-11-26 韶关学院 A kind of product simulation optimization method
CN115145496A (en) * 2022-09-05 2022-10-04 中国汽车技术研究中心有限公司 Simulation result data processing method, device and storage medium
CN115544844A (en) * 2022-10-24 2022-12-30 杭州电子科技大学 Cutting fluid injection speed optimization method based on high-performance modeling simulation
CN116540899A (en) * 2023-04-28 2023-08-04 深圳麦科田生物医疗技术股份有限公司 Interface display method and device, lung function instrument and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7774172B1 (en) * 2003-12-10 2010-08-10 The Mathworks, Inc. Method for using a graphical debugging tool
CN108319411A (en) * 2017-01-16 2018-07-24 阿里巴巴集团控股有限公司 A kind of method, apparatus and electronic equipment of chart partial enlargement
CN110502784A (en) * 2019-07-09 2019-11-26 韶关学院 A kind of product simulation optimization method
CN115145496A (en) * 2022-09-05 2022-10-04 中国汽车技术研究中心有限公司 Simulation result data processing method, device and storage medium
CN115544844A (en) * 2022-10-24 2022-12-30 杭州电子科技大学 Cutting fluid injection speed optimization method based on high-performance modeling simulation
CN116540899A (en) * 2023-04-28 2023-08-04 深圳麦科田生物医疗技术股份有限公司 Interface display method and device, lung function instrument and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于AiNet的仿真优化加速/求解器研究;郭宇等;中国机械工程;20051231;第15卷(第24期);第2214-2216、2221页 *

Also Published As

Publication number Publication date
CN117311889A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN107967359B (en) Data visual analysis method, system, terminal and computer readable storage medium
US20020154148A1 (en) Image displaying method
JP2018537800A (en) Memory access command transfer descriptor
CN113655999B (en) Page control rendering method, device, equipment and storage medium
US20130226530A1 (en) Mesh generation system
Schatz Low-latency histogram equalization for infrared image sequences: a hardware implementation
US10204187B1 (en) Method and system for implementing data reduction for waveform data
CN110471700B (en) Graphic processing method, apparatus, storage medium and electronic device
US10018983B2 (en) PLC system and arithmetic-expression-data-creation supporting apparatus
JP2017111658A (en) Design support device
US8056045B2 (en) System and method for circuit simulation
CN117311889B (en) Simulation result display method, electronic device and storage medium
CN107977923B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JP2022078286A (en) Training method and training device for data processing model, electronic equipment and storage medium
KR102392977B1 (en) Method and apparatus for reducing storage space of parameter table, device, and computer-readable storage medium
CN114797109A (en) Object editing method and device, electronic equipment and storage medium
JP5795270B2 (en) Editing device, editing method and editing program
CN111062004A (en) Prediction model adjusting method and device, prediction simulator and storage medium
CN110674179A (en) Query interface generation method, device and medium
US20140365940A1 (en) Systems and methods for manipulating boundary conditions
CN111091602A (en) SLAM back end optimization method, optimization device and electronic equipment
KR102364191B1 (en) Hair counter for hair loss treatment evaluation and operating method thereof
JP7198492B2 (en) Personality output device, personality output method, personality output program, word evaluation value generation device, word evaluation value generation method, and word evaluation value generation program
JP3127876B2 (en) Model parameter extraction device and method, and storage medium storing the program
US20220360517A1 (en) Scheduling virtual users based on curve fitting

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