Simulation and case study of DC Microgrid