The Preisach model and partial differential equations