Thedynamicmean-fielddensityfunctionalmethodanditsapplication