Could you please let me know how to set the wave port with a cap. I tried w/o cap but error is port refinement error that port is internal to the structure .
I assume that you are using HFSS. A cap is simply a metallic object on the "back" side of a port, particularly if the port is internal to the model. It serves to define the direction of the power out of the port. without that the simulator does not have a way to determine the direction of the input. If your port is coaxial for example place a thin disk on the end of the coax. Imaging that it is a bit like the shell of a coaxial connector.