Beam-Column Interaction#
|
Checking a steel member in compression and bending acc. to EN 1993-1-1, 6.3.3, Eq. (6.61) and (6.62), with the interaction factors acc. to Method 1 (Annex A):
Keywords:
beam-column interaction factors Annex A compression and bending effective lengths design check details verification example |
Note
Reference: JRC - Eurocodes: Background & Applications - Design of Steel Buildings (EUR 27346 EN, 2015), Chapter 1, Example 8. The results of RFEM agree with the reference within 2 %.
How to switch the interaction factors to Method 2 (Annex B) and compare both methods is shown in Stability Methods.
from dlubal.api import rfem, common
from math import inf
import pandas
# -------------------------------------------------------
# This example demonstrates the stability check of a steel member subjected to
# compression and bending (beam-column) acc. to EN 1993-1-1, 6.3.3, Eq. (6.61) and (6.62),
# with the interaction factors kyy, kzy determined by Method 1 (Annex A).
#
# Reference:
# JRC - Eurocodes: Background & Applications - Design of Steel Buildings
# (EUR 27346 EN, 2015), Chapter 1, Example 8.
#
# Column A-B, L = 6.0 m, fixed at the base A, pinned and held horizontally at the top B.
# A cantilever arm B-C (3.0 m) is rigidly attached at B and carries 15 kN/m,
# a point load of 920 kN acts at B (design values).
# RHS 200x150x8 hot-finished, S355, Lcr,y = Lcr,z = 0.7 L = 4.2 m.
# NEd = 965 kN, My,Ed = 67.5 kNm (top) / -33.8 kNm (base).
#
# The script creates the model, runs the steel design and compares the components
# of Eq. (6.61) and (6.62) with the values published in the reference.
#
# How to switch the interaction factors to Method 2 (Annex B) and compare both
# methods is shown in the example steel_design_stability_methods.
# -------------------------------------------------------
COLUMN_LENGTH = 6.0 # m
ARM_LENGTH = 3.0 # m
LOAD_ARM = 15.0e3 # N/m
LOAD_TOP = 920.0e3 # N
BUCKLING_FACTOR = 0.7 # Lcr = 0.7 L (fixed - pinned)
# Results published in the reference for Method 1 (Annex A):
# key in the RFEM design check details: (value, caption)
REFERENCE = {
"chi_y": (0.83, "Reduction factor chi_y"),
"chi_z": (0.72, "Reduction factor chi_z"),
"c_my": (0.60, "Equivalent uniform moment factor C_my"),
"k_yy": (0.69, "Interaction factor k_yy"),
"k_zy": (0.40, "Interaction factor k_zy"),
"eta_6_61": (0.99, "Design ratio Eq. (6.61)"),
"eta_6_62": (0.93, "Design ratio Eq. (6.62)"),
}
def define_structure() -> list:
return [
rfem.structure_core.Material(
no=1,
name="S355",
),
rfem.structure_core.CrossSection(
no=1,
name="RHS 200x150x8.0", # hot-finished acc. to EN 10210 ('RHS 200x150x8' is the cold-formed EN 10219 section)
material=1,
),
# Column A-B (vertical, global Z axis points downwards) and arm B-C
rfem.structure_core.Node(no=1),
rfem.structure_core.Node(no=2, coordinate_3=-COLUMN_LENGTH),
rfem.structure_core.Node(no=3, coordinate_1=ARM_LENGTH, coordinate_3=-COLUMN_LENGTH),
rfem.structure_core.Line(no=1, definition_nodes=[1, 2]),
rfem.structure_core.Line(no=2, definition_nodes=[2, 3]),
rfem.structure_core.Member(
no=1,
comment="Column A-B",
line=1,
cross_section_start=1,
),
rfem.structure_core.Member(
no=2,
comment="Arm B-C",
line=2,
cross_section_start=1,
),
rfem.types_for_nodes.NodalSupport(
no=1,
user_defined_name_enabled=True,
name="Fixed",
nodes=[1],
spring=common.Vector3d(x=inf, y=inf, z=inf),
rotational_restraint=common.Vector3d(x=inf, y=inf, z=inf),
),
rfem.types_for_nodes.NodalSupport(
no=2,
user_defined_name_enabled=True,
name="Held horizontally",
nodes=[2],
spring=common.Vector3d(x=inf, y=inf, z=0),
rotational_restraint=common.Vector3d(x=0, y=0, z=0),
),
]
def define_loading() -> list:
# The reference gives design values, so one load case is combined with factor 1.0.
return [
rfem.loading.StaticAnalysisSettings(no=1),
rfem.loading.LoadCase(
no=1,
name="Design loads",
static_analysis_settings=1,
self_weight_active=False,
),
rfem.loading.DesignSituation(
no=1,
design_situation_type=rfem.loading.DesignSituation.DESIGN_SITUATION_TYPE_STR_PERMANENT_AND_TRANSIENT_6_10,
),
rfem.loading.LoadCombination(
no=1,
name="Design loads",
design_situation=1,
static_analysis_settings=1,
combination_rule_str="LC1",
),
rfem.loads.NodalLoad(
no=1,
load_case=1,
nodes=[2],
load_direction=rfem.loads.NodalLoad.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W_TRUE_LENGTH,
force_magnitude=LOAD_TOP,
),
rfem.loads.MemberLoad(
no=1,
load_case=1,
members=[2],
load_distribution=rfem.loads.MemberLoad.LOAD_DISTRIBUTION_UNIFORM,
load_direction=rfem.loads.MemberLoad.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W_TRUE_LENGTH,
magnitude=LOAD_ARM,
),
]
def define_steel_design() -> list:
# Only the column is designed. A hollow section is not susceptible to
# lateral-torsional buckling (chi_LT = 1.0), so LTB is not considered.
return [
rfem.steel_design_objects.SteelDesignUlsConfiguration(
no=1,
assigned_to_members=[1],
),
rfem.steel_design.SteelEffectiveLengths(
no=1,
members=[1],
flexural_buckling_about_y=True,
flexural_buckling_about_z=True,
torsional_buckling=False,
lateral_torsional_buckling=False,
factors=rfem.steel_design.SteelEffectiveLengths.FactorsTable(
rows=[
rfem.steel_design.SteelEffectiveLengths.FactorsRow(
flexural_buckling_u=BUCKLING_FACTOR,
flexural_buckling_v=BUCKLING_FACTOR,
),
]
),
),
]
def select_annex_a(rfem_app: rfem.Application) -> None:
"""
Selects Method 1 (Annex A) for the interaction factors kyy, kyz, kzy, kzz in the
ULS configuration ("Stability" tab of the dialog), as used in the reference.
"""
config = rfem_app.get_object(rfem.steel_design_objects.SteelDesignUlsConfiguration(no=1))
settings = config.settings_ec3
common.tree_table.set_values_by_key(tree=settings, key="param_k_annex_a", values=[True])
rfem_app.update_object(
rfem.steel_design_objects.SteelDesignUlsConfiguration(no=1, settings_ec3=settings)
)
def get_check_values(rfem_app: rfem.Application, design_ratios_df: pandas.DataFrame, check_type: str) -> tuple:
"""
Returns the governing row of the given check type together with the rows of
the section 'Design Check Values' of its design check details.
"""
rows = design_ratios_df[design_ratios_df["design_check_type"] == check_type]
governing = rows.loc[rows["design_ratio"].idxmax()]
details_df = rfem_app.get_results(
results_type=rfem.results.STEEL_DESIGN_DESIGN_CHECK_DETAILS,
filters=[
rfem.results.ResultsFilter(
column_id="design_check_details_id",
filter_expression=str(governing["design_check_details_id"]),
)
],
).data
start = details_df.index[details_df["key"] == "design_check_values"][0]
return governing, details_df.loc[start:]
def get_value(check_values_df: pandas.DataFrame, key: str) -> float:
"""
Returns the full-precision SI value of a key ('value' holds the rounded display text).
"""
row = check_values_df.loc[check_values_df["key"] == key]
return float(row["value_si"].values[0])
# -------------------------------------------------------
# MAIN SCRIPT
# -------------------------------------------------------
with rfem.Application() as rfem_app:
rfem_app.create_model(name="steel_design_beam_column_interaction")
base_data = rfem_app.get_base_data()
base_data.addons.steel_design_active = True
base_data.standards.steel_design_standard = rfem.BaseData.Standards.STEEL_DESIGN_NATIONAL_ANNEX_AND_EDITION_EN_1993_CEN_2015_06_STANDARD
rfem_app.set_base_data(base_data=base_data)
rfem_app.delete_all_objects()
rfem_app.create_object_list(
objs=
define_structure() +
define_loading() +
define_steel_design()
)
select_annex_a(rfem_app)
rfem_app.calculate_all(skip_warnings=True)
design_ratios_df = rfem_app.get_results(
results_type=rfem.results.STEEL_DESIGN_MEMBERS_DESIGN_RATIOS,
member_no="1",
).data
summary = design_ratios_df.sort_values("design_ratio", ascending=False).drop_duplicates("design_check_type")
print("\nGoverning design ratios per check type:")
print(summary[["design_check_type", "design_ratio", "location_x", "design_check_description"]].to_string(index=False))
# Stability check for compression and bending acc. to 6.3.3:
# the details list the components of Eq. (6.61) and Eq. (6.62).
governing, values = get_check_values(rfem_app, design_ratios_df, "ST3100.00")
print(f"\n{governing['design_check_type']} | {governing['design_check_description']} | x = {governing['location_x']} m")
print(f"N_c,Ed = {get_value(values, 'n_c_ed') / 1e3:.1f} kN, M_y,Ed = {get_value(values, 'm_y_ed') / 1e3:.1f} kNm")
print("\nComparison with JRC Example 8 (Annex A):")
print(f"\n{'Quantity':<42}{'RFEM':>10}{'Reference':>12}{'Deviation':>12}")
for key, (ref_value, caption) in REFERENCE.items():
rfem_value = get_value(values, key)
deviation = (rfem_value - ref_value) / ref_value * 100
print(f"{caption:<42}{rfem_value:>10.3f}{ref_value:>12.2f}{deviation:>11.1f}%")
using System.Globalization;
using Google.Protobuf;
using Microsoft.Data.Analysis;
using Common = Dlubal.Api.Common;
using Rfem = Dlubal.Api.Rfem;
// -------------------------------------------------------
// This example demonstrates the stability check of a steel member subjected to
// compression and bending (beam-column) acc. to EN 1993-1-1, 6.3.3, Eq. (6.61) and (6.62),
// with the interaction factors kyy, kzy determined by Method 1 (Annex A).
//
// Reference:
// JRC - Eurocodes: Background & Applications - Design of Steel Buildings
// (EUR 27346 EN, 2015), Chapter 1, Example 8.
//
// Column A-B, L = 6.0 m, fixed at the base A, pinned and held horizontally at the top B.
// A cantilever arm B-C (3.0 m) is rigidly attached at B and carries 15 kN/m,
// a point load of 920 kN acts at B (design values).
// RHS 200x150x8 hot-finished, S355, Lcr,y = Lcr,z = 0.7 L = 4.2 m.
// NEd = 965 kN, My,Ed = 67.5 kNm (top) / -33.8 kNm (base).
//
// The script creates the model, runs the steel design and compares the components
// of Eq. (6.61) and (6.62) with the values published in the reference.
//
// How to switch the interaction factors to Method 2 (Annex B) and compare both
// methods is shown in the example steel_design_stability_methods.
// -------------------------------------------------------
const double COLUMN_LENGTH = 6.0; // m
const double ARM_LENGTH = 3.0; // m
const double LOAD_ARM = 15.0e3; // N/m
const double LOAD_TOP = 920.0e3; // N
const double BUCKLING_FACTOR = 0.7; // Lcr = 0.7 L (fixed - pinned)
// Results published in the reference for Method 1 (Annex A):
// key in the RFEM design check details: (value, caption)
var REFERENCE = new List<(string Key, double Value, string Caption)>
{
("chi_y", 0.83, "Reduction factor chi_y"),
("chi_z", 0.72, "Reduction factor chi_z"),
("c_my", 0.60, "Equivalent uniform moment factor C_my"),
("k_yy", 0.69, "Interaction factor k_yy"),
("k_zy", 0.40, "Interaction factor k_zy"),
("eta_6_61", 0.99, "Design ratio Eq. (6.61)"),
("eta_6_62", 0.93, "Design ratio Eq. (6.62)"),
};
static List<IMessage> DefineStructure()
{
return new List<IMessage>
{
new Rfem.StructureCore.Material
{
No = 1,
Name = "S355",
},
new Rfem.StructureCore.CrossSection
{
No = 1,
Name = "RHS 200x150x8.0", // hot-finished acc. to EN 10210 ('RHS 200x150x8' is the cold-formed EN 10219 section)
Material = 1,
},
// Column A-B (vertical, global Z axis points downwards) and arm B-C
new Rfem.StructureCore.Node { No = 1 },
new Rfem.StructureCore.Node { No = 2, Coordinate3 = -COLUMN_LENGTH },
new Rfem.StructureCore.Node { No = 3, Coordinate1 = ARM_LENGTH, Coordinate3 = -COLUMN_LENGTH },
new Rfem.StructureCore.Line { No = 1, DefinitionNodes = { 1, 2 } },
new Rfem.StructureCore.Line { No = 2, DefinitionNodes = { 2, 3 } },
new Rfem.StructureCore.Member
{
No = 1,
Comment = "Column A-B",
Line = 1,
CrossSectionStart = 1,
},
new Rfem.StructureCore.Member
{
No = 2,
Comment = "Arm B-C",
Line = 2,
CrossSectionStart = 1,
},
new Rfem.TypesForNodes.NodalSupport
{
No = 1,
UserDefinedNameEnabled = true,
Name = "Fixed",
Nodes = { 1 },
SpringX = double.PositiveInfinity,
SpringY = double.PositiveInfinity,
SpringZ = double.PositiveInfinity,
RotationalRestraintX = double.PositiveInfinity,
RotationalRestraintY = double.PositiveInfinity,
RotationalRestraintZ = double.PositiveInfinity,
},
new Rfem.TypesForNodes.NodalSupport
{
No = 2,
UserDefinedNameEnabled = true,
Name = "Held horizontally",
Nodes = { 2 },
SpringX = double.PositiveInfinity,
SpringY = double.PositiveInfinity,
SpringZ = 0,
RotationalRestraintX = 0,
RotationalRestraintY = 0,
RotationalRestraintZ = 0,
},
};
}
static List<IMessage> DefineLoading()
{
// The reference gives design values, so one load case is combined with factor 1.0.
return new List<IMessage>
{
new Rfem.Loading.StaticAnalysisSettings { No = 1 },
new Rfem.Loading.LoadCase
{
No = 1,
Name = "Design loads",
StaticAnalysisSettings = 1,
SelfWeightActive = false,
},
new Rfem.Loading.DesignSituation
{
No = 1,
DesignSituationType = Rfem.Loading.DesignSituation.Types.DesignSituationType.StrPermanentAndTransient610,
},
new Rfem.Loading.LoadCombination
{
No = 1,
Name = "Design loads",
DesignSituation = 1,
StaticAnalysisSettings = 1,
CombinationRuleStr = "LC1",
},
new Rfem.Loads.NodalLoad
{
No = 1,
LoadCase = 1,
Nodes = { 2 },
LoadDirection = Rfem.Loads.NodalLoad.Types.LoadDirection.GlobalZOrUserDefinedWTrueLength,
ForceMagnitude = LOAD_TOP,
},
new Rfem.Loads.MemberLoad
{
No = 1,
LoadCase = 1,
Members = { 2 },
LoadDistribution = Rfem.Loads.MemberLoad.Types.LoadDistribution.Uniform,
LoadDirection = Rfem.Loads.MemberLoad.Types.LoadDirection.GlobalZOrUserDefinedWTrueLength,
Magnitude = LOAD_ARM,
},
};
}
static List<IMessage> DefineSteelDesign()
{
// Only the column is designed. A hollow section is not susceptible to
// lateral-torsional buckling (chi_LT = 1.0), so LTB is not considered.
return new List<IMessage>
{
new Rfem.SteelDesignObjects.SteelDesignUlsConfiguration
{
No = 1,
AssignedToMembers = { 1 },
},
new Rfem.SteelDesign.SteelEffectiveLengths
{
No = 1,
Members = { 1 },
FlexuralBucklingAboutY = true,
FlexuralBucklingAboutZ = true,
TorsionalBuckling = false,
LateralTorsionalBuckling = false,
Factors = new Rfem.SteelDesign.SteelEffectiveLengths.Types.FactorsTable
{
Rows =
{
new Rfem.SteelDesign.SteelEffectiveLengths.Types.FactorsRow
{
FlexuralBucklingU = BUCKLING_FACTOR,
FlexuralBucklingV = BUCKLING_FACTOR,
},
},
},
},
};
}
// Selects Method 1 (Annex A) for the interaction factors kyy, kyz, kzy, kzz in the
// ULS configuration ("Stability" tab of the dialog), as used in the reference.
static void SelectAnnexA(ApplicationRfem rfemApp)
{
var config = rfemApp.get_object<Rfem.SteelDesignObjects.SteelDesignUlsConfiguration>(
new Rfem.SteelDesignObjects.SteelDesignUlsConfiguration { No = 1 }
);
var settings = config.SettingsEc3;
Common.TreeTable.SetValuesByKey(tree: settings, key: "param_k_annex_a", values: new List<object?> { true });
rfemApp.update_object(
new Rfem.SteelDesignObjects.SteelDesignUlsConfiguration { No = 1, SettingsEc3 = settings }
);
}
static double ToDouble(object? cell) => Convert.ToDouble(cell, CultureInfo.InvariantCulture);
static string ToText(object? cell) => cell?.ToString() ?? string.Empty;
// Returns the governing row of the given check type together with the rows of
// the section 'Design Check Values' of its design check details.
static (DataFrameRow Governing, List<DataFrameRow> Values) GetCheckValues(
ApplicationRfem rfemApp, DataFrame designRatios, string checkType)
{
var governing = designRatios.Rows
.Where(row => ToText(row["design_check_type"]) == checkType)
.OrderByDescending(row => ToDouble(row["design_ratio"]))
.First();
Common.Table details = rfemApp.get_results(
resultsType: Rfem.Results.ResultsType.SteelDesignDesignCheckDetails,
filters: new List<Rfem.Results.ResultsFilter>
{
new Rfem.Results.ResultsFilter
{
ColumnId = "design_check_details_id",
FilterExpression = ToText(governing["design_check_details_id"]),
},
}
);
var values = details.Data.Rows
.SkipWhile(row => ToText(row["key"]) != "design_check_values")
.ToList();
return (governing, values);
}
// Returns the full-precision SI value of a key ('value' holds the rounded display text).
static double GetValue(List<DataFrameRow> checkValues, string key)
{
var row = checkValues.First(row => ToText(row["key"]) == key);
return ToDouble(row["value_si"]);
}
// -------------------------------------------------------
// MAIN SCRIPT
// -------------------------------------------------------
ApplicationRfem? rfemApp = null;
try
{
rfemApp = new ApplicationRfem();
rfemApp.create_model(name: "steel_design_beam_column_interaction");
var baseData = rfemApp.get_base_data();
baseData.Addons.SteelDesignActive = true;
baseData.Standards.SteelDesignStandard = Rfem.BaseData.Types.Standards.Types.SteelDesignStandard.SteelDesignNationalAnnexAndEditionEn1993Cen201506Standard;
rfemApp.set_base_data(baseData: baseData);
rfemApp.delete_all_objects();
rfemApp.create_object_list(
DefineStructure()
.Concat(DefineLoading())
.Concat(DefineSteelDesign())
.ToList()
);
SelectAnnexA(rfemApp);
rfemApp.calculate_all(skipWarnings: true);
Common.Table designRatios = rfemApp.get_results(
resultsType: Rfem.Results.ResultsType.SteelDesignMembersDesignRatios,
keywordFilters: new Dictionary<string, object> { ["member_no"] = "1" }
);
Console.WriteLine("\nGoverning design ratios per check type:");
foreach (var row in designRatios.Data.Rows
.GroupBy(row => ToText(row["design_check_type"]))
.Select(group => group.OrderByDescending(row => ToDouble(row["design_ratio"])).First())
.OrderByDescending(row => ToDouble(row["design_ratio"])))
{
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0,-12}{1,8:F3}{2,8:F2} {3}",
row["design_check_type"], ToDouble(row["design_ratio"]),
ToDouble(row["location_x"]), row["design_check_description"]));
}
// Stability check for compression and bending acc. to 6.3.3:
// the details list the components of Eq. (6.61) and Eq. (6.62).
var (governing, values) = GetCheckValues(rfemApp, designRatios.Data, "ST3100.00");
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "\n{0} | {1} | x = {2:0.0##############} m",
governing["design_check_type"], governing["design_check_description"], ToDouble(governing["location_x"])));
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "N_c,Ed = {0:F1} kN, M_y,Ed = {1:F1} kNm",
GetValue(values, "n_c_ed") / 1e3, GetValue(values, "m_y_ed") / 1e3));
Console.WriteLine("\nComparison with JRC Example 8 (Annex A):");
Console.WriteLine($"\n{"Quantity",-42}{"RFEM",10}{"Reference",12}{"Deviation",12}");
foreach (var (key, refValue, caption) in REFERENCE)
{
double rfemValue = GetValue(values, key);
double deviation = (rfemValue - refValue) / refValue * 100;
Console.WriteLine(string.Format(CultureInfo.InvariantCulture,
"{0,-42}{1,10:F3}{2,12:F2}{3,11:F1}%", caption, rfemValue, refValue, deviation));
}
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
finally
{
if (rfemApp != null) rfemApp.close_connection();
}