A patient undergoing total knee replacement receives a femoral nerve block pre-operatively.The primary purpose of this regional anesthetic technique is to: