Mathematical model of an autoclave