This document discusses simulation of a Distribution Static Compensator (DSTATCOM) and Dynamic Voltage Restorer (DVR) to improve power quality under fault conditions. It first provides background on power quality issues and defines DSTATCOM and DVR. It then outlines the methodology, including components of each system like the voltage source converter, isolation transformer, and energy storage. The results of simulations showing the DSTATCOM injecting current and DVR injecting voltage during faults to maintain power quality are presented. The document evaluates these custom power devices for mitigating the effects of faults on distribution systems.