The present application relates to the field of oil reservoir numerical
simulation, and discloses a GPU end
assembly method,
system, medium and equipment for oil reservoir equation Jacobian matrix based on directed connection traversal, which comprises the following steps: reading the
current time step and Newton iteration
state variable of the oil reservoir model; distributing or reusing the matrix
data source and the right end item
data source on the GPU end; calculating the cumulative item
diagonal block contribution and the right end item contribution; calculating the connection
potential difference and the upwind direction; traversing the connection flux contribution according to the directed connection
record; forming the flux right end item, the pressure column Jacobian contribution and the state column Jacobian contribution on the GPU end; adding the
wellbore, perforation or boundary upwind contribution to the matrix
data source and the right end item data source on the GPU end; and marking the completed data source as ready for the linear equation
package, solving and convergence reduction module to read. The present application adopts GPU fine-grained parallelism, efficiently supports large-scale
black oil / component
model simulation, and realizes the GPU parallel
assembly of the linear equation matrix and the right end item in the oil reservoir numerical
simulation.