Core functions

The constants used in these functions are defined in Constant definitions.

Wave velocity

pyrmittivity.core.celerity(E_r)

Calculate the wave velocity (\(C_r\)) given the permittivity (\(\varepsilon_r\)) of the dielectric.

(1)\[C_r = \frac{1}{\sqrt{\mu_0 \varepsilon_r \varepsilon_0}}\]
Parameters

E_r (float) – Permittivity of the dielectric (\(\varepsilon_r\))

Return type

float

See Equation [6] of Maxwell’s Equations.

Permittivity

pyrmittivity.core.epsilon_r(C_r)

Calculate the permittivity (\(\varepsilon_r\)) given the wave velocity through the dielectric (\(C_r\)).

(2)\[\varepsilon_r = \frac{\frac{1}{C_r}^2}{\mu_0 \varepsilon_0}\]
Parameters

C_r (float) – Wave velocity through the dielectric (\(\varepsilon_r\))

Return type

float

See Equation [6] of Maxwell’s Equations.

Wavelength

pyrmittivity.core.wavelength(f, E_r)

Calculate the wavelength (\(\lambda\)) given the permittivity and frequency (\(\varepsilon_r\) and f).

(3)\[\lambda = \frac{C_0}{f \sqrt{\varepsilon_r}}\]
Parameters
  • f (float) – Frequency of the wave (\(f\))

  • E_r (float) – Permittivity of the dielectric (\(\varepsilon_r\))

Return type

float

See Equation [7] of Maxwell’s Equations.

Velocity conversions

m/s to m/ns

pyrmittivity.core.m_per_ns(v)

Calculate meters per nanosecond from meters per second. Can be useful for software that uses m/ns velocity definitions.

(4)\[C_{m*ns^{-1}} = {C_r}^{-9}\]
Parameters

v (float) – Velocity of the wave (\(C_r\))

Return type

float

m/ns to m/s

pyrmittivity.core.m_per_sec(v)

Calculate meters per second from meters per nanosecond. Can be useful for software that uses m/ns velocity definitions.

(5)\[C_r = {C_{m*ns^{-1}}}^9\]
Parameters

v (float) – Velocity of the wave (\(C_r\))

Return type

float