Updated Mean Path Calc

This commit is contained in:
2023-12-29 09:17:20 -05:00
parent 264f0dedfe
commit 44a2c41d10

View File

@@ -1,14 +1,13 @@
include <BOSL/constants.scad> include <BOSL/constants.scad>
use <BOSL/transforms.scad> use <BOSL/transforms.scad>
use <BOSL/joiners.scad>
/* [Options] */ /* [Options] */
LegLength=30.40; LegLength=30.40;
LegDiameter=16; LegDiameter=16;
BoltDiameter=7.06; BoltDiameter=5;
CoreGap=0; CoreGap=0.0;
NumberCoils=10; NumberCoils=10;
YokeHeight=12.14; YokeHeight=12.14;
YokeLen=28.00; YokeLen=28.00;
@@ -25,15 +24,17 @@ $fa= ($preview) ? $fa : render_fa;
// Area Info // Area Info
leg_a1 = PI * (LegDiameter/2)^2; leg_a1 = PI * (LegDiameter/20)^2;
leg_a2 = PI * (BoltDiameter/2)^2/2; leg_a2 = PI * (BoltDiameter/20)^2/2;
yoke_a = LegDiameter * YokeHeight;
path_l1 = 2*LegLength - YokeHeight;
path_l2 = YokeLen + LegDiameter;
echo("Leg Len:", 2*LegLength, "mm"); echo("Leg Len:", 2*LegLength, "mm");
echo("Bobbin_Max:", 2*LegLength-2*YokeHeight, "mm"); echo("Bobbin_Max:", 2*LegLength-2*YokeHeight, "mm");
echo("Leg Cross Section Area: ", leg_a1-leg_a2, "mm^2"); echo("Leg Cross Section Area: ", leg_a1-leg_a2, "cm^2");
yoke_a = LegDiameter * YokeHeight;
echo("Yoke A: ", yoke_a); echo("Yoke A: ", yoke_a);
echo("Magnetic Path: ", 2*(YokeLen+LegDiameter)+4*(LegLength-YokeHeight), "mm"); echo("Magnetic Path: ", 2*(path_l1+path_l2), "mm");
module core_leg(d=LegDiameter, l=LegLength, bd=BoltDiameter) { module core_leg(d=LegDiameter, l=LegLength, bd=BoltDiameter) {
difference() { difference() {