@ferscloud/fers-calculation 0.2.41 → 0.2.42

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 CHANGED
@@ -165,6 +165,26 @@ import type { FERS, ResultsBundle } from "@ferscloud/fers-calculation-web/fers-m
165
165
 
166
166
  `FERS` is the input model; `ResultsBundle` is the `result` payload of a successful envelope. Both are generated from the engine's OpenAPI schema, so they track the published version.
167
167
 
168
+ ## Deflected shape (optional)
169
+
170
+ Set `include_member_deflected_shape` in the model's analysis options to get a
171
+ ready-to-plot, **load-exact** deflected shape per member — the member's global
172
+ displacement sampled along its length — instead of reconstructing the curve yourself:
173
+
174
+ ```ts
175
+ const model = {
176
+ /* … model + load cases … */
177
+ analysis: { /* … */ options: { /* … */ include_member_deflected_shape: true } },
178
+ };
179
+
180
+ const res = JSON.parse(calculate_from_json(JSON.stringify(model)));
181
+ const mr = res.result.results.loadcases["…"].member_results["1"];
182
+ // mr.member_displacements: [{ x_frac, displacement: [dx, dy, dz] }, …]
183
+ // x_frac 0→1 along the member; displacement in the global input frame.
184
+ ```
185
+
186
+ Off by default to keep the payload lean; omitted from `member_results` when not requested.
187
+
168
188
  ## Links
169
189
 
170
190
  - [Full documentation & getting started](https://ferscloud.com/getting-started)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ferscloud/fers-calculation",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Jeroen124/FERS_calculations.git"