The best option is to use a 'B' source with an ATAN function. this gives controlled gain, voltage saturation and continous derivative so no convergence problems. Testbench attached. The ideal opamp takes as parameters the total output amplitude (vmax = vmin), the gain, the output offset (centered to 0V or positive) and also the output RC so you can set a dominant pole.