I'm reading through the paper on this site about modeling nonlinear magnetics: http://www.designers-guide.org/Modeling/mag.pdf
and I've noticed a few glitches.
In listing 2, for the winding, the electrical terminals are declared as ep, en, but then one of the lines in the module has
V(ep,e2) <+ turns * (r*I(ep,en) - ddt(Phi(mp,mn)));
Obviously, that "e2" should be "en"
Then, comparing Figure 2 to Listing 4, the topology is the same, but the elements have been renamed: gaps G1 and G2 in the figure are named G2 and G4 in the Spectre netlist; windings W3 and W4 in the figure are named W3b and W3a (respectively) in the netlist.
Finally, where I'm stumped, is that Figure 5 purports to show results from simulating Listing 4. However, the plot shows a node voltage "n4" but there is no "n4" in the netlist, and while there is an "e4", it's not listed on the "save" line, so I woudn't expect to be able to plot it.
Has anyone reproduced the plot in figure 5?