-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
556 lines (531 loc) · 28.4 KB
/
Copy pathindex.html
File metadata and controls
556 lines (531 loc) · 28.4 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<!doctype html>
<!--
QuakeLab - 3D earthquake simulation & structural assessment for architects.
Creative Computational Architecture - Caglar Celik Architects (CCA)
Open source under the MIT License (see LICENSE).
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>QuakeLab - 3D Earthquake Simulation & Structural Assessment (TBDY-2018)</title>
<meta name="darkreader-lock" />
<meta name="color-scheme" content="only light dark" />
<!--
Typefaces (Space Grotesk + JetBrains Mono) are self-hosted in fonts/
and declared in style.css, so the tool needs no network at all. Every
family stack ends in a system face as a fallback.
-->
<link rel="stylesheet" href="style.css?v=20260218_19" />
</head>
<body>
<div id="app">
<aside class="panel leftPanel" id="leftPanel">
<div class="panelTop">
<h1>QuakeLab</h1>
<button id="toggleLeftPanelBtn" class="panelDockBtn">Hide Panel</button>
</div>
<p class="subtitle">3D structural earthquake pre-analysis for architectural pre-design.</p>
<p class="mini">Tip: click section headers in the left panel to expand/collapse.</p>
<section class="presetSection">
<h2>Building Presets</h2>
<label>Building type
<select id="buildingPreset">
<option value="custom">Custom (Manual)</option>
<optgroup label="Residential">
<option value="apt5_standard">5-Story Standard Apartment</option>
<option value="apt8_strong">8-Story Strong Building</option>
<option value="apt3_weak">3-Story Weak Building</option>
<option value="apt12_highrise">12-Story High-Rise</option>
</optgroup>
<optgroup label="Commercial">
<option value="shop2_lowrise">2-Story Shop</option>
<option value="office6_mid">6-Story Office Building</option>
</optgroup>
<optgroup label="Scenario">
<option value="scenario_collapse">Collapse Scenario (Weak)</option>
<option value="scenario_isolated">Strong Base-Isolated Building</option>
</optgroup>
</select>
</label>
<p class="mini" id="presetDescLine">Preset: uses manual settings.</p>
</section>
<section>
<h2>Geometry (Grid-Based)</h2>
<label>Stories above grade <input id="floors" type="number" min="1" max="35" value="8" /></label>
<label>Basement stories <input id="basements" type="number" min="0" max="8" value="1" /></label>
<label>Story height (m) <input id="storyHeight" type="number" min="2.2" max="5" step="0.1" value="3.0" /></label>
<label>Ground-floor height (m) <input id="groundFloorHeight" type="number" min="2.5" max="6" step="0.1" value="3.0" /></label>
<label>X grid spans (m)
<input id="spansX" type="text" value="4.0, 4.5, 4.0" />
</label>
<label>Y grid spans (m)
<input id="spansY" type="text" value="4.0, 4.0" />
</label>
<p class="mini" id="axisInfoLine">Axes: X 3 spans, Y 2 spans</p>
</section>
<section>
<h2>Structural System</h2>
<label>Column b (m) <input id="colB" type="number" min="0.25" max="1.0" step="0.01" value="0.40" /></label>
<label>Column h (m) <input id="colH" type="number" min="0.25" max="1.0" step="0.01" value="0.40" /></label>
<label>Beam b (m) <input id="beamB" type="number" min="0.2" max="1.0" step="0.01" value="0.30" /></label>
<label>Beam h (m) <input id="beamH" type="number" min="0.3" max="1.2" step="0.01" value="0.55" /></label>
<label>Concrete fck (MPa) <input id="fck" type="number" min="20" max="80" step="1" value="35" /></label>
<label>Steel fy (MPa) <input id="fy" type="number" min="220" max="600" step="5" value="420" /></label>
<label>Reinforcement ratio ρ (%) <input id="rho" type="number" min="0.6" max="4" step="0.1" value="1.6" /></label>
<label>Dead load (kN/m²) <input id="deadLoad" type="number" min="2" max="20" step="0.1" value="8.0" title="Includes slab, screed, plaster, partitions etc. Member self-weights are embedded in this value. 8-10 for residential, 10-12 kN/m2 for commercial." /></label>
<label>Live load (kN/m²) <input id="liveLoad" type="number" min="0.5" max="12" step="0.1" value="2.0" /></label>
<p class="mini">Seismic load combination: G + 0.30Q</p>
<label>Wall thickness (m) <input id="wallThickness" type="number" min="0.20" max="0.60" step="0.01" value="0.30" /></label>
<label>Target shear-wall column count <input id="wallCount" type="number" min="0" max="30" step="1" value="4" /></label>
<label>Wall orientation
<select id="wallOrientation">
<option value="auto" selected>Auto</option>
<option value="x">X direction</option>
<option value="y">Y direction</option>
<option value="mixed">Mixed (X+Y)</option>
</select>
</label>
<label class="checkLabel">
<span>Auto basement perimeter walls</span>
<input id="autoBasementWalls" type="checkbox" checked />
</label>
<div class="inlineBtns">
<button id="toggleSelectModeBtn">Column selection: Off</button>
<button id="clearWallSelectionBtn">Clear selection</button>
</div>
<p class="mini" id="wallSelectionLine">Selected column: 0 | Active wall columns: 0</p>
<label class="checkLabel">
<span>Add elevator core</span>
<input id="useCore" type="checkbox" checked />
</label>
<label>Core X (m) <input id="coreSizeX" type="number" min="2" max="14" step="0.1" value="4.0" /></label>
<label>Core Y (m) <input id="coreSizeY" type="number" min="2" max="14" step="0.1" value="3.2" /></label>
</section>
<section>
<h2>Architectural Typology</h2>
<label>Slab type
<select id="slabType">
<option value="normal" selected>Solid slab</option>
<option value="kaset">Waffle slab</option>
</select>
</label>
<label class="checkLabel">
<span>Add balconies</span>
<input id="useBalcony" type="checkbox" checked />
</label>
<label>Balcony depth (m) <input id="balconyDepth" type="number" min="0.8" max="2.4" step="0.1" value="1.4" /></label>
<label>Balcony side
<select id="balconySide">
<option value="front">Front facade</option>
<option value="frontBack" selected>Front + back</option>
<option value="all">All facades</option>
</select>
</label>
</section>
<section>
<h2>Soil + Foundation</h2>
<label>Soil preset
<select id="soilPreset">
<option value="soft">Soft soil</option>
<option value="medium" selected>Medium soil</option>
<option value="rock">Rock</option>
<option value="liquefaction">Liquefaction-prone soil</option>
<option value="custom">Custom</option>
</select>
</label>
<label>q_allow (kPa) <input id="soilAllow" type="number" min="60" max="900" step="5" value="220" /></label>
<label>Vs30 (m/s) <input id="soilVs" type="number" min="120" max="1200" step="10" value="360" /></label>
<label>Foundation type
<select id="foundationType">
<option value="isolated">Isolated footings</option>
<option value="raft" selected>Raft foundation</option>
<option value="pile">Pile foundation</option>
</select>
</label>
<label>Seismic isolator
<select id="isolatorType">
<option value="none" selected>None</option>
<option value="lrb">LRB</option>
<option value="fps">FPS</option>
<option value="hdrb">HDRB</option>
</select>
</label>
<label>Isolator target period (s)
<input id="isolatorPeriod" type="number" min="0.8" max="4.0" step="0.05" value="2.20" />
</label>
<label>Isolator damping ratio
<input id="isolatorDamping" type="number" min="0.05" max="0.35" step="0.01" value="0.18" />
</label>
<p class="mini" id="isolatorLine">Isolator: Off</p>
<p class="mini" id="soilPresetLine">Preset: Medium soil</p>
<p class="mini" id="soilLine">Soil check: -</p>
</section>
<section>
<h2>Earthquake</h2>
<label class="checkLabel">
<span>Automatic quake parameters</span>
<input id="autoQuake" type="checkbox" checked />
</label>
<label>Mw <input id="magnitude" type="number" min="5" max="8.5" step="0.1" value="6.7" /></label>
<label>Fault proximity
<select id="proximity">
<option value="near">Near (10 km)</option>
<option value="medium" selected>Mid (30 km)</option>
<option value="far">Far (70 km)</option>
</select>
</label>
<button id="autoCalcBtn" class="wideBtn">Compute from Mw + proximity + soil</button>
<p class="mini" id="autoLine">Auto quake: Ready</p>
<label>PGA (g) <input id="pga" type="number" min="0.05" max="1.4" step="0.01" value="0.30" /></label>
<label>Dominant period T (s) <input id="quakeT" type="number" min="0.15" max="3" step="0.01" value="0.70" /></label>
<label>Damping ξ <input id="damping" type="number" min="0.01" max="0.25" step="0.01" value="0.05" /></label>
<label>Test duration (s) <input id="duration" type="number" min="5" max="120" step="1" value="30" /></label>
<label>Quake record
<select id="quakeRecord">
<optgroup label="Historic Earthquakes (Turkiye)">
<option value="kmaras_2023">2023 Kahramanmaras (Mw 7.7)</option>
<option value="izmit_1999">1999 Izmit (Mw 7.6)</option>
<option value="erzincan_1939">1939 Erzincan (Mw 7.8)</option>
<option value="bingol_2003">2003 Bingol (Mw 6.4)</option>
<option value="van_2011">2011 Van (Mw 7.1)</option>
<option value="elazig_2020">2020 Elazig (Mw 6.8)</option>
</optgroup>
<optgroup label="Historic Earthquakes (World)">
<option value="northridge_1994">1994 Northridge (Mw 6.7)</option>
<option value="kobe_1995">1995 Kobe (Mw 6.9)</option>
<option value="chile_2010">2010 Chile/Maule (Mw 8.8)</option>
<option value="nepal_2015">2015 Nepal (Mw 7.8)</option>
</optgroup>
<optgroup label="Synthetic">
<option value="synthetic" selected>Synthetic spectrum wave</option>
</optgroup>
</select>
</label>
<label>Quake direction (°) <input id="quakeDir" type="number" min="0" max="360" step="1" value="15" /></label>
<p class="mini" id="quakeRecordLine">Record: Synthetic spectrum wave</p>
<p class="mini" id="quakeDirLine">Direction: 15° (X+ reference, counterclockwise)</p>
</section>
<section>
<h2>Construction Defects</h2>
<label>Defect preset
<select id="defectPreset">
<option value="none" selected>Standard construction (no defects)</option>
<option value="siteMedium">Moderate site-defect package</option>
<option value="siteCritical">Widespread critical defects</option>
<option value="collapseRisk">Severe defects / collapse risk</option>
<option value="custom">Manual combination</option>
</select>
</label>
<label>Stirrup spacing quality
<select id="stirrupFault">
<option value="normal" selected>Adequate</option>
<option value="fault1">Defect level 1 (slightly sparse)</option>
<option value="fault2">Defect level 2 (sparse)</option>
<option value="fault3">Defect level 3 (very sparse)</option>
</select>
</label>
<label>Concrete quality variance
<select id="concreteVariance">
<option value="uniform" selected>Low variance</option>
<option value="moderate">Medium variance</option>
<option value="high">High variance</option>
</select>
</label>
<label>Segregation level
<select id="segregationLevel">
<option value="none" selected>None</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
</label>
<label>Missing rebar
<select id="rebarDeficit">
<option value="none" selected>None</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
</label>
<label>Columns cut at ground level
<input id="cutGroundColumns" type="number" min="0" max="6" step="1" value="0" />
</label>
<p class="mini" id="defectLine">Defect impact: nominal structural capacity.</p>
</section>
<section>
<h2>Plan Editor</h2>
<label>Edit mode
<select id="planEditMode">
<option value="wall" selected>Shear-wall selection</option>
<option value="column">Single-column editing</option>
<option value="beam">Beam editing</option>
</select>
</label>
<p class="mini" id="planModeLine">Mode: shear-wall selection (click a column).</p>
<p class="mini" id="selectedColumnLine">Selected column: -</p>
<label>Selected column b (m) <input id="singleColB" type="number" min="0.25" max="1.0" step="0.01" value="0.40" /></label>
<label>Selected column h (m) <input id="singleColH" type="number" min="0.25" max="1.0" step="0.01" value="0.40" /></label>
<label>X offset (m) <input id="singleColDx" type="number" min="-1.5" max="1.5" step="0.05" value="0.00" /></label>
<label>Y offset (m) <input id="singleColDz" type="number" min="-1.5" max="1.5" step="0.05" value="0.00" /></label>
<label>Column rotation (°) <input id="singleColRot" type="number" min="-180" max="180" step="1" value="0" /></label>
<label>Selected wall orientation
<select id="singleWallOrientation">
<option value="auto" selected>Auto</option>
<option value="x">X</option>
<option value="y">Y</option>
</select>
</label>
<div class="inlineBtns">
<button id="applyColEditBtn">Apply to Selected</button>
<button id="resetColEditBtn">Reset Selected</button>
</div>
<button id="clearBeamOverridesBtn" class="wideBtn">Reset beam layout</button>
<p class="mini">Column-mode gumball on plan: center=move, blue arm=width, yellow arm=depth, ring=rotate.</p>
<p class="mini">In beam mode click the plan to delete/add beams. In column mode edit size/offset/rotation per column.</p>
</section>
<section>
<h2>Layers</h2>
<div class="checkGrid">
<label class="toggle"><input id="layerFoundation" type="checkbox" checked /> Foundation</label>
<label class="toggle"><input id="layerFrame" type="checkbox" checked /> Frame</label>
<label class="toggle"><input id="layerEdges" type="checkbox" checked /> 3D Edges</label>
<label class="toggle"><input id="wireframeMode" type="checkbox" /> Wireframe mode</label>
<label class="toggle"><input id="layerShearWalls" type="checkbox" checked /> Shear walls/core</label>
<label class="toggle"><input id="layerRebar" type="checkbox" /> Rebar</label>
<label class="toggle"><input id="layerSlabs" type="checkbox" checked /> Slabs</label>
<label class="toggle"><input id="layerRoof" type="checkbox" checked /> Roof</label>
<label class="toggle"><input id="layerWalls" type="checkbox" /> Exterior walls</label>
<label class="toggle"><input id="layerWindows" type="checkbox" /> Windows</label>
<label class="toggle"><input id="layerBalconies" type="checkbox" checked /> Balconies</label>
<label class="toggle"><input id="layerGround" type="checkbox" /> Hide ground</label>
</div>
</section>
<section class="buttons">
<button id="buildBtn">Build Structure</button>
<button id="startBtn">Start Earthquake</button>
<button id="pauseBtn">Pause</button>
<button id="resetBtn">Reset</button>
<button id="quickTestBtn" class="full">Quick Assessment</button>
</section>
<div class="panel-close-bar">
<button class="panel-close-btn" id="closeLeftPanelBtn" onclick="var a=document.getElementById('app');a.classList.remove('left-open');if(window._rcApp){window._rcApp.leftPanelOpen=false;var b=document.getElementById('toggleLeftPanelBtn');if(b)b.textContent='Open Panel';}">✕ Close Panel</button>
</div>
</aside>
<section id="workspace">
<div id="sceneArea">
<div id="sceneTopBar">
<div class="switchGroup">
<button id="startOverlayBtn" class="switchBtn accent">Start Test</button>
<button id="structureModeBtn" class="switchBtn">Structural Mode</button>
<button id="view3dBtn" class="switchBtn active">3D View</button>
<button id="viewPlanBtn" class="switchBtn">Plan View</button>
<select id="renderModeSelect" class="sceneQuickSelect" title="Display Mode">
<option value="dark" selected>Dark</option>
<option value="light-theme">Light</option>
<option value="hidden">Hidden Line</option>
<option value="arctic">Arctic</option>
</select>
<select id="langSelect" class="sceneQuickSelect" title="Dil / Language">
<option value="tr">TR</option>
<option value="en">EN</option>
</select>
</div>
<div class="switchGroup layerGroup">
<button id="tbWaves" class="switchBtn sm active" title="Wave view">Waves</button>
<button id="tbGround" class="switchBtn sm" title="Ground/soil section">Ground</button>
<button id="tbWireframe" class="switchBtn sm" title="Wireframe view">Wireframe</button>
</div>
<div class="switchGroup">
<button id="leftPanelToggle" class="switchBtn">Settings</button>
<button id="rightPanelToggle" class="switchBtn">Status</button>
<button id="helpBtn" class="switchBtn">Help</button>
</div>
</div>
<canvas id="scene"></canvas>
<div id="liveHud" aria-hidden="true">
<div class="hud-group hud-primary">
<p id="hudState" class="state">State: Elastic</p>
<p id="hudPerf">Performance: Immediate occupancy</p>
<p id="hudSafety">Safety factor: 1.00</p>
</div>
<div class="hud-group hud-response">
<p id="hudTime">t: 0.00 s</p>
<p id="hudDisp">Roof displacement: 0.00 cm</p>
<p id="hudDrift">Instant interstory drift: 0.00%</p>
<p id="hudShear">Base shear: 0.0 kN</p>
<p id="hudAcc">Instant ground acceleration: 0.00 g</p>
</div>
<div class="hud-group hud-analysis">
<p id="hudWave">Incoming wave: -</p>
<p id="hudResonance">Resonance: -</p>
<p id="hudWeak">Weak direction: -</p>
</div>
<div class="hud-group hud-risk">
<p id="hudTorsion">Torsion risk: -</p>
<p id="hudSoftStory">Soft story: -</p>
<p id="hudWallRatio">Wall area ratio: -</p>
</div>
</div>
<div id="damageDashboard" class="damage-dashboard hidden">
<div class="dd-header">
<span class="dd-title">Damage Events</span>
<span class="dd-count" id="ddCount">0</span>
</div>
<div class="dd-list" id="ddList"></div>
</div>
<div id="planStage">
<div id="planBadge">Plan View (column selection / wall conversion)</div>
<canvas id="planCanvas"></canvas>
</div>
<div id="quakeTint"></div>
<div id="sceneBadge">3D Structural Test</div>
<div id="brandLabel">
<span class="brand-top">Caglar Celik Architects</span>
<span class="brand-bottom">QUAKE LAB</span>
</div>
<div id="sceneQuickBar">
<button id="sceneTestBtn" class="sceneQuickBtn" title="Start/Stop Test (Space)">▶ Test</button>
<select id="sceneQuakeSelect" class="sceneQuickSelect" title="Select Quake Record">
<optgroup label="Turkiye">
<option value="kmaras_2023">Kahramanmaras 2023 (Mw 7.7)</option>
<option value="izmit_1999">Izmit 1999 (Mw 7.6)</option>
<option value="erzincan_1939">Erzincan 1939 (Mw 7.8)</option>
<option value="bingol_2003">Bingol 2003 (Mw 6.4)</option>
<option value="van_2011">Van 2011 (Mw 7.1)</option>
<option value="elazig_2020">Elazig 2020 (Mw 6.8)</option>
</optgroup>
<optgroup label="World">
<option value="northridge_1994">Northridge 1994 (Mw 6.7)</option>
<option value="kobe_1995">Kobe 1995 (Mw 6.9)</option>
<option value="chile_2010">Chile 2010 (Mw 8.8)</option>
<option value="nepal_2015">Nepal 2015 (Mw 7.8)</option>
</optgroup>
<optgroup label="Synthetic">
<option value="synthetic" selected>Synthetic Wave</option>
</optgroup>
</select>
<button id="sceneAnimModeBtn" class="sceneQuickBtn" title="Now: exaggerated animation (click for real-scale)">🎬 Exaggerated</button>
</div>
</div>
<div id="responseBand">
<div class="responseHeader">
<h3>Quake Wave + Structural Response</h3>
<p>Time series flows right-to-left; the fixed-scale graph stays on the right.</p>
</div>
<canvas id="capacityChart" width="1200" height="150"></canvas>
</div>
</section>
<aside class="panel rightPanel" id="rightPanel">
<div class="panelTop">
<h1>Live Results</h1>
<button id="toggleRightPanelBtn" class="panelDockBtn">Hide Panel</button>
</div>
<section class="statusBox">
<h2>Status</h2>
<p id="status">Ready</p>
<div id="architectLine" class="verdict-badge verdict-pending">Preliminary verdict: Standby</div>
<p id="perfLine">Performance: -</p>
<div class="status-grid">
<div class="status-item">
<span class="status-label">Safety F.</span>
<span class="status-val" id="safetyLine">1.00</span>
</div>
<div class="status-item">
<span class="status-label">Max Drift</span>
<span class="status-val" id="driftLine">0.00%</span>
</div>
<div class="status-item">
<span class="status-label">Damage Ratio</span>
<span class="status-val" id="damageLine">0.00</span>
</div>
<div class="status-item">
<span class="status-label">Failed El.</span>
<span class="status-val" id="failedLine">0</span>
</div>
</div>
<p id="weakLine">Weak direction: -</p>
<p id="weakReasonLine" class="mini">Primary cause: -</p>
<div class="risk-indicators">
<p id="torsionLine">Torsion risk: -</p>
<p id="softStoryLine">Soft story: -</p>
<p id="wallRatioLine">Wall area ratio: -</p>
</div>
<p id="timeLine" class="mini">Simulation Time: 0.0 s</p>
</section>
<section>
<h2>Instant Response</h2>
<p id="liveTime">t: 0.00 s</p>
<p id="liveDisp">Roof displacement: 0.00 cm</p>
<p id="liveDrift">Instant interstory drift: 0.00%</p>
<p id="liveShear">Base shear: 0.0 kN</p>
<p id="liveAcc">Instant ground acceleration: 0.00 g</p>
<p id="liveWave">Incoming wave: -</p>
<p id="liveResonance">Resonance: -</p>
<p id="liveState">State: Elastic</p>
</section>
<section>
<h2>Elastic-Plastic State</h2>
<p id="curveState" class="mini">State: Waiting</p>
</section>
<section>
<h2>TBDY Preliminary Checks</h2>
<p class="mini noticeBox noticeBox--danger">
⚠ Do not perform real earthquake calculations with this tool.
It is for building intuition in the pre-design phase only.
</p>
<p class="mini">
This tool uses preliminary-check logic referenced to TBDY-2018.
A licensed structural design and official calculations are mandatory for final design and permits.
</p>
<p class="mini noticeBox noticeBox--warn">
Automatic PGA is an approximate GMPE estimate; it must not replace the TBDY-2018
hazard map (TDTH). Use the AFAD interactive map for exact SS/S1 values.
</p>
<p class="mini">
Soil class: TBDY-2018 Table 3.3 (Vs30-based ZA-ZE).
Cracked sections: TBDY-2018 Table 4.2 (column 0.70, beam 0.35, wall 0.50).
</p>
</section>
<div class="panel-close-bar">
<button class="panel-close-btn" id="closeRightPanelBtn" onclick="var a=document.getElementById('app');a.classList.remove('right-open');if(window._rcApp){window._rcApp.rightPanelOpen=false;var b=document.getElementById('toggleRightPanelBtn');if(b)b.textContent='Open Panel';}">✕ Close Panel</button>
</div>
</aside>
<div id="resultReport" class="reportOverlay hidden">
<div class="reportCard">
<div class="reportHead">
<h3>Earthquake Performance Report</h3>
<button id="reportCloseBtn" class="switchBtn">Close</button>
</div>
<div id="reportBody" class="reportBody"></div>
</div>
</div>
<div id="helpOverlay" class="reportOverlay hidden">
<div class="reportCard helpCard">
<div class="reportHead">
<h3>How to Use</h3>
<button id="helpCloseBtn" class="switchBtn">Close</button>
</div>
<div class="reportBody">
<p><strong>1.</strong> First <strong>Build Structure</strong>, then <strong>Start Test</strong>.</p>
<p><strong>2.</strong> In <strong>Plan View</strong> pick a Plan Editor mode:</p>
<p>— Wall selection: click a column to convert to/from a shear wall.</p>
<p>— Single-column editing: select a column, apply b-h and offsets.</p>
<p>— Beam editing: click a beam to delete/add.</p>
<p><strong>3.</strong> With an isolator, base acceleration drops, the period lengthens, damping rises.</p>
<p><strong>4.</strong> Pick a representative record such as "Kahramanmaras 2023" or "Izmit 1999".</p>
<p><strong>5.</strong> In Construction Defects toggle stirrup, segregation and column-cut effects.</p>
<p><strong>6.</strong> At the end read safety factor, drift, shear and the weak direction in the report.</p>
</div>
</div>
</div>
<!-- Mobile panel backdrop - click to close panel -->
<div id="panelBackdrop" class="panel-backdrop"></div>
</div>
<!-- Live ground+building cross-section (bottom right) -->
<canvas id="liveCrossSection" width="320" height="180"></canvas>
<script src="i18n.js?v=20260815_1"></script>
<script type="module" src="app.js?v=20260218_19"></script>
</body>
</html>