Analysis and simulation of a blue energy cycle