Analysis of power generation for direct wave energy converter