# US 2023/0090083 A1 · Systems and methods for rescaling executable simulation models

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

- Number: US 2023/0090083 A1
- Document ID: US20230090083A1
- Status: Published application
- Kind: A1
- Application number: 17/670,997
- Filed: 2022-02-14
- Published: 2023-03-23
- Earliest claimed: 2017-06-02
- Assignees: The MathWorks, Inc.
- Applicants: The MathWorks, Inc.
- Inventors: Peter J. Maloney; Dakai Hu; Darshankumar M. Pandit
- Web page: https://patentgrep.com/patent/US20230090083A1

## CPC

- F02D 41/1401: {characterised by the control or regulation method (F02D41/1473, F02D41/1477 take precedence)}
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- F02D 41/2422: {Selective use of one or more tables}
- F02D 41/26: using computer, e.g. microprocessor
- G06F 30/12: characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
- G06F 30/23: using finite element methods [FEM] or finite difference methods [FDM]
- F02D 2041/1423: {Identification of model or controller parameters}
- F02D 2041/1433: {using a model or simulation of the system}
- F02D 2200/1002: Output torque
- F02D 2200/101: Engine speed
- G06F 2111/12: Symbolic schematics
- F02D: CONTROLLING COMBUSTION ENGINES (vehicle fittings, acting on a single sub-unit only, for automatically controlling vehicle speed B60K31/00; conjoint control of vehicle sub-units of different type or different function, road vehicle drive control systems for purposes other than the control of a single sub-unit B60W)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods automatically rescale an original electric motor model so that it models an electric motor of a different size. The original electric motor model may be coupled to a motor controller model, and the systems and methods may also rescale the original motor controller model to produce a rescaled motor controller model matched to the rescaled electric motor model. The original electric motor model may include motor parameters and motor lookup tables, and the original motor controller model may include controller parameters and controller lookup tables. Rescaling factors indicating the size of the new electric motor being modeled may be received, and ratios may be computed as a function of the rescaling factors. Original motor parameters and controller parameters may be rescaled based on the ratios. Original motor lookup tables and controller lookup tables may be reshaped based on the ratios.

## Claims

### Claim 1

A method comprising:
accessing, from a memory, an engine controller simulation model and an engine simulation model, the engine controller simulation model and the engine simulation model being executable by a simulation engine of a modeling environment, the engine controller simulation model including original controller parameters and original controller lookup tables, the engine simulation model including original engine parameters and original engine lookup tables, the engine simulation model during execution simulating operation of an original engine of a given size;
receiving one or more rescaling factors that indicate a change in the given size of the original engine to a new size of a resized engine;
determining, by a processor coupled to the memory, based on the one or more rescaling factors, a plurality of ratios between the original engine of the given size and the resized engine of the new size;
generating, by the processor, rescaled controller parameters by modifying the original controller parameters based on one or more of the plurality of ratios;
generating, by the processor, rescaled engine parameters by modifying the original engine parameters based on one or more of the plurality of ratios;
creating, by the processor, reshaped controller lookup tables by modifying the original controller lookup tables based on one or more of the plurality of ratios; and
creating, by the processor, reshaped engine lookup tables by modifying the original engine lookup tables based on one or more of the plurality of ratios, wherein
the original engine and the resized engine are an internal combustion engine, a compression engine, an electric motor, or a hybrid automobile powertrain.

### Claim 2

A method comprising:
accessing, from a memory, within a modeling environment, an engine controller simulation model and an engine simulation model, the engine controller simulation model and the engine simulation model being executable by a simulation engine of a modeling environment, the engine simulation model during execution simulating operation of an original engine of a given size, the engine controller simulation model including a model of the original engine and implementing a feedforward controller that matches the engine simulation model;
receiving one or more rescaling factors that indicate a change in the given size of the original engine to a new size of a resized engine;
rescaling, by a processor coupled to the memory, based on the one or more rescaling factors, the engine simulation model to simulate the resized engine of the new size;
rescaling, by the processor, based on the one or more rescaling factors, the engine controller simulation model to match the engine simulation model as rescaled to simulate the resized engine of the new size; and
at least one of:
executing, by the processor, the engine controller simulation model and the engine simulation model following the rescaling of the engine controller simulation model and the rescaling of the engine simulation model to simulate operation of the resized engine of the new size; or
generating code for the engine controller simulation model as rescaled to match the engine simulation model as rescaled to simulate the resized engine of the new size, wherein
the original engine and the resized engine are an internal combustion engine, a compression engine, an electric motor, or a hybrid automobile powertrain.

