@theerapat-s28/ts-structural-eng-tools 1.5.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -3
- package/dist/core/constants/frame.constant.d.ts +14 -0
- package/dist/core/constants/frame.constant.js +18 -0
- package/dist/core/constants/frame.constant.js.map +1 -0
- package/dist/core/errors/frame-analysis.error.d.ts +33 -0
- package/dist/core/errors/frame-analysis.error.js +74 -0
- package/dist/core/errors/frame-analysis.error.js.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +12 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/types/section-properties.type.d.ts +13 -0
- package/dist/core/types/section-properties.type.js +3 -0
- package/dist/core/types/section-properties.type.js.map +1 -0
- package/dist/esm/core/constants/frame.constant.js +15 -0
- package/dist/esm/core/constants/frame.constant.js.map +1 -0
- package/dist/esm/core/constants/rc.constant.js +63 -0
- package/dist/esm/core/constants/rc.constant.js.map +1 -0
- package/dist/esm/core/errors/frame-analysis.error.js +70 -0
- package/dist/esm/core/errors/frame-analysis.error.js.map +1 -0
- package/dist/esm/core/errors/rc-design.error.js +64 -0
- package/dist/esm/core/errors/rc-design.error.js.map +1 -0
- package/dist/esm/core/index.js +9 -0
- package/dist/esm/core/index.js.map +1 -0
- package/dist/esm/core/types/output-message.type.js +2 -0
- package/dist/esm/core/types/output-message.type.js.map +1 -0
- package/dist/esm/core/types/plate-jacketing.type.js +18 -0
- package/dist/esm/core/types/plate-jacketing.type.js.map +1 -0
- package/dist/esm/core/types/rc-beam.type.js +11 -0
- package/dist/esm/core/types/rc-beam.type.js.map +1 -0
- package/dist/esm/core/types/section-properties.type.js +2 -0
- package/dist/esm/core/types/section-properties.type.js.map +1 -0
- package/dist/esm/core/types/unit.type.js +2 -0
- package/dist/esm/core/types/unit.type.js.map +1 -0
- package/dist/esm/fea/frame/elements/beam-3d-stiffness.js +84 -0
- package/dist/esm/fea/frame/elements/beam-3d-stiffness.js.map +1 -0
- package/dist/esm/fea/frame/elements/fixed-end-forces.js +75 -0
- package/dist/esm/fea/frame/elements/fixed-end-forces.js.map +1 -0
- package/dist/esm/fea/frame/elements/static-condensation.js +55 -0
- package/dist/esm/fea/frame/elements/static-condensation.js.map +1 -0
- package/dist/esm/fea/frame/index.js +6 -0
- package/dist/esm/fea/frame/index.js.map +1 -0
- package/dist/esm/fea/frame/post/demand-envelope.js +97 -0
- package/dist/esm/fea/frame/post/demand-envelope.js.map +1 -0
- package/dist/esm/fea/frame/post/envelope.js +59 -0
- package/dist/esm/fea/frame/post/envelope.js.map +1 -0
- package/dist/esm/fea/frame/post/member-diagram.js +332 -0
- package/dist/esm/fea/frame/post/member-diagram.js.map +1 -0
- package/dist/esm/fea/frame/post/present-state.js +106 -0
- package/dist/esm/fea/frame/post/present-state.js.map +1 -0
- package/dist/esm/fea/frame/solver/analyze-frame.js +123 -0
- package/dist/esm/fea/frame/solver/analyze-frame.js.map +1 -0
- package/dist/esm/fea/frame/solver/boundary-conditions.js +33 -0
- package/dist/esm/fea/frame/solver/boundary-conditions.js.map +1 -0
- package/dist/esm/fea/frame/solver/combinations.js +69 -0
- package/dist/esm/fea/frame/solver/combinations.js.map +1 -0
- package/dist/esm/fea/frame/solver/frame-system.js +122 -0
- package/dist/esm/fea/frame/solver/frame-system.js.map +1 -0
- package/dist/esm/fea/frame/solver/global-assembly.js +27 -0
- package/dist/esm/fea/frame/solver/global-assembly.js.map +1 -0
- package/dist/esm/fea/frame/solver/load-case-solver.js +119 -0
- package/dist/esm/fea/frame/solver/load-case-solver.js.map +1 -0
- package/dist/esm/fea/frame/transformation/coordinate-transform.js +71 -0
- package/dist/esm/fea/frame/transformation/coordinate-transform.js.map +1 -0
- package/dist/esm/fea/frame/types/model.type.js +2 -0
- package/dist/esm/fea/frame/types/model.type.js.map +1 -0
- package/dist/esm/fea/frame/types/results.type.js +2 -0
- package/dist/esm/fea/frame/types/results.type.js.map +1 -0
- package/dist/esm/fea/frame/validation/validate-model.js +292 -0
- package/dist/esm/fea/frame/validation/validate-model.js.map +1 -0
- package/dist/esm/fea/index.js +3 -0
- package/dist/esm/fea/index.js.map +1 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/rc/general.js +32 -0
- package/dist/esm/rc/general.js.map +1 -0
- package/dist/esm/rc/index.js +5 -0
- package/dist/esm/rc/index.js.map +1 -0
- package/dist/esm/rc/rc-bar-layout.js +89 -0
- package/dist/esm/rc/rc-bar-layout.js.map +1 -0
- package/dist/esm/rc/rc-beam-design.js +320 -0
- package/dist/esm/rc/rc-beam-design.js.map +1 -0
- package/dist/esm/rc/rc-section-properties.js +55 -0
- package/dist/esm/rc/rc-section-properties.js.map +1 -0
- package/dist/esm/strengthening/index.js +4 -0
- package/dist/esm/strengthening/index.js.map +1 -0
- package/dist/esm/strengthening/rc-beam-plate-interface-bolts.js +338 -0
- package/dist/esm/strengthening/rc-beam-plate-interface-bolts.js.map +1 -0
- package/dist/esm/strengthening/rc-beam-side-plate-shear.js +381 -0
- package/dist/esm/strengthening/rc-beam-side-plate-shear.js.map +1 -0
- package/dist/esm/strengthening/rc-beam-steel-plate-jacketing.js +90 -0
- package/dist/esm/strengthening/rc-beam-steel-plate-jacketing.js.map +1 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/math.js +30 -0
- package/dist/esm/utils/math.js.map +1 -0
- package/dist/esm/utils/matrix.js +145 -0
- package/dist/esm/utils/matrix.js.map +1 -0
- package/dist/esm/utils/merge-warning.js +11 -0
- package/dist/esm/utils/merge-warning.js.map +1 -0
- package/dist/esm/utils/skyline.js +151 -0
- package/dist/esm/utils/skyline.js.map +1 -0
- package/dist/fea/frame/elements/beam-3d-stiffness.d.ts +29 -0
- package/dist/fea/frame/elements/beam-3d-stiffness.js +90 -0
- package/dist/fea/frame/elements/beam-3d-stiffness.js.map +1 -0
- package/dist/fea/frame/elements/fixed-end-forces.d.ts +22 -0
- package/dist/fea/frame/elements/fixed-end-forces.js +79 -0
- package/dist/fea/frame/elements/fixed-end-forces.js.map +1 -0
- package/dist/fea/frame/elements/static-condensation.d.ts +19 -0
- package/dist/fea/frame/elements/static-condensation.js +59 -0
- package/dist/fea/frame/elements/static-condensation.js.map +1 -0
- package/dist/fea/frame/index.d.ts +9 -0
- package/dist/fea/frame/index.js +16 -0
- package/dist/fea/frame/index.js.map +1 -0
- package/dist/fea/frame/post/demand-envelope.d.ts +36 -0
- package/dist/fea/frame/post/demand-envelope.js +101 -0
- package/dist/fea/frame/post/demand-envelope.js.map +1 -0
- package/dist/fea/frame/post/envelope.d.ts +8 -0
- package/dist/fea/frame/post/envelope.js +63 -0
- package/dist/fea/frame/post/envelope.js.map +1 -0
- package/dist/fea/frame/post/member-diagram.d.ts +26 -0
- package/dist/fea/frame/post/member-diagram.js +336 -0
- package/dist/fea/frame/post/member-diagram.js.map +1 -0
- package/dist/fea/frame/post/present-state.d.ts +19 -0
- package/dist/fea/frame/post/present-state.js +111 -0
- package/dist/fea/frame/post/present-state.js.map +1 -0
- package/dist/fea/frame/solver/analyze-frame.d.ts +67 -0
- package/dist/fea/frame/solver/analyze-frame.js +128 -0
- package/dist/fea/frame/solver/analyze-frame.js.map +1 -0
- package/dist/fea/frame/solver/boundary-conditions.d.ts +14 -0
- package/dist/fea/frame/solver/boundary-conditions.js +37 -0
- package/dist/fea/frame/solver/boundary-conditions.js.map +1 -0
- package/dist/fea/frame/solver/combinations.d.ts +11 -0
- package/dist/fea/frame/solver/combinations.js +73 -0
- package/dist/fea/frame/solver/combinations.js.map +1 -0
- package/dist/fea/frame/solver/frame-system.d.ts +42 -0
- package/dist/fea/frame/solver/frame-system.js +126 -0
- package/dist/fea/frame/solver/frame-system.js.map +1 -0
- package/dist/fea/frame/solver/global-assembly.d.ts +17 -0
- package/dist/fea/frame/solver/global-assembly.js +33 -0
- package/dist/fea/frame/solver/global-assembly.js.map +1 -0
- package/dist/fea/frame/solver/load-case-solver.d.ts +34 -0
- package/dist/fea/frame/solver/load-case-solver.js +124 -0
- package/dist/fea/frame/solver/load-case-solver.js.map +1 -0
- package/dist/fea/frame/transformation/coordinate-transform.d.ts +21 -0
- package/dist/fea/frame/transformation/coordinate-transform.js +76 -0
- package/dist/fea/frame/transformation/coordinate-transform.js.map +1 -0
- package/dist/fea/frame/types/model.type.d.ts +112 -0
- package/dist/fea/frame/types/model.type.js +3 -0
- package/dist/fea/frame/types/model.type.js.map +1 -0
- package/dist/fea/frame/types/results.type.d.ts +134 -0
- package/dist/fea/frame/types/results.type.js +3 -0
- package/dist/fea/frame/types/results.type.js.map +1 -0
- package/dist/fea/frame/validation/validate-model.d.ts +18 -0
- package/dist/fea/frame/validation/validate-model.js +298 -0
- package/dist/fea/frame/validation/validate-model.js.map +1 -0
- package/dist/fea/index.d.ts +1 -0
- package/dist/fea/index.js +19 -0
- package/dist/fea/index.js.map +1 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +37 -1
- package/dist/index.js.map +1 -1
- package/dist/rc/index.d.ts +2 -0
- package/dist/rc/index.js +3 -1
- package/dist/rc/index.js.map +1 -1
- package/dist/rc/rc-section-properties.d.ts +35 -0
- package/dist/rc/rc-section-properties.js +59 -0
- package/dist/rc/rc-section-properties.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +19 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/matrix.d.ts +45 -0
- package/dist/utils/matrix.js +157 -0
- package/dist/utils/matrix.js.map +1 -0
- package/dist/utils/skyline.d.ts +49 -0
- package/dist/utils/skyline.js +161 -0
- package/dist/utils/skyline.js.map +1 -0
- package/package.json +20 -2
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ Full API reference, with parameter tables, worked examples, warnings and error c
|
|
|
11
11
|
- **[API reference](https://theerapat-s28.github.io/ts-structural-eng/)** — landing page
|
|
12
12
|
- [RC Beam Design](https://theerapat-s28.github.io/ts-structural-eng/rc/) — `@theerapat-s28/ts-structural-eng-tools/rc`
|
|
13
13
|
- [Strengthening](https://theerapat-s28.github.io/ts-structural-eng/strengthening/) — `@theerapat-s28/ts-structural-eng-tools/strengthening`
|
|
14
|
+
- [FEA — Frame Analysis](https://theerapat-s28.github.io/ts-structural-eng/fea/) — `@theerapat-s28/ts-structural-eng-tools/fea`
|
|
14
15
|
|
|
15
16
|
The pages are served from [`html-docs/`](https://github.com/theerapat-s28/ts-structural-eng/tree/main/html-docs) via GitHub Pages.
|
|
16
17
|
|
|
@@ -61,12 +62,23 @@ src/
|
|
|
61
62
|
├── rc/ # Reinforced concrete design
|
|
62
63
|
│ ├── index.ts # Module exports
|
|
63
64
|
│ ├── general.ts # Concrete properties (beta1, Ec, unit conversion)
|
|
64
|
-
│
|
|
65
|
+
│ ├── rc-beam-design.ts # Beam moment capacity (singly/doubly reinforced) and shear capacity (Vc, Vs, stirrup requirement)
|
|
66
|
+
│ └── rc-section-properties.ts # Section properties (E, G, A, I22, I33, J) for frame analysis
|
|
65
67
|
├── strengthening/ # Strengthening methods
|
|
66
68
|
│ ├── index.ts
|
|
67
69
|
│ ├── rc-beam-steel-plate-jacketing.ts # Moment capacity before/after plate jacketing
|
|
68
70
|
│ ├── rc-beam-plate-interface-bolts.ts # Interface shear flow and required interface bolts
|
|
69
71
|
│ └── rc-beam-side-plate-shear.ts # Shear capacity before/after bolted side plates (two models)
|
|
72
|
+
├── fea/ # Finite-element analysis
|
|
73
|
+
│ ├── index.ts
|
|
74
|
+
│ └── frame/ # 3D frame analysis (direct stiffness method)
|
|
75
|
+
│ ├── index.ts
|
|
76
|
+
│ ├── elements/ # Reference beam stiffness matrix, fixed-end forces, end-release condensation
|
|
77
|
+
│ ├── transformation/ # ETABS-style local axes and the 12×12 transformation
|
|
78
|
+
│ ├── solver/ # System build + skyline factorisation, per-case solve, combinations, analyzeFrame
|
|
79
|
+
│ ├── validation/ # validateFrameModel: every input problem, with its location
|
|
80
|
+
│ ├── post/ # Result presentation, member force diagrams, envelopes, design demands
|
|
81
|
+
│ └── types/ # Model (incl. load cases, combinations) and result types
|
|
70
82
|
├── core/ # Shared infrastructure
|
|
71
83
|
│ ├── index.ts
|
|
72
84
|
│ ├── constants/ # RC design constants (ACI 318)
|
|
@@ -75,18 +87,22 @@ src/
|
|
|
75
87
|
└── utils/ # Helper utilities
|
|
76
88
|
├── index.ts
|
|
77
89
|
├── math.ts # Quadratic solver, rounding
|
|
90
|
+
├── matrix.ts # Dense matrix helpers, Cholesky (factor once, solve many) and general linear solvers
|
|
91
|
+
├── skyline.ts # Skyline (banded) Cholesky solver and reverse Cuthill–McKee ordering
|
|
78
92
|
└── merge-warning.ts # Warning array merging
|
|
79
93
|
examples/
|
|
80
94
|
└── basic-usage.ts # Example usage of the library
|
|
81
95
|
tests/
|
|
82
96
|
├── rc/ # Tests for RC module
|
|
83
97
|
├── strengthening/ # Tests for strengthening module
|
|
98
|
+
├── fea/frame/ # Tests for frame analysis
|
|
84
99
|
└── utils/ # Tests for utilities
|
|
85
100
|
html-docs/ # HTML API reference, deployed to GitHub Pages
|
|
86
101
|
├── DESIGN.md # Style guide for the doc pages
|
|
87
102
|
├── index.html # Landing page
|
|
88
103
|
├── rc/index.html
|
|
89
|
-
|
|
104
|
+
├── strengthening/index.html
|
|
105
|
+
└── fea/index.html
|
|
90
106
|
```
|
|
91
107
|
|
|
92
108
|
## TypeScript path aliases
|
|
@@ -99,7 +115,8 @@ This project uses `baseUrl` + `paths` for clean imports:
|
|
|
99
115
|
"@app-types/*": ["src/core/types/*"],
|
|
100
116
|
"@app-utils/*": ["src/utils/*"],
|
|
101
117
|
"@app-rc/*": ["src/rc/*"],
|
|
102
|
-
"@app-strg/*": ["src/strengthening/*"]
|
|
118
|
+
"@app-strg/*": ["src/strengthening/*"],
|
|
119
|
+
"@app-fea/*": ["src/fea/*"]
|
|
103
120
|
}
|
|
104
121
|
```
|
|
105
122
|
|
|
@@ -134,6 +151,18 @@ Plates bolted to the sides of the web strengthen the beam in shear instead. ACI
|
|
|
134
151
|
ACI 440.2R-17 11.4.2 (spacing, which defers to the ACI 318 limits) and 11.4.3 (`Vs + Vf ≤ 0.66·√f'c·bw·d`) are verified against the guide; the subsections carrying the 0.004 strain cap and `psi_f` are still cited at §11.4 only. See the citation-status note at the top of `src/strengthening/rc-beam-side-plate-shear.ts`.
|
|
135
152
|
- **`compareSidePlateShearCapacity(section, plates)`** — Runs both models and reports the lower `phiVn` as `governing`; the intended entry point for a conservative design capacity.
|
|
136
153
|
|
|
154
|
+
### FEA — Frame Analysis
|
|
155
|
+
|
|
156
|
+
Linear-elastic 3D frame analysis by the direct stiffness method, imported from `@theerapat-s28/ts-structural-eng-tools/fea`. Global axes X, Y, Z (Z up) and ETABS-style local axes 1, 2, 3; inputs in mm, MPa, kN and kN·m, results in kN, kN·m, mm and rad.
|
|
157
|
+
|
|
158
|
+
- **`analyzeFrame(model, options?)`** — Analyses every load case in `model.loadCases` (dead, superimposed dead, live, wind…, each with an optional `selfWeight` multiplier) and forms every combination in `model.combinations` by superposition. The loads are flat top-level lists, `model.nodalLoads` and `model.memberLoads` (uniform and point loads in local or global directions), each load tagged with its `loadCase`, so large models stay readable. A combination is a list of factored terms `{ case, factor }` or `{ combination, factor }`; factors are entered by the user, and nested combinations are expanded. Supports end releases and fixed or spring supports. The stiffness matrix is factorised once for all cases. Returns `cases` and `combinations` keyed by id — each with displacements, reactions, member end forces, member diagrams along each member (forces `N`, `V2`, `V3`, `T`, `M2`, `M3` and deflections `u1`–`u3` local / `ux`–`uz` global, ready for plotting) and an equilibrium check — and an `envelope` of max/min over the combinations with the governing combination. Combination diagrams are rebuilt exactly, not summed from case extremes. The stiffness is stored in skyline (banded) form with nodes in reverse Cuthill–McKee order, so a building of ~850 nodes runs in about 1.5 s. Model and result are plain JSON, so it runs in a Web Worker. Invalid models, load cases or combinations and mechanisms throw `FrameAnalysisError` (codes 301–314) with `details` locating the problem.
|
|
159
|
+
- **`createFrameAnalysis(model, options?)`** — Same analysis, keeping the solution: returns `{ result, memberDiagram(resultId, memberId) }` so full member diagrams can be computed on demand. Combine with `options.diagrams: "extremes"`, which keeps diagram extremes (and the envelope) but drops the station arrays, for results about 4× smaller on large models.
|
|
160
|
+
- **`validateFrameModel(model)`** — Checks a model without analysing it and returns every problem, each with `details` (`nodeId`, `memberId`, `loadCaseId`, `combinationId`, `field`, `dof`) for highlighting in a UI. `analyzeFrame` runs it first and throws the first problem as a `FrameAnalysisError` whose `issues` lists all of them; non-finite numbers, negative springs and unknown option values are rejected (314).
|
|
161
|
+
- **`memberDemandEnvelope(result, memberId, options?)`** — Reduces a member's diagrams to `MuPositive`, `MuNegative`, `Vu` (optionally at distance `d` from the supports) and `Nu`, enveloped over all combinations (or the `combinations` / `cases` you select), with the `governing` combination of each, for the RC capacity functions.
|
|
162
|
+
- **`rectBeamToSectionProperties(section, options?)`** (from `rc`) — Converts a rectangular RC section into `SectionProperties` (`E`, `G`, `A`, `I22`, `I33`, `J`, `unitWeight`) with the ACI 318-19 6.6.3.1.1 inertia modifiers (0.35 beams, 0.70 columns) and a unit weight for self-weight (default 24 kN/m³, common practice rather than an ACI value).
|
|
163
|
+
- **`beam3dLocalStiffness(E, G, A, I22, I33, J, L)`** — The 12×12 local stiffness matrix exactly as in the reference "Complete Beam Stiffness Matrix". Its bending rotations R2 and R3 follow the opposite sign to the right-hand rule; **`beam3dLocalStiffnessRightHanded`** returns the right-handed form that `analyzeFrame` uses.
|
|
164
|
+
- **`memberAxes(start, end, angle?)`** — The ETABS-style local axes of a member as a direction-cosine matrix.
|
|
165
|
+
|
|
137
166
|
### General Utilities
|
|
138
167
|
|
|
139
168
|
- **`concreteBeta(fc_)`** — ACI 318 β₁ factor
|
|
@@ -147,6 +176,8 @@ pnpm run build
|
|
|
147
176
|
node dist/index.js
|
|
148
177
|
```
|
|
149
178
|
|
|
179
|
+
The build emits a CommonJS build in `dist/` (for `require`, with the `.d.ts` types) and an ES-module build in `dist/esm/` (for `import` and bundlers such as Vite); `package.json` `exports` routes each subpath to the right one, and `"sideEffects": false` lets bundlers drop unused code.
|
|
180
|
+
|
|
150
181
|
## Tests
|
|
151
182
|
|
|
152
183
|
```bash
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Poisson's ratio of concrete, for G = E / (2(1 + ν)). */
|
|
2
|
+
export declare const CONCRETE_POISSON_RATIO = 0.2;
|
|
3
|
+
/** ACI 318-19 Table 6.6.3.1.1(a): effective I of beams for elastic analysis at factored load. */
|
|
4
|
+
export declare const BEAM_INERTIA_MODIFIER = 0.35;
|
|
5
|
+
/** ACI 318-19 Table 6.6.3.1.1(a): effective I of columns for elastic analysis at factored load. */
|
|
6
|
+
export declare const COLUMN_INERTIA_MODIFIER = 0.7;
|
|
7
|
+
/** Unit weight of reinforced concrete in kN/m³ — common design practice, not an ACI 318-19 value. */
|
|
8
|
+
export declare const CONCRETE_UNIT_WEIGHT = 24;
|
|
9
|
+
/** A member is vertical when the horizontal projection of its unit axis is below this value. */
|
|
10
|
+
export declare const VERTICAL_MEMBER_TOLERANCE = 0.000001;
|
|
11
|
+
/** Smallest pivot, relative to its own diagonal term, accepted when factorising a stiffness matrix. */
|
|
12
|
+
export declare const SINGULARITY_TOLERANCE = 1e-9;
|
|
13
|
+
/** Relative global-equilibrium residual above which a warning is added. */
|
|
14
|
+
export declare const EQUILIBRIUM_TOLERANCE = 0.000001;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EQUILIBRIUM_TOLERANCE = exports.SINGULARITY_TOLERANCE = exports.VERTICAL_MEMBER_TOLERANCE = exports.CONCRETE_UNIT_WEIGHT = exports.COLUMN_INERTIA_MODIFIER = exports.BEAM_INERTIA_MODIFIER = exports.CONCRETE_POISSON_RATIO = void 0;
|
|
4
|
+
/** Poisson's ratio of concrete, for G = E / (2(1 + ν)). */
|
|
5
|
+
exports.CONCRETE_POISSON_RATIO = 0.2;
|
|
6
|
+
/** ACI 318-19 Table 6.6.3.1.1(a): effective I of beams for elastic analysis at factored load. */
|
|
7
|
+
exports.BEAM_INERTIA_MODIFIER = 0.35;
|
|
8
|
+
/** ACI 318-19 Table 6.6.3.1.1(a): effective I of columns for elastic analysis at factored load. */
|
|
9
|
+
exports.COLUMN_INERTIA_MODIFIER = 0.7;
|
|
10
|
+
/** Unit weight of reinforced concrete in kN/m³ — common design practice, not an ACI 318-19 value. */
|
|
11
|
+
exports.CONCRETE_UNIT_WEIGHT = 24;
|
|
12
|
+
/** A member is vertical when the horizontal projection of its unit axis is below this value. */
|
|
13
|
+
exports.VERTICAL_MEMBER_TOLERANCE = 1e-6;
|
|
14
|
+
/** Smallest pivot, relative to its own diagonal term, accepted when factorising a stiffness matrix. */
|
|
15
|
+
exports.SINGULARITY_TOLERANCE = 1e-9;
|
|
16
|
+
/** Relative global-equilibrium residual above which a warning is added. */
|
|
17
|
+
exports.EQUILIBRIUM_TOLERANCE = 1e-6;
|
|
18
|
+
//# sourceMappingURL=frame.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.constant.js","sourceRoot":"","sources":["../../../src/core/constants/frame.constant.ts"],"names":[],"mappings":";;;AAAA,2DAA2D;AAC9C,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAE1C,iGAAiG;AACpF,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAE1C,mGAAmG;AACtF,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,qGAAqG;AACxF,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAEvC,gGAAgG;AACnF,QAAA,yBAAyB,GAAG,IAAI,CAAC;AAE9C,uGAAuG;AAC1F,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAE1C,2EAA2E;AAC9D,QAAA,qBAAqB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a frame-analysis problem is, so a UI can highlight it. Only the fields that apply are set.
|
|
3
|
+
*/
|
|
4
|
+
export interface FrameErrorDetails {
|
|
5
|
+
nodeId?: string | number;
|
|
6
|
+
memberId?: string | number;
|
|
7
|
+
loadCaseId?: string;
|
|
8
|
+
combinationId?: string;
|
|
9
|
+
/** The offending input field, e.g. "x", "fz", "w", "direction", "uz". */
|
|
10
|
+
field?: string;
|
|
11
|
+
/** For an unstable structure: a degree of freedom involved in the mechanism. */
|
|
12
|
+
dof?: "ux" | "uy" | "uz" | "rx" | "ry" | "rz";
|
|
13
|
+
}
|
|
14
|
+
export declare class FrameAnalysisError extends Error {
|
|
15
|
+
code: number;
|
|
16
|
+
message: string;
|
|
17
|
+
details: FrameErrorDetails;
|
|
18
|
+
/** Every problem found when the model was validated; this error is the first of them. */
|
|
19
|
+
issues: FrameModelIssue[];
|
|
20
|
+
constructor(std?: FrameAnalysisErrorType, details?: FrameErrorDetails, issues?: FrameModelIssue[]);
|
|
21
|
+
}
|
|
22
|
+
/** One problem found in a frame model, as returned by `validateFrameModel`. */
|
|
23
|
+
export interface FrameModelIssue {
|
|
24
|
+
code: number;
|
|
25
|
+
message: string;
|
|
26
|
+
details: FrameErrorDetails;
|
|
27
|
+
}
|
|
28
|
+
type FrameAnalysisErrorType = {
|
|
29
|
+
code: number;
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const FrameErrors: Record<string, FrameAnalysisErrorType>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrameErrors = exports.FrameAnalysisError = void 0;
|
|
4
|
+
class FrameAnalysisError extends Error {
|
|
5
|
+
constructor(std = { code: 0, message: "Unknown error" }, details = {}, issues) {
|
|
6
|
+
super(std.message);
|
|
7
|
+
this.code = std.code;
|
|
8
|
+
this.message = std.message;
|
|
9
|
+
this.details = details;
|
|
10
|
+
this.issues = issues ?? [{ code: std.code, message: std.message, details }];
|
|
11
|
+
Object.setPrototypeOf(this, FrameAnalysisError.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.FrameAnalysisError = FrameAnalysisError;
|
|
15
|
+
exports.FrameErrors = {
|
|
16
|
+
// 3XX : Frame analysis errors
|
|
17
|
+
ZERO_LENGTH_MEMBER: {
|
|
18
|
+
code: 301,
|
|
19
|
+
message: "A member's start and end nodes coincide; the member has zero length.",
|
|
20
|
+
},
|
|
21
|
+
UNKNOWN_NODE_REFERENCE: {
|
|
22
|
+
code: 302,
|
|
23
|
+
message: "A member, restraint or load refers to a node or member id that is not in the model.",
|
|
24
|
+
},
|
|
25
|
+
DUPLICATE_ID: {
|
|
26
|
+
code: 303,
|
|
27
|
+
message: "Node ids, member ids and restrained node ids must each be unique, and load case and combination ids must be unique across both lists.",
|
|
28
|
+
},
|
|
29
|
+
STRUCTURE_UNSTABLE: {
|
|
30
|
+
code: 304,
|
|
31
|
+
message: "The restrained structure is unstable (singular stiffness matrix); add supports or members to prevent a mechanism.",
|
|
32
|
+
},
|
|
33
|
+
INVALID_SECTION_PROPERTIES: {
|
|
34
|
+
code: 305,
|
|
35
|
+
message: "Member section properties E, G, A, I22, I33 and J must all be positive, and unitWeight, when given, must not be negative.",
|
|
36
|
+
},
|
|
37
|
+
NO_RESTRAINTS: {
|
|
38
|
+
code: 306,
|
|
39
|
+
message: "The model has no restrained degrees of freedom.",
|
|
40
|
+
},
|
|
41
|
+
INVALID_RELEASE: {
|
|
42
|
+
code: 307,
|
|
43
|
+
message: "The end releases on a member make it a mechanism (rigid-body motion within the member).",
|
|
44
|
+
},
|
|
45
|
+
LOAD_OUTSIDE_MEMBER: {
|
|
46
|
+
code: 308,
|
|
47
|
+
message: "A member load lies outside the member, or its start is not before its end.",
|
|
48
|
+
},
|
|
49
|
+
UNKNOWN_LOAD_CASE: {
|
|
50
|
+
code: 309,
|
|
51
|
+
message: "A load or a load combination term refers to a load case or combination that is not in the model, or a term names neither.",
|
|
52
|
+
},
|
|
53
|
+
CIRCULAR_COMBINATION: {
|
|
54
|
+
code: 310,
|
|
55
|
+
message: "Load combinations reference each other in a loop.",
|
|
56
|
+
},
|
|
57
|
+
INVALID_LOAD_FACTOR: {
|
|
58
|
+
code: 311,
|
|
59
|
+
message: "A combination factor or self-weight multiplier is not a finite number, or a load combination has no terms.",
|
|
60
|
+
},
|
|
61
|
+
NO_LOAD_CASES: {
|
|
62
|
+
code: 312,
|
|
63
|
+
message: "The model has no load cases; define at least one in loadCases.",
|
|
64
|
+
},
|
|
65
|
+
MISSING_UNIT_WEIGHT: {
|
|
66
|
+
code: 313,
|
|
67
|
+
message: "A load case requests self-weight but a member section has no unitWeight; set unitWeight (0 for a weightless member).",
|
|
68
|
+
},
|
|
69
|
+
INVALID_INPUT_VALUE: {
|
|
70
|
+
code: 314,
|
|
71
|
+
message: "An input value is invalid: a number that is not finite (NaN, Infinity or not a number), a negative spring stiffness, or a value outside its allowed options.",
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=frame-analysis.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-analysis.error.js","sourceRoot":"","sources":["../../../src/core/errors/frame-analysis.error.ts"],"names":[],"mappings":";;;AAcA,MAAa,kBAAmB,SAAQ,KAAK;IAO3C,YACE,MAA8B,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,EACnE,UAA6B,EAAE,EAC/B,MAA0B;QAE1B,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAC5E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;CACF;AAnBD,gDAmBC;AAcY,QAAA,WAAW,GAA2C;IACjE,8BAA8B;IAC9B,kBAAkB,EAAE;QAClB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,sEAAsE;KAChF;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,qFAAqF;KAC/F;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,GAAG;QACT,OAAO,EACL,uIAAuI;KAC1I;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,mHAAmH;KACtH;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,GAAG;QACT,OAAO,EACL,2HAA2H;KAC9H;IACD,aAAa,EAAE;QACb,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,iDAAiD;KAC3D;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;QACT,OAAO,EACL,yFAAyF;KAC5F;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,4EAA4E;KACtF;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,2HAA2H;KAC9H;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,mDAAmD;KAC7D;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,4GAA4G;KAC/G;IACD,aAAa,EAAE;QACb,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,gEAAgE;KAC1E;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,sHAAsH;KACzH;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,8JAA8J;KACjK;CACF,CAAC"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ export type { RectBeamSection, RectSinglyBeamSection, RectDoublyBeamSection, Rec
|
|
|
2
2
|
export { isSinglyReinforced } from "./types/rc-beam.type";
|
|
3
3
|
export type { SteelJacketedProps, SectionState, PlateShearFlowInput, BoltProps, PlateInterfaceBoltInput, SidePlateConfiguration, SidePlateAnchorage, SidePlateShearProps, } from "./types/plate-jacketing.type";
|
|
4
4
|
export { hasTopPlate, hasBottomPlate, hasSidePlate } from "./types/plate-jacketing.type";
|
|
5
|
+
export type { SectionProperties } from "./types/section-properties.type";
|
|
5
6
|
export type { Warnings, calculationResult } from "./types/output-message.type";
|
|
6
7
|
export type { unit } from "./types/unit.type";
|
|
7
8
|
export { FLEXURAL_STRENGTH_REDUCTION_FACTOR, CONCRETE_ULTIMATE_STRAIN, SHEAR_STRENGTH_REDUCTION_FACTOR, ANCHOR_SHEAR_STRENGTH_REDUCTION_FACTOR, MAX_PLATE_BOLT_SPACING, PLATE_SHEAR_YIELD_COEFFICIENT, SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT, SIDE_PLATE_REDUCTION_FACTOR_PSI, } from "./constants/rc.constant";
|
|
9
|
+
export { CONCRETE_POISSON_RATIO, CONCRETE_UNIT_WEIGHT, BEAM_INERTIA_MODIFIER, COLUMN_INERTIA_MODIFIER, VERTICAL_MEMBER_TOLERANCE, SINGULARITY_TOLERANCE, EQUILIBRIUM_TOLERANCE, } from "./constants/frame.constant";
|
|
8
10
|
export { RCDesignError, Errors } from "./errors/rc-design.error";
|
|
11
|
+
export { FrameAnalysisError, FrameErrors } from "./errors/frame-analysis.error";
|
|
12
|
+
export type { FrameErrorDetails, FrameModelIssue } from "./errors/frame-analysis.error";
|
package/dist/core/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Errors = exports.RCDesignError = exports.SIDE_PLATE_REDUCTION_FACTOR_PSI = exports.SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT = exports.PLATE_SHEAR_YIELD_COEFFICIENT = exports.MAX_PLATE_BOLT_SPACING = exports.ANCHOR_SHEAR_STRENGTH_REDUCTION_FACTOR = exports.SHEAR_STRENGTH_REDUCTION_FACTOR = exports.CONCRETE_ULTIMATE_STRAIN = exports.FLEXURAL_STRENGTH_REDUCTION_FACTOR = exports.hasSidePlate = exports.hasBottomPlate = exports.hasTopPlate = exports.isSinglyReinforced = void 0;
|
|
3
|
+
exports.FrameErrors = exports.FrameAnalysisError = exports.Errors = exports.RCDesignError = exports.EQUILIBRIUM_TOLERANCE = exports.SINGULARITY_TOLERANCE = exports.VERTICAL_MEMBER_TOLERANCE = exports.COLUMN_INERTIA_MODIFIER = exports.BEAM_INERTIA_MODIFIER = exports.CONCRETE_UNIT_WEIGHT = exports.CONCRETE_POISSON_RATIO = exports.SIDE_PLATE_REDUCTION_FACTOR_PSI = exports.SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT = exports.PLATE_SHEAR_YIELD_COEFFICIENT = exports.MAX_PLATE_BOLT_SPACING = exports.ANCHOR_SHEAR_STRENGTH_REDUCTION_FACTOR = exports.SHEAR_STRENGTH_REDUCTION_FACTOR = exports.CONCRETE_ULTIMATE_STRAIN = exports.FLEXURAL_STRENGTH_REDUCTION_FACTOR = exports.hasSidePlate = exports.hasBottomPlate = exports.hasTopPlate = exports.isSinglyReinforced = void 0;
|
|
4
4
|
var rc_beam_type_1 = require("./types/rc-beam.type");
|
|
5
5
|
Object.defineProperty(exports, "isSinglyReinforced", { enumerable: true, get: function () { return rc_beam_type_1.isSinglyReinforced; } });
|
|
6
6
|
var plate_jacketing_type_1 = require("./types/plate-jacketing.type");
|
|
@@ -17,8 +17,19 @@ Object.defineProperty(exports, "MAX_PLATE_BOLT_SPACING", { enumerable: true, get
|
|
|
17
17
|
Object.defineProperty(exports, "PLATE_SHEAR_YIELD_COEFFICIENT", { enumerable: true, get: function () { return rc_constant_1.PLATE_SHEAR_YIELD_COEFFICIENT; } });
|
|
18
18
|
Object.defineProperty(exports, "SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT", { enumerable: true, get: function () { return rc_constant_1.SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT; } });
|
|
19
19
|
Object.defineProperty(exports, "SIDE_PLATE_REDUCTION_FACTOR_PSI", { enumerable: true, get: function () { return rc_constant_1.SIDE_PLATE_REDUCTION_FACTOR_PSI; } });
|
|
20
|
+
var frame_constant_1 = require("./constants/frame.constant");
|
|
21
|
+
Object.defineProperty(exports, "CONCRETE_POISSON_RATIO", { enumerable: true, get: function () { return frame_constant_1.CONCRETE_POISSON_RATIO; } });
|
|
22
|
+
Object.defineProperty(exports, "CONCRETE_UNIT_WEIGHT", { enumerable: true, get: function () { return frame_constant_1.CONCRETE_UNIT_WEIGHT; } });
|
|
23
|
+
Object.defineProperty(exports, "BEAM_INERTIA_MODIFIER", { enumerable: true, get: function () { return frame_constant_1.BEAM_INERTIA_MODIFIER; } });
|
|
24
|
+
Object.defineProperty(exports, "COLUMN_INERTIA_MODIFIER", { enumerable: true, get: function () { return frame_constant_1.COLUMN_INERTIA_MODIFIER; } });
|
|
25
|
+
Object.defineProperty(exports, "VERTICAL_MEMBER_TOLERANCE", { enumerable: true, get: function () { return frame_constant_1.VERTICAL_MEMBER_TOLERANCE; } });
|
|
26
|
+
Object.defineProperty(exports, "SINGULARITY_TOLERANCE", { enumerable: true, get: function () { return frame_constant_1.SINGULARITY_TOLERANCE; } });
|
|
27
|
+
Object.defineProperty(exports, "EQUILIBRIUM_TOLERANCE", { enumerable: true, get: function () { return frame_constant_1.EQUILIBRIUM_TOLERANCE; } });
|
|
20
28
|
// Errors
|
|
21
29
|
var rc_design_error_1 = require("./errors/rc-design.error");
|
|
22
30
|
Object.defineProperty(exports, "RCDesignError", { enumerable: true, get: function () { return rc_design_error_1.RCDesignError; } });
|
|
23
31
|
Object.defineProperty(exports, "Errors", { enumerable: true, get: function () { return rc_design_error_1.Errors; } });
|
|
32
|
+
var frame_analysis_error_1 = require("./errors/frame-analysis.error");
|
|
33
|
+
Object.defineProperty(exports, "FrameAnalysisError", { enumerable: true, get: function () { return frame_analysis_error_1.FrameAnalysisError; } });
|
|
34
|
+
Object.defineProperty(exports, "FrameErrors", { enumerable: true, get: function () { return frame_analysis_error_1.FrameErrors; } });
|
|
24
35
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";;;AAWA,qDAA0D;AAAjD,kHAAA,kBAAkB,OAAA;AAW3B,qEAAyF;AAAhF,mHAAA,WAAW,OAAA;AAAE,sHAAA,cAAc,OAAA;AAAE,oHAAA,YAAY,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";;;AAWA,qDAA0D;AAAjD,kHAAA,kBAAkB,OAAA;AAW3B,qEAAyF;AAAhF,mHAAA,WAAW,OAAA;AAAE,sHAAA,cAAc,OAAA;AAAE,oHAAA,YAAY,OAAA;AAKlD,YAAY;AACZ,uDASiC;AAR/B,iIAAA,kCAAkC,OAAA;AAClC,uHAAA,wBAAwB,OAAA;AACxB,8HAAA,+BAA+B,OAAA;AAC/B,qIAAA,sCAAsC,OAAA;AACtC,qHAAA,sBAAsB,OAAA;AACtB,4HAAA,6BAA6B,OAAA;AAC7B,gIAAA,iCAAiC,OAAA;AACjC,8HAAA,+BAA+B,OAAA;AAGjC,6DAQoC;AAPlC,wHAAA,sBAAsB,OAAA;AACtB,sHAAA,oBAAoB,OAAA;AACpB,uHAAA,qBAAqB,OAAA;AACrB,yHAAA,uBAAuB,OAAA;AACvB,2HAAA,yBAAyB,OAAA;AACzB,uHAAA,qBAAqB,OAAA;AACrB,uHAAA,qBAAqB,OAAA;AAGvB,SAAS;AACT,4DAAiE;AAAxD,gHAAA,aAAa,OAAA;AAAE,yGAAA,MAAM,OAAA;AAC9B,sEAAgF;AAAvE,0HAAA,kBAAkB,OAAA;AAAE,mHAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prismatic member properties for frame analysis, using ETABS-style local axes:
|
|
3
|
+
* local 1 runs along the member, local 2 and 3 are the transverse axes.
|
|
4
|
+
*/
|
|
5
|
+
export interface SectionProperties {
|
|
6
|
+
E: number;
|
|
7
|
+
G: number;
|
|
8
|
+
A: number;
|
|
9
|
+
I22: number;
|
|
10
|
+
I33: number;
|
|
11
|
+
J: number;
|
|
12
|
+
unitWeight?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-properties.type.js","sourceRoot":"","sources":["../../../src/core/types/section-properties.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Poisson's ratio of concrete, for G = E / (2(1 + ν)). */
|
|
2
|
+
export const CONCRETE_POISSON_RATIO = 0.2;
|
|
3
|
+
/** ACI 318-19 Table 6.6.3.1.1(a): effective I of beams for elastic analysis at factored load. */
|
|
4
|
+
export const BEAM_INERTIA_MODIFIER = 0.35;
|
|
5
|
+
/** ACI 318-19 Table 6.6.3.1.1(a): effective I of columns for elastic analysis at factored load. */
|
|
6
|
+
export const COLUMN_INERTIA_MODIFIER = 0.7;
|
|
7
|
+
/** Unit weight of reinforced concrete in kN/m³ — common design practice, not an ACI 318-19 value. */
|
|
8
|
+
export const CONCRETE_UNIT_WEIGHT = 24;
|
|
9
|
+
/** A member is vertical when the horizontal projection of its unit axis is below this value. */
|
|
10
|
+
export const VERTICAL_MEMBER_TOLERANCE = 1e-6;
|
|
11
|
+
/** Smallest pivot, relative to its own diagonal term, accepted when factorising a stiffness matrix. */
|
|
12
|
+
export const SINGULARITY_TOLERANCE = 1e-9;
|
|
13
|
+
/** Relative global-equilibrium residual above which a warning is added. */
|
|
14
|
+
export const EQUILIBRIUM_TOLERANCE = 1e-6;
|
|
15
|
+
//# sourceMappingURL=frame.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.constant.js","sourceRoot":"","sources":["../../../../src/core/constants/frame.constant.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAE1C,iGAAiG;AACjG,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,mGAAmG;AACnG,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAE3C,qGAAqG;AACrG,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,gGAAgG;AAChG,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAE9C,uGAAuG;AACvG,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export const FLEXURAL_STRENGTH_REDUCTION_FACTOR = 0.9;
|
|
2
|
+
export const CONCRETE_ULTIMATE_STRAIN = 0.003;
|
|
3
|
+
// ACI 318-19 Table 20.6.1.3.1: cast-in-place beams, not exposed to weather or in contact with ground
|
|
4
|
+
export const DEFAULT_BEAM_COVER = 40; // mm, clear cover to stirrup
|
|
5
|
+
export const DEFAULT_STIRRUP_DIAMETER = 10; // mm
|
|
6
|
+
export const DEFAULT_MAX_AGGREGATE_SIZE = 20; // mm, nominal max aggregate size
|
|
7
|
+
// ACI 318-19 25.2.1: min clear spacing between parallel bars in a layer
|
|
8
|
+
export const MIN_BAR_CLEAR_SPACING = 25; // mm
|
|
9
|
+
export const AGGREGATE_SPACING_FACTOR = 4 / 3;
|
|
10
|
+
// ACI 318-19 25.2.2: min clear distance between layers
|
|
11
|
+
export const MIN_LAYER_CLEAR_SPACING = 25; // mm
|
|
12
|
+
// ACI 318-19 21.2.1: strength reduction factor for shear
|
|
13
|
+
export const SHEAR_STRENGTH_REDUCTION_FACTOR = 0.75;
|
|
14
|
+
// ACI 318-19 22.5.5.1, Table 22.5.5.1(a): Vc = 0.17 * lambda * sqrt(fc') * bw * d
|
|
15
|
+
export const CONCRETE_SHEAR_VC_COEFFICIENT = 0.17;
|
|
16
|
+
// ACI 318-19 22.5.3.1: sqrt(fc') used to compute Vc shall not exceed this limit
|
|
17
|
+
// unless minimum shear reinforcement per 9.6.3.3 is provided
|
|
18
|
+
export const SQRT_FC_SHEAR_LIMIT = 8.3; // MPa
|
|
19
|
+
// ACI 318-19 22.5.1.2: Vs shall not exceed 0.66 * sqrt(fc') * bw * d
|
|
20
|
+
export const MAX_VS_COEFFICIENT = 0.66;
|
|
21
|
+
// ACI 318-19 9.7.6.2.2: spacing threshold at which the tighter max-spacing limit applies
|
|
22
|
+
export const VS_SPACING_THRESHOLD_COEFFICIENT = 0.33; // * sqrt(fc') * bw * d
|
|
23
|
+
// ACI 318-19 9.7.6.2.2: max stirrup spacing, Vs <= 0.33 * sqrt(fc') * bw * d
|
|
24
|
+
export const MAX_STIRRUP_SPACING_LOW_VS = 600; // mm
|
|
25
|
+
export const MAX_STIRRUP_SPACING_LOW_VS_DEPTH_FACTOR = 0.5; // * d
|
|
26
|
+
// ACI 318-19 9.7.6.2.2: max stirrup spacing, Vs > 0.33 * sqrt(fc') * bw * d
|
|
27
|
+
export const MAX_STIRRUP_SPACING_HIGH_VS = 300; // mm
|
|
28
|
+
export const MAX_STIRRUP_SPACING_HIGH_VS_DEPTH_FACTOR = 0.25; // * d
|
|
29
|
+
// ACI 318-19 9.6.3.3: Av,min = max(0.062 * sqrt(fc') * bw * s / fyt, 0.35 * bw * s / fyt)
|
|
30
|
+
export const MIN_AV_SQRT_FC_COEFFICIENT = 0.062;
|
|
31
|
+
export const MIN_AV_ABSOLUTE_COEFFICIENT = 0.35;
|
|
32
|
+
// ACI 318-19 Table 17.5.3: strength reduction factor for anchor steel in shear
|
|
33
|
+
export const ANCHOR_SHEAR_STRENGTH_REDUCTION_FACTOR = 0.65;
|
|
34
|
+
// ACI 318-19 17.7.1.2b: Vsa = 0.6 * Ase,V * futa
|
|
35
|
+
export const ANCHOR_STEEL_SHEAR_COEFFICIENT = 0.6;
|
|
36
|
+
// ACI 318-19 17.6.1.2: futa shall not exceed min(1.9 * fya, 860 MPa)
|
|
37
|
+
export const ANCHOR_FUTA_FYA_FACTOR = 1.9;
|
|
38
|
+
export const MAX_ANCHOR_FUTA = 860; // MPa
|
|
39
|
+
// ACI 318-19 17.9.2: min center-to-center spacing of cast-in anchors = 4 * da
|
|
40
|
+
export const MIN_ANCHOR_SPACING_DIAMETER_FACTOR = 4;
|
|
41
|
+
// Default elastic modulus of structural steel plate, used when the plate props omit Es
|
|
42
|
+
export const DEFAULT_PLATE_ELASTIC_MODULUS = 200000; // MPa
|
|
43
|
+
// AISC 360 G2.1 / von Mises: shear yield stress of a steel web = 0.6 * Fy
|
|
44
|
+
export const PLATE_SHEAR_YIELD_COEFFICIENT = 0.6;
|
|
45
|
+
// AISC 360 G2.1(a): a web of slenderness h/tw <= 2.24*sqrt(E/Fy) reaches shear
|
|
46
|
+
// yielding before shear buckling
|
|
47
|
+
export const PLATE_SHEAR_SLENDERNESS_COEFFICIENT = 2.24; // * sqrt(Es / fy)
|
|
48
|
+
// ACI 440.2R-17, 11.4: effective strain in bonded shear reinforcement is capped
|
|
49
|
+
// to preserve aggregate interlock in the concrete. Subsection unverified — see the
|
|
50
|
+
// TODO in strengthening/rc-beam-side-plate-shear.ts.
|
|
51
|
+
export const SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT = 0.004;
|
|
52
|
+
// ACI 440.2R-17, 11.4: additional reduction factor psi_f for two-sided bonded
|
|
53
|
+
// shear strengthening (not fully wrapped). Subsection unverified — see the TODO in
|
|
54
|
+
// strengthening/rc-beam-side-plate-shear.ts.
|
|
55
|
+
export const SIDE_PLATE_REDUCTION_FACTOR_PSI = 0.85;
|
|
56
|
+
// Both faces of the web plated, unless the caller says otherwise
|
|
57
|
+
export const DEFAULT_SIDE_PLATE_SIDES = 2;
|
|
58
|
+
// Vertical strips, unless the caller gives an inclination
|
|
59
|
+
export const DEFAULT_SIDE_PLATE_ANGLE = 90; // degrees from the beam axis
|
|
60
|
+
// Practical detailing limit on bolt pitch along a bonded strengthening plate,
|
|
61
|
+
// so the plate is restrained against local buckling / peeling between fasteners
|
|
62
|
+
export const MAX_PLATE_BOLT_SPACING = 300; // mm
|
|
63
|
+
//# sourceMappingURL=rc.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rc.constant.js","sourceRoot":"","sources":["../../../../src/core/constants/rc.constant.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,CAAC;AACtD,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAE9C,qGAAqG;AACrG,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC,CAAC,6BAA6B;AACnE,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC,CAAC,KAAK;AACjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC,CAAC,iCAAiC;AAE/E,wEAAwE;AACxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAC,CAAC,KAAK;AAC9C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9C,uDAAuD;AACvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC,CAAC,KAAK;AAEhD,yDAAyD;AACzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,CAAC;AAEpD,kFAAkF;AAClF,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC;AAElD,gFAAgF;AAChF,6DAA6D;AAC7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,CAAC,MAAM;AAE9C,qEAAqE;AACrE,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEvC,yFAAyF;AACzF,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,CAAC,CAAC,uBAAuB;AAE7E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC,CAAC,KAAK;AACpD,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,CAAC,CAAC,MAAM;AAElE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC,CAAC,KAAK;AACrD,MAAM,CAAC,MAAM,wCAAwC,GAAG,IAAI,CAAC,CAAC,MAAM;AAEpE,0FAA0F;AAC1F,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,IAAI,CAAC;AAE3D,iDAAiD;AACjD,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAElD,qEAAqE;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,MAAM;AAE1C,8EAA8E;AAC9E,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC;AAEpD,uFAAuF;AACvF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,CAAC,MAAM;AAE3D,0EAA0E;AAC1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAEjD,+EAA+E;AAC/E,iCAAiC;AACjC,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,CAAC,CAAC,kBAAkB;AAE3E,gFAAgF;AAChF,mFAAmF;AACnF,qDAAqD;AACrD,MAAM,CAAC,MAAM,iCAAiC,GAAG,KAAK,CAAC;AAEvD,8EAA8E;AAC9E,mFAAmF;AACnF,6CAA6C;AAC7C,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,CAAC;AAEpD,iEAAiE;AACjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAE1C,0DAA0D;AAC1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC,CAAC,6BAA6B;AAEzE,8EAA8E;AAC9E,gFAAgF;AAChF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC,CAAC,KAAK"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export class FrameAnalysisError extends Error {
|
|
2
|
+
constructor(std = { code: 0, message: "Unknown error" }, details = {}, issues) {
|
|
3
|
+
super(std.message);
|
|
4
|
+
this.code = std.code;
|
|
5
|
+
this.message = std.message;
|
|
6
|
+
this.details = details;
|
|
7
|
+
this.issues = issues ?? [{ code: std.code, message: std.message, details }];
|
|
8
|
+
Object.setPrototypeOf(this, FrameAnalysisError.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export const FrameErrors = {
|
|
12
|
+
// 3XX : Frame analysis errors
|
|
13
|
+
ZERO_LENGTH_MEMBER: {
|
|
14
|
+
code: 301,
|
|
15
|
+
message: "A member's start and end nodes coincide; the member has zero length.",
|
|
16
|
+
},
|
|
17
|
+
UNKNOWN_NODE_REFERENCE: {
|
|
18
|
+
code: 302,
|
|
19
|
+
message: "A member, restraint or load refers to a node or member id that is not in the model.",
|
|
20
|
+
},
|
|
21
|
+
DUPLICATE_ID: {
|
|
22
|
+
code: 303,
|
|
23
|
+
message: "Node ids, member ids and restrained node ids must each be unique, and load case and combination ids must be unique across both lists.",
|
|
24
|
+
},
|
|
25
|
+
STRUCTURE_UNSTABLE: {
|
|
26
|
+
code: 304,
|
|
27
|
+
message: "The restrained structure is unstable (singular stiffness matrix); add supports or members to prevent a mechanism.",
|
|
28
|
+
},
|
|
29
|
+
INVALID_SECTION_PROPERTIES: {
|
|
30
|
+
code: 305,
|
|
31
|
+
message: "Member section properties E, G, A, I22, I33 and J must all be positive, and unitWeight, when given, must not be negative.",
|
|
32
|
+
},
|
|
33
|
+
NO_RESTRAINTS: {
|
|
34
|
+
code: 306,
|
|
35
|
+
message: "The model has no restrained degrees of freedom.",
|
|
36
|
+
},
|
|
37
|
+
INVALID_RELEASE: {
|
|
38
|
+
code: 307,
|
|
39
|
+
message: "The end releases on a member make it a mechanism (rigid-body motion within the member).",
|
|
40
|
+
},
|
|
41
|
+
LOAD_OUTSIDE_MEMBER: {
|
|
42
|
+
code: 308,
|
|
43
|
+
message: "A member load lies outside the member, or its start is not before its end.",
|
|
44
|
+
},
|
|
45
|
+
UNKNOWN_LOAD_CASE: {
|
|
46
|
+
code: 309,
|
|
47
|
+
message: "A load or a load combination term refers to a load case or combination that is not in the model, or a term names neither.",
|
|
48
|
+
},
|
|
49
|
+
CIRCULAR_COMBINATION: {
|
|
50
|
+
code: 310,
|
|
51
|
+
message: "Load combinations reference each other in a loop.",
|
|
52
|
+
},
|
|
53
|
+
INVALID_LOAD_FACTOR: {
|
|
54
|
+
code: 311,
|
|
55
|
+
message: "A combination factor or self-weight multiplier is not a finite number, or a load combination has no terms.",
|
|
56
|
+
},
|
|
57
|
+
NO_LOAD_CASES: {
|
|
58
|
+
code: 312,
|
|
59
|
+
message: "The model has no load cases; define at least one in loadCases.",
|
|
60
|
+
},
|
|
61
|
+
MISSING_UNIT_WEIGHT: {
|
|
62
|
+
code: 313,
|
|
63
|
+
message: "A load case requests self-weight but a member section has no unitWeight; set unitWeight (0 for a weightless member).",
|
|
64
|
+
},
|
|
65
|
+
INVALID_INPUT_VALUE: {
|
|
66
|
+
code: 314,
|
|
67
|
+
message: "An input value is invalid: a number that is not finite (NaN, Infinity or not a number), a negative spring stiffness, or a value outside its allowed options.",
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=frame-analysis.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-analysis.error.js","sourceRoot":"","sources":["../../../../src/core/errors/frame-analysis.error.ts"],"names":[],"mappings":"AAcA,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAO3C,YACE,MAA8B,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,EACnE,UAA6B,EAAE,EAC/B,MAA0B;QAE1B,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAC5E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;CACF;AAcD,MAAM,CAAC,MAAM,WAAW,GAA2C;IACjE,8BAA8B;IAC9B,kBAAkB,EAAE;QAClB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,sEAAsE;KAChF;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,qFAAqF;KAC/F;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,GAAG;QACT,OAAO,EACL,uIAAuI;KAC1I;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,mHAAmH;KACtH;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,GAAG;QACT,OAAO,EACL,2HAA2H;KAC9H;IACD,aAAa,EAAE;QACb,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,iDAAiD;KAC3D;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;QACT,OAAO,EACL,yFAAyF;KAC5F;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,4EAA4E;KACtF;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,2HAA2H;KAC9H;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,mDAAmD;KAC7D;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,4GAA4G;KAC/G;IACD,aAAa,EAAE;QACb,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,gEAAgE;KAC1E;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,sHAAsH;KACzH;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,8JAA8J;KACjK;CACF,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export class RCDesignError extends Error {
|
|
2
|
+
constructor(std = { code: 0, message: "Unknown error" }) {
|
|
3
|
+
super(std.message);
|
|
4
|
+
this.code = std.code;
|
|
5
|
+
this.message = std.message;
|
|
6
|
+
Object.setPrototypeOf(this, RCDesignError.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export const Errors = {
|
|
10
|
+
// 1XX : RC Beam Design Errors
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Never thrown since 1.4.0. A section whose compression steel
|
|
13
|
+
* lies below the neutral axis is valid — that steel acts in tension and
|
|
14
|
+
* `rectBeamMomentCapacity` now returns a reduced Mn with a warning instead.
|
|
15
|
+
* Retained so existing `Errors.COMP_STEEL_DISTANCE_OVER_AC` references and
|
|
16
|
+
* `code === 101` checks keep compiling; safe to delete in the next major.
|
|
17
|
+
*/
|
|
18
|
+
COMP_STEEL_DISTANCE_OVER_AC: {
|
|
19
|
+
code: 101,
|
|
20
|
+
message: "d' of compressive steel is greater than c, consider using singly reinforced section.",
|
|
21
|
+
},
|
|
22
|
+
TENSILE_STEEL_NOT_YIELDING: {
|
|
23
|
+
code: 102,
|
|
24
|
+
message: "Out of tension controlled region, tensile steel is not yielding.",
|
|
25
|
+
},
|
|
26
|
+
SECTION_TOO_NARROW_FOR_BAR: {
|
|
27
|
+
code: 103,
|
|
28
|
+
message: "Section width is too narrow to fit even one bar of the given diameter with the required cover and spacing.",
|
|
29
|
+
},
|
|
30
|
+
BAR_LAYOUT_EXCEEDS_SECTION_HEIGHT: {
|
|
31
|
+
code: 104,
|
|
32
|
+
message: "Combined top and bottom rebar layers exceed the section height h.",
|
|
33
|
+
},
|
|
34
|
+
SHEAR_STRENGTH_EXCEEDS_MAX: {
|
|
35
|
+
code: 105,
|
|
36
|
+
message: "Vs exceeds 0.66*sqrt(fc')*bw*d (ACI318-19, 22.5.1.2); section is too small for shear, increase bw or d.",
|
|
37
|
+
},
|
|
38
|
+
// 2XX : Strengthening / plate-to-concrete connection errors
|
|
39
|
+
NON_POSITIVE_SHEAR_FLOW: {
|
|
40
|
+
code: 201,
|
|
41
|
+
message: "Interface shear flow requires a positive shear force V and at least one jacketing plate with non-zero area.",
|
|
42
|
+
},
|
|
43
|
+
INVALID_BOLT_CAPACITY: {
|
|
44
|
+
code: 202,
|
|
45
|
+
message: "Resolved bolt shear capacity is not positive; check Ase, futa, or the supplied phiVboltOverride.",
|
|
46
|
+
},
|
|
47
|
+
PLATE_OUTSIDE_SECTION: {
|
|
48
|
+
code: 203,
|
|
49
|
+
message: "Inconsistent jacketed section geometry; plate and section dimensions must be positive and d must lie within h.",
|
|
50
|
+
},
|
|
51
|
+
CRACKED_NA_NOT_FOUND: {
|
|
52
|
+
code: 204,
|
|
53
|
+
message: "No valid cracked neutral axis was found within the concrete depth; check the section and plate properties.",
|
|
54
|
+
},
|
|
55
|
+
SIDE_PLATE_GEOMETRY_INVALID: {
|
|
56
|
+
code: 205,
|
|
57
|
+
message: "Inconsistent side plate geometry; thickness, engaged depth, fy and sides must be positive, the depth must fit within the section, and a stripped layout requires a positive width and spacing.",
|
|
58
|
+
},
|
|
59
|
+
STRENGTHENED_SHEAR_NO_HEADROOM: {
|
|
60
|
+
code: 206,
|
|
61
|
+
message: "Existing Vs already reaches 0.66*sqrt(fc')*bw*d (ACI318-19, 22.5.1.2); the web crushes before any added side plate force can be developed, so shear strengthening cannot be realised on this section.",
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=rc-design.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rc-design.error.js","sourceRoot":"","sources":["../../../../src/core/errors/rc-design.error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAc,SAAQ,KAAK;IAItC,YAAY,MAAyB,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE;QACxE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF;AAOD,MAAM,CAAC,MAAM,MAAM,GAAsC;IACvD,8BAA8B;IAE9B;;;;;;OAMG;IACH,2BAA2B,EAAE;QAC3B,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,sFAAsF;KAChG;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,kEAAkE;KAC5E;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,GAAG;QACT,OAAO,EACL,4GAA4G;KAC/G;IACD,iCAAiC,EAAE;QACjC,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,mEAAmE;KAC7E;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,GAAG;QACT,OAAO,EACL,yGAAyG;KAC5G;IAED,4DAA4D;IAC5D,uBAAuB,EAAE;QACvB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,6GAA6G;KAChH;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,kGAAkG;KACrG;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,gHAAgH;KACnH;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,4GAA4G;KAC/G;IACD,2BAA2B,EAAE;QAC3B,IAAI,EAAE,GAAG;QACT,OAAO,EACL,gMAAgM;KACnM;IACD,8BAA8B,EAAE;QAC9B,IAAI,EAAE,GAAG;QACT,OAAO,EACL,uMAAuM;KAC1M;CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { isSinglyReinforced } from "./types/rc-beam.type.js";
|
|
2
|
+
export { hasTopPlate, hasBottomPlate, hasSidePlate } from "./types/plate-jacketing.type.js";
|
|
3
|
+
// Constants
|
|
4
|
+
export { FLEXURAL_STRENGTH_REDUCTION_FACTOR, CONCRETE_ULTIMATE_STRAIN, SHEAR_STRENGTH_REDUCTION_FACTOR, ANCHOR_SHEAR_STRENGTH_REDUCTION_FACTOR, MAX_PLATE_BOLT_SPACING, PLATE_SHEAR_YIELD_COEFFICIENT, SIDE_PLATE_EFFECTIVE_STRAIN_LIMIT, SIDE_PLATE_REDUCTION_FACTOR_PSI, } from "./constants/rc.constant.js";
|
|
5
|
+
export { CONCRETE_POISSON_RATIO, CONCRETE_UNIT_WEIGHT, BEAM_INERTIA_MODIFIER, COLUMN_INERTIA_MODIFIER, VERTICAL_MEMBER_TOLERANCE, SINGULARITY_TOLERANCE, EQUILIBRIUM_TOLERANCE, } from "./constants/frame.constant.js";
|
|
6
|
+
// Errors
|
|
7
|
+
export { RCDesignError, Errors } from "./errors/rc-design.error.js";
|
|
8
|
+
export { FrameAnalysisError, FrameErrors } from "./errors/frame-analysis.error.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAW1D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAKzF,YAAY;AACZ,OAAO,EACL,kCAAkC,EAClC,wBAAwB,EACxB,+BAA+B,EAC/B,sCAAsC,EACtC,sBAAsB,EACtB,6BAA6B,EAC7B,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,SAAS;AACT,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-message.type.js","sourceRoot":"","sources":["../../../../src/core/types/output-message.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A plate counts as present only when both its width and thickness are positive,
|
|
3
|
+
* so a bottom-only jacket may omit the top plate fields or pass them as zero.
|
|
4
|
+
*/
|
|
5
|
+
export function hasTopPlate(props) {
|
|
6
|
+
return (props.topSteelWidth ?? 0) > 0 && (props.topSteelThickness ?? 0) > 0;
|
|
7
|
+
}
|
|
8
|
+
export function hasBottomPlate(props) {
|
|
9
|
+
return (props.bottomSteelWidth ?? 0) > 0 && (props.bottomSteelThickness ?? 0) > 0;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A side plate counts as present only when both its thickness and engaged depth
|
|
13
|
+
* are positive.
|
|
14
|
+
*/
|
|
15
|
+
export function hasSidePlate(props) {
|
|
16
|
+
return props.thickness > 0 && props.depth > 0;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=plate-jacketing.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plate-jacketing.type.js","sourceRoot":"","sources":["../../../../src/core/types/plate-jacketing.type.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,KAAyB;IACnD,OAAO,CAAC,KAAK,CAAC,aAAa,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAyB;IACtD,OAAO,CAAC,KAAK,CAAC,gBAAgB,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACpF,CAAC;AA6DD;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,KAA0B;IACrD,OAAO,KAAK,CAAC,SAAS,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A section counts as singly reinforced when it carries no compression steel.
|
|
3
|
+
*
|
|
4
|
+
* `d_` is deliberately not sign-checked: it is measured from the extreme
|
|
5
|
+
* concrete compression fibre, so compression steel above that face — a steel
|
|
6
|
+
* plate bonded to the top of the beam — legitimately has `d_ <= 0`.
|
|
7
|
+
*/
|
|
8
|
+
export function isSinglyReinforced(section) {
|
|
9
|
+
return !("As_" in section) || !("d_" in section) || section.As_ <= 0;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=rc-beam.type.js.map
|