받침방위각_솔플레이트검토.md §3과 시안(Version 110–113)을 따른다 (사용자 결정 2026-11-06: 시안 적용). 11-03 C안(받침높이 H 고정, h3 = H − T, S 입력)을 대체한다. - S: 교량 전체(A1, P1 … Pn, A2) 거더 짝 받침의 z 차 / 수평거리. 없으면 교각 종단경사 입력 → 다른 열 같은 순번 값(가정, WS03) → 0 %(WS03). 받침별 직접 수정(수정됨) - 평면 L = A + 100, W = B + 100 (받침별 A × B, 기본 700 × 640 가정), h3 181 - T = 열마다 max(22, ⌈22 + L·|S|/2⌉), 열 T 직접 수정 가능(T2 < T_min → WS02). T1은 오르막 쪽(3D 쐐기의 두꺼운 끝도 그쪽), T2 반대쪽 - 거더 하면 고정: 블럭 상면 = z − (T − T_ref), T_ref 30 - 짝 받침은 불러오기·프로젝트 열기 때 교량 전체로 계산해 교각 생성에 넘김 - ② 카드: h3·T_ref·T_min·여유·열 T·종단경사 입력, 표에 짝 받침·S 근거·받침별 S/A/B 수정·검산 W08·검사 - P1 검증(A1과 함께): S −1.908 … −1.902 %, L 800 · W 740 · T 30 · T1 38 · T2 22, 블럭 높이 변화 없음 - 블럭·솔플레이트 테스트는 A1–P1 짝 문맥으로 실행 (짝이 없으면 S 0 · T 22 · 블럭 +8 mm) 교대(QA-15 C안)와 Pier 시트 종단경사 열 읽기는 아직 남음. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
2.9 KiB
TypeScript
64 lines
2.9 KiB
TypeScript
import { describe, expect, it } from 'vitest';
|
||
import { buildPier } from '../src/core/geometry';
|
||
import { barsAcross, bearingBlockRebar, blockBars, totals } from '../src/core/rebar/bearing-block';
|
||
import { rebarSummary } from '../src/core/rebar/summary';
|
||
import { loadP1, p1Pairs } from './helpers';
|
||
|
||
// Bridge context (A1 ↔ P1 girder pairs) as in the app, so the solplate slope is computed (2026-11-06).
|
||
const P1CTX = { pairs: p1Pairs() };
|
||
|
||
describe('받침블럭 철근 (spec §6.3, plan C2)', () => {
|
||
it('a 1200 block takes 8 bars at 125 mm: 7 gaps = 875, ends 162.5 each', () => {
|
||
const a = barsAcross(1200);
|
||
expect(a.count).toBe(8);
|
||
expect(a.spacing).toBe(125);
|
||
expect((a.count - 1) * a.spacing).toBe(875);
|
||
expect(a.firstEnd).toBeCloseTo(162.5, 6);
|
||
});
|
||
|
||
it('each bar is 1100 + 700 × 2 = 2500 mm long', () => {
|
||
for (const bar of blockBars(150)) expect(bar.length).toBe(2500);
|
||
});
|
||
|
||
it('coping embedment from the model block height (block top − coping top: front 100, back 150): S2 650 / 600, S1 669.1 / 619.1', () => {
|
||
const m = buildPier(loadP1(), P1CTX);
|
||
const rebar = bearingBlockRebar(m);
|
||
const emb = (row: '전열' | '후열', name: 'S1' | 'S2') => rebar.find((b) => b.row === row)!.bars.find((r) => r.name === name)!.embedment;
|
||
expect(emb('전열', 'S2')).toBeCloseTo(650, 6);
|
||
expect(emb('후열', 'S2')).toBeCloseTo(600, 6);
|
||
expect(emb('전열', 'S1')).toBeCloseTo(669.1, 6);
|
||
expect(emb('후열', 'S1')).toBeCloseTo(619.1, 6);
|
||
});
|
||
|
||
it('P1: 10 blocks, 80 bars each of S1 and S2 (spec table: 8 本 per block)', () => {
|
||
const m = buildPier(loadP1(), P1CTX);
|
||
const rebar = bearingBlockRebar(m);
|
||
expect(rebar).toHaveLength(10);
|
||
expect(totals(rebar)).toEqual({ S1: 80, S2: 80 });
|
||
});
|
||
});
|
||
|
||
describe('받침블럭 도면 재현 (spec §6.3)', () => {
|
||
it('integrated block 2500 × 1200: 18@125 = 2250 along (ends 50 + 75), 7@125 = 875 across (ends 50 + 113 ≈ 162.5)', () => {
|
||
const along = barsAcross(2500);
|
||
expect(along.spacing).toBe(125);
|
||
expect(along.count - 1).toBe(18);
|
||
expect((along.count - 1) * along.spacing).toBe(2250);
|
||
expect(along.firstEnd).toBeCloseTo(125, 6);
|
||
|
||
const across = barsAcross(1200);
|
||
expect(across.count - 1).toBe(7);
|
||
expect((across.count - 1) * across.spacing).toBe(875);
|
||
expect(across.firstEnd).toBeCloseTo(162.5, 6); // 50 + 75 + 37.5, printed as 50 + 113 in the drawing
|
||
});
|
||
});
|
||
|
||
describe('받침블럭 묻힘 검토 (spec §9 RB-S04)', () => {
|
||
it('P1: embedments 619–669 mm are shorter than the H19 development length 882, so RB-S04 is raised and the rows show the range', () => {
|
||
const { rows, warnings } = rebarSummary(buildPier(loadP1(), P1CTX));
|
||
expect(warnings.some((w) => w.code === 'RB-S04')).toBe(true);
|
||
expect(rows.find((r) => r.name === 'S1')!.note).toContain('묻힘 619–669');
|
||
expect(rows.find((r) => r.name === 'S2')!.note).toContain('묻힘 600–650');
|
||
});
|
||
});
|