Model of the ideal fluid with scalar microstructure. An application to flashing flow of water