I'm modelling a 50Hz AC grid with distributed PV generation. The PV will be modelled as a three-phase current source with the injected current controlled by an external signal.
What I need is for the current to be made up of three 50Hz sinewaves with constant phase (120 degrees apart) and frequency but with the amplitudes controlled by the external signal.
I've tried using three simulink CCS blocks to achieve this. In continuous or discrete simulation it generates the correct sinusoidal output when fed by a variable amplitude sinewave.
However, when fed by a sinweave in phasor simulation, the actual magnitude of the phasor appears to vary sinusoidally, whereas for a simulink AC voltage source for example, the result is a constant magnitude phasor.
I've read the CCS block description and it states that for phasor simulation the input signal must be complex, however, this has not solved my problem.
Am I missing something obvious, or does someone know of a better method I could use to achieve the same effect?