Skip to content

v0.20.0

Latest

Choose a tag to compare

@hughcars hughcars released this 23 Nov 16:39
· 345 commits to main since this release
517fb78

Palace 0.20 has been released! The full list of changes is in the CHANGELOG.md; these are the major updates. Energies, powers and port excitations change scale in this release, so compare results with 0.19 using the table in the CHANGELOG. Builds with MUMPS now need its complex double precision (zmumps), and ParMETIS is optional and off by default (-DPALACE_WITH_PARMETIS=ON, Spack +parmetis).

Time-averaged energies, powers and ports — @hughcars

Frequency-domain energies and powers are now time averages of the peak phasors: energies carry a factor 1/4 and powers 1/2. Lumped, wave and Floquet ports carry 1 W of time-averaged incident power, so a 50 Ω lumped port has 10 V and 0.2 A peak; impressed currents are unchanged. S-parameters, impedances, eigenfrequencies, Q, κ, EPR and participation ratios do not change. The fields, voltages, currents and probes of driven lumped and wave port excitations are ×√2, and the energies and power fluxes of Floquet, current-driven, eigenmode and boundary-mode simulations are ×1/2. Write to a new output directory rather than appending to restart CSVs from 0.19. PR 937.

Frequency-dependent materials — @hughcars

Permittivity can be frequency dependent: a high-frequency limit plus Drude, Debye, Lorentz, pole-residue and Djordjevic–Sarkar terms. Driven and eigenmode simulations, adaptive sweeps and circuit synthesis evaluate the material at the solution frequency, and eigenmode problems whose only frequency-dependent terms are poles are solved as linear eigenvalue problems with SLEPc or ARPACK. The same PR fixes several circuit synthesis results with lumped and wave ports. PR 877.

Magnetostatics and superconductors — @dnpham23, @hughcars and @simlapointe

Domains with a LondonDepth add the kinetic inductance of the supercurrent, so superconductors of any thickness can be meshed as volumes. Magnetostatic solves with no PEC, or PEC only on planes normal to one axis such as planar films with a natural far field, did not converge and gave wrong inductances; they now converge. AMS, the default solver of magnetostatic and transient simulations, needs fewer iterations for singular operators from more smoothing on the coarse level, and can gather the coarse levels of its auxiliary space solves onto fewer processes (AMSAgglomerationTarget). PR 1111, PR 1244, PR 1159, PR 1154, PR 1238.

Faster solves at scale — @simlapointe, @Sbozzolo and @dnpham23

STRUMPACK is now the default sparse direct solver for frequency-domain problems when Palace is built with several ("Type": "SuperLU" keeps SuperLU_DIST). Patches to STRUMPACK, SuperLU_DIST and hypre lower the communication and memory of the coarse solve at high process counts, and "ComplexCoarseSolve" now factors the complex-valued matrix directly, with about 40% less memory for the factors. Driven sweeps start each solve from a combination of earlier solutions, and adaptive sweeps build and evaluate their reduced model with fewer passes over the basis. PR 1148, PR 1143, PR 1162, PR 1166, PR 1193, PR 1197, PR 1231, PR 1145, PR 1229, PR 1187, PR 1173.

Corrected results

S-parameters of lossy wave-port modes used the real part of the propagation constant; STRUMPACK BLR compression was inaccurate on two or more processes; SuperLU_DIST with "SuperLU3DCommunicator" gave wrong solutions; SLEPc solves could hang or return wrong modes with MKL on some Intel processors; multi-GPU runs with GPU-aware MPI could fail to converge; eigenmode resistive lumped-port loss was underestimated; current dipoles at order 2 and above were wrong on meshes with tetrahedra, prisms or pyramids; TOAR missed modes near the target; and driven grid function output kept only the last excitation. The error estimators no longer overestimate the error next to dielectric interfaces, so AMR meshes change for models with material interfaces. PR 1119, PR 1222, PR 1167, PR 1251, PR 1226, PR 1086, PR 1121, PR 1068, PR 1220, PR 1072.

Other improvements

Lumped ports can be driven with their own amplitude and phase, and far fields can be extracted on interior surfaces. Uniform lumped ports take their width from a cross-section, so curved, folded and cylindrical ports set up (L-shaped ports now abort), and interior "Conductivity" boundaries without "Crack" warn that their loss changed in 0.19. Adapted nonconforming meshes are saved and read back in parallel, and adaptive sweeps no longer keep sampling with spurious resonances when "AdaptiveTol" is close to the solver accuracy. GPU-aware MPI is detected at runtime. PR 1169, PR 1110, PR 1194, PR 1168, PR 1214, PR 1215, PR 1218, PR 1226.

New Contributors

Full list of contributors

@Alisama20, @dnpham23, @gpeairs, @hughcars, @krono-i2, @laylagi, @nikosavola, @Sbozzolo, @sieciowiecxyz, @simlapointe, @WEIXUEP

Full Changelog: v0.19.0...v0.20.0