Design And Modeling For Dc Nanogrids