ELECTROMAGNETIC AND THERMAL SIMULATIONS FOR THE SWITCH REGION OF A COMPACT PROTON ACCELERATOR: Searching Inside