Skip to content

Minor Bug Fixes and Report Corrections in Connections Module#486

Open
nishikantmandal007 wants to merge 14 commits into
osdag-admin:devfrom
nishikantmandal007:fixes/connection_modules
Open

Minor Bug Fixes and Report Corrections in Connections Module#486
nishikantmandal007 wants to merge 14 commits into
osdag-admin:devfrom
nishikantmandal007:fixes/connection_modules

Conversation

@nishikantmandal007

@nishikantmandal007 nishikantmandal007 commented Jun 20, 2026

Copy link
Copy Markdown
MODULE CHECK PROBLEM SUGGESTIONS TYPE SOLUTION EXPLANATION RESOLUTION
BUTT JOINT Additional inputs all the options present in the additional input is not working like edge preparation method, packing plate, weld. check all the additional input options CRASHING Wrong: Missing inputs caused hard application crashes (KeyErrors). Fixed: Added safe dictionary .get() fallbacks so it no longer crashes. 6542470 [1]
BUTT JOINT Cover Plate Thickness the Tcp condition mentioned reference cannot be find in book and code mention the clause for the used condition SUGGESTIONS Wrong: Multipliers for single (9/8) and double (5/8) cover plates were accidentally swapped in the code. Fixed: Corrected the multipliers so thickness is calculated properly. de4092c [2]
BUTT JOINT Base Metal Capacity the calculation of the Ag and An is not clearly mentioned directly used in the formula mention the calculation of the Ag and An REPORT Wrong: The design report skipped showing how Gross Area (Ag) and Net Area (An) were calculated. Fixed: Added explicit step-by-step calculations for Ag and An in the LaTeX report output. 52fe99e [3]
BUTT JOINT Effective Length the formula used is Leff = Lprovided_line - 2a where s must be there in place of a however the calculated end value uses the s weld size fix the formula of effective length REPORT Wrong: The report formula wrongly displayed 2a (throat thickness) instead of 2s (weld size) for end returns. Fixed: Updated the LaTeX formula string to properly display 2s. b9f9ff2 [4]
LAP JOINT Long Joint Reduction Factor The calculation provided in this is not completely specified. value of lw is not specified REPORT Wrong: Bolted plates were wrongly getting an angle shear lag penalty, and weld length was getting assigned twice. Fixed: Removed the incorrect shear lag penalty for plates and cleaned up variable assignments. ef1091f [5]
LAP JOINT Additional Input Check the additional input check is not working any of the buttons and crashes. make sure the additional input buttons works. CRASHING Wrong: Similar to the Butt Joint, empty inputs crashed the lap joint UI. Fixed: Replaced direct dictionary lookups with safe fallbacks to prevent crashes. 91ee71c [6]
LAP JOINT Length Limits leff,max = 70s this formula used could not be found in code and book specify the usage of 70s. SUGGESTIONS Wrong: The code forced a hard maximum limit of 70s on weld length, which is not specified in IS 800:2007. Fixed: Removed the artificial 70s limit and now relies on the standard long joint reduction factor. 30463d7 [7]
LAP JOINT Plate Tension Capacity Tdn = 0.9Agfuβ is used but the use of beta and Ag is not specified instead the formula mentioned in Clause 6.3.1 is Tdn = 0.9Anfu specify the Ag into beta in place of An. CALCULATIONS Wrong: Welded flat plates were being incorrectly penalized using an angle shear lag factor (β = 0.7). Fixed: Removed β entirely to align with IS 800:2007 Clause 6.3.1, where Tdn = 0.9Anfu. 32b6b7a [8]
BUTT JOINT Additional Inputs Additional Inputs tab crashes on changing any value and clicking save fix the crash for HSFG bolts and unbuilt tabs CRASHING Wrong: Reduction factors for HSFG bolts multiplied against string 'N/A' shear capacity, and unbuilt tabs caused NoneType access. Fixed: Applied reductions to slip resistance and added defensive tab checks. 27f59fd [9]

…preference not captured or applied, dialog crash on accept, welded edge type not stored for report

- Bolted: packing plate combobox was commented out in detailing_values(); restored and added KEY_DP_DETAILING_PACKING_PLATE to values dict
- Bolted: KEY_DP_DETAILING_PACKING_PLATE missing from input_dictionary_design_pref(); capture_design_pref_values() silently discarded the saved value
- Bolted/Welded: set_input_values() always applied packing plate regardless of Yes/No preference; guarded with use_packing flag per IS 800:2007 Cl. 10.3.3.2
- Welded: self.edgetype never set; save_design() always fell back to default edge type in report
- Bolted/Welded: inherited Connection.refresh_input_dock() returned KEY_SUPTNGSEC/KEY_SUPTDSEC keys absent from Butt Joint dock; findChild() returned None causing AttributeError on .currentText(); overrode to return [] in both modules
- template_page.py: added None guard before .currentText() call as second-layer defence
…s were swapped and bolted formula was inverted; correct to 5/8 x Tmin (double) and 9/8 x Tmin (single)

