Browse Source

muttemp.c, allow negative inductance

pre-master-46
rlar 9 years ago
parent
commit
fc32837b44
  1. 2
      src/spicelib/devices/ind/muttemp.c

2
src/spicelib/devices/ind/muttemp.c

@ -29,7 +29,7 @@ MUTtemp(GENmodel *inModel, CKTcircuit *ckt)
/* _______ /* _______
* M = k * \/L1 * L2 * M = k * \/L1 * L2
*/ */
here->MUTfactor = here->MUTcoupling * sqrt(ind1 * ind2);
here->MUTfactor = here->MUTcoupling * sqrt(fabs(ind1 * ind2));
} }
return(OK); return(OK);

Loading…
Cancel
Save