The risk of hydrogen combustion and detonation is always one of the most important nuclear safety issues. In this paper, the hydrogen transport and distribution in the containment is simulated with GASFLOW code when a LOCA accident happened. Then by coupling the GASFLOW data to COM3 D which is developed by KIT to simulate the hydrogen combustion and detonation, the pressure and temperature development in the containment with different combustion locations is analyzed.