Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit f3909c3

Browse files
committed
Code review changes done
1 parent 7e53e41 commit f3909c3

22 files changed

Lines changed: 344 additions & 344 deletions

examples/high_level_functions_demos/addon_steel_design.js

Lines changed: 162 additions & 158 deletions
Large diffs are not rendered by default.

includes/AddOns/SteelDesign/FireResistanceConfiguration.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ SteelDesignFireResistanceConfiguration.prototype.SetName = function (name) {
4848
* Defines final temperature
4949
* @param {String} property_define_final_temperature Final temperature (MANUALLY, ANALYTICALLY), can be undefined (is not set, ANALYTICALLY as default)
5050
*/
51-
SteelDesignFireResistanceConfiguration.prototype.FinalTemperature = function (property_define_final_temperature) {
51+
SteelDesignFireResistanceConfiguration.prototype.SetFinalTemperature = function (property_define_final_temperature) {
5252
if (IsCurrentCodeOfStandard("EN")) {
5353
var container = this.addon.settings_ec3;
5454
}
@@ -70,7 +70,7 @@ SteelDesignFireResistanceConfiguration.prototype.FinalTemperature = function (pr
7070
* @param {Boolean} property_fire_exposure_3_sides_covered_width_user_defined Assume user-defined width of section as covered, can be undefined (is not set, false as default)
7171
* @param {Number} property_fire_exposure_3_sides_covered_width_user_defined_value User-defined width, can be undefined (is not set, 0 s. as default)
7272
*/
73-
SteelDesignFireResistanceConfiguration.prototype.AnalyticallyDesignSettings = function (property_required_time_of_fire_resistance,
73+
SteelDesignFireResistanceConfiguration.prototype.SetAnalyticallyDesignSettings = function (property_required_time_of_fire_resistance,
7474
property_time_interval_of_analysis,
7575
property_fire_exposure,
7676
property_fire_exposure_3_sides_covered_width_calculated,
@@ -97,7 +97,7 @@ SteelDesignFireResistanceConfiguration.prototype.AnalyticallyDesignSettings = fu
9797
* @param {Number} property_specific_heat Specific heat, can be undefined (is not set, 1200.0 as default)
9898
* @param {Number} property_thickness Thickness, can be undefined (is not set, 10.0 as default)
9999
*/
100-
SteelDesignFireResistanceConfiguration.prototype.AnalyticallyFireProtection = function (property_protection_type,
100+
SteelDesignFireResistanceConfiguration.prototype.SetAnalyticallyFireProtection = function (property_protection_type,
101101
property_unit_mass,
102102
property_thermal_conductivity,
103103
property_specific_heat,
@@ -121,7 +121,7 @@ SteelDesignFireResistanceConfiguration.prototype.AnalyticallyFireProtection = fu
121121
* @param {Boolean} property_hydrocarbon_curve Hydrocarbon curve, can be undefined (is not set, false as default)
122122
* @param {Number} property_coefficient_of_heat_transfer_by_convention Coefficient of heat transfer by convection, can be undefined (is not set, 25 as default)
123123
*/
124-
SteelDesignFireResistanceConfiguration.prototype.AnalyticallyTemperatureCurve = function (property_standard_temperature_time_curve,
124+
SteelDesignFireResistanceConfiguration.prototype.SetAnalyticallyTemperatureCurve = function (property_standard_temperature_time_curve,
125125
property_external_fire_curve,
126126
property_hydrocarbon_curve,
127127
property_coefficient_of_heat_transfer_by_convention) {
@@ -146,7 +146,7 @@ SteelDesignFireResistanceConfiguration.prototype.AnalyticallyTemperatureCurve =
146146
* @param {Number} property_temperature_limit_of_galvanization_effect Galvanized surface of carbon steel member, Temperature limit of galvanization effect, can be undefined (is not set, 500 as default)
147147
* @param {Number} property_surface_emissivity_of_carbon_steel_member_with_temperature_below_limit Galvanized surface of carbon steel member, Surface emissivity of carbon steel member with temperature below, can be undefined (is not set, 0.350 as default)
148148
*/
149-
SteelDesignFireResistanceConfiguration.prototype.AnalyticallyThermalActions = function (property_configuration_factor,
149+
SteelDesignFireResistanceConfiguration.prototype.SetAnalyticallyThermalActions = function (property_configuration_factor,
150150
property_surface_emissivity_of_carbon_steel_member,
151151
property_surface_emissivity_of_stainless_steel_member,
152152
property_emissivity_of_fire,
@@ -171,7 +171,7 @@ SteelDesignFireResistanceConfiguration.prototype.AnalyticallyThermalActions = fu
171171
* @param {String} property_fire_exposure Fire exposure (3_SIDES, ALL_SIDES), can be undefined (is not set, ALL_SIDES as default)
172172
* @param {Boolean} property_member_with_fire_protection Member with fire protection, can be undefined (is not set, false as default)
173173
*/
174-
SteelDesignFireResistanceConfiguration.prototype.ManuallyFinalTemperature = function (property_material_final_temperature,
174+
SteelDesignFireResistanceConfiguration.prototype.SetManuallyFinalTemperature = function (property_material_final_temperature,
175175
property_fire_exposure,
176176
property_member_with_fire_protection) {
177177
if (IsCurrentCodeOfStandard("EN")) {

includes/AddOns/SteelDesign/ServiceabilityConfiguration.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ SteelDesignServiceabilityConfiguration.prototype.SetName = function (name) {
5151
* @param {Boolean} property_lowb_road_bridge Limitation of web breathing, Road bridge, can be undefined (is not set, true as default)
5252
* @param {Boolean} property_lowb_railway_bridge Limitation of web breathing, Railway bridge, can be undefined (is not set, false as default)
5353
*/
54-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersEC3 = function (property_sl_beam_limit_characteristic,
54+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersEC3 = function (property_sl_beam_limit_characteristic,
5555
property_sl_beam_limit_frequent,
5656
property_sl_beam_limit_quasi_permanent,
5757
property_sl_cantilever_limit_characteristic,
@@ -100,7 +100,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersEC3 = function
100100
* @param {Number} property_sl_beam_limit Beam limits, can be undefined (is not set, 360 as default)
101101
* @param {Number} property_sl_cantilever_limit Cantilever limits, can be undefined (is not set, 180 as default)
102102
*/
103-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersAISC = function (property_sl_beam_limit,
103+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersAISC = function (property_sl_beam_limit,
104104
property_sl_cantilever_limit) {
105105
if (typeof property_sl_beam_limit !== "undefined") {
106106
this.addon.settings_aisc.property_sl_beam_limit = property_sl_beam_limit;
@@ -115,7 +115,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersAISC = function
115115
* @param {Number} property_sl_beam_limit Beam limits, can be undefined (is not set, 360 as default)
116116
* @param {Number} property_sl_cantilever_limit Cantilever limits, can be undefined (is not set, 180 as default)
117117
*/
118-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersIS = function (property_sl_beam_limit,
118+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersIS = function (property_sl_beam_limit,
119119
property_sl_cantilever_limit) {
120120
if (typeof property_sl_beam_limit !== "undefined") {
121121
this.addon.settings_is.property_sl_beam_limit = property_sl_beam_limit;
@@ -131,7 +131,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersIS = function (
131131
* @param {Number} property_sl_cantilever_limit_value Cantilever limits, can be undefined (is not set, 180 as default)
132132
* @param {Number} property_vibration_design Vibration design, can be undefined (is not set, 5 mm as default)
133133
*/
134-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersBS = function (property_sl_beam_limit_value,
134+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersBS = function (property_sl_beam_limit_value,
135135
property_sl_cantilever_limit_value,
136136
property_vibration_design) {
137137
if (typeof property_sl_beam_limit_value !== "undefined") {
@@ -152,7 +152,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersBS = function (
152152
* @param {Number} property_sl_cantilever_limit_characteristic_permanent_and_variable Cantilever limits acc. to GB 50017, Annex B, permanent and variable, can be undefined (is not set, 500 as default)
153153
* @param {Number} property_sl_cantilever_limit_characteristic_variable Cantilever limits acc. to GB 50017, Annex B, variable, can be undefined (is not set, 500 as default)
154154
*/
155-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersGB = function (property_sl_beam_limit_characteristic_permanent_and_variable,
155+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersGB = function (property_sl_beam_limit_characteristic_permanent_and_variable,
156156
property_sl_beam_limit_characteristic_variable,
157157
property_sl_cantilever_limit_characteristic_permanent_and_variable,
158158
property_sl_cantilever_limit_characteristic_variable) {
@@ -175,7 +175,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersGB = function (
175175
* @param {Number} property_sl_beam_limit Beam limits, can be undefined (is not set, 360 as default)
176176
* @param {Number} property_sl_cantilever_limit Cantilever limits, can be undefined (is not set, 180 as default)
177177
*/
178-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersCSA = function (property_sl_beam_limit,
178+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersCSA = function (property_sl_beam_limit,
179179
property_sl_cantilever_limit) {
180180
if (typeof property_sl_beam_limit !== "undefined") {
181181
this.addon.settings_csa.property_sl_beam_limit = property_sl_beam_limit;
@@ -192,7 +192,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersCSA = function
192192
* @param {Number} property_sl_cantilever_limit_short_term_effects Cantilever limits, short-term effects, can be undefined (is not set, 250 as default)
193193
* @param {Number} property_sl_cantilever_limit_long_term_effects Cantilever effects, long-term effects, can be undefined (is not set, 125 as default)
194194
*/
195-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersAS = function (property_sl_beam_limit_short_term_effects,
195+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersAS = function (property_sl_beam_limit_short_term_effects,
196196
property_sl_beam_limit_long_term_effects,
197197
property_sl_cantilever_limit_short_term_effects,
198198
property_sl_cantilever_limit_long_term_effects) {
@@ -215,7 +215,7 @@ SteelDesignServiceabilityConfiguration.prototype.DesignParametersAS = function (
215215
* @param {Number} property_sl_beam_limit Beam limits, can be undefined (is not set, 360 as default)
216216
* @param {Number} property_sl_cantilever_limit Cantilever limits, can be undefined (is not set, 180 as default)
217217
*/
218-
SteelDesignServiceabilityConfiguration.prototype.DesignParametersSP = function (property_sl_beam_limit,
218+
SteelDesignServiceabilityConfiguration.prototype.SetDesignParametersSP = function (property_sl_beam_limit,
219219
property_sl_cantilever_limit) {
220220
if (typeof property_sl_beam_limit !== "undefined") {
221221
this.addon.settings_sp16.property_sl_beam_limit = property_sl_beam_limit;

includes/AddOns/SteelDesign/SteelDesignSupport.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Member sets cannot be set?? What condition for member sets?
33
*/
44

5+
include("../../Tools/global.js");
6+
57
function createBaseSteelDesignConfiguration (object_to_create,
68
no,
79
members_no,
@@ -29,6 +31,7 @@ setSteelDesign_Members = function (object_to_set,
2931
members_no = [];
3032
for (var i = 0; i < member_list.length; ++i) {
3133
if (members.exist(member_list[i])) {
34+
ASSERT(__hasSteelSection(members[member_list[i]].section_start) && __hasSteelSection(members[member_list[i]].section_end), "Member no. " + member_list[i] + " must have section with " + materials.TYPE_STEEL + " material type");
3235
members_no.push(member_list[i]);
3336
}
3437
else {
@@ -43,6 +46,9 @@ setSteelDesign_Members = function (object_to_set,
4346
member_sets_no = [];
4447
for (var i = 0; i < member_sets_list.length; ++i) {
4548
if (member_sets.exist(member_sets_list[i])) {
49+
for (var j = 0; j < member_sets[member_sets_list[i]].members.length; ++j) {
50+
ASSERT(__hasSteelSection(member_sets[member_sets_list[i]].members[j].section_start) && __hasSteelSection(member_sets[member_sets_list[i]].members[j].section_end), "Member no. " + member_sets_list[i].members[j] + " (member set no. " + member_sets_list[i] + ") must have section with " + materials.TYPE_STEEL + " material type");
51+
}
4652
member_sets_no.push(member_sets_list[i]);
4753
}
4854
else {

includes/AddOns/SteelDesign/StrengthConfigurationAISC.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SteelDesignStrengthConfigurationAISC.prototype.SetName = function (name) {
4242
* Sets general design parameters
4343
* @param {Boolean} property_perform_stability_analysis Perform stability design, can be undefined (true as default)
4444
*/
45-
SteelDesignStrengthConfigurationAISC.prototype.General = function (property_perform_stability_analysis) {
45+
SteelDesignStrengthConfigurationAISC.prototype.SetGeneral = function (property_perform_stability_analysis) {
4646
if (typeof property_perform_stability_analysis === "undefined") {
4747
property_perform_stability_analysis = true;
4848
}
@@ -59,7 +59,7 @@ SteelDesignStrengthConfigurationAISC.prototype.General = function (property_perf
5959
* @param {Number} property_limit_values_bending_about_major_axis_y Bending about major axis Y, can be undefined (is not set, 0.001 as default)
6060
* @param {Number} property_limit_values_bending_about_minor_axis_z Bending about minor axis Z, can be undefined (is not set, 0.001 as default)
6161
*/
62-
SteelDesignStrengthConfigurationAISC.prototype.LimitValues = function (property_limit_values_tension,
62+
SteelDesignStrengthConfigurationAISC.prototype.SetLimitValues = function (property_limit_values_tension,
6363
property_limit_values_compression,
6464
property_limit_values_shear_y,
6565
property_limit_values_shear_z,
@@ -76,7 +76,7 @@ SteelDesignStrengthConfigurationAISC.prototype.LimitValues = function (property_
7676
* @param {Number} property_unstiffened_elements Unstiffened elements, can be undefined (is not set, 12.500)
7777
* @param {Number} property_stiffened_elements Stiffened elements, can be undefined (is not set, 42.000 as default)
7878
*/
79-
SteelDesignStrengthConfigurationAISC.prototype.LocalBuckling = function (property_check_width_thickness_ratio_of_elements_not_defined_in_tab_b4_1b,
79+
SteelDesignStrengthConfigurationAISC.prototype.SetLocalBuckling = function (property_check_width_thickness_ratio_of_elements_not_defined_in_tab_b4_1b,
8080
property_unstiffened_elements,
8181
property_stiffened_elements) {
8282
if (typeof property_check_width_thickness_ratio_of_elements_not_defined_in_tab_b4_1b !== "undefined") {
@@ -99,7 +99,7 @@ SteelDesignStrengthConfigurationAISC.prototype.LocalBuckling = function (propert
9999
* @param {Boolean} property_load_acts_vp_at_center_point At center point, can be undefined (is not set, false as default)
100100
* @param {Boolean} property_load_acts_vp_downwards_on_bottom_flange On profile edge (stabilizing effect)
101101
*/
102-
SteelDesignStrengthConfigurationAISC.prototype.PositionOfPositiveTransverse = function (property_load_acts_vp_downwards_on_top_flange,
102+
SteelDesignStrengthConfigurationAISC.prototype.SetPositionOfPositiveTransverse = function (property_load_acts_vp_downwards_on_top_flange,
103103
property_load_acts_vp_at_shear_point,
104104
property_load_acts_vp_at_center_point,
105105
property_load_acts_vp_downwards_on_bottom_flange) {

includes/AddOns/SteelDesign/UltimateConfigurationAS.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SteelDesignUltimateConfigurationAS.prototype.SetName = function (name) {
4242
* Sets general design parameters
4343
* @param {Boolean} property_perform_stability_analysis Perform stability design, can be undefined (true as default)
4444
*/
45-
SteelDesignUltimateConfigurationAS.prototype.General = function (property_perform_stability_analysis) {
45+
SteelDesignUltimateConfigurationAS.prototype.SetGeneral = function (property_perform_stability_analysis) {
4646
if (typeof property_perform_stability_analysis === "undefined") {
4747
property_perform_stability_analysis = true;
4848
}
@@ -59,7 +59,7 @@ SteelDesignUltimateConfigurationAS.prototype.General = function (property_perfor
5959
* @param {Number} property_limit_values_bending_about_major_axis_y Bending about major axis Y, can be undefined (is not set, 0.001 as default)
6060
* @param {Number} property_limit_values_bending_about_minor_axis_z Bending about minor axis Z, can be undefined (is not set, 0.001 as default)
6161
*/
62-
SteelDesignUltimateConfigurationAS.prototype.LimitValues = function (property_limit_values_tension,
62+
SteelDesignUltimateConfigurationAS.prototype.SetLimitValues = function (property_limit_values_tension,
6363
property_limit_values_compression,
6464
property_limit_values_shear_y,
6565
property_limit_values_shear_z,
@@ -76,7 +76,7 @@ SteelDesignUltimateConfigurationAS.prototype.LimitValues = function (property_li
7676
* @param {Boolean} property_options_use_proportioning_method Use proportioning method acc. to 5.12.2, can be undefined (is not set, false as default)
7777
* @param {Boolean} property_options_use_alternative_calculation Use alternative calculation acc. to 8.3 and 8.4, can be undefined (is not set, false as default)
7878
*/
79-
SteelDesignUltimateConfigurationAS.prototype.Options = function (property_options_plastic_design_acc_to_45_and_843,
79+
SteelDesignUltimateConfigurationAS.prototype.SetOptions = function (property_options_plastic_design_acc_to_45_and_843,
8080
property_options_use_proportioning_method,
8181
property_options_use_alternative_calculation) {
8282
if (typeof property_options_plastic_design_acc_to_45_and_843 !== "undefined") {
@@ -95,7 +95,7 @@ SteelDesignUltimateConfigurationAS.prototype.Options = function (property_option
9595
* @param {Boolean} property_residual_stresses_user_defined User-defined residual stresses to calculate slenderness limits acc. to tab. 5.2 or tab. 6.2.4, can be undefined (is not set, false as default)
9696
* @param {String} property_residual_stresses_type Residual stress (SR - stress relieved, HR - hot-rolled or hot -finished, CF - cold-formed, LW - lightly welded longitudinally, HW - heavily welded longitudinally), can be undefined (is not set, Sr as default)
9797
*/
98-
SteelDesignUltimateConfigurationAS.prototype.SectionManufacture = function (property_residual_stresses_user_defined,
98+
SteelDesignUltimateConfigurationAS.prototype.SetSectionManufacture = function (property_residual_stresses_user_defined,
9999
property_residual_stresses_type) {
100100
if (typeof property_residual_stresses_user_defined != "undefined") {
101101
this.addon.settings_as4100.property_residual_stresses_user_defined = property_residual_stresses_user_defined;
@@ -110,7 +110,7 @@ SteelDesignUltimateConfigurationAS.prototype.SectionManufacture = function (prop
110110
* @param {Boolean} property_vertical_position_at_center_point At center point, can be undefined (is not set, false as default)
111111
* @param {Boolean} property_vertical_position_downwards_on_bottom_flange On profile edge (stabilizing effect)
112112
*/
113-
SteelDesignUltimateConfigurationAS.prototype.PositionOfPositiveTransverse = function (property_vertical_position_downwards_on_top_flange,
113+
SteelDesignUltimateConfigurationAS.prototype.SetPositionOfPositiveTransverse = function (property_vertical_position_downwards_on_top_flange,
114114
property_vertical_position_at_shear_point,
115115
property_vertical_position_at_center_point,
116116
property_vertical_position_downwards_on_bottom_flange) {
@@ -134,7 +134,7 @@ SteelDesignUltimateConfigurationAS.prototype.PositionOfPositiveTransverse = func
134134
* @param {Boolean} property_welded_sections_rolled_flange Rolled flange edges, can be undefined (is not set, true as default)
135135
* @param {Boolean} property_welded_sections_flame_cut_flange Flame-cut flange edges, can be undefined (is not set, false as default)
136136
*/
137-
SteelDesignUltimateConfigurationAS.prototype.FabricationOfWeldedSections = function (property_welded_sections_rolled_flange,
137+
SteelDesignUltimateConfigurationAS.prototype.SetFabricationOfWeldedSections = function (property_welded_sections_rolled_flange,
138138
property_welded_sections_flame_cut_flange) {
139139
ASSERT(this.addon.settings_as4100.property_perform_stability_analysis, "Perform stability design must be on");
140140
if (typeof property_welded_sections_rolled_flange !== "undefined") {

0 commit comments

Comments
 (0)