CPC G06F 30/20 (2020.01) | 20 Claims |
1. A method for synchronizing programs for simulation of a technical system, the programs comprising a first simulation program and a second simulation program, wherein the first simulation program simulates kinematics of the technical system and the second simulation program simulates a control of an operation of the technical system, wherein the first simulation program outputs values of a first variable at first time points between first time intervals according to a first frequency in virtual simulated time and the second simulation program outputs values of a second variable at second time points between second time intervals according to a second frequency in virtual simulated time, the first frequency being lower than the second frequency, wherein the values of the first variable are processed by the second simulation program in order to determine the values of the second variable and where the values of the second variable at the first time points are processed by the first simulation program in order to determine values of the first variable the method comprising:
determining values of the first variable at second time points between two successive first time points based on an approximation, wherein the second simulation program uses the approximated values in order to determine values of the second variable at second time points between the two successive first time points;
approximating for respective first time intervals an integral of the second variable along a path of the first variable within the respective first time interval based on a first integral value and a second integral value, wherein the first integral value is determined based on the values of the first variable at first time points limiting the respective first time interval and an estimated value of the second variable for the respective first time interval and the second integral value is determined based on the approximated values of the first variable at second time points limiting respective second time intervals lying within the respective first time interval and an estimated value of the second variable for each second time interval lying with the respective first time interval, wherein the first integral value and the second integral value reflect physical coupling between the first simulation program and the second simulation program;
determining an error based on an absolute value of a difference between the first integral value and the second integral value; and
informing a user automatically when there are inconsistencies in the interaction of the first and second simulation programs which may lead to incorrect results by outputting a warning through a user interface, increasing the first frequency, or outputting the warning and increasing the first frequency when the error exceeds a predetermined threshold.
|