# US 2019/0377844 A1 · Pre-Step Co-Simulation Method and Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0377844 A1
- Document ID: US20190377844A1
- Status: Published application
- Kind: A1
- Application number: 16/433,946
- Filed: 2019-06-06
- Published: 2019-12-12
- Earliest claimed: 2018-06-07
- Assignees: Kompetenzzentrum - Das Virtuelle Fahrzeug Forschungsgesellschaft mbH
- Applicants: Kompetenzzentrum - Das virtuelle Fahrzeug Forschungsgesellschaft mbH
- Inventors: Martin Benedikt; Simon Genser; Jost Bernasch
- Web page: https://patentgrep.com/patent/US20190377844A1

## CPC

- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 30/33: Design verification, e.g. functional simulation or model checking
- G06F 17/11: for solving equations {, e.g. nonlinear equations, general mathematical optimization problems (optimization specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 17/13: Differential equations (using digital differential analysers G06F7/64)
- G06F 2111/04: Constraint-based CAD
- G06F 2111/10: Numerical modelling
- G06F 2111/20: Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
- G06F 2117/08: HW-SW co-design, e.g. HW-SW partitioning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A pre-step co-simulation method and device for co-simulation of several subsystems is disclosed, utilizing partial derivatives of replacement subsystems. On this basis, the exact solutions of output variables of the individual subsystems are approximated by evaluation of an Error Differential Equation in order to estimate the future progress of the approximated exact output variables; corresponding input variables are determined by optimization prior to the current co-simulation time increment. The pre-step co-simulation method is realized within a computer-executable program and implemented in a network of computing nodes.

## Claims

### Claim 1

A method for simulating a real physical model on the basis of a pre-step co-simulation system, the method comprising:
providing a first subsystem simulating at least one first parameter v of the real physical model on the basis of a first equation system, wherein the first equation system is configured for determining the first parameter v on a basis of at least one second parameter F,
providing a second subsystem simulating the at least one second parameter F of the real physical model on the basis of a second equation system, wherein the second equation system is configured for determining the second parameter F on a basis of the at least one first parameter v, wherein the first input value v_in of the first parameter v in the second subsystem and the second input value F_in of the second parameter F in the first subsystem are estimated by extrapolation at a first coupling time point T, k−1,
determining a first output value v_out of the first parameter v by the first subsystem and a second output value F_out of the second parameter F by the second subsystem,
determining a first error between the estimated first input value v_in of the first parameter v and the determined first output value v out of the first parameter v and a second error between the estimated second input value F_in of the second parameter and the determined second output value of the second parameter F at a subsequent second coupling time point,
defining a first local replacement model of the real physical model which is based on partial derivatives of the first subsystem, and
defining a second local replacement model of the real physical model which is based on partial derivatives of the second subsystem, wherein on the basis of the first local replacement model and the second local replacement model an Error Differential Equation is defined,
wherein the Error Differential Equation is configured for receiving the first error and the second error for determining a first characteristic of the first parameter v over time and/or a second characteristic of the second parameter F over time between the first coupling time point T, k−1 and a subsequent second coupling time point Tk,
wherein on the basis of the first characteristic of the first parameter v and/or the second characteristic of the second parameter F the first input value v_in of the first parameter v and/or the second input value F_in of the second parameter F at the subsequent second coupling time point Tk is optimized for simulating the first parameter v in the first subsystem and/or the second parameter F in the second subsystem.

### Claim 2 (depends on 1)

The method according to claim 1,
defining a global replacement model of the real physical model which is based on partial derivatives of the first subsystem and on partial derivatives of the second subsystem,
wherein the global replacement model is configured for estimating a future characteristic of the first parameter v and/or the second parameter F between the second coupling time point Tk and a third coupling time point T, k+1 such that a next first input value v_in of the first parameter v and a next second input value F_in of the second parameter F at the second coupling time point Tk can be determined.

### Claim 3 (depends on 2)

The method according to claim 2,
wherein the global replacement model is based on a transformation of the first subsystem and the second subsystem by time derivation of the first output value v_out of the first parameter v and the second output value F_out of the second parameter F.

### Claim 4 (depends on 1)

The method according to claim 1,
wherein the solution of the Error Differential Equation is approximated by an explicit or implicit numerical solver.

### Claim 5 (depends on 1)

The method according to claim 1,
wherein the estimation by extrapolation is a model-based extrapolation for prediction of the approximated exact output variables is utilized.

### Claim 6 (depends on 1)

The method according to claim 1,
wherein the estimation by extrapolation is a signal-based extrapolation for prediction of the approximated exact output variables is utilized.

### Claim 7 (depends on 1)

The method according to claim 1,
wherein the optimization of the input variables is based on a variational approach.

### Claim 8 (depends on 1)

The method according to claim 1,
wherein the partial derivatives of the first subsystem and the partial derivatives of the second subsystem are calculated instantaneously, in particular by using a subspace system identification algorithm.

### Claim 9 (depends on 1)

The method according to claim 1, wherein a time increment between the first coupling time point T, k−1 and the second coupling time point Tk is adapted on the basis of the first error and the second error.

### Claim 10

A simulating device for simulating a real physical model on the basis of a pre-step co-simulation system, the device comprising:
a first subsystem unit having a first subsystem simulating at least one first parameter v of the real physical model on the basis of a first equation system, wherein the first equation system is configured for determining the first parameter v on a basis of at least one second parameter F,
a second subsystem unit having a second subsystem simulating the at least one second parameter F of the real physical model on the basis of a second equation system, wherein the second equation system is configured for determining the second parameter F on a basis of the at least one first parameter v,
an estimating unit configured for estimating the first input value v_in of the first parameter v in the second subsystem and the second input value F_in of the second parameter F in the first subsystem by extrapolation at an first coupling time point T, k−1, wherein a first output value v_out of the first parameter v is determinable by the first subsystem and a second output value F_out of the second parameter F is determinable by the second subsystem,
an error determination unit configured for determining a first error between the estimated first input value v_in of the first parameter v and the determined first output value vout of the first parameter v and a second error between the estimated second input value F_in of the second parameter F and the determined second output value F out of the second parameter F at a subsequent coupling time point Tk,
an Error Differential Equation unit for defining a first local replacement model of the real physical model which is based on partial derivatives of the first subsystem and for defining a second local replacement model of the real physical model which is based on partial derivatives of the second subsystem, wherein on the basis of the first local replacement model and the second local replacement model an Error Differential Equation is definable by the Error Differential Equation unit, wherein the Error Differential Equation is configured for receiving the first error and the second error for determining a first characteristic of the first parameter v over time and/or second characteristic of the second parameter F over time between the first coupling time point and a subsequent second coupling time point Tk, and
an optimization unit configured for optimizing the first input value v_in of the first parameter v and/or the second input value F_in of the second parameter F at the subsequent coupling time point at Tk on the basis of the first characteristic of the first parameter v and/or the second characteristic of the second parameter F for simulating the first parameter v in the first subsystem and/or the second parameter F in the second subsystem.

### Claim 11 (depends on 10)

The device according to claim 10, further comprising:
a single or multiple computing nodes connected via a communication network to a network of computing nodes;
a memory area to store the input values of the first and second parameter, the partial derivatives, output values of the first and second parameter and in particular output derivative variables, the computed partial derivatives of the subsystems and the first and second equations;
at least one processor having access to the memories of the computing nodes and configured to execute a method including,
providing a first subsystem simulating at least one first parameter v of the real physical model on the basis of a first equation system, wherein the first equation system is configured for determining the first parameter v on a basis of at least one second parameter F,
providing a second subsystem simulating the at least one second parameter F of the real physical model on the basis of a second equation system, wherein the second equation system is configured for determining the second parameter F on a basis of the at least one first parameter v, wherein the first input value v_in of the first parameter v in the second subsystem and the second input value F_in of the second parameter F in the first subsystem are estimated by extrapolation at a first coupling time point T, k−1,
determining a first output value v_out of the first parameter v by the first subsystem and a second output value F_out of the second parameter F by the second subsystem,
determining a first error between the estimated first input value v_in of the first parameter v and the determined first output value v out of the first parameter v and a second error between the estimated second input value F_in of the second parameter and the determined second output value of the second parameter F at a subsequent second coupling time point,
defining a first local replacement model of the real physical model which is based on partial derivatives of the first subsystem, and
defining a second local replacement model of the real physical model which is based on partial derivatives of the second subsystem, wherein on the basis of the first local replacement model and the second local replacement model an Error Differential Equation is defined,
wherein the Error Differential Equation is configured for receiving the first error and the second error for determining a first characteristic of the first parameter v over time and/or a second characteristic of the second parameter F over time between the first coupling time point T, k−1 and a subsequent second coupling time point Tk,
wherein on the basis of the first characteristic of the first parameter v and/or the second characteristic of the second parameter F the first input value v_in of the first parameter v and/or the second input value F_in of the second parameter F at the subsequent second coupling time point Tk is optimized for simulating the first parameter v in the first subsystem and/or the second parameter F in the second subsystem.

### Claim 12 (depends on 11)

The device according to claim 11,
wherein the computing nodes represent real-time systems and the communication of data is preformed asynchronously.

### Claim 13

A computer-readable medium on which there is stored a computer program for simulating a real physical model, the computer program, when being executed by a data processor, is adapted for performing and/or controlling a method including,
providing a first subsystem simulating at least one first parameter v of the real physical model on the basis of a first equation system, wherein the first equation system is configured for determining the first parameter v on a basis of at least one second parameter F,
providing a second subsystem simulating the at least one second parameter F of the real physical model on the basis of a second equation system, wherein the second equation system is configured for determining the second parameter F on a basis of the at least one first parameter v, wherein the first input value v_in of the first parameter v in the second subsystem and the second input value F_in of the second parameter F in the first subsystem are estimated by extrapolation at a first coupling time point T, k−1,
determining a first output value v_out of the first parameter v by the first subsystem and a second output value F_out of the second parameter F by the second subsystem,
determining a first error between the estimated first input value v_in of the first parameter v and the determined first output value v out of the first parameter v and a second error between the estimated second input value F_in of the second parameter and the determined second output value of the second parameter F at a subsequent second coupling time point,
defining a first local replacement model of the real physical model which is based on partial derivatives of the first subsystem, and
defining a second local replacement model of the real physical model which is based on partial derivatives of the second subsystem, wherein on the basis of the first local replacement model and the second local replacement model an Error Differential Equation is defined,
wherein the Error Differential Equation is configured for receiving the first error and the second error for determining a first characteristic of the first parameter v over time and/or a second characteristic of the second parameter F over time between the first coupling time point T, k−1 and a subsequent second coupling time point Tk,
wherein on the basis of the first characteristic of the first parameter v and/or the second characteristic of the second parameter F the first input value v_in of the first parameter v and/or the second input value F_in of the second parameter F at the subsequent second coupling time point Tk is optimized for simulating the first parameter v in the first subsystem and/or the second parameter F in the second subsystem.
