The mechanics of granitoid systems and maximum entropy production rates