-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
246 lines (217 loc) · 11 KB
/
index.html
File metadata and controls
246 lines (217 loc) · 11 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Harmonics</title>
<link href="img/sin-wave.ico" rel="icon">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous">
</script>
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div>
<button id = "SettingButton" class="btn btn-primary fixed-action-btn" onclick="button2_function()">☰</button>
</div>
<div id="SideBar1" class="sidebar border-right">
<div>
<div class="container">
<div class="row align-self-stretch">
<div class="col text-right my-2">
<button type="button" class="btn btn-white" onclick="button1_function()">X</button>
</div>
</div>
<div class="row align-self-stretch border-bottom">
<div class="col">
<div class="h2 text-left">Coefficients</div>
</div>
<div class="col text-right">
<button type="button" class="btn btn-primary " onclick="button2_function()">Settings</button>
</div>
</div>
</div>
<div class="container align-items-center text-center">
<div class="row my-3 font-weight-bold">
<div class="col">No</div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col">An</div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col">Bn</div>
</div>
<div class="container" id="Sliders"> </div>
</div>
</div>
</div>
<div id="SideBar2" class="sidebar border-right">
<div>
<div class="container">
<div class="row align-self-stretch">
<div class="col text-right my-2">
<button type="button" class="btn btn-white" onclick="button2_function()">X</button>
</div>
</div>
<div class="row align-self-stretch border-bottom">
<div class="col">
<div class="h2 text-left">Settings</div>
</div>
<div class="col text-right">
<button type="button" class="btn btn-primary h4" onclick="button1_function()">Coefficients</button>
</div>
</div>
<div class="row align-items-center">
<div class="col">
nth Harmonic Orders:
</div>
<div class="col">
<input type="range" min="1" max="40" value="10" class="slider" id="HarmonicOrder"
onChange="sliderChangeMain(this)">
</div>
<div class="col-2">
<p id="HarmonicOrderValue">10</p>
</div>
</div>
<div class="row align-items-center">
<div class="col">
Frequency (Hz):
</div>
<div class="col">
<input type="range" min="10" max="500" value="50" class="slider" id="Frequency"
onChange="sliderChangeMain(this)">
</div>
<div class="col-2">
<p id="FrequencyValue">50</p>
</div>
</div>
<div class="row align-items-center">
<div class="col">
Time Interval (s):
</div>
<div class="col">
<input type="range" step="0.001" min="0.005" max="0.2" value="0.02" class="slider"
id="TimeInterval" onChange="sliderChangeMain(this)">
</div>
<div class="col-2">
<p id="TimeIntervalValue">0.02</p>
</div>
</div>
<div class="row align-items-center">
<div class="col">
DC Component:
</div>
<div class="col">
<input type="range" step="1" min="-100" max="100" value="0" class="slider" id="DCComponent"
onChange="sliderChangeMain(this)">
</div>
<div class="col-2">
<p id="DCComponentValue">0</p>
</div>
</div>
<div class="row align-items-center mb-2">
<div class="col">
Noise (%):
</div>
<div class="col">
<input type="range" step="0.5" min="-10" max="10" value="0" class="slider" id="Noise"
onChange="sliderChangeMain(this)">
</div>
<div class="col-2">
<p id="NoiseValue">0</p>
</div>
</div>
<div class="row my-3 text-center">
<div class="col text-left">
<button type="button" class="btn btn-primary" value="Square"
onclick="Selection_setting(this.value)">Square</button>
</div>
<div class="col text-right">
<button type="button" class="btn btn-primary" value="Quasi-Square"
onclick="Selection_setting(this.value)">Quasi-Square</button>
</div>
</div>
<div class="row my-3 text-center">
<div class="col text-left">
<button type="button" class="btn btn-primary" value="Triangular"
onclick="Selection_setting(this.value)">Triangular</button>
</div>
<div class="col text-right">
<button type="button" class="btn btn-primary" value="Half Sine (R)"
onclick="Selection_setting(this.value)">Half Sine (R)</button>
</div>
</div>
<div class="row text-center my-3">
<div class="col text-left">
<button type="button" class="btn btn-primary" value="Reset"
onclick="Selection_setting(this.value)">Reset</button>
</div>
<div class="col text-right">
<button type="button" class="btn btn-primary " onclick="location.reload()">Reload Page</button>
</div>
</div>
</div>
</div>
</div>
<div id="main">
<div class="h1 text-center my-4">
Power System Harmonics
</div>
<div class="container text-center my-4 align-items-center">
<div class="row">
<div class="col p my-3 text-justify">
In this platform, different waveforms can be visualized depending on the Fourier series. Number of
how
many harmonic orders will be plotted, waveform frequency, plotting time, dc value of waveform and
noise
are the variables of plotting. Additionally, waveforms are directly selectable from corresponding
buttons. At last, Fourier series coefficients are adjustable in case of need for different
configuration.
</div>
</div>
<div class="row">
<div class="col my-2">
<div id="HarmonicPlot"></div>
</div>
</div>
<div class="row font-weight-bold my-3 py-3 bg-light">
<div class="col">RMS:</div>
<div class="col" id="RMSValueofPlot">100</div>
<div class="col">THD (%):</div>
<div class="col" id="THDValueofPlot">0</div>
</div>
</div>
<!-- Footer Start -->
<div class="container-fluid text-white mt-5 py-1 px-sm-1 px-md-5 my-5" style="background-color: rgb(44, 137, 231);">
<div class="container text-center py-5">
<div class="justify-content-center mb-4">
<a class="btn btn-light btn-social mx-2" href="https://www.linkedin.com/in/onurhakki/"
target="_blank" rel="noopener noreferrer"><i class="fab fa-linkedin-in fa-lg"></i></a>
<a class="btn btn-light btn-social mx-2" href="https://www.youtube.com/channel/UC0PnvRi2ezTZoxMNQb99csw" target="_blank"
rel="noopener noreferrer"><i class="fab fa-youtube-square fa-lg"></i></a>
<a class="btn btn-light btn-social mx-2" href="https://github.com/onurhakki" target="_blank"
rel="noopener noreferrer"><i class="fab fa-github fa-lg"></i></a>
</div>
<p class="m-0"> Onur Hakkı Eyüboğlu | All Rights Reserved | Designed by <a
class="text-white font-weight-bold" href="https://onurhakki.github.io/cv/" target="_blank"
rel="noopener noreferrer">Onur Hakkı Eyüboğlu</a></p>
</div>
</div>
<!-- Footer End -->
</div>
</body>
<script src="script.js" type="text/javascript"></script>
</html>