This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain. Highlights FlashFOAM had been developed within the frame of OpenFOAM for simulating flashing jets It accounts for the inter-phase heat transfer with the Homogeneous Relaxation Model (HRM). A series of validation studies dedicated to long nozzles are reported. The code has demonstrated its capability to capture the flow characteristics and vapour generation in cryogenic liquid jets. The dependency of the geometry of the nozzles, pressure and subcooled degree on the vapour generation has been analysed. The validation study has demonstrated that FlashFOAM can be used to simulate flash boiling scenarios accurately and predict the properties of flash atomisation.