Three-dimensional episodic model of star formation in galaxies in the presence of dissipation