A Theory of Irrotational Contact Fields