### Claim 4 (depends on 3)

The method of claim 3 wherein
the original electric motor has a cylindrical physical form with an axial dimension and a radial dimension,
the original electric motor has a stator with windings, and
the one or more rescaling factors is an axial rescaling factor, a radial rescaling factor or a rewinding factor.

### Claim 5 (depends on 3)

The method of claim 3 wherein
the original electric motor has a cylindrical physical form with an axial dimension and a radial dimension,
the original electric motor has a stator with windings, and
the one or more rescaling factors that is received is an axial rescaling factor, the method further comprising:
deriving a radial rescaling factor based on the axial rescaling factor; and
deriving a rewinding factor based on the axial rescaling factor and the radial rescaling factor.

### Claim 6 (depends on 5)

The method of claim 5 wherein the radial rescaling factor is further based on a power ratio between the given size of the original electric motor and the new size of the resized electric motor.

### Claim 7 (depends on 5)

The method of claim 5 wherein the rewinding factor is further based on a direct current (DC) link voltage ratio between the given size of the original electric motor and the new size of the resized electric motor.

### Claim 8 (depends on 3)

The method of claim 3 wherein
the electric motor controller simulation model includes at least one of a Proportional (P) parameter, an Integral (I) parameter or a Derivative (D) parameter, and
the rescaling the electric motor controller simulation model includes rescaling the at least one of the P, I or D parameters based on the one or more rescaling factors.

### Claim 9 (depends on 4)

The method of claim 4 wherein
the electric motor controller simulation model includes a Proportional (P) parameter, and
the rescaling the electric motor controller simulation model includes rescaling the P parameter as a function of the axial rescaling factor and the rewinding factor.

### Claim 10 (depends on 4)

The method of claim 4 wherein
the electric motor controller simulation model includes an Integral (I) parameter, and
the rescaling the electric motor controller simulation model includes rescaling the I parameter as a function of the axial rescaling factor, the radial rescaling factor and the rewinding factor.

### Claim 11 (depends on 3)

The method of claim 3 wherein
the electronic motor simulation model includes original motor lookup tables containing motor data, and
the rescaling the electric motor simulation model includes modifying the original motor lookup tables based on the one or more rescaling factors.

### Claim 12 (depends on 11)

The method of claim 11 wherein the original motor lookup tables contain nonlinear data obtained from dynamometer testing of the original electric motor or Finite Element Analysis (FEA) of a design of the original electric motor.

### Claim 13

A method comprising:
accessing, from a memory, within a modeling environment, an electric motor controller simulation model and an electric motor simulation model, the electric motor controller simulation model and the electric motor simulation model being executable by a simulation engine of a modeling environment, the electric motor simulation model, during execution, simulating operation of an original electric motor of a given size, the electric motor controller simulation model matching the electric motor simulation model;
receiving one or more rescaling factors that indicate a change in the given size of the original electric motor to a new size of a resized electric motor;
rescaling, by a processor coupled to the memory, based on the one or more rescaling factors, the electric motor simulation model to simulate the resized electric motor of the new size;
rescaling, by the processor, based on the one or more rescaling factors, the electric motor controller simulation model to match the electric motor simulation model as rescaled to simulate the resized electric motor of the new size; and
executing, by the processor, the electric motor controller simulation model and the electric motor simulation model following the rescaling of the electric motor controller simulation model and the rescaling of the electric motor simulation model to simulate operation of the resized electric motor of the new size.

### Claim 13 (depends on 3)

The method of claim 3 wherein
the electric motor controller simulation model includes original controller lookup tables containing motor data, and
the rescaling the electric motor controller simulation model includes modifying the original controller lookup tables based on the one or more rescaling factors.

### Claim 14 (depends on 13)

The method of claim 13 wherein the original controller lookup tables include torque data and the modifying the original controller lookup tables includes rescaling the torque data as a function of the axial rescaling factor and the radial rescaling factor.
the electric motor controller simulation model includes original controller lookup tables containing motor data, and
the rescaling the electric motor controller simulation model includes modifying the original controller lookup tables based on the one or more rescaling factors.

### Claim 15 (depends on 3)

The method of claim 3 further comprising:
generating code for the electric motor controller simulation model following the rescaling the electric motor controller simulation model, the code configured for deployment as embedded software on an electronic control unit (ECU).
