-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp2calcwire.html
82 lines (82 loc) · 2.85 KB
/
p2calcwire.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tranformer Designer</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js"></script>
<script src="main.js"></script>
<link rel="stylesheet" href="main.css"></link>
</head>
<body onload="initp2()">
<h2>Transformer Designer Page 2</h2>
<h3>Applicable to Toroid Transformers Only</h3>
<table>
<tr><th>Design Specifications</th></tr>
<tr>
<td><label>Toroid's core height (<span class="unit"></span>)</label></td>
<td><input type="text" id="leg" disabled></td>
</tr>
<tr>
<td><label>Toroid's core thickness (<span class="unit"></span>)</label></td>
<td><input type="text" id="thick" disabled></td>
</tr>
<tr>
<td><label>Number of turns - Primary</label></td>
<td><input type="text" id="pri-n" disabled></td>
</tr>
<tr>
<td><label>Number of turns - Secondary</label></td>
<td><input type="text" id="sec-n" disabled></td>
</tr>
<tr>
<td><label>
<div class="tooltip">Core inner diameter (<span class="unit"></span>)
<span class="tooltiptext"><img src="./toroid_id1.png" width="200px"></img></span>
<div></label></td>
<td><input type="number" id="diam" step=0.01 min=0.01 max=100></td>
</tr>
<tr>
<td><label><div class="tooltip">Window factor (%)<span class="tooltiptext">
The window factor is the percentage to be deducted in the window area
dedicated to bobbin thickness, layer insulation thickness, and your
effectiveness in layering out the wires around the bobbin. The value
is somewhere from 20% to 50%.
</span></div></label></td>
<td><input type="number" id="winf" step=0.01 min=20 max=50 value=50></td>
</tr>
<tr>
<td><button id="calc" onclick="simulate()">Calculate Wire Size</button></td>
</tr>
<tr><th>Calculation Result</th></tr>
<tr>
<td><label>Wire size - Primary AWG</label></td>
<td><input type="text" id="wirep" disabled></td>
</tr>
<tr>
<td><label>Wire size - Secondary AWG</label></td>
<td><input type="text" id="wires" disabled></td>
</tr>
<tr>
<td><label>Wire ampacity - Primary</label></td>
<td><input type="text" id="ampp" disabled></td>
</tr>
<tr>
<td><label>Wire ampacity - Secondary</label></td>
<td><input type="text" id="amps" disabled></td>
</tr>
<td><label>Wire weight - Primary (kgs)</label></td>
<td><input type="text" id="kgsP" disabled></td>
</tr>
<tr>
<tr>
<td><label>Wire weight - Secondary (kgs)</label></td>
<td><input type="text" id="kgsS" disabled></td>
</tr>
</table>
<br>
Copyright © 2022 by J.A.Agutaya
<br>
All right reserved.
</body>
</html>