311 lines
12 KiB
HTML
311 lines
12 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>Structural Integrity Calculator | Alexander West</title>
|
||
|
|
<style>
|
||
|
|
:root {
|
||
|
|
--prairie-black: #0a0f0d;
|
||
|
|
--seam-gold: #ffd700;
|
||
|
|
--vein-bronze: #cd7f32;
|
||
|
|
--caliper-silver: #c0c0c0;
|
||
|
|
--horizon-grey: #1a1f1d;
|
||
|
|
--alert-red: #ff3333;
|
||
|
|
--hold-orange: #ff8800;
|
||
|
|
--pass-green: #00ff66;
|
||
|
|
}
|
||
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||
|
|
html, body {
|
||
|
|
background: var(--prairie-black);
|
||
|
|
color: var(--caliper-silver);
|
||
|
|
font-family: 'JetBrains Mono', 'Courier New', monospace;
|
||
|
|
min-height: 100vh;
|
||
|
|
}
|
||
|
|
.header {
|
||
|
|
border-bottom: 2px solid var(--seam-gold);
|
||
|
|
padding: 3vmin;
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
.header h1 {
|
||
|
|
font-size: clamp(1rem, 3vmin, 2.5rem);
|
||
|
|
color: var(--seam-gold);
|
||
|
|
letter-spacing: 0.15em;
|
||
|
|
text-transform: uppercase;
|
||
|
|
}
|
||
|
|
.header .badge {
|
||
|
|
background: var(--vein-bronze);
|
||
|
|
color: var(--prairie-black);
|
||
|
|
padding: 0.5vmin 1vmin;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
letter-spacing: 0.1em;
|
||
|
|
}
|
||
|
|
.grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 3vmin;
|
||
|
|
padding: 3vmin;
|
||
|
|
max-width: 120vw;
|
||
|
|
}
|
||
|
|
@media (max-width: 900px) {
|
||
|
|
.grid { grid-template-columns: 1fr; }
|
||
|
|
}
|
||
|
|
.panel {
|
||
|
|
background: linear-gradient(180deg, var(--horizon-grey) 0%, transparent 100%);
|
||
|
|
border: 1px solid var(--vein-bronze);
|
||
|
|
padding: 2vmin;
|
||
|
|
}
|
||
|
|
.panel h2 {
|
||
|
|
color: var(--seam-gold);
|
||
|
|
font-size: clamp(0.75rem, 1.5vmin, 1.25rem);
|
||
|
|
letter-spacing: 0.1em;
|
||
|
|
margin-bottom: 1.5vmin;
|
||
|
|
text-transform: uppercase;
|
||
|
|
border-bottom: 1px solid var(--vein-bronze);
|
||
|
|
padding-bottom: 0.5vmin;
|
||
|
|
}
|
||
|
|
.input-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr auto;
|
||
|
|
gap: 1vmin;
|
||
|
|
margin-bottom: 1vmin;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
label {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
letter-spacing: 0.05em;
|
||
|
|
color: var(--vein-bronze);
|
||
|
|
}
|
||
|
|
input[type="number"] {
|
||
|
|
background: var(--prairie-black);
|
||
|
|
border: 1px solid var(--caliper-silver);
|
||
|
|
color: var(--seam-gold);
|
||
|
|
padding: 0.5vmin;
|
||
|
|
font-family: inherit;
|
||
|
|
font-size: 0.85rem;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
input[type="number"]:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--seam-gold);
|
||
|
|
box-shadow: 0 0 1vmin rgba(255, 215, 0, 0.2);
|
||
|
|
}
|
||
|
|
.calc-btn {
|
||
|
|
background: var(--seam-gold);
|
||
|
|
color: var(--prairie-black);
|
||
|
|
border: none;
|
||
|
|
padding: 1vmin 2vmin;
|
||
|
|
font-family: inherit;
|
||
|
|
font-weight: bold;
|
||
|
|
letter-spacing: 0.1em;
|
||
|
|
cursor: pointer;
|
||
|
|
margin-top: 1vmin;
|
||
|
|
width: 100%;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
.calc-btn:hover {
|
||
|
|
background: var(--vein-bronze);
|
||
|
|
transform: translateY(-2px);
|
||
|
|
}
|
||
|
|
.result-panel {
|
||
|
|
background: radial-gradient(circle at center, var(--horizon-grey) 0%, var(--prairie-black) 100%);
|
||
|
|
border: 2px solid var(--seam-gold);
|
||
|
|
min-height: 40vmin;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
.verdict {
|
||
|
|
font-size: clamp(2rem, 6vmin, 8rem);
|
||
|
|
font-weight: bold;
|
||
|
|
letter-spacing: 0.2em;
|
||
|
|
text-transform: uppercase;
|
||
|
|
animation: pulse 2s ease-in-out infinite;
|
||
|
|
}
|
||
|
|
.verdict.PASS { color: var(--pass-green); }
|
||
|
|
.verdict.HOLD { color: var(--hold-orange); }
|
||
|
|
.verdict.FAIL { color: var(--alert-red); }
|
||
|
|
@keyframes pulse {
|
||
|
|
0%, 100% { opacity: 1; }
|
||
|
|
50% { opacity: 0.7; }
|
||
|
|
}
|
||
|
|
.metrics {
|
||
|
|
margin-top: 2vmin;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--caliper-silver);
|
||
|
|
line-height: 1.8;
|
||
|
|
}
|
||
|
|
.metrics div {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 2vmin;
|
||
|
|
border-bottom: 1px dashed var(--vein-bronze);
|
||
|
|
padding: 0.5vmin 0;
|
||
|
|
}
|
||
|
|
.metrics span:first-child { color: var(--vein-bronze); }
|
||
|
|
.context {
|
||
|
|
margin-top: 3vmin;
|
||
|
|
font-size: 0.65rem;
|
||
|
|
color: var(--caliper-silver);
|
||
|
|
line-height: 1.6;
|
||
|
|
border-top: 1px solid var(--vein-bronze);
|
||
|
|
padding-top: 1vmin;
|
||
|
|
}
|
||
|
|
.context a { color: var(--seam-gold); }
|
||
|
|
.image-slot {
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
z-index: -1;
|
||
|
|
opacity: 0.15;
|
||
|
|
}
|
||
|
|
.image-slot img {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
object-fit: cover;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<script defer src="https://analytics.4ort.xyz/script.js" data-website-id="d3ed927c-888a-4a6c-ae5f-0b1c613ddf5b"></script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="image-slot">
|
||
|
|
<img src="https://images.pexels.com/photos/14537425/pexels-photo-14537425.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<header class="header">
|
||
|
|
<h1>Structural Integrity Calculator</h1>
|
||
|
|
<span class="badge">WEISER MUNICIPAL SPECS</span>
|
||
|
|
</header>
|
||
|
|
|
||
|
|
<main class="grid">
|
||
|
|
<section class="panel">
|
||
|
|
<h2>Input Parameters</h2>
|
||
|
|
|
||
|
|
<div class="input-row">
|
||
|
|
<label>Wall Thickness (mm)</label>
|
||
|
|
<input type="number" id="thickness" placeholder="e.g., 200" min="1">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="input-row">
|
||
|
|
<label>Wall Height (m)</label>
|
||
|
|
<input type="number" id="height" placeholder="e.g., 4.5" min="1" step="0.1">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="input-row">
|
||
|
|
<label>Wall Length (m)</label>
|
||
|
|
<input type="number" id="length" placeholder="e.g., 12.0" min="1" step="0.1">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="input-row">
|
||
|
|
<label>Concrete Strength (psi)</label>
|
||
|
|
<input type="number" id="psi" placeholder="e.g., 4000" min="1000">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="input-row">
|
||
|
|
<label>Live Load Factor (kN/m²)</label>
|
||
|
|
<input type="number" id="liveLoad" placeholder="e.g., 2.4" min="0" step="0.1">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="input-row">
|
||
|
|
<label>Safety Margin (%)</label>
|
||
|
|
<input type="number" id="margin" placeholder="e.g., 25" min="0" max="100">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<button class="calc-btn" onclick="calculate()">RUN VERDICT</button>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<section class="panel result-panel">
|
||
|
|
<div id="verdict" class="verdict">AWAITING INPUT</div>
|
||
|
|
|
||
|
|
<div class="metrics" id="metrics">
|
||
|
|
<div><span>Compressive Capacity:</span><span id="capVal">—</span></div>
|
||
|
|
<div><span>Applied Load:</span><span id="loadVal">—</span></div>
|
||
|
|
<div><span>Margin Remaining:</span><span id="marginVal">—</span></div>
|
||
|
|
<div><span>Stress Ratio:</span><span id="ratioVal">—</span></div>
|
||
|
|
<div><span>Code Compliance:</span><span id="codeVal">—</span></div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="context">
|
||
|
|
Grounded in Q2313934 (load-bearing wall) • Q2225285 (concrete compression strength)<br>
|
||
|
|
Municipal Building Code §4.2: All colonized structures require 25% minimum safety margin<br>
|
||
|
|
<a href="/" style="color: var(--seam-gold)">← Return to Colony Ledger</a>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</main>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
function calculate() {
|
||
|
|
const thickness_mm = parseFloat(document.getElementById('thickness').value);
|
||
|
|
const height_m = parseFloat(document.getElementById('height').value);
|
||
|
|
const length_m = parseFloat(document.getElementById('length').value);
|
||
|
|
const psi = parseFloat(document.getElementById('psi').value);
|
||
|
|
const liveLoad = parseFloat(document.getElementById('liveLoad').value);
|
||
|
|
const safetyMargin_pct = parseFloat(document.getElementById('margin').value);
|
||
|
|
|
||
|
|
if ([thickness_mm, height_m, length_m, psi].some(x => isNaN(x))) {
|
||
|
|
alert("Complete all core parameters.");
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Convert psi to MPa (1 psi ≈ 0.00689476 MPa)
|
||
|
|
const f_c_prime_MPa = psi * 0.00689476;
|
||
|
|
|
||
|
|
// Wall volume in m³
|
||
|
|
const thickness_m = thickness_mm / 1000;
|
||
|
|
const volume = thickness_m * height_m * length_m;
|
||
|
|
|
||
|
|
// Concrete density: 2400 kg/m³
|
||
|
|
const mass_kg = volume * 2400;
|
||
|
|
const selfWeight_kN = mass_kg * 9.80665 / 1000;
|
||
|
|
|
||
|
|
// Cross-sectional area in m²
|
||
|
|
const area = thickness_m * length_m;
|
||
|
|
|
||
|
|
// Compressive capacity (kN)
|
||
|
|
// Using simplified ACI 318 approach: φ * 0.85 * f'_c * A_g
|
||
|
|
const phi = 0.65; // strength reduction factor for tied columns
|
||
|
|
const capacity_kN = phi * 0.85 * f_c_prime_MPa * 1000 * area; // MPa → kPa → kN
|
||
|
|
|
||
|
|
// Applied load (self-weight + live load)
|
||
|
|
const liveLoadForce_kN = liveLoad * height_m * length_m;
|
||
|
|
const totalLoad_kN = selfWeight_kN + liveLoadForce_kN;
|
||
|
|
|
||
|
|
// Required capacity with safety margin
|
||
|
|
const requiredCapacity_kN = totalLoad_kN * (1 + safetyMargin_pct / 100);
|
||
|
|
|
||
|
|
// Stress ratio
|
||
|
|
const ratio = totalLoad_kN / capacity_kN;
|
||
|
|
const marginRemaining = ((capacity_kN - totalLoad_kN) / capacity_kN) * 100;
|
||
|
|
|
||
|
|
// Verdict
|
||
|
|
let verdict, className;
|
||
|
|
if (ratio <= 0.75 && marginRemaining >= safetyMargin_pct) {
|
||
|
|
verdict = "PASS";
|
||
|
|
className = "PASS";
|
||
|
|
} else if (ratio <= 1.0 && marginRemaining >= 0) {
|
||
|
|
verdict = "HOLD";
|
||
|
|
className = "HOLD";
|
||
|
|
} else {
|
||
|
|
verdict = "FAIL";
|
||
|
|
className = "FAIL";
|
||
|
|
}
|
||
|
|
|
||
|
|
// Update UI
|
||
|
|
document.getElementById('verdict').textContent = verdict;
|
||
|
|
document.getElementById('verdict').className = 'verdict ' + className;
|
||
|
|
|
||
|
|
document.getElementById('capVal').textContent = capacity_kN.toFixed(2) + ' kN';
|
||
|
|
document.getElementById('loadVal').textContent = totalLoad_kN.toFixed(2) + ' kN';
|
||
|
|
document.getElementById('marginVal').textContent = marginRemaining.toFixed(1) + '%';
|
||
|
|
document.getElementById('ratioVal').textContent = ratio.toFixed(4);
|
||
|
|
document.getElementById('codeVal').textContent = ratio <= 1.0 ? 'COMPLIANT' : 'VIOLATION';
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|