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": "RC Frame Earthquake (OpenSees Ex 3.3)",
"description": "Ex 3 gravity + uniform base excitation (horizontal, 4-s synthetic record peaking at ~0.35 g) + Rayleigh beta_k",
"author": "OpenSees Examples Manual",
"units": "US (in, kip, kip·s²/in, s, ksi)"
"units": "Imperial (in, kip, kip·s²/in, s, ksi)"
},
"ndm": 2,
"ndf": 3,
@ -313,7 +313,8 @@
"Iz": 8640.0,
"Iy": 8640.0,
"G": 1500.0,
"J": 1.0
"J": 1.0,
"shape": null
}
],
"elements": [
@ -355,9 +356,11 @@
],
"section_id": 2,
"geom_transf": "Linear",
"rho": 0.0
"rho": 0.0,
"consistent_mass": false
}
],
"mp_constraints": [],
"time_series": [
{
"id": 1,
@ -455,7 +458,7 @@
-0.07226305111525733,
-0.08816778784387092,
-0.10268206588930337,
-0.11557698641636836,
-0.11557698641636838,
-0.12664918882530235,
-0.13572405786990283,
-0.142658477444273,
@ -489,7 +492,7 @@
0.14970400926424074,
0.14734308760930329,
0.14265847744427299,
0.13572405786990302,
0.135724057869903,
0.12664918882530243,
0.11557698641636846,
0.10268206588930347,
@ -504,7 +507,7 @@
-0.0552186829027018,
-0.0722630511152573,
-0.08816778784387089,
-0.10268206588930313,
-0.10268206588930316,
-0.11557698641636852,
-0.12664918882530232,
-0.13572405786990294,
@ -566,7 +569,7 @@
-0.14265847744427307,
-0.1357240578699028,
-0.12664918882530243,
-0.11557698641636868,
-0.11557698641636867,
-0.10268206588930333,
-0.08816778784387108,
-0.0722630511152575,
@ -616,12 +619,12 @@
-0.08652674043787481,
-0.08129819692830416,
-0.07492000704231337,
-0.06752087821731563,
-0.05924239844431021,
-0.06752087821731562,
-0.059242398444310215,
-0.05023649120795737,
-0.04066277069740133,
-0.030685841350052333,
-0.020472585578247403,
-0.0204725855782474,
-0.010189482631897374,
-9.832592927142318e-17,
0.009937903409330418,
@ -642,7 +645,7 @@
0.05947903147792919,
0.05481264807294881,
0.04939932978399098,
0.043342664598141574,
0.04334266459814158,
0.03675380211118236,
0.029749518558492356,
0.02245024111907521,
@ -666,9 +669,9 @@
-0.04631442669186875,
-0.04351578902386234,
-0.04010178999412147,
-0.03614132172945704,
-0.036141321729457034,
-0.03171017082019282,
-0.02688965604775296,
-0.026889656047752963,
-0.021765212731031044,
-0.016424947276336123,
-0.010958185402089994,
@ -682,7 +685,7 @@
0.027293196958740988,
0.03033908626567152,
0.03283256872166209,
0.034748063307665326,
0.03474806330766532,
0.03606971177513051,
0.03679138802438222,
0.03691655417444788,
@ -720,7 +723,7 @@
-0.016973231331797612,
-0.014392995708504558,
-0.011650078858431393,
-0.008791640742480778,
-0.008791640742480776,
-0.005865493972298641,
-0.002919335651562286,
-3.943919054879792e-17,
@ -729,7 +732,7 @@
0.008156387432977339,
0.010541427274178315,
0.012701774131668711,
0.014608995592985858,
0.01460899559298586,
0.016239342654524213,
0.01757400763590476,
0.01859929800432925,
@ -742,7 +745,7 @@
0.01704102783102496,
0.015704086601509296,
0.014153144944791883,
0.012417881316069912,
0.012417881316069914,
0.010530140607703934,
0.008523379771289316,
0.00643210177128294,
@ -754,7 +757,7 @@
-0.005967340521710147,
-0.007712272945193301,
-0.009292816470078945,
-0.010688169499041026,
-0.010688169499041028,
-0.011880956889869792,
-0.012857418649655518,
-0.013607537107403339,
@ -774,7 +777,8 @@
-0.003139572682582101,
-0.0015626077711816495
],
"file_path": null
"file_path": null,
"use_last": false
}
],
"load_patterns": [
@ -830,6 +834,7 @@
1,
2
],
"pattern_factors": {},
"dt": 0.01,
"n_steps": 400,
"system": "BandGeneral",
@ -844,7 +849,12 @@
"tolerance": 1e-12,
"max_iter": 10,
"rayleigh_alpha_m": 0.0,
"rayleigh_beta_k": 0.000625
"rayleigh_beta_k": 0.000625,
"rayleigh_beta_k_init": 0.0,
"rayleigh_beta_k_comm": 0.0,
"rayleigh_mode1_damping": null,
"preload_case_ids": [],
"remove_patterns": []
}
]
}