# US 2023/0418575 A1 · Systems using computation graphs for flow solvers

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

- Number: US 2023/0418575 A1
- Document ID: US20230418575A1
- Status: Published application
- Kind: A1
- Application number: 18/201,724
- Filed: 2023-05-24
- Published: 2023-12-28
- Earliest claimed: 2020-09-01
- Assignees: Ansys, Inc.
- Applicants: Ansys, Inc.
- Inventors: Geoffrey Alexander MAIN; Raunak Deepak BORKER
- Web page: https://patentgrep.com/patent/US20230418575A1

## CPC

- G06F 8/44: {Encoding}
- G06F 8/4441: {Reducing the execution time required by the program code}
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 11/362: Debugging of software
- G06F 12/0646: {Configuration or reconfiguration}
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An embodiment of a method can create a directed acyclic graph (DAG) from a programmer specified set of computation units to solve, in a computer program, physics based simulations of physical systems, and the DAG can be used to analyze and debug the computer program. In this method, the computer program can be created by automatically determining dependency relationships in the set of computation units and automatically schedule their execution. The method can also automatically allocate memory for the computation units.

## Claims

### Claim at position 1

-21. (canceled)

### Claim 22

A method for creating software that performs physics simulations of physical systems, the method comprising:
defining a set of computation units for simulating a physical system, each computation unit comprising one or more variables representing characteristics of the physical system, each computation unit associated with an equation relating the one or more variables including an input variable and an output variable;
automatically determining a set of dependency relationships among the computation units based upon variables of the computation units;
automatically generating a representation of a schedule of execution for the computation units based on their determined dependencies;
creating an executable representation of the computation units with an execution order specified by the schedule, the executable representation being stored as part of the software to perform a simulation when executed; and
generating a directed acyclic graph (DAG) having a set of nodes representing the set of computation units, wherein the DAG is generated based on the automatically determined set of dependency relationships.

### Claim 23 (depends on 22)

The method as in claim 22, wherein the method further comprises:
automatically determining memory allocations for the computation units based on the determined dependencies.

### Claim 24 (depends on 22)

The method as in claim 22, wherein the stored computation units, which have their execution order specified by the schedule, represent a computation graph that is presentable as the DAG having the set of nodes, each of the nodes representing one of the computation units.

### Claim 25 (depends on 24)

The method as in claim 24, wherein each computation unit is represented in a computer programming language.

### Claim 26 (depends on 25)

The method as in claim 25, wherein the method further comprises:
displaying the DAG on a display device, wherein the DAG is a finite directed graph with no cycles, and the DAG specifies the flow of computations among the computation units.

### Claim 27 (depends on 25)

The method as claim 25, wherein the method further comprises:
displaying, while debugging the software, a comparison of the inputs and outputs of each computational unit between two successive versions of the software.

### Claim 28 (depends on 25)

The method as in claim 25, wherein the method further comprises:
executing the computations in the computation units in an order specified by the schedule once for each iteration through the DAG, wherein the method uses multiple iterations to derive a converged solution in a simulation.

### Claim 29 (depends on 25)

The method as in claim 25, wherein each variable in the set of input and output variables is defined by a unique string of characters and a type of variable, and wherein the defining of the set of computation units is performed by one or more human programmers.

### Claim 30 (depends on 29)

The method as in claim 29, wherein the DAG is automatically constructed by a data processing system, which executes a program development environment, from the definition of the set of computation units.

### Claim 31 (depends on 23)

The method as in claim 23, wherein the memory allocations are specified by a memory coloring algorithm.

### Claim 32

A non-transitory machine readable medium storing executable program instructions which when executed by a data processing system cause the data processing system to perform a method for creating software that performs physics simulations of physical systems, the method comprising:
receiving a set of computation units for simulating a physical system, each computation unit comprising one or more variables representing characteristics of the physical system, each computation unit associated with an equation relating the one or more variables including an input variable and an output variable;
automatically determining a set of dependency relationships among the computation units based upon variables of the computation units;
automatically generating a representation of a schedule of execution for the computation units based on their determined dependencies;
creating an executable representation of the computation units with an execution order specified by the schedule, the executable representation being stored as part of the software to perform a simulation when executed; and
generating a directed acyclic graph (DAG) having a set of nodes representing the set of computation units, wherein the DAG is generated based on the automatically determined set of dependency relationships.

### Claim 33 (depends on 32)

The medium as in claim 32, wherein the method further comprises:
automatically determining memory allocations for the computation units based on the determined dependencies.

### Claim 34 (depends on 32)

The medium as in claim 32, wherein the stored computation units, which have their execution order specified by the schedule, represent a computation graph that is presentable as the DAG having the set of nodes, each of the nodes representing one of the computation units.

### Claim 35 (depends on 34)

The medium as in claim 34, wherein each computation unit is in a computer programming language.

### Claim 36 (depends on 35)

The medium as in claim 35, wherein the method further comprises:
displaying the DAG on a display device, wherein the DAG is a finite directed graph with no cycles, and the DAG specifies the flow of computations among the computation units.

### Claim 37 (depends on 35)

The medium as in claim 35, wherein the method further comprises:
displaying, while debugging the software, a comparison of the inputs and outputs of each computational unit between two successive versions of the software.

### Claim 38 (depends on 35)

The medium as in claim 35, wherein the method further comprises:
executing the computations in the computation units in an order specified by the schedule once for each iteration through the DAG, wherein the method uses multiple iterations to derive a converged solution in a simulation.

### Claim 39 (depends on 35)

The medium as in claim 35, wherein each variable in the set of input and output variables is defined by a unique string of characters and a type of variable, and wherein the set of computation units is defined by one or more human programmers.

### Claim 40 (depends on 39)

The medium as in claim 39, where the DAG is automatically constructed by a data processing system, which executes a program development environment, from the definition of the set of computation units.

### Claim 41 (depends on 33)

The medium as in claim 33, wherein the memory allocations are specified by a memory coloring algorithm.
