pml boundry
The "efficiency" of a PML is simply how much energy it absorbs (does not reflect) relative to the energy incident on it. You probably want to study how its efficiency is affected by angle of incidence, background material properties, frequency, etc.
While there are many way to set this up, here is one possible recipe. For simplicity I am assuming you want to do a 2D analysis of PML efficiency.
1. Setup a small problem space where the dielectric constant and permeability are all set to 1.0.
2. Use periodic boundary conditions on your x-low and x-high boundaries.
3. Use a PML boundary condition on your y-low and y-high boundaries. This will be what you test.
4. Use the total-field/scattered-field formulation to inject a one-way source into your problem. Set the amplitude 1.
5. Run your simulation and record the power reflected by the PML, Pref.
6. Calculate the power in your source (Pinc).
7. Calculate the "efficiency" of your PML: Eff = 1 - (Pref/Pinc)
8. Run your model to sweep frequency, angle of incidence, background material properties, etc.
Hope this helps!
-Tip