//************************************************************************** // JavaScript for shortant.html //************************************************************************** //************************************************************************** // Global Variables and Arrays. //************************************************************************** var UM, Cent_Freq, Min_Space, AWG_Size, WD; var ALEN, ALEN_HALF; AWG_Array = new Array(40); L_Array = new Array(9); B_Array = new Array(9); Coil_Dia = new Array(9); Coil_Length = new Array(9); Est_Turns = new Array(9); Calc_Turns = new Array(9); F_Self = new Array(9); AQ = new Array(9); function Short_Ant_Calc() { PI = 3.141592; //*********************************************************************** // Set the Unit Multiplier (UM) based on the type of units specified // for the standard unit of measure. We need the multiplier because all // calculations are done in US/Imperial and need to be converted to metric // if that type of input is required. //*********************************************************************** if (document.Short_Ant.Length_Dimension.options[0].selected) { Length_A = parseFloat(document.Short_Ant.Length_A.value); } else { Length_A = parseFloat(document.Short_Ant.Length_A.value) * 39.37 / 12; } //*********************************************************************** // Calculate the mininum space for maximum efficiency. //*********************************************************************** Cent_Freq = parseFloat(document.Short_Ant.Cent_Freq.value); Min_Space = 300/Cent_Freq*.656; //*********************************************************************** // Set up the AWG array //*********************************************************************** K = Math.pow((0.46/0.005),(1/39)); // Increment Multiplier for ( I = 1; I <= 40; I++ ) { N = I+3; AWG_Array[I] = .46/Math.pow(K,N); } //*********************************************************************** // Set the Wire Diameter based on the wire size specifier (AWG, in, mm) // and the wire size specified. //*********************************************************************** if (document.Short_Ant.WDD.options[0].selected) { // Convert AWG# to inches AWG_Size = parseInt(document.Short_Ant.Wire_Size.value); Wire_Dia = AWG_Array[AWG_Size]; } else if (document.Short_Ant.WDD.options[1].selected) { // Use the wire diameter as specified. Wire_Dia = parseFloat(document.Short_Ant.Wire_Size.value); } else if (document.Short_Ant.WDD.options[2].selected) { // Convert mm to inches Wire_Dia = parseFloat(document.Short_Ant.Wire_Size.value)/25.4; } //*********************************************************************** // Calculate the free space length required for a full size dipole at the // specified frequency. Then adjust the length based on the ratio of the // length to the wire diameter. Select K based on the ratio. //*********************************************************************** Free_Space_Length = 492/Cent_Freq; LD_Ratio = Free_Space_Length*12/Wire_Dia; if ( LD_Ratio > 10 ) K = 0.92; if ( LD_Ratio > 12 ) K = 0.93; if ( LD_Ratio > 15 ) K = 0.94; if ( LD_Ratio > 22 ) K = 0.95; if ( LD_Ratio > 50 ) K = 0.96; if ( LD_Ratio > 200 ) K = 0.97; if ( LD_Ratio > 2000 ) K = 0.98; Actual_Length = (492*K)/Cent_Freq; //*********************************************************************** // Put together the output information and then send it to the text area. //*********************************************************************** document.getElementById("Dipole_Freq").innerHTML = F_Scale(Cent_Freq*1000000,3,"on"); document.getElementById("Space_Available").innerHTML = DFTtoFTIN( Length_A,1,16 ) + " (" + Rnd(Length_A*12/39.37,3) + " M)"; document.getElementById("Dipole_Min").innerHTML = DFTtoFTIN( Min_Space,1,16 ) + " (" + Rnd(Min_Space*12/39.37,3) + " M)"; document.getElementById("Dipole_Full").innerHTML = DFTtoFTIN( Actual_Length,1,16 ) + " (" + Rnd(Actual_Length*12/39.37,3) + " M)"; //*********************************************************************** // Divide the antenna into 10 parts and calculate 9 different // antenna configurations. The 10th configuration would mean that // there is sufficient space for a full size antenna and no need for // a loading coil. Split up the inductance equation because it's easier // to deal with in smaller chunks. //*********************************************************************** // F1 = 68 * pi^2 * f^2 F1 = 1000000/(68*Math.pow(PI,2)*Math.pow(Cent_Freq,2)); // The equation below seems to be missing 1/(2*Pi*f) // F1 = 1000000/(34*3.1593*Cent_Freq); Length_A_HALF = Length_A/2; for(Z = 1; Z <= 9; Z++) { B_Array[Z] = Z*0.1*(Length_A/2); F2 = Math.log((24*((234/Cent_Freq)-B_Array[Z]))/Wire_Dia)-1; F3 = Math.pow(1-((Cent_Freq*B_Array[Z])/234),2)-1; F4 = (234/Cent_Freq)-B_Array[Z]; F5 = Math.log((24*((Length_A/2)-B_Array[Z]))/Wire_Dia)-1; F6 = Math.pow((((Cent_Freq*Length_A)/2)-(Cent_Freq*B_Array[Z]))/234,2)-1; F7 = (Length_A/2)-B_Array[Z]; L_Array[Z] = F1 * (((F2*F3)/F4) - ((F5*F6)/F7)); //***************************************************************** // Now we have an inductance and a recommended L/D Ratio so we want // to calculate the coil length and diameter based on a winding // space being twice the wire diameter. // // Starting with a coil diameter of 10 inches, and continue to // decrease the diameter. Use 4 separate loops with a diameter // delta of 1, 0.1, 0.01, and 0.001 inches, respectively, until // the difference between estimate and the calculated value is // very small. Note that the sign of the delta value changes so // that we itterate on a final value. This process requires less // calculations to come to a solution. //***************************************************************** Coil_Dia[Z] = 10; LD_Ratio = 0.5; Coil_Length[Z] = LD_Ratio * Coil_Dia[Z]; Est_Turns[Z] = Coil_Length[Z] / (2*Wire_Dia); Calc_Turns[Z] = Math.sqrt(L_Array[Z]*(18*Coil_Dia[Z]+40*Coil_Length[Z]))/Coil_Dia[Z]; Delta = 1; while ( Est_Turns[Z] > Calc_Turns[Z] ) { Coil_Dia[Z] = Coil_Dia[Z] - Delta; Coil_Length[Z] = LD_Ratio * Coil_Dia[Z]; Est_Turns[Z] = Coil_Length[Z] / (2*Wire_Dia); Calc_Turns[Z] = Math.sqrt(L_Array[Z]*(18*Coil_Dia[Z]+40*Coil_Length[Z]))/Coil_Dia[Z]; } Delta = -Delta/10; while ( Est_Turns[Z] < Calc_Turns[Z] ) { Coil_Dia[Z] = Coil_Dia[Z] - Delta; Coil_Length[Z] = LD_Ratio * Coil_Dia[Z]; Est_Turns[Z] = Coil_Length[Z] / (2*Wire_Dia); Calc_Turns[Z] = Math.sqrt(L_Array[Z]*(18*Coil_Dia[Z]+40*Coil_Length[Z]))/Coil_Dia[Z]; } Delta = -Delta/10; while ( Est_Turns[Z] > Calc_Turns[Z] ) { Coil_Dia[Z] = Coil_Dia[Z] - Delta; Coil_Length[Z] = LD_Ratio * Coil_Dia[Z]; Est_Turns[Z] = Coil_Length[Z] / (2*Wire_Dia); Calc_Turns[Z] = Math.sqrt(L_Array[Z]*(18*Coil_Dia[Z]+40*Coil_Length[Z]))/Coil_Dia[Z]; } Delta = -Delta/10; while ( Est_Turns[Z] < Calc_Turns[Z] ) { Coil_Dia[Z] = Coil_Dia[Z] - Delta; Coil_Length[Z] = LD_Ratio * Coil_Dia[Z]; Est_Turns[Z] = Coil_Length[Z] / (2*Wire_Dia); Calc_Turns[Z] = Math.sqrt(L_Array[Z]*(18*Coil_Dia[Z]+40*Coil_Length[Z]))/Coil_Dia[Z]; } //***************************************************************** // Calculate the self resonant frequency. // I_HCos = Inverse hyperbolic cosine // Dist_Cap = Distributed capacitance // F_Self[Z]Self resonant frequency //***************************************************************** Space_Ratio = 2; JJ = 1/(4*Math.pow(PI,2))*1000000; I_HCos = Math.log(Space_Ratio + Math.sqrt(Math.pow(Space_Ratio,2)-1)); Dist_Cap = PI * Coil_Dia[Z] * 2.54 / (3.6 * I_HCos ); F_Self[Z] = Math.sqrt(JJ/Dist_Cap/L_Array[Z]); //***************************************************************** // Calculate the coil Q. // CR = Capacitance required to resonate // C = Added capacity required to resonate // Coil_Rad_cm = Coil radius in cm. // Coil_Length_cm = Coil length in cm. // True_Q = True Q //***************************************************************** CR = JJ / (Math.pow(Cent_Freq,2) * L_Array[Z]); C = CR - Dist_Cap; Coil_Rad_cm = Coil_Dia[Z]*2.54/2; Coil_Length_cm = Coil_Length[Z]*2.54; True_Q = Math.sqrt(Cent_Freq*1000000) / (6.9/Coil_Rad_cm + 5.4/Coil_Length_cm); //1980 AQ=QT/(1+CO/C) AQ[Z] = True_Q/(1+Dist_Cap/C); if( AQ[Z] < 0 ) { AQ[Z] = 0 } }//end for loop document.getElementById("Dim_B_1").innerHTML = DFTtoFTIN( B_Array[1],1,16 )+ " (" + Rnd(B_Array[1]*12/39.37,2) + " M)"; document.getElementById("Dim_C_1").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[1],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[1])*12/39.37,2) + " M)"; document.getElementById("Ind_1").innerHTML = Rnd(L_Array[1],1) + " uH"; document.getElementById("Dia_1").innerHTML = DIN2FIN(Coil_Dia[1],16) + " (" + Rnd(Coil_Dia[1]* 25.4,1) + " mm)"; document.getElementById("Res_1").innerHTML = Rnd(F_Self[1],1) + " MHz"; document.getElementById("Q_1").innerHTML = Rnd(AQ[1],0); document.getElementById("Dim_B_2").innerHTML = DFTtoFTIN( B_Array[2],1,16 )+ " (" + Rnd(B_Array[2]*12/39.37,2) + " M)"; document.getElementById("Dim_C_2").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[2],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[2])*12/39.37,2) + " M)"; document.getElementById("Ind_2").innerHTML = Rnd(L_Array[2],1) + " uH"; document.getElementById("Dia_2").innerHTML = DIN2FIN(Coil_Dia[2],16) + " (" + Rnd(Coil_Dia[2]* 25.4,1) + " mm)"; document.getElementById("Res_2").innerHTML = Rnd(F_Self[2],1) + " MHz"; document.getElementById("Q_2").innerHTML = Rnd(AQ[2],0); document.getElementById("Dim_B_3").innerHTML = DFTtoFTIN( B_Array[3],1,16 )+ " (" + Rnd(B_Array[3]*12/39.37,2) + " M)"; document.getElementById("Dim_C_3").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[3],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[3])*12/39.37,2) + " M)"; document.getElementById("Ind_3").innerHTML = Rnd(L_Array[3],1) + " uH"; document.getElementById("Dia_3").innerHTML = DIN2FIN(Coil_Dia[3],16) + " (" + Rnd(Coil_Dia[3]* 25.4,1) + " mm)"; document.getElementById("Res_3").innerHTML = Rnd(F_Self[3],1) + " MHz"; document.getElementById("Q_3").innerHTML = Rnd(AQ[3],0); document.getElementById("Dim_B_4").innerHTML = DFTtoFTIN( B_Array[4],1,16 )+ " (" + Rnd(B_Array[4]*12/39.37,2) + " M)"; document.getElementById("Dim_C_4").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[4],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[4])*12/39.37,2) + " M)"; document.getElementById("Ind_4").innerHTML = Rnd(L_Array[4],1) + " uH"; document.getElementById("Dia_4").innerHTML = DIN2FIN(Coil_Dia[4],16) + " (" + Rnd(Coil_Dia[4]* 25.4,1) + " mm)"; document.getElementById("Res_4").innerHTML = Rnd(F_Self[4],1) + " MHz"; document.getElementById("Q_4").innerHTML = Rnd(AQ[4],0); document.getElementById("Dim_B_5").innerHTML = DFTtoFTIN( B_Array[5],1,16 )+ " (" + Rnd(B_Array[5]*12/39.37,2) + " M)"; document.getElementById("Dim_C_5").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[5],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[5])*12/39.37,2) + " M)"; document.getElementById("Ind_5").innerHTML = Rnd(L_Array[5],1) + " uH"; document.getElementById("Dia_5").innerHTML = DIN2FIN(Coil_Dia[5],16) + " (" + Rnd(Coil_Dia[5]* 25.4,1) + " mm)"; document.getElementById("Res_5").innerHTML = Rnd(F_Self[5],1) + " MHz"; document.getElementById("Q_5").innerHTML = Rnd(AQ[5],0); document.getElementById("Dim_B_6").innerHTML = DFTtoFTIN( B_Array[6],1,16 )+ " (" + Rnd(B_Array[6]*12/39.37,2) + " M)"; document.getElementById("Dim_C_6").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[6],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[6])*12/39.37,2) + " M)"; document.getElementById("Ind_6").innerHTML = Rnd(L_Array[6],1) + " uH"; document.getElementById("Dia_6").innerHTML = DIN2FIN(Coil_Dia[6],16) + " (" + Rnd(Coil_Dia[6]* 25.4,1) + " mm)"; document.getElementById("Res_6").innerHTML = Rnd(F_Self[6],1) + " MHz"; document.getElementById("Q_6").innerHTML = Rnd(AQ[6],0); document.getElementById("Dim_B_7").innerHTML = DFTtoFTIN( B_Array[7],1,16 )+ " (" + Rnd(B_Array[7]*12/39.37,2) + " M)"; document.getElementById("Dim_C_7").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[7],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[7])*12/39.37,2) + " M)"; document.getElementById("Ind_7").innerHTML = Rnd(L_Array[7],1) + " uH"; document.getElementById("Dia_7").innerHTML = DIN2FIN(Coil_Dia[7],16) + " (" + Rnd(Coil_Dia[7]* 25.4,1) + " mm)"; document.getElementById("Res_7").innerHTML = Rnd(F_Self[7],1) + " MHz"; document.getElementById("Q_7").innerHTML = Rnd(AQ[7],0); document.getElementById("Dim_B_8").innerHTML = DFTtoFTIN( B_Array[8],1,16 )+ " (" + Rnd(B_Array[8]*12/39.37,2) + " M)"; document.getElementById("Dim_C_8").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[8],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[8])*12/39.37,2) + " M)"; document.getElementById("Ind_8").innerHTML = Rnd(L_Array[8],1) + " uH"; document.getElementById("Dia_8").innerHTML = DIN2FIN(Coil_Dia[8],16) + " (" + Rnd(Coil_Dia[8]* 25.4,1) + " mm)"; document.getElementById("Res_8").innerHTML = Rnd(F_Self[8],1) + " MHz"; document.getElementById("Q_8").innerHTML = Rnd(AQ[8],0); document.getElementById("Dim_B_9").innerHTML = DFTtoFTIN( B_Array[9],1,16 )+ " (" + Rnd(B_Array[9]*12/39.37,2) + " M)"; document.getElementById("Dim_C_9").innerHTML = DFTtoFTIN( (Length_A/2)- B_Array[9],1,16 )+ " (" + Rnd(((Length_A/2)- B_Array[9])*12/39.37,2) + " M)"; document.getElementById("Ind_9").innerHTML = Rnd(L_Array[9],1) + " uH"; document.getElementById("Dia_9").innerHTML = DIN2FIN(Coil_Dia[9],16) + " (" + Rnd(Coil_Dia[9]* 25.4,1) + " mm)"; document.getElementById("Res_9").innerHTML = Rnd(F_Self[9],1) + " MHz"; document.getElementById("Q_9").innerHTML = Rnd(AQ[9],0); document.Short_Ant.Opt_Eff.value = "For optimum efficiency, self-resonance should be near " + Rnd(Cent_Freq*2,1) + " MHz"; //*********************************************************************** // Figure out which antenna is selected and highlight that line by // changing the background color for that row. //*********************************************************************** for (var I = 0; I < 7; I++) { for (var J = 2; J < 11; J++) { setCellBgColor ('tableId', J, I, ''); } } for( i=0; i\n") write("\n") write("\n") write("Barker & Williamson Air Core Inductors\n") write("\n") write("\n\n") write("\n")
free web hosting | free hosting | Web Hosting | Free Website Submission | shopping cart | php hosting
write("\n\n") write("\n") write("\n") write(" \n") write(" \n") write("

\n") write("

\n") write(" JavaScript® Electronic Notebook

\n") write(" Barker & Williamson Air Core Inductors\n") write("


\n") write("
\n\n") write("\n") write("\n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write(" \n") write("

Catalog Number\n") write("

Diameter (in.)\n") write("

Turns per Inch\n") write("

Length (in.)\n") write("

AWG#\n") write("

3001\n") write("

0.5\n") write("

4\n") write("

2\n") write("

18\n") write("

3002\n") write("

0.5\n") write("

8\n") write("

2\n") write("

18\n") write("

3003\n") write("

0.5\n") write("

16\n") write("

2\n") write("

20\n") write("

3004\n") write("

0.5\n") write("

32\n") write("

2\n") write("

24\n") write("

3005\n") write("

0.625\n") write("

4\n") write("

2\n") write("

16\n") write("

3006\n") write("

0.625\n") write("

8\n") write("

2\n") write("

18\n") write("

3007\n") write("

0.625\n") write("

16\n") write("

2\n") write("

20\n") write("

3008\n") write("

0.625\n") write("

32\n") write("

2\n") write("

24\n") write("

3009\n") write("

0.75\n") write("

4\n") write("

3\n") write("

16\n") write("

3010\n") write("

0.75\n") write("

8\n") write("

3\n") write("

18\n") write("

3011\n") write("

0.75\n") write("

16\n") write("

3\n") write("

20\n") write("

3012\n") write("

0.75\n") write("

32\n") write("

3\n") write("

24\n") write("

3013\n") write("

1\n") write("

4\n") write("

3\n") write("

16\n") write("

3014\n") write("

1\n") write("

8\n") write("

3\n") write("

18\n") write("

3015\n") write("

1\n") write("

16\n") write("

3\n") write("

20\n") write("

3016\n") write("

1\n") write("

32\n") write("

3\n") write("

24\n") write("

3017\n") write("

1.25\n") write("

4\n") write("

4\n") write("

14\n") write("

3018\n") write("

1.25\n") write("

8\n") write("

4\n") write("

16\n") write("

3019\n") write("

1.25\n") write("

16\n") write("

4\n") write("

18\n") write("

3020\n") write("

1.25\n") write("

32\n") write("

4\n") write("

24\n") write("

3021\n") write("

1.75\n") write("

4\n") write("

4\n") write("

14\n") write("

3022\n") write("

1.75\n") write("

8\n") write("

4\n") write("

14\n") write("

3023\n") write("

1.75\n") write("

16\n") write("

4\n") write("

18\n") write("

3024\n") write("

1.75\n") write("

32\n") write("

4\n") write("

24\n") write("

3025\n") write("

2\n") write("

6\n") write("

10\n") write("

12\n") write("

3026\n") write("

2\n") write("

8\n") write("

10\n") write("

14\n") write("

3027\n") write("

2\n") write("

10\n") write("

10\n") write("

16\n") write("

3029\n") write("

2.5\n") write("

6\n") write("

10\n") write("

12\n") write("

3030\n") write("

2.5\n") write("

8\n") write("

10\n") write("

14\n") write("

3031\n") write("

2.5\n") write("

10\n") write("

10\n") write("

16\n") write("

3033\n") write("

3\n") write("

6\n") write("

10\n") write("

12\n") write("

3034\n") write("

3\n") write("

8\n") write("

10\n") write("

14\n") write("

3035\n") write("

3\n") write("

10\n") write("

10\n") write("

16\n") write("

\n") write("\n") write("\n") write("\n\n") write("\n") write("\n") write(" \n") write(" \n") write(" \n") write("

\n") write("

© Martin E. Meserve, K7MEM\n") write("

Click to view the\n") write(" Resource Credits\n") write("

\n") write("
\n") write("\n") write("\n") close() } // End of "with (BW_Ind_Cat.document)" statement }