- Bolted set_input_values(): double cover used 9/8 (correct for single), single used 5/8 (correct for double) — values were completely swapped
- Welded set_input_values(): double cover used 9/16 (wrong fraction, slightly below 5/8), single used 5/8 (too thin for single cover)
- Bolted save_design(): LaTeX and t_req followed the same swap; corrected to frac{5}{8} for double and frac{9}{8} for single
- Welded save_design(): tcp_numerator/denominator followed the same swap; corrected to 5/8 for double and 9/8 for single
- Wrong citation "Cl. 10.2.4.2" removed; replaced with honest reference to Indian Machine Design practice (IBR) validated against IS 800:2007 Cl. 10.1
…th Butt Joint modules

- Bolted: store self.n_holes and self.bolt_hole_dia in check_base_metal_strength() for report use
- Bolted save_design(): add 'Gross / Net Area' row showing Ag = b × t_min and An = (b - n_h × d_0) × t_min before the capacity formula rows per IS 800:2007 Cl. 6.2 and 6.3; An row omitted for compression case
- Bolted save_design(): remove silent back-calculation of An_disp; Tdn formula now shows beta = 0.7 shear lag factor explicitly per IS 800:2007 Cl. 6.3.3
- Welded save_design(): add 'Gross / Net Area' row showing Ag = b × t_min and An = Ag (no bolt holes in welded joint) per IS 800:2007 Cl. 6.2 and 6.3
…oat thickness) and wrong substituted value; correct to 2s (weld size) per IS 800:2007 Cl. 10.5.4

- save_design() Effective Length block showed L_eff = L_provided - 2a and substituted effective_throat (= 0.707s), making the printed arithmetic inconsistent with the result
- Code calculation was already correct (L_eff = L_provided - 2s at line 948)
- Changed formula symbol a -> s and substituted value effective_throat -> weld_size
- Added IS 800:2007 Cl. 10.5.4 citation inline in the formula
…packing plate clause 10.3.3.2->10.3.3.3, fix weld L_eff dual assignment

- Bolted check_base_metal_strength(): shear_lag_factor=0.7 was incorrectly applied to plate butt joints; IS 800:2007 Cl. 6.3.3 beta only applies to angles/channels connected through part of cross-section; plates have full width connected -> no shear lag -> T_dn = 0.9 * An * fu / gamma_m1
- Bolted save_design(): LaTeX Net Section Rupture formula updated to remove beta symbol and show Cl. 6.3 instead of Cl. 6.3.3
- Both modules: packing plate comment references corrected from Cl. 10.3.3.2 (large grip) to Cl. 10.3.3.3 (packing plates)
- Welded weld_length(): straight weld path now applies 2s deduction per Cl. 10.5.4 instead of setting L_eff = L_provided without deduction
According to IS 800:2007 Cl. 10.5.7.3, there is no absolute 70s cap on weld length. Instead, a long joint reduction factor beta_lw is applied when l_eff > 150*t_t. Removed the legacy 70s check which conflicted with the actual code.
Definitively removed the incorrect shear lag factor beta=0.7 for tension rupture of flat plates, strictly conforming to IS 800:2007 Cl. 6.3.1.
@nishikantmandal007 nishikantmandal007 force-pushed the fixes/connection_modules branch from 32b6b7a to 17b8937 Compare June 28, 2026 03:55
Fixes the five Lap Joint Bolted tracker issues as one display-layer root cause:

1. Corrects reported fub for Property Class 4.6 from 459 MPa to the backend/IS 1367 value of 400 MPa.

2. Corrects the shear-capacity report formula to display the same fub used by the backend calculation.

3. Corrects the bolt design-capacity report consistency because design capacity is derived from the corrected displayed shear capacity.

4. Confirms the reported number of bolts is not based on the erroneous displayed fub and documents that backend sizing already used 400 MPa.

5. Confirms the bolt arrangement is not unsafe from this issue and documents that arrangement already came from the correct backend capacity.
- Bug 6: Corrected T_dn formula to remove incorrect 0.7 shear lag factor for full-width plate, and scaled T_dg/T_dn to kN for correct report units.
- Bug 7: Utilization ratio correctly computes now since plate capacity is derived accurately.
- Bug 8: design_status is explicitly set to False when overall utilization ratio exceeds 1.0.
- Bug 9: number_bolts layout is forced to be consistent with layout arrangement columns/rows, and correctly displayed in the report.
- Bug 10: Corrected beta_lg formula parenthesis precedence, bound beta_lg <= beta_lj, and enforce bolt recount (revalidation) after applying capacity reduction factor min(beta_lj, beta_lg).
@nishikantmandal007 nishikantmandal007 force-pushed the fixes/connection_modules branch from 87f84ac to 8d6670a Compare June 28, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant