From b1bde90d8d1edd6abf31ad361b01cdb4ba81df11 Mon Sep 17 00:00:00 2001 From: miguel Date: Wed, 25 Nov 2020 17:07:05 +1100 Subject: [PATCH] Update inductor.js Added capacitive reactance function. --- inductor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inductor.js b/inductor.js index 71a0717..84a99af 100644 --- a/inductor.js +++ b/inductor.js @@ -32,6 +32,10 @@ function inductiveReactance(frequency, inductance) { return 2.0 * Math.PI * frequency * inductance; // In Ohms } +function capacitiveReactance(frequency, capacitance) { + return -1.0 / (2.0 * Math.PI * frequency * capacitance); // In Ohms +} + function nagaokaCoefficient(loop_diameter_meters, cond_diameter_meters, spacing_ratio, loop_turns) { // From Knight's 2016 paper on coil self-resonance, attributed to Wheeler's 1982 eqn as modified by Bob Weaver const c_spacing = spacing_ratio * cond_diameter_meters;