feat: consolidate units to Metric/Imperial with unit-aware dialogs
Some checks failed
CI / lint (push) Has been cancelled
CI / test (macos-latest, 3.10) (push) Has been cancelled
CI / test (macos-latest, 3.11) (push) Has been cancelled
CI / test (macos-latest, 3.12) (push) Has been cancelled
CI / test (ubuntu-latest, 3.10) (push) Has been cancelled
CI / test (ubuntu-latest, 3.11) (push) Has been cancelled
CI / test (ubuntu-latest, 3.12) (push) Has been cancelled
CI / test (windows-latest, 3.10) (push) Has been cancelled
CI / test (windows-latest, 3.11) (push) Has been cancelled
CI / test (windows-latest, 3.12) (push) Has been cancelled

- core/units: two dominant systems (Metric m/kN, Imperial ft/kip) with
  display conversion helpers, legacy 4-system migration in ProjectMeta
- dialogs/docks: unit-aware material, section, case, load, grid and
  results labels; diagram renderer unit labels; render controls update
- docs: add consistent_units.md; regen examples/*.osmodel artifacts
- tests: update persistence/phase8/project/unit-labels for new systems
This commit is contained in:
smillmorel 2026-09-08 16:33:30 -04:00
commit d01a5957b7
99 changed files with 3143 additions and 976 deletions

View file

@ -4,7 +4,7 @@
"name": "OpenSees Ex 2c - Inelastic Fiber-Section Cantilever",
"description": "Nonlinear cantilever with a fiber section built from Concrete02 and Steel02 uniaxial materials.",
"author": "OpenSees Wiki / Silvia Mazzoni & Frank McKenna",
"units": "US (in, kip, kip·s²/in, s, ksi)"
"units": "Imperial (in, kip, kip·s²/in, s, ksi)"
},
"ndm": 2,
"ndf": 3,
@ -4194,7 +4194,8 @@
0.0006658006,
0.0006636009
],
"file_path": "BM68elc.acc"
"file_path": "BM68elc.acc",
"use_last": false
}
],
"load_patterns": [
@ -4258,6 +4259,7 @@
"pattern_ids": [
1
],
"pattern_factors": {},
"n_steps": 10,
"load_factor_increment": 0.1,
"system": "BandGeneral",
@ -4275,6 +4277,7 @@
"pattern_ids": [
200
],
"pattern_factors": {},
"control_node": 2,
"control_dof": 1,
"target_disp": 4.32,
@ -4299,6 +4302,7 @@
"pattern_ids": [
400
],
"pattern_factors": {},
"dt": 0.01,
"n_steps": 1000,
"system": "SparseGeneral",
@ -4314,6 +4318,8 @@
"max_iter": 10,
"rayleigh_alpha_m": 0.0,
"rayleigh_beta_k": 0.0,
"rayleigh_beta_k_init": 0.0,
"rayleigh_beta_k_comm": 0.0,
"rayleigh_mode1_damping": 0.02,
"preload_case_ids": [
1