feat(rebar): add downward 90° hooks (135 mm) to P6 crossties in 3D rebar model
This commit is contained in:
1 parent
4aa8dbb3cb
commit
a2317caf6c
15 files changed
+740
-133
No files matched your search
@@ -1,6 +1,7 @@
|
||||
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 } from './helpers';
|
||||
|
||||
describe('받침블럭 철근 (spec §6.3, plan C2)', () => {
|
||||
@@ -16,13 +17,14 @@ describe('받침블럭 철근 (spec §6.3, plan C2)', () => {
|
||||
for (const bar of blockBars(150)) expect(bar.length).toBe(2500);
|
||||
});
|
||||
|
||||
it('coping embedment: S2 600 (front) / 550 (back), S1 619.1 (front) / 569.1 (back), as in the spec', () => {
|
||||
const front = blockBars(150);
|
||||
const back = blockBars(200);
|
||||
expect(front.find((b) => b.name === 'S2')!.embedment).toBeCloseTo(600, 6);
|
||||
expect(back.find((b) => b.name === 'S2')!.embedment).toBeCloseTo(550, 6);
|
||||
expect(front.find((b) => b.name === 'S1')!.embedment).toBeCloseTo(619.1, 6);
|
||||
expect(back.find((b) => b.name === 'S1')!.embedment).toBeCloseTo(569.1, 6);
|
||||
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());
|
||||
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)', () => {
|
||||
@@ -47,3 +49,12 @@ describe('받침블럭 도면 재현 (spec §6.3)', () => {
|
||||
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()));
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user