We use open-source components (Code_Saturne, Salome, Paraview) to develop an automatic CFD workflow that can simulate gas and aerosols dispersion in critical infrastructures such as train and subway stations, hospitals, parkings, commercial centers, etc. It allows to improve alerts and counter-measures devices through virtual sensors of different technology.