To extract electrical energy from sea waves in a commercially and technologically acceptable manner, a number of issues have to be solved. Electricity generation by means of direct conversion of the oscillating gravitational potential energy of a floating buoy can be anticipated, provided a proper design of a generator could be made. This paper deals with the simulation of a novel design for a linear generator aimed for the extraction of energy from ocean waves. The ocean waves are modeled by 4-m-height sinusoidal waves with a characteristic period of 7 s. A wide range of the geometrical sizes, permanent magnets, stator winding, and spring forces acting on the buoy are possible. This paper presents simulations of octagonal three-phase linear generators in the 100-kW power range. The beneficial effects of a stator of octagonal shape are briefly investigated, but not studied in depth. The main emphases in the present study have been to decrease power fluctuations and suppress voltage harmonics. In conventional rotating machines, well-known measures are to use a fractional number of slots per pole and phase, and an additional method is to make the pole edges smoother. These methods are here simulated for the first time on a linear machine aimed for ocean wave-energy conversion and a substantial reduction in power fluctuations and voltage harmonics are predicted.