A Functional Framework for Applied Continuum Mechanics