* Coilcraft SPICE Model Skeleton * RVAR substitute by Tim Williams, 2017-03-30 * .SUBCKT COILCRAFT_MODEL 1 2 PARAMS: FMAX=100 R1=100 R2=1 C=1p K1=5u K2=1 K3=1 .PARAM RVAR1 = { R2 * 0.14 } .PARAM FVAR1 = { ((R2*R2) / (K1*K1)) * 0.01 } .PARAM RVAR2 = { K2 * SQRT(FMAX) * 4.03516 } .PARAM FVAR2 = { FMAX * 32.3001 } CC 3 5 {C} R1 5 2 {R1} R2 1 3 {R2} RNR2 4 6 {RVAR1 * -1.0} XRVAR1 3 4 RDIFF PARAMS: Resistance={RVAR1} Frequency={FVAR1} XRVAR2 3 2 RDIFF PARAMS: Resistance={RVAR2} Frequency={FVAR2} LL 6 2 {K3 * 1e-6} .ENDS * Diffusion Element * By Tim Williams, 2017-03-30 * * Features: * - Four decade frequency range. * - Resistive LF and HF asymptotes. * - Normalized to LF asymptote (1 ohm, 1 Hz). * - HF asymptote: 175.9534 ohm, 30.95962k Hz. * - Center: 13.26588 ohm, 175.9535 Hz (default parameters * normalize the middle of the range to 1 ohm, 1Hz). * - Accuracy: +/- 0.93% RMS, +/- 1.3% peak, * from (1.33 ohm, 1.76 Hz) to (133 ohms, 17.6k Hz). * .SUBCKT RDIFF 1 7 PARAMS: Resistance=75.38135m Frequency=5.683323m R0 1 2 { 1.0 * Resistance } R1 2 3 { 1.436193 * Resistance } R2 3 4 { 3.936277 * Resistance } R3 4 5 { 10.61526 * Resistance } R4 5 6 { 29.09347 * Resistance } R5 6 7 { 129.8723 * Resistance } L1 2 3 { 41.00917m * Resistance / Frequency } L2 3 4 { 15.51648m * Resistance / Frequency } L3 4 5 { 5.876198m * Resistance / Frequency } L4 5 6 { 2.259226m * Resistance / Frequency } L5 6 7 { 1.2241m * Resistance / Frequency } .ENDS