Notation and conventions#
Draft Written from harmolab/rwg/rwg3.py, harmolab/utils/impedance/impmet.py, harmolab/rwg/rwg4.py and harmolab/utils/fields/dipole_parameters.py at commit 181e5ad; module paths updated at commit 72fb8c6. Awaiting review.
The symbols, units and sign conventions used on every theory page, and how they map to the code. When two pages seem to disagree, this page is the reference.
Conventions#
Time-harmonic fields, \(e^{j\omega t}\). All fields and currents are complex amplitudes (phasors) at a single angular frequency \(\omega = 2\pi f\); the physical field is \(\mathrm{Re}\{\mathbf E(\mathbf r)\,e^{j\omega t}\}\). With this convention an outgoing spherical wave is \(e^{-jkr}/r\), which is the form the solver uses in its Green’s function Eq. (2).
Peak amplitudes, not RMS. A voltage \(V\) or a current \(I\) is the amplitude of the sinusoid. The time-averaged powers therefore carry a factor ½:
The code uses exactly these expressions: the input power of each port in
harmolab.utils.ports.port_results (\(P = \tfrac12\mathrm{Re}\{v_p i_p^*\}\)), and the Poynting vector in
dipole_parameters.compute_e_h_field.
Free-space Green’s function.
In harmolab/utils/impedance/impmet.py the factor \(1/(4\pi)\) is kept in the prefactors
(pref_A = 1j*omega*mu/(4*pi), pref_Phi = 1/(1j*omega*epsilon*4*pi)) and the kernel evaluated is
exp(-k_complex*R)/R with k_complex = 1j*k.
Units. SI throughout: metres, seconds, hertz, volts, amperes, ohms. Mesh coordinates are in metres; a geometry drawn in millimetres must be scaled before it is solved.
Physical constants#
The constants are defined in the code, not imported from a library. All numerical results depend on these values.
Symbol |
Value in the solver |
Exact value |
Where |
|---|---|---|---|
\(\varepsilon_0\) |
\(8.854\times10^{-12}\) F/m |
\(8.8541878128\times10^{-12}\) F/m (CODATA), relative difference \(-2.1\times10^{-5}\) |
|
\(\mu_0\) |
\(1.257\times10^{-6}\) H/m |
\(\approx 4\pi\times10^{-7}\) H/m, relative difference \(+2.9\times10^{-4}\) |
same, and |
\(c\) |
\(1/\sqrt{\varepsilon_0\mu_0} = 2.997524\times10^{8}\) m/s |
\(299\,792\,458\) m/s, relative difference \(-1.3\times10^{-4}\) |
derived in |
\(\eta_0\) |
\(\sqrt{\mu_0/\varepsilon_0} = 376.79\ \Omega\) |
\(376.73\ \Omega\) (from CODATA \(\mu_0\), \(\varepsilon_0\)) |
derived in |
\(k\) |
\(\omega/c\) |
– |
derived in |
Two helper modules use other values of \(c\), for estimates only: \(3\times10^8\) m/s in
gmsh_function.mesh_and_gap_parameters and check_simulation_stability (mesh and gap sizing), and
the exact \(299\,792\,458\) m/s in cma.cma_report (electrical size \(ka\) in the reports). Neither enters
the impedance matrix.
Symbols#
Vectors are bold (\(\mathbf E\)), unit vectors carry a hat (\(\hat{\mathbf n}\)), matrices are upright capitals (\(Z\)). In a matrix entry \(Z_{mn}\), \(m\) is the testing function and \(n\) the basis (source) function.
Fields and sources#
Symbol |
Meaning |
Unit |
|---|---|---|
\(\mathbf E,\ \mathbf H\) |
electric and magnetic fields |
V/m, A/m |
\(\mathbf E^{i},\ \mathbf E^{s}\) |
incident (impressed) and scattered electric fields |
V/m |
\(\mathbf J\) |
surface current density on the conductor |
A/m |
\(\rho_s\) |
surface charge density |
C/m² |
\(\mathbf A,\ \Phi\) |
magnetic vector potential and electric scalar potential |
Wb/m, V |
\(G(\mathbf r,\mathbf r')\) |
free-space Green’s function Eq. (2) |
1/m |
\(S,\ \hat{\mathbf n}\) |
conducting surface and its unit normal |
– |
Mesh and basis functions#
See RWG basis functions for the full table.
Symbol |
Meaning |
Unit |
|---|---|---|
\(T_n^\pm,\ A_n^\pm\) |
the two triangles of basis function \(n\) and their areas |
–, m² |
\(\ell_n\) |
length of edge \(n\) |
m |
\(\mathbf f_n\) |
RWG basis function of edge \(n\) |
dimensionless |
\(N\) |
number of basis functions (unknowns) |
– |
Linear system and derived quantities#
Symbol |
Meaning |
Unit |
|---|---|---|
\(Z = R + jX\) |
impedance matrix (\(N\times N\)), its real and imaginary parts |
Ω |
\(I = (I_n)\) |
coefficients of the current expansion |
A/m |
\(V = (V_m)\) |
excitation vector (tested incident field) |
V |
\(\mathsf G\) |
Gram matrix of the RWG functions, \(\mathsf G_{mn} = \int_S \mathbf f_m\cdot\mathbf f_n\,dS\) |
m² |
\(Z_s\) |
surface impedance of a lossy conductor |
Ω |
\(Z_\mathrm{in}\) |
input impedance of a port |
Ω |
\(\lambda_n,\ \mathbf J_n\) |
characteristic eigenvalue and characteristic current of mode \(n\) |
–, A/m |
Two letters have two uses, always distinguished by their form: \(A_n^\pm\) (an area, indexed) and \(\mathbf A\) (the vector potential, bold); \(G(\mathbf r, \mathbf r')\) (Green’s function, with arguments) and \(\mathsf G\) (Gram matrix, sans-serif).
Three different impedances
\(\eta_0 \approx 377\ \Omega\), the wave impedance of free space, ratio of \(|\mathbf E|\) to \(|\mathbf H|\) in a plane wave.
\(Z_s\), the surface impedance of a real metal, ratio of tangential \(\mathbf E\) to surface current (see Lossy conductors).
\(Z_\mathrm{in}\), the input impedance seen at a port. The solver obtains it from the complex power delivered to the port (see Excitations and input impedance).
The matrix \(Z\) has units of ohms too, but it is none of these: it couples basis functions.
Names in the code#
Quantity |
Name in the code |
Defined in |
|---|---|---|
\(Z\) |
|
|
\(I\), \(V\) |
|
|
\(\boldsymbol\rho_n^{c\pm}\) |
|
|
\(\omega,\ \mu_0,\ \varepsilon_0,\ c,\ \eta_0\) |
|
|
\(jk\) |
|
|
\(\mathsf G\) |
|
|
\(Z_s\) |
|
|
Note
k_complex is \(jk\), not a complex wavenumber \(k' - jk''\): the code writes \(e^{-jkR}\) as
exp(-k_complex * R). The medium is lossless free space everywhere.