Nicholson-Ross-Weir (NRW) method in python for calculating refractive index, permittivity and permeability from scattering parameters (S11/S21). The algorithm is also taking into account the phase ambiguity of the transmission coefficient and selects the best n based on the group velocity.
- Function for NRW Method: Calculates the permittivity and permeability. Takes frequency values, complex S11/S21, the sample length and a cutoff frequency (optional).
- Function for reverse NRW Method: Calculates the scattering parameters S11/S21 from the permittivity and the permeability. Takes frequency values, complex permittivity/permeability, the sample length and a cutoff frequency (optional).
- High precision forwards-backwards NRW calculation: This was done as an instability analysis. One can specify the permittivity/permeability to calculate the scattering parameters S11/S21 and back to permittivity/permeability using NRW method. By introducing noise it is possible to test a measurement result.
# before install the dependencies in `requirements.txt`
from nrw import nrw, nrw_reverse
from nrw_gmpy2 import nrw2, nrw_reverse2The NRW method starts using the complex scattering parameters
Choose the sign of the root for
Using
The equation for
The idea is that the group delay is the derivative of the phase and therefore
is independent of the
The group delay for both values is defined as:
With this the permittivity and permeability is defined:
The analysis explained in literature.
- O. Luukkonen, S. I. Maslovski and S. A. Tretyakov, "A Stepwise Nicolson–Ross–Weir-Based Material Parameter Extraction Method," in IEEE Antennas and Wireless Propagation Letters, vol. 10, pp. 1295-1298, 2011, doi: 10.1109/LAWP.2011.2175897.
- A. M. Nicolson and G. F. Ross, "Measurement of the Intrinsic Properties of Materials by Time-Domain Techniques," in IEEE Transactions on Instrumentation and Measurement, vol. 19, no. 4, pp. 377-382, Nov. 1970, doi: 10.1109/TIM.1970.4313932.
- W. B. Weir, "Automatic measurement of complex dielectric constant and permeability at microwave frequencies," in Proceedings of the IEEE, vol. 62, no. 1, pp. 33-36, Jan. 1974, doi: 10.1109/PROC.1974.9382.
- Measurement of Dielectric Material Properties Application Note R&S.
Some instabilities were observed when:
- The cutoff frequency is near the lowest measurement frequency
- Long sample lengths or high permittivity/permeability values (short wavelengths media)