🚀 Auto-deploy: BrainWind atualizado em 16/07/2026 12:01:01

This commit is contained in:
2026-07-16 12:01:01 +00:00
parent 0b9673db5e
commit 63546ea11e
4 changed files with 4080 additions and 3 deletions
File diff suppressed because it is too large Load Diff
Binary file not shown.
+3 -3
View File
@@ -12,9 +12,9 @@
import { linearInterp1D } from '../log-interp';
/** Tabela 26 — Ca para torre faces planas, quadrada e triangular equilátera */
const PHI_26 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6] as const;
const PHI_26 = [0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6] as const;
const CA_26_FLAT: Readonly<Record<number, number>> = {
0.1: 2.8, 0.2: 2.4, 0.3: 2.0, 0.4: 1.8, 0.5: 1.7, 0.6: 1.6,
0.05: 3.6, 0.1: 3.0, 0.2: 2.4, 0.3: 2.0, 0.4: 1.8, 0.5: 1.7, 0.6: 1.6,
};
export type TowerSection = 'square' | 'triangular';
@@ -65,7 +65,7 @@ export function calculateTower(input: TowerInput): TowerResult {
let ca = 0;
if (barType === 'flat') {
const phiClamped = Math.max(0.1, Math.min(0.6, phi));
const phiClamped = Math.max(0.05, Math.min(0.6, phi));
const cax = PHI_26.map((p) => CA_26_FLAT[p]);
ca = Number(linearInterp1D(PHI_26, cax, phiClamped).toFixed(3));
} else {