A control system and control method for controlling a modular apparatus
for extracting petroleum and/or generating electricity based on
subsurface data as well as market prices of electricity and/or petroleum.
One or more probes measure subsurface total pressure, partial pressure of
carbon dioxide, partial pressure of hydrogen, oil flow rate, gas flow
rate, underground temperature, and/or viscosity of the oil. The control
system/method controls the apparatus based on the subsurface parameters
by controlling an injection module and/or a gas separator module to
increase or decrease output of driver gas. The control system/method may
also control the injection module and/or the gas separator module to
increase (or decrease) output of driver gas when the market price of
electricity decreases (or increases) and/or petroleum increases (or
decreases).