If you don't want to create a user defined model, a python-based hybrid simulation such as a phase shifter in front of an infinite gen could work.