Theory And Design For Mechanical Simulation