Study of an emergency situation using 2D and 3D simulation models