Theory And Simulation Of Defect Dynamics In Confined Liquid Crystals