Patent ID: 8682628

Claim:
One or more computer-readable non-transitory media comprising computer-executable instructions to instruct a computing system to: iteratively solve a system of equations that model a wellbore and fracture network of node and pipe segments in a reservoir to provide a solution wherein the node and pipe segments comprise a pipe of a node and pipe fracture segment mathematically coupled to a node of a fracture-wellbore segment and comprise a pipe of the fracture-wellbore segment mathematically coupled to a node of a node and pipe well segment and wherein the system of equations comprises well segment equations for multiphase flow in a wellbore of the wellbore and fracture network, fracture segment equations for multiphase flow in a porous medium of a fracture of the wellbore and fracture network, fracture-wellbore segment equations for multiphase flow between the fracture and the wellbore, and formation connection equations for multiphase flow between a formation of the reservoir and the fracture; and output the solution to a reservoir simulator configured to simulate the reservoir.