flat mechanics