Public
Edited
Feb 26, 2021
Insert cell
Insert cell
d = 4.3 // [mm] Coil Diameter
Insert cell
b = 20 // [mm] Coil length
Insert cell
n = 27 // Number of turns
Insert cell
// Inductance
{
const a = d / 1000 / 2;
return IndCalc(a, b / 1000, n);
}
Insert cell
/* The following formulas are from
* R. Lundin,
* "A Handbook Formula for the Inductance of a Single-Layer Circular Coil",
* Proc. IEEE, vol. 73, no. 9, pp. 1428-1429, Sep. 1985
*/
function f1(x) {
return (1 + x * (0.383901 + 0.017108 * x)) / (1 + 0.258952 * x);
}
Insert cell
function f2(x) {
return (x * (0.093842 + x * (0.002029 - x * 0.000801)));
}
Insert cell
/* IndCalc(a, b, n) - returns the inductance of a multiturn single layer circular coil
* a: coil radius [m]
* b: coil length [m]
* n: number of turns
*/
function IndCalc(a, b, n) {
var u0, shape_ratio, l;

u0 = 0.4 * Math.PI * 1e-06;
shape_ratio = 2 * a / b;

if (shape_ratio <= 1) {
l = u0 * n * n * Math.PI * a * a * (f1(shape_ratio * shape_ratio) - (4 / (3 * Math.PI)) * shape_ratio) / b;
} else {
l = u0 * n * n * a * ((Math.log(4 * shape_ratio) - 0.5) * f1(1 / (shape_ratio * shape_ratio)) + f2(1 / (shape_ratio * shape_ratio)));
}
return l;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more