Patent ID: 7739081

Claim:
A method comprising: analyzing, using a processor of an electronic device, a block diagram model of a physical dynamic system in a block diagram modeling environment, the analyzing comprising: deriving from the block diagram model a set of equations describing the behavior of the system, the set of equations comprising at least one of ordinary differential equations (ODEs) and differential algebraic equations (DAEs), and determining a mass matrix M(t,x,y) and a forcing function f(t,x,y) from the set of equations, wherein t, x, and y represent time, states and outputs, respectively; generating, using the processor of the electronic device, a linearly-implicit formulation of the set of equations based on the analyzing, wherein the linearly-implicit formulation includes M ( t,x,y ) {dot over (x)}=f ( t,x,y ); solving, using the processor of the electronic device, the linearly-implicit formulation of ODEs or DAEs in the block diagram environment to generate a solution; and executing the model of the physical dynamic system using the solution to simulate the behavior of the physical dynamic system.