- Define the LVRT voltage–time profile in MATLAB (e.g., a pu drop to 0.7 at 0.1 s, hold till 0.6 s, then ramp to 1 pu) using a MATLAB function like "simulateLVRT"
- Apply this profile to a programmable three-phase voltage source in Simulink, emulating grid sag per your grid code.
- Implement sag-detection logic by measuring real-time voltage (per-unit), switching to LVRT control when below threshold, and injecting reactive current (Iq) using control blocks or MATLAB function .
- Modify inverter control for LVRT: Limit active power and inject reactive support during sag, then restore nominal operation afterward.
- “Detailed Model of a 100‑kW Grid‑Connected PV Array” shows three-phase PV‑inverter setup: https://www.mathworks.com/help/sps/ug/detailed-model-of-a-100-kw-grid-connected-pv-array.html
- “Grid‑Tied Inverter” docs include Fault Ride‑Through algorithm guidance: https://www.mathworks.com/discovery/grid-tied-inverter.html