Published
Edited
Feb 26, 2021
1 fork
1 star
Insert cell
Insert cell
Insert cell
r = (4 + 0.3) * 1e-3 / 2 // Coil Radius [m]
Insert cell
Insert cell
b = 20 * 1e-3 // Coil length [m]
Insert cell
Insert cell
n = 27 // Number of turns
Insert cell
Insert cell
IndCalc(r, b, n) * 1e9 // inductance [nH]
Insert cell
Insert cell
r * 2 * Math.PI * n // wire length [m]
Insert cell
Insert cell
f = 500 * 1e6 // frequency [Hz]
Insert cell
Insert cell
Math.round(CoilQ(r, b, f))
Insert cell
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
*/

/* 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
*/
IndCalc = (a, b, n) => {
const f1 = x => (1 + x * (0.383901 + 0.017108 * x)) / (1 + 0.258952 * x);
const f2 = x => (x * (0.093842 + x * (0.002029 - x * 0.000801)));
const u0 = 0.4 * Math.PI * 1e-06;
const n2 = n * n;
const shape_ratio = 2 * a / b;
const shape_ratio_pwr2 = shape_ratio * shape_ratio;
if (shape_ratio <= 1) {
return u0 * n2 * Math.PI * a * a
* (f1(shape_ratio_pwr2) - (4 / (3 * Math.PI)) * shape_ratio)
/ b;
}
return u0 * n2 * a
* ((Math.log(4 * shape_ratio) - 0.5) * f1(1 / shape_ratio_pwr2) + f2(1 / shape_ratio_pwr2));
}
Insert cell
/* The following formula is from
* F. Langford-Smith (ed.),
* "Radiotron Designer's Handbook", 4th edition
* Wireless Press, 1952.
*/
CoilQ = (a, b, f) => Math.sqrt(f) / (0.069 / a + 0.054 / b)
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