A Scottish inventor has devised a machine that cooks food using the same technology used to dry clothes in a tumble dryer.