An energy model for artificially generated bubbles in liquids