Hello Zheng Lu,
I am not sure what is your meaning. Could you provide more information? What is the error or what happens? Could you use voltage source in primary coil (voltage and winding) and open circuit in secondary coil (current and winding, I=0) only in Maxwell? Thanks.