@theerapat-s28/ts-structural-eng-tools 1.5.0 → 2.1.0
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 +57 -6
- package/dist/core/constants/frame.constant.d.ts +19 -0
- package/dist/core/constants/frame.constant.js +23 -0
- package/dist/core/constants/frame.constant.js.map +1 -0
- package/dist/core/errors/frame-analysis.error.d.ts +36 -0
- package/dist/core/errors/frame-analysis.error.js +86 -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 +13 -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 +20 -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 +82 -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/area/area-geometry.js +132 -0
- package/dist/esm/fea/frame/area/area-geometry.js.map +1 -0
- package/dist/esm/fea/frame/area/distribute-area-loads.js +267 -0
- package/dist/esm/fea/frame/area/distribute-area-loads.js.map +1 -0
- package/dist/esm/fea/frame/area/edge-members.js +62 -0
- package/dist/esm/fea/frame/area/edge-members.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 +88 -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 +7 -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 +375 -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 +131 -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 +133 -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 +389 -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/area/area-geometry.d.ts +56 -0
- package/dist/fea/frame/area/area-geometry.js +142 -0
- package/dist/fea/frame/area/area-geometry.js.map +1 -0
- package/dist/fea/frame/area/distribute-area-loads.d.ts +30 -0
- package/dist/fea/frame/area/distribute-area-loads.js +272 -0
- package/dist/fea/frame/area/distribute-area-loads.js.map +1 -0
- package/dist/fea/frame/area/edge-members.d.ts +25 -0
- package/dist/fea/frame/area/edge-members.js +67 -0
- package/dist/fea/frame/area/edge-members.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 +36 -0
- package/dist/fea/frame/elements/fixed-end-forces.js +93 -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 +10 -0
- package/dist/fea/frame/index.js +18 -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 +379 -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 +70 -0
- package/dist/fea/frame/solver/analyze-frame.js +136 -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 +138 -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 +170 -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 +395 -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 +28 -4
package/README.md
CHANGED
|
@@ -2,7 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
**📖 [API Reference — theerapat-s28.github.io/ts-structural-eng](https://theerapat-s28.github.io/ts-structural-eng/)**
|
|
4
4
|
|
|
5
|
-
A TypeScript
|
|
5
|
+
A headless structural analysis and design engine for TypeScript: 3D frame analysis by the direct stiffness method, reinforced-concrete beam design per ACI 318-19, and strengthening methods. It is built to be installed by front-end applications as their calculation core.
|
|
6
|
+
|
|
7
|
+
## Scope: an engine, not an application
|
|
8
|
+
|
|
9
|
+
The library does the structural engineering and nothing else. A front-end application installs it, builds a model from its own UI, calls the engine, and draws the results.
|
|
10
|
+
|
|
11
|
+
| The engine (this package) | The front-end application |
|
|
12
|
+
| --------------------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
13
|
+
| Model validation with located errors (`details` name the node, member, field…) | Input forms, drawing tools, highlighting the reported problems |
|
|
14
|
+
| Analysis: load cases, combinations, envelopes, member diagrams | Rendering the model, deformed shapes and diagrams |
|
|
15
|
+
| Design checks with code-clause warnings and `RCDesignError` / `FrameAnalysisError` | Display of results, member colours, view and display options |
|
|
16
|
+
| Typed inputs and results in SI units | Unit display, project files, undo history, other UI state |
|
|
17
|
+
|
|
18
|
+
What this means in practice:
|
|
19
|
+
|
|
20
|
+
- **No UI, no rendering, no presentation data.** Inputs and results carry structural quantities only; no colours, labels or view state.
|
|
21
|
+
- **Plain JSON in, plain JSON out.** Models and results are serialisable, so the engine runs in a Web Worker, in the browser or in Node.
|
|
22
|
+
- **No runtime dependencies** and no DOM or Node-only APIs.
|
|
23
|
+
- **ESM and CommonJS builds** with `.d.ts` types, tree-shakeable (`"sideEffects": false`), split into subpath exports (`/fea`, `/rc`, `/strengthening`, `/core`, `/utils`).
|
|
6
24
|
|
|
7
25
|
## Documentation
|
|
8
26
|
|
|
@@ -11,6 +29,7 @@ Full API reference, with parameter tables, worked examples, warnings and error c
|
|
|
11
29
|
- **[API reference](https://theerapat-s28.github.io/ts-structural-eng/)** — landing page
|
|
12
30
|
- [RC Beam Design](https://theerapat-s28.github.io/ts-structural-eng/rc/) — `@theerapat-s28/ts-structural-eng-tools/rc`
|
|
13
31
|
- [Strengthening](https://theerapat-s28.github.io/ts-structural-eng/strengthening/) — `@theerapat-s28/ts-structural-eng-tools/strengthening`
|
|
32
|
+
- [FEA — Frame Analysis](https://theerapat-s28.github.io/ts-structural-eng/fea/) — `@theerapat-s28/ts-structural-eng-tools/fea`
|
|
14
33
|
|
|
15
34
|
The pages are served from [`html-docs/`](https://github.com/theerapat-s28/ts-structural-eng/tree/main/html-docs) via GitHub Pages.
|
|
16
35
|
|
|
@@ -18,7 +37,7 @@ The pages are served from [`html-docs/`](https://github.com/theerapat-s28/ts-str
|
|
|
18
37
|
|
|
19
38
|
- Package: `@theerapat-s28/ts-structural-eng-tools`
|
|
20
39
|
- Entry: `src/index.ts`
|
|
21
|
-
- Build output: `dist/` (
|
|
40
|
+
- Build output: `dist/` (CommonJS + `.d.ts` files) and `dist/esm/` (ES modules)
|
|
22
41
|
|
|
23
42
|
## Prerequisites
|
|
24
43
|
|
|
@@ -61,32 +80,48 @@ src/
|
|
|
61
80
|
├── rc/ # Reinforced concrete design
|
|
62
81
|
│ ├── index.ts # Module exports
|
|
63
82
|
│ ├── general.ts # Concrete properties (beta1, Ec, unit conversion)
|
|
64
|
-
│
|
|
83
|
+
│ ├── rc-beam-design.ts # Beam moment capacity (singly/doubly reinforced) and shear capacity (Vc, Vs, stirrup requirement)
|
|
84
|
+
│ └── rc-section-properties.ts # Section properties (E, G, A, I22, I33, J) for frame analysis
|
|
65
85
|
├── strengthening/ # Strengthening methods
|
|
66
86
|
│ ├── index.ts
|
|
67
87
|
│ ├── rc-beam-steel-plate-jacketing.ts # Moment capacity before/after plate jacketing
|
|
68
88
|
│ ├── rc-beam-plate-interface-bolts.ts # Interface shear flow and required interface bolts
|
|
69
89
|
│ └── rc-beam-side-plate-shear.ts # Shear capacity before/after bolted side plates (two models)
|
|
90
|
+
├── fea/ # Finite-element analysis
|
|
91
|
+
│ ├── index.ts
|
|
92
|
+
│ └── frame/ # 3D frame analysis (direct stiffness method)
|
|
93
|
+
│ ├── index.ts
|
|
94
|
+
│ ├── area/ # Null areas: geometry, edge-member chains, area-load distribution
|
|
95
|
+
│ ├── elements/ # Reference beam stiffness matrix, fixed-end forces, end-release condensation
|
|
96
|
+
│ ├── transformation/ # ETABS-style local axes and the 12×12 transformation
|
|
97
|
+
│ ├── solver/ # System build + skyline factorisation, per-case solve, combinations, analyzeFrame
|
|
98
|
+
│ ├── validation/ # validateFrameModel: every input problem, with its location
|
|
99
|
+
│ ├── post/ # Result presentation, member force diagrams, envelopes, design demands
|
|
100
|
+
│ └── types/ # Model (incl. null areas, load cases, combinations) and result types
|
|
70
101
|
├── core/ # Shared infrastructure
|
|
71
102
|
│ ├── index.ts
|
|
72
|
-
│ ├── constants/ # RC design constants (ACI 318)
|
|
103
|
+
│ ├── constants/ # RC design constants (ACI 318) and frame-analysis tolerances
|
|
73
104
|
│ ├── errors/ # Custom error classes
|
|
74
105
|
│ └── types/ # Shared type definitions
|
|
75
106
|
└── utils/ # Helper utilities
|
|
76
107
|
├── index.ts
|
|
77
108
|
├── math.ts # Quadratic solver, rounding
|
|
109
|
+
├── matrix.ts # Dense matrix helpers, Cholesky (factor once, solve many) and general linear solvers
|
|
110
|
+
├── skyline.ts # Skyline (banded) Cholesky solver and reverse Cuthill–McKee ordering
|
|
78
111
|
└── merge-warning.ts # Warning array merging
|
|
79
112
|
examples/
|
|
80
113
|
└── basic-usage.ts # Example usage of the library
|
|
81
114
|
tests/
|
|
82
115
|
├── rc/ # Tests for RC module
|
|
83
116
|
├── strengthening/ # Tests for strengthening module
|
|
117
|
+
├── fea/frame/ # Tests for frame analysis
|
|
84
118
|
└── utils/ # Tests for utilities
|
|
85
119
|
html-docs/ # HTML API reference, deployed to GitHub Pages
|
|
86
120
|
├── DESIGN.md # Style guide for the doc pages
|
|
87
121
|
├── index.html # Landing page
|
|
88
122
|
├── rc/index.html
|
|
89
|
-
|
|
123
|
+
├── strengthening/index.html
|
|
124
|
+
└── fea/index.html
|
|
90
125
|
```
|
|
91
126
|
|
|
92
127
|
## TypeScript path aliases
|
|
@@ -99,7 +134,8 @@ This project uses `baseUrl` + `paths` for clean imports:
|
|
|
99
134
|
"@app-types/*": ["src/core/types/*"],
|
|
100
135
|
"@app-utils/*": ["src/utils/*"],
|
|
101
136
|
"@app-rc/*": ["src/rc/*"],
|
|
102
|
-
"@app-strg/*": ["src/strengthening/*"]
|
|
137
|
+
"@app-strg/*": ["src/strengthening/*"],
|
|
138
|
+
"@app-fea/*": ["src/fea/*"]
|
|
103
139
|
}
|
|
104
140
|
```
|
|
105
141
|
|
|
@@ -134,6 +170,19 @@ Plates bolted to the sides of the web strengthen the beam in shear instead. ACI
|
|
|
134
170
|
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
171
|
- **`compareSidePlateShearCapacity(section, plates)`** — Runs both models and reports the lower `phiVn` as `governing`; the intended entry point for a conservative design capacity.
|
|
136
172
|
|
|
173
|
+
### FEA — Frame Analysis
|
|
174
|
+
|
|
175
|
+
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.
|
|
176
|
+
|
|
177
|
+
- **`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, trapezoidal and point loads in local or global directions, and torques about the member axis), each load tagged with its `loadCase`, so large models stay readable. Area loads (`model.areaLoads`, kN/m²) on null areas (`model.areas`) are first distributed to the members along each area's edges — see `distributeAreaLoads`. 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–317) with `details` locating the problem.
|
|
178
|
+
- **`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.
|
|
179
|
+
- **`validateFrameModel(model)`** — Checks a model without analysing it and returns every problem, each with `details` (`nodeId`, `memberId`, `areaId`, `edge`, `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).
|
|
180
|
+
- **`distributeAreaLoads(model)`** — Returns `{ memberLoads, warnings }`: the member loads that the model's null areas send to their edge members, exactly what `analyzeFrame` adds, for checking or previewing. A null area (`{ id, nodeIds, distribution, supportEdges? }`) has 3 or 4 nodes forming a planar convex polygon and adds no stiffness. `"twoWay"` sends each point to its nearest edge (the corner-bisector split, any convex shape); `"oneWay"` spans strips between the listed `supportEdges`, parallel to the unsupported edges, half to each end; `"cantilever"` (rectangles) puts `q·c` and a torque `q·c²/2` on its one support edge. Area loads (`{ loadCase, areaId, direction: "3" | "X" | "Y" | "Z", q }`) are per unit true area, `"3"` being the area's normal. Edges split by intermediate nodes are cut at them. Area problems throw 315 (geometry), 316 (an edge without members) or 317 (supports that do not fit the distribution).
|
|
181
|
+
- **`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.
|
|
182
|
+
- **`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).
|
|
183
|
+
- **`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.
|
|
184
|
+
- **`memberAxes(start, end, angle?)`** — The ETABS-style local axes of a member as a direction-cosine matrix.
|
|
185
|
+
|
|
137
186
|
### General Utilities
|
|
138
187
|
|
|
139
188
|
- **`concreteBeta(fc_)`** — ACI 318 β₁ factor
|
|
@@ -147,6 +196,8 @@ pnpm run build
|
|
|
147
196
|
node dist/index.js
|
|
148
197
|
```
|
|
149
198
|
|
|
199
|
+
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.
|
|
200
|
+
|
|
150
201
|
## Tests
|
|
151
202
|
|
|
152
203
|
```bash
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
15
|
+
/**
|
|
16
|
+
* Relative tolerance for null-area geometry (planarity, corners in line, parallel or square
|
|
17
|
+
* edges, nodes lying on an edge): distances are compared with this times the longest edge.
|
|
18
|
+
*/
|
|
19
|
+
export declare const AREA_GEOMETRY_TOLERANCE = 0.000001;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AREA_GEOMETRY_TOLERANCE = 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
|
+
/**
|
|
19
|
+
* Relative tolerance for null-area geometry (planarity, corners in line, parallel or square
|
|
20
|
+
* edges, nodes lying on an edge): distances are compared with this times the longest edge.
|
|
21
|
+
*/
|
|
22
|
+
exports.AREA_GEOMETRY_TOLERANCE = 1e-6;
|
|
23
|
+
//# 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;AAE1C;;;GAGG;AACU,QAAA,uBAAuB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
areaId?: string | number;
|
|
8
|
+
/** For an area: the edge index, edge i running from `nodeIds[i]` to `nodeIds[i + 1]`. */
|
|
9
|
+
edge?: number;
|
|
10
|
+
loadCaseId?: string;
|
|
11
|
+
combinationId?: string;
|
|
12
|
+
/** The offending input field, e.g. "x", "fz", "w", "direction", "uz". */
|
|
13
|
+
field?: string;
|
|
14
|
+
/** For an unstable structure: a degree of freedom involved in the mechanism. */
|
|
15
|
+
dof?: "ux" | "uy" | "uz" | "rx" | "ry" | "rz";
|
|
16
|
+
}
|
|
17
|
+
export declare class FrameAnalysisError extends Error {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
details: FrameErrorDetails;
|
|
21
|
+
/** Every problem found when the model was validated; this error is the first of them. */
|
|
22
|
+
issues: FrameModelIssue[];
|
|
23
|
+
constructor(std?: FrameAnalysisErrorType, details?: FrameErrorDetails, issues?: FrameModelIssue[]);
|
|
24
|
+
}
|
|
25
|
+
/** One problem found in a frame model, as returned by `validateFrameModel`. */
|
|
26
|
+
export interface FrameModelIssue {
|
|
27
|
+
code: number;
|
|
28
|
+
message: string;
|
|
29
|
+
details: FrameErrorDetails;
|
|
30
|
+
}
|
|
31
|
+
type FrameAnalysisErrorType = {
|
|
32
|
+
code: number;
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const FrameErrors: Record<string, FrameAnalysisErrorType>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
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, area or load refers to a node, member or area id that is not in the model.",
|
|
24
|
+
},
|
|
25
|
+
DUPLICATE_ID: {
|
|
26
|
+
code: 303,
|
|
27
|
+
message: "Node ids, member ids, area 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
|
+
INVALID_AREA_GEOMETRY: {
|
|
74
|
+
code: 315,
|
|
75
|
+
message: "An area must have 3 or 4 distinct nodes forming a planar, convex polygon with no three corners in line; a cantilever area must be a rectangle.",
|
|
76
|
+
},
|
|
77
|
+
AREA_EDGE_UNSUPPORTED: {
|
|
78
|
+
code: 316,
|
|
79
|
+
message: "An area edge that carries load is not fully covered by members: every segment between the nodes along the edge needs a member.",
|
|
80
|
+
},
|
|
81
|
+
INVALID_AREA_DISTRIBUTION: {
|
|
82
|
+
code: 317,
|
|
83
|
+
message: "An area's supportEdges do not fit its distribution: two-way takes none; one-way needs at least one edge left unsupported, with every unsupported edge parallel to the others (the span direction); cantilever needs exactly one, and its loads may not act along that edge.",
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
//# 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":";;;AAiBA,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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;KACjK;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,gJAAgJ;KACnJ;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,gIAAgI;KACnI;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE,GAAG;QACT,OAAO,EACL,6QAA6Q;KAChR;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, AREA_GEOMETRY_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.AREA_GEOMETRY_TOLERANCE = 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,20 @@ 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; } });
|
|
28
|
+
Object.defineProperty(exports, "AREA_GEOMETRY_TOLERANCE", { enumerable: true, get: function () { return frame_constant_1.AREA_GEOMETRY_TOLERANCE; } });
|
|
20
29
|
// Errors
|
|
21
30
|
var rc_design_error_1 = require("./errors/rc-design.error");
|
|
22
31
|
Object.defineProperty(exports, "RCDesignError", { enumerable: true, get: function () { return rc_design_error_1.RCDesignError; } });
|
|
23
32
|
Object.defineProperty(exports, "Errors", { enumerable: true, get: function () { return rc_design_error_1.Errors; } });
|
|
33
|
+
var frame_analysis_error_1 = require("./errors/frame-analysis.error");
|
|
34
|
+
Object.defineProperty(exports, "FrameAnalysisError", { enumerable: true, get: function () { return frame_analysis_error_1.FrameAnalysisError; } });
|
|
35
|
+
Object.defineProperty(exports, "FrameErrors", { enumerable: true, get: function () { return frame_analysis_error_1.FrameErrors; } });
|
|
24
36
|
//# 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,6DASoC;AARlC,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;AACrB,yHAAA,uBAAuB,OAAA;AAGzB,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,20 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* Relative tolerance for null-area geometry (planarity, corners in line, parallel or square
|
|
17
|
+
* edges, nodes lying on an edge): distances are compared with this times the longest edge.
|
|
18
|
+
*/
|
|
19
|
+
export const AREA_GEOMETRY_TOLERANCE = 1e-6;
|
|
20
|
+
//# 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;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,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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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,82 @@
|
|
|
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, area or load refers to a node, member or area id that is not in the model.",
|
|
20
|
+
},
|
|
21
|
+
DUPLICATE_ID: {
|
|
22
|
+
code: 303,
|
|
23
|
+
message: "Node ids, member ids, area 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
|
+
INVALID_AREA_GEOMETRY: {
|
|
70
|
+
code: 315,
|
|
71
|
+
message: "An area must have 3 or 4 distinct nodes forming a planar, convex polygon with no three corners in line; a cantilever area must be a rectangle.",
|
|
72
|
+
},
|
|
73
|
+
AREA_EDGE_UNSUPPORTED: {
|
|
74
|
+
code: 316,
|
|
75
|
+
message: "An area edge that carries load is not fully covered by members: every segment between the nodes along the edge needs a member.",
|
|
76
|
+
},
|
|
77
|
+
INVALID_AREA_DISTRIBUTION: {
|
|
78
|
+
code: 317,
|
|
79
|
+
message: "An area's supportEdges do not fit its distribution: two-way takes none; one-way needs at least one edge left unsupported, with every unsupported edge parallel to the others (the span direction); cantilever needs exactly one, and its loads may not act along that edge.",
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=frame-analysis.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-analysis.error.js","sourceRoot":"","sources":["../../../../src/core/errors/frame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