# US 2015/0317417 A1 · Methods and systems to control an adaptive time-step

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

- Number: US 2015/0317417 A1
- Document ID: US20150317417A1
- Status: Published application
- Kind: A1
- Application number: 14/268,054
- Filed: 2014-05-02
- Published: 2015-11-05
- Earliest claimed: 2014-05-02
- Applicants: Texas Instruments Incorporated
- Inventors: Gang Peter FANG
- Web page: https://patentgrep.com/patent/US20150317417A1

## CPC

- G06F 30/367: Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 30/23: using finite element methods [FEM] or finite difference methods [FDM]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method (and system) includes receiving a set of nonlinear algebraic equations for a system at a current time point, calculating a set of solutions to the set of nonlinear algebraic equations by using a first time step, and determining whether a maximum value of a local truncation error associated with a first solution of the set of solutions is greater than a threshold. Based on the maximum value of the local truncation error being greater than the threshold, the method includes iteratively calculating a coupled set of equations to generate a second time step so as to make a maximum value of local truncation error associated with a set of solutions to the coupled set of equations not greater than the threshold, wherein the coupled set of equations comprises the received set of nonlinear algebraic equations and a local truncation error equation corresponding to the first solution, with a time step that is an unknown variable in the coupled set of equations.

## Claims

### Claim 1

A method, comprising:
receiving a set of nonlinear algebraic equations for a system at a current time point;
calculating a set of solutions to the set of nonlinear algebraic equations by using a first time step, wherein each of the solutions corresponds to a node of the system and a time step is an interval between a previous time point and the current time point;
determining whether a maximum value of a local truncation error associated with a first solution of the set of solutions is greater than a threshold; and
based on the maximum value of the local truncation error being greater than the threshold, iteratively calculating a coupled set of equations to generate a second time step so as to make a maximum value of local truncation error associated with a set of solutions to the coupled set of equations not greater than the threshold, wherein the coupled set of equations comprises the received set of nonlinear algebraic equations and a local truncation error equation corresponding to the first solution, with a time step that is an unknown variable in the coupled set of equations.

### Claim 2 (depends on 1)

The method of claim 1 further comprising determining the maximum value of the local truncation error by searching a set of local truncation errors, each local truncation error corresponding to each of the calculated solutions.

### Claim 3 (depends on 1)

The method of claim 1 further comprising, based on the maximum value of the local truncation error not being greater than the threshold, accepting the first time step and additionally determining whether a converge condition is satisfied for the calculated set of solutions based on the first time step.

### Claim 4 (depends on 1)

The method of claim 1 further comprising deriving the set of nonlinear algebraic equations for the system is derived from a set of nonlinear differential algebraic equations that describes the system.

### Claim 5 (depends on 1)

The method of claim 1 wherein the system is a circuit.

### Claim 6 (depends on 1)

The method of claim 1 further comprising calculating the local truncation error by using the local truncation error equation, the local truncation error equation comprises finding a value of difference, for a node, between each of the calculated set of solutions at the current time point and a calculated solution, by using polynomial extrapolation, from a previous time point.

### Claim 7 (depends on 1)

The method of claim 1 wherein iteratively calculating the coupled set of equations generates, at each iteration, a new value for the first time step that is used to calculate a set of solutions to the set of nonlinear algebraic equations.

### Claim 8

A system, comprising:
an input device configured to receive a set of nonlinear differential algebraic equations that describes the system, and a set of control parameters;
a computing resource; and
a storage device coupled to the computing resource, wherein the storage device is configured to store a plurality of software instructions, wherein when executed, the software instructions cause the computing resource to:
calculate a set of solutions to the set of nonlinear algebraic equations by using a value for a first time step, wherein each of the solutions corresponds to a node of the system and a time step is an interval between a previous time point and a current time point;
determine whether a maximum value of local truncation error associated with a first solution of the set of solutions is greater than a threshold; and
based on the maximum value of the local truncation error being greater than the threshold, iteratively calculate a coupled set of equations to generate a second time step so as to make a maximum value of local truncation error associated with a set of solutions to the coupled set of equations not greater than the threshold, wherein the coupled set of equations comprises the received set of nonlinear algebraic equations and a local truncation error equation corresponding to the first solution, with a time step that is an unknown variable in the coupled set of equations.

### Claim 9 (depends on 8)

The system of claim 8 wherein the software instructions, when executed, cause the computing resource to determine the maximum value of local truncation error by searching a set of local truncation errors, each local truncation error corresponding to each of the calculated solutions.

### Claim 10 (depends on 8)

The system of claim 8 based on the maximum value of local truncation error not being greater than the threshold, the software instructions, when executed, cause the computing resource to:
accept the first time step and additionally determine whether a converge condition is satisfied for the calculated set of solutions based on the first time step.

### Claim 11 (depends on 8)

The system of claim 8 the system is a circuit.

### Claim 12 (depends on 8)

The system of claim 8 wherein the software instructions, when executed, cause the computing resource to calculate the local truncation error by using the local truncation error equation, the local truncation error equation comprises finding a value of difference, for a node, between each of the calculated set of solutions at the current time point and a calculated solution, by using polynomial extrapolation, from a previous time point.

### Claim 13 (depends on 8)

The system of claim 8 wherein the software instructions, when executed, cause the computing resource to iteratively calculate the coupled set of equations to generate, at each iteration, a new value for the first time step that is used to calculate a set of solutions to the set of nonlinear algebraic equations.

### Claim 14

A non-transitory, computer-readable storage device containing instructions that, when executed by a computing resource, cause the computing resource to:
calculate a set of solutions to the set of nonlinear algebraic equations by using a value for a first time step, wherein each of the solutions corresponds to a node of the system and a time step is an interval between a previous time point and the current time point;
determine whether maximum value of local truncation error associated with a first solution of the set of solutions is greater than a threshold; and
based on the maximum value of the local truncation error being greater than the threshold, iteratively calculate a coupled set of equations to generate a second time step so as to make a maximum value of local truncation error associated with a set of solutions to the coupled set of equations not greater than the threshold, wherein the coupled set of equations comprises the received set of nonlinear algebraic equations and a local truncation error equation corresponding to the first solution, with a time step that is an unknown variable in the coupled set of equations.

### Claim 15 (depends on 14)

The non-transitory, computer-readable storage device of claim 14 wherein the instructions, when executed, cause the computing resource to determine the maximum value of local truncation error by searching a set of local truncation errors, each local truncation error corresponding to each of the calculated solutions.

### Claim 16 (depends on 14)

The non-transitory, computer-readable storage device of claim 14 wherein the system is a circuit.

### Claim 17 (depends on 14)

The non-transitory, computer-readable storage device of claim 14 wherein based on the maximum value of local truncation error not being greater than the threshold, the software instructions, when executed, cause the computing resource to:
accept the first time step and additionally determine whether a converge condition is satisfied for the calculated set of solutions based on the first time step.

### Claim 18 (depends on 14)

The non-transitory, computer-readable storage device of claim 14 wherein the instructions, when executed, cause the computing resource to calculate the local truncation error by using the local truncation error equation, the local truncation error equation comprises finding a value of difference, for a node, between each of the calculated set of solutions at the current time point and a calculated solution, by using polynomial extrapolation, from a previous time point.

### Claim 19 (depends on 14)

The non-transitory, computer-readable storage device of claim 14 wherein the instructions, when executed, cause the computing resource to iteratively calculate the coupled set of equations to generate, at each iteration, a new value for the first time step that is used to calculate a set of solutions to the set of nonlinear algebraic equations.
