A transient MHD model applicable for the source of solar cosmic ray acceleration