modelling a switch in a full wave EM solver is a completely different challenge in itself. you should just remove parts of your line to simulate an ideal switch. then you can look into different types of more realistic switches. (MEMS, pin diodes, etc..)