Data Management • Tools
Batch Operations, JSON File Management & Presets
Importing, exporting, and managing complete lug analysis configurations via structured JSON files
1. Overview of File & Batch Management in LugCalc™
Modern aerospace workflows require seamless version control, digital sharing, and rapid configuration swapping. Rather than relying on legacy proprietary binary files, LugCalc™ uses standard, human-readable JSON (JavaScript Object Notation) for all data persistence.
All batch operations and file management features are grouped under the Batch dropdown in the calculator header:
| Batch Menu Option | Action Executed | Engineering Workflow Use Case |
|---|---|---|
| Load Demo Data | Populates all input fields with a verified, balanced aerospace clevis joint case. | Quick testing, training new team members, and verifying calculation results against published benchmarks. |
| Download Inputs JSON | Serializes current fields, options, and custom materials into lug-analysis-inputs.json. |
Version control in Git/SVN, attaching to formal engineering tickets, or sharing with peer stress analysts. |
| Upload Inputs from File | Parses an uploaded .json file, validates all fields, and restores the full analysis state. |
Reloading prior design iterations or checking vendor-supplied connection geometry. |
| Clear All Inputs | Resets all input fields, geometry canvases, and results to default blanks. | Starting a fresh design without leftover legacy parameters from previous calculations. |
2. Structure of the LugCalc JSON File
The exported JSON file contains a complete, auditable snapshot of the analysis configuration:
| Data Block | Contained Properties |
|---|---|
fields |
Applied forces ($P_{ax}, P_{tr}$), factors ($FF, LF$), male dimensions ($w, t, D, e, \alpha, \beta, e_{cct}$), pin diameter ($D_p$), gap ($g$), and female dimensions ($w_F, t_F, D_F, e_F$). |
selects |
Selected material keys for male lug, female lug, pin, and bushings. |
checks |
Boolean flags for pin inclusion, female lugs, and male/female bushings. |
projDesc |
Custom engineering documentation notes, drawing numbers, and author metadata. |
3. Automatic Session Persistence (Local Storage)
Never Lose Your Work: LugCalc automatically commits all field inputs, custom materials, and active tab states to your browser's encrypted local storage (`localStorage`). If your browser tab closes unexpectedly or you refresh the page, your exact inputs are restored immediately upon returning.