Limit the current from a voltage source?

Tim, I’m sure you will have moved on from this problem now, but I’ll post my solution in case someone else finds it useful…

I had a similar problem modelling a current and power limited capacitor charging power supply. In the end I replaced the voltage source with a current source controlled by the capacitor voltage. See model attached.

Regards,

Jonny

Charging Power Supply example.plecs (12.6 KB)