feat: named case-result load combinations with full GUI support
Snapshots the current development tree, headlined by proper load combinations (user request): a reusable LoadCombination entity of weighted completed static-case results (e.g. 1.2xDead + 1.6xLive). - core: LoadCombination/LoadCombinationItem entities, Project integration (lookup, unique ids, reference validation) - services: combinations.py (linear superposition + envelope), exported via services __init__ - commands: undoable Add/Delete/Update for combinations - GUI: Load Combinations manager dialog, Run-dialog evaluation, envelope display in Results panel, Combinations tab in Table dock - tests: unit coverage (validation, math, error paths) + integration superposition check vs a single factored run
This commit is contained in:
commit
f361fee969
560 changed files with 178701 additions and 0 deletions
379
examples/cantilever.osmodel
Normal file
379
examples/cantilever.osmodel
Normal file
|
|
@ -0,0 +1,379 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"meta": {
|
||||
"name": "Cantilever",
|
||||
"description": "",
|
||||
"author": "Ozan",
|
||||
"units": "SI (m, N, kg, s, Pa)"
|
||||
},
|
||||
"ndm": 3,
|
||||
"ndf": 6,
|
||||
"coord_systems": [
|
||||
{
|
||||
"name": "Global",
|
||||
"coord": {
|
||||
"origin": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation_deg": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
"grid": {
|
||||
"x_grid_lines": [],
|
||||
"y_grid_lines": [],
|
||||
"z_grid_lines": [],
|
||||
"visible": true,
|
||||
"is_general": false,
|
||||
"hide_all": false,
|
||||
"glue_to_grid": false,
|
||||
"bubble_size": 20
|
||||
}
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "N1",
|
||||
"coords": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"mass": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"restraint": [
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "N2",
|
||||
"coords": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"mass": [
|
||||
1000.0,
|
||||
1000.0,
|
||||
1000.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"restraint": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "N3",
|
||||
"coords": [
|
||||
2.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"mass": [
|
||||
1000.0,
|
||||
1000.0,
|
||||
1000.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"restraint": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "N4",
|
||||
"coords": [
|
||||
3.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"mass": [
|
||||
1000.0,
|
||||
1000.0,
|
||||
1000.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"restraint": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "N5",
|
||||
"coords": [
|
||||
4.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"mass": [
|
||||
1000.0,
|
||||
1000.0,
|
||||
1000.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"restraint": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "N6",
|
||||
"coords": [
|
||||
5.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"mass": [
|
||||
1000.0,
|
||||
1000.0,
|
||||
1000.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"restraint": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
],
|
||||
"materials": [],
|
||||
"sections": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "W12x40",
|
||||
"type": "ElasticSection",
|
||||
"E": 200000000000.0,
|
||||
"A": 0.0076,
|
||||
"Iz": 0.0002,
|
||||
"Iy": 4.5e-05,
|
||||
"G": 80000000000.0,
|
||||
"J": 8.5e-07
|
||||
}
|
||||
],
|
||||
"elements": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "E1",
|
||||
"type": "ElasticBeamColumn",
|
||||
"nodes": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"section_id": 1,
|
||||
"geom_transf": "Linear",
|
||||
"rho": 0.0
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "E2",
|
||||
"type": "ElasticBeamColumn",
|
||||
"nodes": [
|
||||
2,
|
||||
3
|
||||
],
|
||||
"section_id": 1,
|
||||
"geom_transf": "Linear",
|
||||
"rho": 0.0
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "E3",
|
||||
"type": "ElasticBeamColumn",
|
||||
"nodes": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"section_id": 1,
|
||||
"geom_transf": "Linear",
|
||||
"rho": 0.0
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "E4",
|
||||
"type": "ElasticBeamColumn",
|
||||
"nodes": [
|
||||
4,
|
||||
5
|
||||
],
|
||||
"section_id": 1,
|
||||
"geom_transf": "Linear",
|
||||
"rho": 0.0
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "E5",
|
||||
"type": "ElasticBeamColumn",
|
||||
"nodes": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"section_id": 1,
|
||||
"geom_transf": "Linear",
|
||||
"rho": 0.0
|
||||
}
|
||||
],
|
||||
"time_series": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Ramp",
|
||||
"type": "Linear",
|
||||
"factor": 1.0
|
||||
}
|
||||
],
|
||||
"load_patterns": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "TipLoad",
|
||||
"type": "Plain",
|
||||
"time_series_id": 1,
|
||||
"nodal_loads": [
|
||||
{
|
||||
"node_id": 6,
|
||||
"forces": [
|
||||
0.0,
|
||||
-10000.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
],
|
||||
"element_loads": []
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "UniformLoad",
|
||||
"type": "Plain",
|
||||
"time_series_id": 1,
|
||||
"nodal_loads": [],
|
||||
"element_loads": [
|
||||
{
|
||||
"element_id": 1,
|
||||
"wy": -2000.0,
|
||||
"wz": 0.0,
|
||||
"wx": 0.0
|
||||
},
|
||||
{
|
||||
"element_id": 2,
|
||||
"wy": -2000.0,
|
||||
"wz": 0.0,
|
||||
"wx": 0.0
|
||||
},
|
||||
{
|
||||
"element_id": 3,
|
||||
"wy": -2000.0,
|
||||
"wz": 0.0,
|
||||
"wx": 0.0
|
||||
},
|
||||
{
|
||||
"element_id": 4,
|
||||
"wy": -2000.0,
|
||||
"wz": 0.0,
|
||||
"wx": 0.0
|
||||
},
|
||||
{
|
||||
"element_id": 5,
|
||||
"wy": -2000.0,
|
||||
"wz": 0.0,
|
||||
"wx": 0.0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"spectra": [],
|
||||
"analyses": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Tip-Load",
|
||||
"type": "Static",
|
||||
"pattern_ids": [
|
||||
1
|
||||
],
|
||||
"n_steps": 1,
|
||||
"load_factor_increment": 1.0,
|
||||
"system": "BandGeneral",
|
||||
"constraints": "Plain",
|
||||
"integrator": "LoadControl",
|
||||
"algorithm": "Linear",
|
||||
"test": "NormDispIncr",
|
||||
"tolerance": 1e-08,
|
||||
"max_iter": 25
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Uniform-Load",
|
||||
"type": "Static",
|
||||
"pattern_ids": [
|
||||
2
|
||||
],
|
||||
"n_steps": 1,
|
||||
"load_factor_increment": 1.0,
|
||||
"system": "BandGeneral",
|
||||
"constraints": "Plain",
|
||||
"integrator": "LoadControl",
|
||||
"algorithm": "Linear",
|
||||
"test": "NormDispIncr",
|
||||
"tolerance": 1e-08,
|
||||
"max_iter": 25
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Modal-3",
|
||||
"type": "Modal",
|
||||
"n_modes": 3,
|
||||
"solver": "genBandArpack"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue