Not sure if you’re looking for lumped parameter modeling (circuit style) or distributed ( finite element, finite difference).
For lumped parameter simulation i default to Modelica as its multi domain (electrical, magnetic, mechanical, thermal, fluid, etc) https://openmodelica.org/.
For distributed there are:
Elmer is EM FEA and runs on Linux https://www.csc.fi/web/elmer/application-examples
Open EMS is an electromagnetic field solver for Linux https://www.openems.de/
Calculix is another general FEA in Linux https://github.com/calculix/CalculiX-Examples
There’s also CAElinux https://www.caelinux.com/CMS3/ http://www.calculix.de/
If need a pre and post processor, like for openEMS solver, there’s PreProMax https://prepomax.fs.um.si/
While I’m at it, here’s a shitload of links for simulation tools that are FOSS: https://www.cfdsupport.com/cae-open-source-software/