Mathematical description of the cavitation process in the jet apparatus