-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradAccCalculator.html
More file actions
104 lines (86 loc) · 2.53 KB
/
radAccCalculator.html
File metadata and controls
104 lines (86 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html><head>
<meta http-equiv="Content-Language" content="en-us">
<title>Calculator for Radial Accelerator</title>
<META NAME="DESCRIPTION" CONTENT="Calculator for Radial Accelerator">
<META NAME="Keywords" CONTENT="">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="index, follow">
<META NAME="REVISIT-AFTER" CONTENT="1 Week">
<meta NAME="resource-type" CONTENT="document">
<script language="JavaScript">
<!--
function solve(form){
L = eval(form.L.value);
W = eval(form.W.value);
TW = eval(form.T_W.value);
TG = eval(form.T_G.value);
MOD = eval(form.MOD.value);
TSIZE = TW + TG;
Lines = L / TSIZE;
ARCS = Math.PI*(TG/2)*Lines;
LENGTH = ((Lines * W) + ARCS) / 1000;
form.LMOD.value = (L * MOD) / 1000;
form.S.value = LENGTH * MOD;
form.SK.value = (LENGTH * MOD ) / 1000;
}
function reset(form) {}
// -->
</script>
</head>
<body class=main>
<form name="form">
<div align="center">
<h1>Radial Accelerator Calculator</h1>
<center>
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr class=cel>
</tr>
<tr>
<td width="350" class="cel"> Length (L)</td>
<td width="150" class="cel">
<input TYPE="text" NAME="L" SIZE="10" VALUE="10"> mm</td>
</tr>
<tr>
<td class="cel"> Width (W)</td>
<td class="cel">
<input TYPE="text" NAME="W" SIZE="10" VALUE="10"> mm
</td>
</tr>
<tr>
<td class="cel"> Track Size Width</td>
<td class="cel">
<input TYPE="text" NAME="T_W" SIZE="10" VALUE="0.001"> mm</td>
</tr>
<tr>
<td class="cel"> Track Gap Width</td>
<td class="cel">
<input TYPE="text" NAME="T_G" SIZE="10" VALUE="0.001"> mm</td>
</tr>
<tr>
<td class="cel"> Number of Modules</td>
<td class="cel">
<input TYPE="text" NAME="MOD" SIZE="10" VALUE="1"></td>
</tr>
<tr>
<td class="cel"> Acclerator Module Length</td>
<td class="cel">
<input TYPE="text" NAME="LMOD" SIZE="10"> meters</td>
</tr>
<tr>
<td class="cel"> Total Accelerator Length</td>
<td class="cel"><input TYPE="text" NAME="S" SIZE="10">
meters</td>
</tr>
<tr>
<td class="cel"> Total Accelerator Length</td>
<td class="cel"><input TYPE="text" NAME="SK" SIZE="10"> kilometers</td>
</tr>
<tr>
<td colspan="2" class="cel"> <input type="button" value="Solve" onClick="solve(form)"><input type="button" value="Reset" onClick="reset(form)"> </td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>