From 64e82f3c02901a57e79ad7ae0a3581c9245e17dc Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 26 Nov 2020 10:53:29 +1100 Subject: [PATCH] Update inductor.html Added conductor cross-sectional area in mm squared. --- inductor.html | 1 + 1 file changed, 1 insertion(+) diff --git a/inductor.html b/inductor.html index 3536f43..9ed574e 100644 --- a/inductor.html +++ b/inductor.html @@ -217,6 +217,7 @@ const cond_dia = 1.0 * conductor_diameter_slider.value; fctx.textAlign = "right"; fctx.fillText("\u2300a = " + cond_dia.toFixed(2).toString() + "mm", loopx - loop_radius - 2.0*arrow_size, loopy - 6); + fctx.fillText("(" + (cond_dia**2).toFixed(2).toString() + " mm\u00B2) ", loopx - loop_radius - 3.0*arrow_size, loopy + 6); // Write loop diameter symbol: const loop_dia = 1.0 * loop_diameter_slider.value; // Convert from mm to inches