Surface Reinforcement#
|
Designing the top and bottom surface reinforcement of a one-way slab with a cantilever acc. to EN 1992-1-1 and checking it against a hand calculation:
Keywords:
surface reinforcement slab cantilever top and bottom reinforcement required reinforcement bending design minimum reinforcement load arrangement design check details verification example |
Note
Reference: hand calculation acc. to EN 1992-1-1 with the rectangular stress block and fyd = 435 MPa, included in the script. The hogging moment at the support, the maximum sagging moment, the effective depth and the minimum and secondary reinforcement agree. RFEM requires up to 1 % less reinforcement because it uses the inclined top branch of the reinforcement stress-strain diagram (σs = 454 MPa) and the smaller lever arm of the two reinforcement layers.
RFEM applies the minimum reinforcement acc. to 9.2.1.1(1) also to the transverse direction wherever that side is in tension. In the slab strip, the Poisson effect causes that tension, so the minimum reinforcement governs the transverse bars.
Punching shear of a flat slab is shown in Punching Internal Column.
from dlubal.api import rfem, common
from math import inf, pi, sqrt
import pandas
# -------------------------------------------------------
# This example demonstrates the design of the top and bottom surface reinforcement of a
# one-way slab with a cantilever acc. to EN 1992-1-1 (CEN, recommended values): the
# required reinforcement for bending on both sides, the check of the provided meshes,
# the minimum reinforcement and the secondary transverse reinforcement.
#
# Slab:
# h = 200 mm, C30/37, B500S(A), span L = 5.0 m between a hinged and a sliding line
# support, cantilever C = 2.0 m beyond the sliding support, concrete cover 25 mm.
# Bottom mesh: bars 10 mm at 150 mm in the span direction (5.24 cm2/m, outer layer),
# top mesh: bars 10 mm at 200 mm (3.93 cm2/m, outer layer), transverse bars 8 mm at
# 200 mm (2.51 cm2/m) in both meshes. Both meshes cover the whole slab.
# RFEM applies the minimum reinforcement of 9.2.1.1(1) also in direction 2 wherever
# that side is in tension, here from the Poisson effect, which governs the transverse bars.
# g_k = 25 kN/m3 x 0.20 m + 1.5 kN/m2 finishes = 6.5 kN/m2, q_k = 3.0 kN/m2.
#
# Load combinations acc. to Eq. (6.10), the imposed load arranged for each extreme:
# CO1 1.35 g_k + 1.5 q_k on the span and the cantilever -> maximum hogging moment
# CO2 1.35 g_k on both, 1.5 q_k on the span only -> maximum sagging moment
# All permanent actions take the same partial factor, EN 1990 Table A1.2(B), Note 3.
#
# Modelling:
# A strip of 1 m width is modelled. Its long edges are lines of symmetry of a wide
# slab: they may move vertically but cannot rotate about their own axis. The strip
# then bends like the wide slab, and m_y = nu m_x from the Poisson effect.
# The FE mesh is refined to 0.1 m so that a mesh node lies close to the maximum of
# the sagging moment.
#
# Reference:
# Hand calculation acc. to EN 1992-1-1 with the rectangular stress block (3.1.7(3)) and
# the horizontal top branch of the reinforcement stress-strain diagram (f_yd = 435 MPa).
# RFEM uses the inclined top branch (sigma_s = 454 MPa) and designs both directions with
# the smaller lever arm of the two reinforcement layers, so its required reinforcement
# is up to 1 % lower.
# -------------------------------------------------------
SPAN = 5.0 # m
CANTILEVER = 2.0 # m
WIDTH = 1.0 # m, modelled strip
THICKNESS = 0.20 # m
COVER = 0.025 # m, concrete cover of the outer bars, top and bottom
G_FINISHES = 1.5e3 # N/m2
Q_K = 3.0e3 # N/m2, imposed load (category A)
MESH_SIZE = 0.1 # m, target length of the finite elements
BAR_1, SPACING_1_BOTTOM, SPACING_1_TOP = 0.010, 0.150, 0.200 # m, bars in the span direction (direction 1)
BAR_2, SPACING_2 = 0.008, 0.200 # m, transverse bars (direction 2)
# -------------------------------------------------------
# Hand calculation acc. to EN 1992-1-1
# -------------------------------------------------------
F_CK, F_YK, F_CTM = 30e6, 500e6, 2.9e6 # Pa
F_CD = 1.0 * F_CK / 1.5 # alpha_cc = 1.0, gamma_c = 1.5
F_YD = F_YK / 1.15 # gamma_s = 1.15
LAMBDA = 0.8 # rectangular stress block, f_ck <= 50 MPa
g_ed = 1.35 * (25e3 * THICKNESS + G_FINISHES) # N/m2
q_ed = 1.5 * Q_K # N/m2
# CO1: hogging moment at the support, statically determinate
m_ed_top = (g_ed + q_ed) * CANTILEVER**2 / 2 # Nm/m
# CO2: support reaction at the hinged end and the maximum sagging moment in the span
m_support = g_ed * CANTILEVER**2 / 2 # Nm/m
reaction = (g_ed + q_ed) * SPAN / 2 - m_support / SPAN # N/m
x_max = reaction / (g_ed + q_ed) # m
m_ed_bottom = reaction**2 / (2 * (g_ed + q_ed)) # Nm/m
d_1 = THICKNESS - COVER - BAR_1 / 2 # m, direction 1 (outer layer), top and bottom
d_2 = THICKNESS - COVER - BAR_1 - BAR_2 / 2 # m, direction 2 (inner layer)
def required_reinforcement(m_ed: float) -> tuple:
"""
Returns the lever arm and the required reinforcement for the moment m_ed (rectangular stress block).
"""
mu = m_ed / (WIDTH * d_1**2 * F_CD)
xi = (1 - sqrt(1 - 2 * mu)) / LAMBDA # x / d
z = d_1 * (1 - LAMBDA * xi / 2) # m
return z, m_ed / (z * F_YD) # m, m2/m
z_top, a_s_req_top = required_reinforcement(m_ed_top)
z_bottom, a_s_req_bottom = required_reinforcement(m_ed_bottom)
a_s_prov_1_top = pi * BAR_1**2 / 4 / SPACING_1_TOP # m2/m
a_s_prov_1_bottom = pi * BAR_1**2 / 4 / SPACING_1_BOTTOM # m2/m
a_s_prov_2 = pi * BAR_2**2 / 4 / SPACING_2 # m2/m
a_s_min_2 = max(0.26 * F_CTM / F_YK, 0.0013) * WIDTH * d_2 # 9.2.1.1(1), direction 2
# Results of the hand calculation: key -> (value, unit, caption)
REFERENCE = {
"d": (d_1 * 1e3, "mm", "Effective depth d, direction 1"),
"m_ed_top": (m_ed_top / 1e3, "kNm/m", "Top: m_Ed at the support (CO1)"),
"z_top": (z_top * 1e3, "mm", "Top: lever arm z"),
"a_s_req_top": (a_s_req_top * 1e4, "cm2/m", "Top: required reinforcement A_s,req"),
"eta_top": (a_s_req_top / a_s_prov_1_top, "-", "Top: design ratio A_s,req / A_s,prov"),
"m_ed_bottom": (m_ed_bottom / 1e3, "kNm/m", "Bottom: maximum m_Ed in the span (CO2)"),
"z_bottom": (z_bottom * 1e3, "mm", "Bottom: lever arm z"),
"a_s_req_bottom": (a_s_req_bottom * 1e4, "cm2/m", "Bottom: required reinforcement A_s,req"),
"eta_bottom": (a_s_req_bottom / a_s_prov_1_bottom, "-", "Bottom: design ratio A_s,req / A_s,prov"),
"eta_min": (a_s_min_2 / a_s_prov_2, "-", "Minimum reinforcement dir. 2 A_s,min / A_s,prov"),
"eta_sec": (0.2 * a_s_prov_1_bottom / a_s_prov_2, "-", "Secondary reinforcement 20 % / A_s,prov,2"),
}
def define_structure() -> list:
# The surfaces refer to the concrete design objects: concrete covers,
# durability, reinforcement directions and the ULS configuration.
concrete_design_of_surface = dict(
thickness=1,
is_user_defined_concrete_cover_enabled=True,
user_defined_concrete_cover_top=COVER,
user_defined_concrete_cover_bottom=COVER,
concrete_durability_top=1,
concrete_durability_bottom=1,
reinforcement_direction_top=1,
reinforcement_direction_bottom=1,
surface_concrete_design_uls_configuration=1,
)
return [
rfem.structure_core.Material(no=1, name="C30/37"),
rfem.structure_core.Material(no=2, name="B500S(A)"),
rfem.structure_core.Thickness(
no=1,
material=1,
uniform_thickness=THICKNESS,
),
rfem.structure_core.Node(no=1, coordinate_1=0.0, coordinate_2=0.0),
rfem.structure_core.Node(no=2, coordinate_1=SPAN, coordinate_2=0.0),
rfem.structure_core.Node(no=3, coordinate_1=SPAN + CANTILEVER, coordinate_2=0.0),
rfem.structure_core.Node(no=4, coordinate_1=SPAN + CANTILEVER, coordinate_2=WIDTH),
rfem.structure_core.Node(no=5, coordinate_1=SPAN, coordinate_2=WIDTH),
rfem.structure_core.Node(no=6, coordinate_1=0.0, coordinate_2=WIDTH),
rfem.structure_core.Line(no=1, definition_nodes=[1, 2]),
rfem.structure_core.Line(no=2, definition_nodes=[2, 5]),
rfem.structure_core.Line(no=3, definition_nodes=[5, 6]),
rfem.structure_core.Line(no=4, definition_nodes=[6, 1]),
rfem.structure_core.Line(no=5, definition_nodes=[2, 3]),
rfem.structure_core.Line(no=6, definition_nodes=[3, 4]),
rfem.structure_core.Line(no=7, definition_nodes=[4, 5]),
# Surface 1: the span, surface 2: the cantilever
rfem.structure_core.Surface(no=1, boundary_lines=[1, 2, 3, 4], **concrete_design_of_surface),
rfem.structure_core.Surface(no=2, boundary_lines=[5, 6, 7, 2], **concrete_design_of_surface),
# Hinged support at the end of the span, sliding support at the cantilever
rfem.types_for_lines.LineSupport(
no=1,
user_defined_name_enabled=True,
name="Hinged",
lines=[4],
spring=common.Vector3d(x=inf, y=inf, z=inf),
rotational_restraint=common.Vector3d(x=0, y=0, z=0),
),
rfem.types_for_lines.LineSupport(
no=2,
user_defined_name_enabled=True,
name="Sliding",
lines=[2],
spring=common.Vector3d(x=0, y=inf, z=inf),
rotational_restraint=common.Vector3d(x=0, y=0, z=0),
),
# Long edges: lines of symmetry of a wide slab
rfem.types_for_lines.LineSupport(
no=3,
user_defined_name_enabled=True,
name="Symmetry",
lines=[1, 3, 5, 7],
spring=common.Vector3d(x=0, y=0, z=0),
rotational_restraint=common.Vector3d(x=inf, y=0, z=0),
),
]
def define_loading() -> list:
# The self-weight is applied by the load case (25 kN/m3 of C30/37). The imposed load
# on the span and on the cantilever are separate load cases, so that the combinations
# can arrange it for the maximum hogging and the maximum sagging moment.
return [
rfem.loading.StaticAnalysisSettings(no=1),
rfem.loading.LoadCase(
no=1,
name="Permanent",
static_analysis_settings=1,
self_weight_active=True,
action_category=rfem.loading.LoadCase.ACTION_CATEGORY_PERMANENT_G,
),
rfem.loading.LoadCase(
no=2,
name="Imposed - span",
static_analysis_settings=1,
self_weight_active=False,
action_category=rfem.loading.LoadCase.ACTION_CATEGORY_IMPOSED_LOADS_CATEGORY_A_DOMESTIC_RESIDENTIAL_AREAS_QI_A,
),
rfem.loading.LoadCase(
no=3,
name="Imposed - cantilever",
static_analysis_settings=1,
self_weight_active=False,
action_category=rfem.loading.LoadCase.ACTION_CATEGORY_IMPOSED_LOADS_CATEGORY_A_DOMESTIC_RESIDENTIAL_AREAS_QI_A,
),
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="Max hogging",
design_situation=1,
static_analysis_settings=1,
combination_rule_str="1.35*LC1 + 1.5*LC2 + 1.5*LC3",
),
rfem.loading.LoadCombination(
no=2,
name="Max sagging",
design_situation=1,
static_analysis_settings=1,
combination_rule_str="1.35*LC1 + 1.5*LC2",
),
rfem.loads.SurfaceLoad(no=1, load_case=1, surfaces=[1, 2], uniform_magnitude=G_FINISHES),
rfem.loads.SurfaceLoad(no=1, load_case=2, surfaces=[1], uniform_magnitude=Q_K),
rfem.loads.SurfaceLoad(no=1, load_case=3, surfaces=[2], uniform_magnitude=Q_K),
]
def define_concrete_design() -> list:
# Created before the surfaces, which refer to them.
return [
rfem.concrete_design_objects.ConcreteDesignUlsConfiguration(
no=1,
assigned_to_all_surfaces=True,
),
# Closed interior spaces (XC1)
rfem.reinforcement.ConcreteDurability(
no=1,
surfaces=[1, 2],
corrosion_induced_by_carbonation_enabled=True,
corrosion_induced_by_carbonation=rfem.reinforcement.ConcreteDurability.CORROSION_INDUCED_BY_CARBONATION_DRY_OR_PERMANENTLY_WET,
),
# Direction 1 along the global x-axis (the span), direction 2 across
rfem.reinforcement.ReinforcementDirection(
no=1,
surfaces=[1, 2],
),
# Provided bottom mesh: direction 1 is the outer layer
rfem.reinforcement.SurfaceReinforcement(
no=1,
surfaces=[1, 2],
material=2,
location_type=rfem.reinforcement.SurfaceReinforcement.LOCATION_TYPE_ON_SURFACE,
definition_type=rfem.reinforcement.SurfaceReinforcement.DEFINITION_TYPE_REBAR_2_LAYERS,
rebar_diameter=BAR_1,
rebar_spacing=SPACING_1_BOTTOM,
orthogonal_rebar_diameter=BAR_2,
orthogonal_rebar_spacing=SPACING_2,
alignment_top_enabled=False,
alignment_bottom_enabled=True,
),
# Provided top mesh: direction 1 is the outer layer
rfem.reinforcement.SurfaceReinforcement(
no=2,
surfaces=[1, 2],
material=2,
location_type=rfem.reinforcement.SurfaceReinforcement.LOCATION_TYPE_ON_SURFACE,
definition_type=rfem.reinforcement.SurfaceReinforcement.DEFINITION_TYPE_REBAR_2_LAYERS,
rebar_diameter=BAR_1,
rebar_spacing=SPACING_1_TOP,
orthogonal_rebar_diameter=BAR_2,
orthogonal_rebar_spacing=SPACING_2,
alignment_top_enabled=True,
alignment_bottom_enabled=False,
),
]
def get_governing_check(design_ratios_df: pandas.DataFrame, check_type: str) -> pandas.Series:
"""
Returns the row with the highest design ratio for the given design check type.
"""
rows = design_ratios_df[design_ratios_df["design_check_type"] == check_type]
return rows.loc[rows["design_ratio"].idxmax()]
def print_comparison(rfem_values: dict, reference: dict) -> None:
"""
Prints the RFEM values next to the values of the hand calculation with their deviation.
"""
print(f"\n{'Quantity':<56}{'RFEM':>10}{'Hand calc.':>12}{'Deviation':>11}")
for key, (ref_value, unit, caption) in reference.items():
deviation = (rfem_values[key] - ref_value) / ref_value * 100
print(f"{caption + ' [' + unit + ']':<56}{rfem_values[key]:>10.3f}{ref_value:>12.3f}{deviation:>10.1f}%")
# -------------------------------------------------------
# MAIN SCRIPT
# -------------------------------------------------------
with rfem.Application() as rfem_app:
rfem_app.create_model(name="concrete_design_surface_reinforcement")
base_data = rfem_app.get_base_data()
base_data.addons.concrete_design_active = True
base_data.standards.concrete_design_standard = rfem.BaseData.Standards.CONCRETE_DESIGN_NATIONAL_ANNEX_AND_EDITION_EN_1992_CEN_2014_11_STANDARD
rfem_app.set_base_data(base_data=base_data)
rfem_app.delete_all_objects()
rfem_app.create_object_list(
objs=
define_concrete_design() +
define_structure() +
define_loading()
)
mesh_settings = rfem_app.get_mesh_settings()
mesh_settings.general_target_length_of_fe = MESH_SIZE
rfem_app.set_mesh_settings(mesh_settings=mesh_settings)
calculation_info = rfem_app.calculate_all(skip_warnings=True)
if not calculation_info.succeeded:
raise RuntimeError(f"Calculation failed: {calculation_info.message}")
# Design ratios of all surface checks, the maximum per check type
design_ratios_df = rfem_app.get_results(
results_type=rfem.results.CONCRETE_DESIGN_SURFACES_DESIGN_RATIOS,
).data
summary = design_ratios_df[design_ratios_df["design_ratio"] > 0]
summary = summary.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", "loading", "design_check_description"]].to_string(index=False))
# Required reinforcement in the span direction along the centre line of the strip,
# enveloped over both combinations, every 0.5 m between the slab ends. It includes the
# minimum reinforcement (9.2.1.1(1)) wherever that side is in tension.
required_df = rfem_app.get_result_table(
table=rfem.results.CONCRETE_DESIGN_REQUIRED_REINFORCEMENT_AREA_ON_SURFACES_BY_LOCATION_TABLE,
loading=None,
).data
required_df = required_df[required_df["surface_no"].notna()]
x = required_df["mesh_node_or_grid_point_coordinates_x_direction"].astype(float)
centre_line = required_df[
(required_df["mesh_node_or_grid_point_coordinates_y_direction"] == WIDTH / 2) &
((x * 2).round(6) % 1 == 0) & (x > 0) & (x < SPAN + CANTILEVER)
].drop_duplicates("mesh_node_or_grid_point_coordinates_x_direction").sort_values("mesh_node_or_grid_point_coordinates_x_direction")
print("\nRequired reinforcement in the span direction [cm2/m]:")
print(f"{'x [m]':>8}{'a_s1,top':>12}{'a_s1,bottom':>14}")
for _, row in centre_line.iterrows():
print(f"{float(row['mesh_node_or_grid_point_coordinates_x_direction']):>8.2f}"
f"{float(row['longitudinal_reinforcement_area_a_s1_top']) * 1e4:>12.2f}"
f"{float(row['longitudinal_reinforcement_area_a_s1_bottom']) * 1e4:>14.2f}")
def get_check_details(check_type: str) -> tuple:
"""
Returns the governing row of the check type and a reader for the values of its design check details.
"""
governing = get_governing_check(design_ratios_df, check_type)
details_df = rfem_app.get_results(
results_type=rfem.results.CONCRETE_DESIGN_DESIGN_CHECK_DETAILS,
filters=[
rfem.results.ResultsFilter(
column_id="design_check_details_id",
filter_expression=str(governing["design_check_details_id"]),
)
],
).data
return governing, lambda key: float(details_df.loc[details_df["key"] == key, "value_si"].values[0])
# Details of the bending design into direction 1: top side over the support, bottom side in the span
top, top_value = get_check_details("UL0101.01") # 1st direction on top side (-z)
bottom, bottom_value = get_check_details("UL0101.03") # 1st direction on bottom side (+z)
rfem_values = {
"d": bottom_value("d_1_z_bottom") * 1e3,
"m_ed_top": -top_value("m_x") / 1e3,
"z_top": top_value("z_1_z_top") * 1e3,
"a_s_req_top": top_value("a_s_dim_1_z_top") * 1e4,
"eta_top": float(top["design_ratio"]),
"m_ed_bottom": bottom_value("m_x") / 1e3,
"z_bottom": bottom_value("z_1_z_bottom") * 1e3,
"a_s_req_bottom": bottom_value("a_s_dim_1_z_bottom") * 1e4,
"eta_bottom": float(bottom["design_ratio"]),
"eta_min": float(get_governing_check(design_ratios_df, "DM0300.04")["design_ratio"]),
"eta_sec": float(get_governing_check(design_ratios_df, "DM0308.02")["design_ratio"]),
}
print(f"\nBending design into direction 1 (UL0101.01 top in {top['loading']}, "
f"UL0101.03 bottom in {bottom['loading']}) | comparison with the hand calculation:")
print_comparison(rfem_values, REFERENCE)
print(f"\nMaximum sagging moment at x = {x_max:.2f} m; RFEM designs the nearest mesh node.")
print(f"RFEM: steel stress sigma_s = {bottom_value('sigma_s_1_z_bottom') / 1e6:.0f} MPa "
f"(hand calc.: f_yd = {F_YD / 1e6:.0f} MPa), lever arm used for both directions "
f"z_min = {top_value('z_min_z_top') * 1e3:.1f} mm (top), {bottom_value('z_min_z_bottom') * 1e3:.1f} mm (bottom)")
using System.Globalization;
using Google.Protobuf;
using Microsoft.Data.Analysis;
using Common = Dlubal.Api.Common;
using Rfem = Dlubal.Api.Rfem;
// -------------------------------------------------------
// This example demonstrates the design of the top and bottom surface reinforcement of a
// one-way slab with a cantilever acc. to EN 1992-1-1 (CEN, recommended values): the
// required reinforcement for bending on both sides, the check of the provided meshes,
// the minimum reinforcement and the secondary transverse reinforcement.
//
// Slab:
// h = 200 mm, C30/37, B500S(A), span L = 5.0 m between a hinged and a sliding line
// support, cantilever C = 2.0 m beyond the sliding support, concrete cover 25 mm.
// Bottom mesh: bars 10 mm at 150 mm in the span direction (5.24 cm2/m, outer layer),
// top mesh: bars 10 mm at 200 mm (3.93 cm2/m, outer layer), transverse bars 8 mm at
// 200 mm (2.51 cm2/m) in both meshes. Both meshes cover the whole slab.
// RFEM applies the minimum reinforcement of 9.2.1.1(1) also in direction 2 wherever
// that side is in tension, here from the Poisson effect, which governs the transverse bars.
// g_k = 25 kN/m3 x 0.20 m + 1.5 kN/m2 finishes = 6.5 kN/m2, q_k = 3.0 kN/m2.
//
// Load combinations acc. to Eq. (6.10), the imposed load arranged for each extreme:
// CO1 1.35 g_k + 1.5 q_k on the span and the cantilever -> maximum hogging moment
// CO2 1.35 g_k on both, 1.5 q_k on the span only -> maximum sagging moment
// All permanent actions take the same partial factor, EN 1990 Table A1.2(B), Note 3.
//
// Modelling:
// A strip of 1 m width is modelled. Its long edges are lines of symmetry of a wide
// slab: they may move vertically but cannot rotate about their own axis. The strip
// then bends like the wide slab, and m_y = nu m_x from the Poisson effect.
// The FE mesh is refined to 0.1 m so that a mesh node lies close to the maximum of
// the sagging moment.
//
// Reference:
// Hand calculation acc. to EN 1992-1-1 with the rectangular stress block (3.1.7(3)) and
// the horizontal top branch of the reinforcement stress-strain diagram (f_yd = 435 MPa).
// RFEM uses the inclined top branch (sigma_s = 454 MPa) and designs both directions with
// the smaller lever arm of the two reinforcement layers, so its required reinforcement
// is up to 1 % lower.
// -------------------------------------------------------
const double SPAN = 5.0; // m
const double CANTILEVER = 2.0; // m
const double WIDTH = 1.0; // m, modelled strip
const double THICKNESS = 0.20; // m
const double COVER = 0.025; // m, concrete cover of the outer bars, top and bottom
const double G_FINISHES = 1.5e3; // N/m2
const double Q_K = 3.0e3; // N/m2, imposed load (category A)
const double MESH_SIZE = 0.1; // m, target length of the finite elements
const double BAR_1 = 0.010, SPACING_1_BOTTOM = 0.150, SPACING_1_TOP = 0.200; // m, bars in the span direction (direction 1)
const double BAR_2 = 0.008, SPACING_2 = 0.200; // m, transverse bars (direction 2)
// -------------------------------------------------------
// Hand calculation acc. to EN 1992-1-1
// -------------------------------------------------------
const double F_CK = 30e6, F_YK = 500e6, F_CTM = 2.9e6; // Pa
const double F_CD = 1.0 * F_CK / 1.5; // alpha_cc = 1.0, gamma_c = 1.5
const double F_YD = F_YK / 1.15; // gamma_s = 1.15
const double LAMBDA = 0.8; // rectangular stress block, f_ck <= 50 MPa
double gEd = 1.35 * (25e3 * THICKNESS + G_FINISHES); // N/m2
double qEd = 1.5 * Q_K; // N/m2
// CO1: hogging moment at the support, statically determinate
double mEdTop = (gEd + qEd) * CANTILEVER * CANTILEVER / 2; // Nm/m
// CO2: support reaction at the hinged end and the maximum sagging moment in the span
double mSupport = gEd * CANTILEVER * CANTILEVER / 2; // Nm/m
double reaction = (gEd + qEd) * SPAN / 2 - mSupport / SPAN; // N/m
double xMax = reaction / (gEd + qEd); // m
double mEdBottom = reaction * reaction / (2 * (gEd + qEd)); // Nm/m
double d1 = THICKNESS - COVER - BAR_1 / 2; // m, direction 1 (outer layer), top and bottom
double d2 = THICKNESS - COVER - BAR_1 - BAR_2 / 2; // m, direction 2 (inner layer)
var (zTop, aSReqTop) = RequiredReinforcement(mEdTop, d1);
var (zBottom, aSReqBottom) = RequiredReinforcement(mEdBottom, d1);
double aSProv1Top = Math.PI * BAR_1 * BAR_1 / 4 / SPACING_1_TOP; // m2/m
double aSProv1Bottom = Math.PI * BAR_1 * BAR_1 / 4 / SPACING_1_BOTTOM; // m2/m
double aSProv2 = Math.PI * BAR_2 * BAR_2 / 4 / SPACING_2; // m2/m
double aSMin2 = Math.Max(0.26 * F_CTM / F_YK, 0.0013) * WIDTH * d2; // 9.2.1.1(1), direction 2
// Results of the hand calculation: key -> (value, unit, caption)
var REFERENCE = new List<(string Key, double Value, string Unit, string Caption)>
{
("d", d1 * 1e3, "mm", "Effective depth d, direction 1"),
("m_ed_top", mEdTop / 1e3, "kNm/m", "Top: m_Ed at the support (CO1)"),
("z_top", zTop * 1e3, "mm", "Top: lever arm z"),
("a_s_req_top", aSReqTop * 1e4, "cm2/m", "Top: required reinforcement A_s,req"),
("eta_top", aSReqTop / aSProv1Top, "-", "Top: design ratio A_s,req / A_s,prov"),
("m_ed_bottom", mEdBottom / 1e3, "kNm/m", "Bottom: maximum m_Ed in the span (CO2)"),
("z_bottom", zBottom * 1e3, "mm", "Bottom: lever arm z"),
("a_s_req_bottom", aSReqBottom * 1e4, "cm2/m", "Bottom: required reinforcement A_s,req"),
("eta_bottom", aSReqBottom / aSProv1Bottom, "-", "Bottom: design ratio A_s,req / A_s,prov"),
("eta_min", aSMin2 / aSProv2, "-", "Minimum reinforcement dir. 2 A_s,min / A_s,prov"),
("eta_sec", 0.2 * aSProv1Bottom / aSProv2, "-", "Secondary reinforcement 20 % / A_s,prov,2"),
};
// Returns the lever arm and the required reinforcement for the moment mEd (rectangular stress block).
static (double Z, double ASReq) RequiredReinforcement(double mEd, double d)
{
double mu = mEd / (WIDTH * d * d * F_CD);
double xi = (1 - Math.Sqrt(1 - 2 * mu)) / LAMBDA; // x / d
double z = d * (1 - LAMBDA * xi / 2); // m
return (z, mEd / (z * F_YD)); // m, m2/m
}
// A surface that refers to the concrete design objects: concrete covers,
// durability, reinforcement directions and the ULS configuration.
static Rfem.StructureCore.Surface ConcreteSurface(int no, params int[] boundaryLines)
{
var surface = new Rfem.StructureCore.Surface
{
No = no,
Thickness = 1,
IsUserDefinedConcreteCoverEnabled = true,
UserDefinedConcreteCoverTop = COVER,
UserDefinedConcreteCoverBottom = COVER,
ConcreteDurabilityTop = 1,
ConcreteDurabilityBottom = 1,
ReinforcementDirectionTop = 1,
ReinforcementDirectionBottom = 1,
SurfaceConcreteDesignUlsConfiguration = 1,
};
surface.BoundaryLines.AddRange(boundaryLines);
return surface;
}
static List<IMessage> DefineStructure()
{
return new List<IMessage>
{
new Rfem.StructureCore.Material { No = 1, Name = "C30/37" },
new Rfem.StructureCore.Material { No = 2, Name = "B500S(A)" },
new Rfem.StructureCore.Thickness
{
No = 1,
Material = 1,
UniformThickness = THICKNESS,
},
new Rfem.StructureCore.Node { No = 1, Coordinate1 = 0.0, Coordinate2 = 0.0 },
new Rfem.StructureCore.Node { No = 2, Coordinate1 = SPAN, Coordinate2 = 0.0 },
new Rfem.StructureCore.Node { No = 3, Coordinate1 = SPAN + CANTILEVER, Coordinate2 = 0.0 },
new Rfem.StructureCore.Node { No = 4, Coordinate1 = SPAN + CANTILEVER, Coordinate2 = WIDTH },
new Rfem.StructureCore.Node { No = 5, Coordinate1 = SPAN, Coordinate2 = WIDTH },
new Rfem.StructureCore.Node { No = 6, Coordinate1 = 0.0, Coordinate2 = WIDTH },
new Rfem.StructureCore.Line { No = 1, DefinitionNodes = { 1, 2 } },
new Rfem.StructureCore.Line { No = 2, DefinitionNodes = { 2, 5 } },
new Rfem.StructureCore.Line { No = 3, DefinitionNodes = { 5, 6 } },
new Rfem.StructureCore.Line { No = 4, DefinitionNodes = { 6, 1 } },
new Rfem.StructureCore.Line { No = 5, DefinitionNodes = { 2, 3 } },
new Rfem.StructureCore.Line { No = 6, DefinitionNodes = { 3, 4 } },
new Rfem.StructureCore.Line { No = 7, DefinitionNodes = { 4, 5 } },
// Surface 1: the span, surface 2: the cantilever
ConcreteSurface(1, 1, 2, 3, 4),
ConcreteSurface(2, 5, 6, 7, 2),
// Hinged support at the end of the span, sliding support at the cantilever
new Rfem.TypesForLines.LineSupport
{
No = 1,
UserDefinedNameEnabled = true,
Name = "Hinged",
Lines = { 4 },
SpringX = double.PositiveInfinity,
SpringY = double.PositiveInfinity,
SpringZ = double.PositiveInfinity,
RotationalRestraintX = 0,
RotationalRestraintY = 0,
RotationalRestraintZ = 0,
},
new Rfem.TypesForLines.LineSupport
{
No = 2,
UserDefinedNameEnabled = true,
Name = "Sliding",
Lines = { 2 },
SpringX = 0,
SpringY = double.PositiveInfinity,
SpringZ = double.PositiveInfinity,
RotationalRestraintX = 0,
RotationalRestraintY = 0,
RotationalRestraintZ = 0,
},
// Long edges: lines of symmetry of a wide slab
new Rfem.TypesForLines.LineSupport
{
No = 3,
UserDefinedNameEnabled = true,
Name = "Symmetry",
Lines = { 1, 3, 5, 7 },
SpringX = 0,
SpringY = 0,
SpringZ = 0,
RotationalRestraintX = double.PositiveInfinity,
RotationalRestraintY = 0,
RotationalRestraintZ = 0,
},
};
}
static List<IMessage> DefineLoading()
{
// The self-weight is applied by the load case (25 kN/m3 of C30/37). The imposed load
// on the span and on the cantilever are separate load cases, so that the combinations
// can arrange it for the maximum hogging and the maximum sagging moment.
return new List<IMessage>
{
new Rfem.Loading.StaticAnalysisSettings { No = 1 },
new Rfem.Loading.LoadCase
{
No = 1,
Name = "Permanent",
StaticAnalysisSettings = 1,
SelfWeightActive = true,
ActionCategory = Rfem.Loading.LoadCase.Types.ActionCategory.PermanentG,
},
new Rfem.Loading.LoadCase
{
No = 2,
Name = "Imposed - span",
StaticAnalysisSettings = 1,
SelfWeightActive = false,
ActionCategory = Rfem.Loading.LoadCase.Types.ActionCategory.ImposedLoadsCategoryADomesticResidentialAreasQiA,
},
new Rfem.Loading.LoadCase
{
No = 3,
Name = "Imposed - cantilever",
StaticAnalysisSettings = 1,
SelfWeightActive = false,
ActionCategory = Rfem.Loading.LoadCase.Types.ActionCategory.ImposedLoadsCategoryADomesticResidentialAreasQiA,
},
new Rfem.Loading.DesignSituation
{
No = 1,
DesignSituationType = Rfem.Loading.DesignSituation.Types.DesignSituationType.StrPermanentAndTransient610,
},
new Rfem.Loading.LoadCombination
{
No = 1,
Name = "Max hogging",
DesignSituation = 1,
StaticAnalysisSettings = 1,
CombinationRuleStr = "1.35*LC1 + 1.5*LC2 + 1.5*LC3",
},
new Rfem.Loading.LoadCombination
{
No = 2,
Name = "Max sagging",
DesignSituation = 1,
StaticAnalysisSettings = 1,
CombinationRuleStr = "1.35*LC1 + 1.5*LC2",
},
new Rfem.Loads.SurfaceLoad { No = 1, LoadCase = 1, Surfaces = { 1, 2 }, UniformMagnitude = G_FINISHES },
new Rfem.Loads.SurfaceLoad { No = 1, LoadCase = 2, Surfaces = { 1 }, UniformMagnitude = Q_K },
new Rfem.Loads.SurfaceLoad { No = 1, LoadCase = 3, Surfaces = { 2 }, UniformMagnitude = Q_K },
};
}
static List<IMessage> DefineConcreteDesign()
{
// Created before the surfaces, which refer to them.
return new List<IMessage>
{
new Rfem.ConcreteDesignObjects.ConcreteDesignUlsConfiguration
{
No = 1,
AssignedToAllSurfaces = true,
},
// Closed interior spaces (XC1)
new Rfem.Reinforcement.ConcreteDurability
{
No = 1,
Surfaces = { 1, 2 },
CorrosionInducedByCarbonationEnabled = true,
CorrosionInducedByCarbonation = Rfem.Reinforcement.ConcreteDurability.Types.CorrosionInducedByCarbonation.DryOrPermanentlyWet,
},
// Direction 1 along the global x-axis (the span), direction 2 across
new Rfem.Reinforcement.ReinforcementDirection
{
No = 1,
Surfaces = { 1, 2 },
},
// Provided bottom mesh: direction 1 is the outer layer
new Rfem.Reinforcement.SurfaceReinforcement
{
No = 1,
Surfaces = { 1, 2 },
Material = 2,
LocationType = Rfem.Reinforcement.SurfaceReinforcement.Types.LocationType.OnSurface,
DefinitionType = Rfem.Reinforcement.SurfaceReinforcement.Types.DefinitionType.Rebar2Layers,
RebarDiameter = BAR_1,
RebarSpacing = SPACING_1_BOTTOM,
OrthogonalRebarDiameter = BAR_2,
OrthogonalRebarSpacing = SPACING_2,
AlignmentTopEnabled = false,
AlignmentBottomEnabled = true,
},
// Provided top mesh: direction 1 is the outer layer
new Rfem.Reinforcement.SurfaceReinforcement
{
No = 2,
Surfaces = { 1, 2 },
Material = 2,
LocationType = Rfem.Reinforcement.SurfaceReinforcement.Types.LocationType.OnSurface,
DefinitionType = Rfem.Reinforcement.SurfaceReinforcement.Types.DefinitionType.Rebar2Layers,
RebarDiameter = BAR_1,
RebarSpacing = SPACING_1_TOP,
OrthogonalRebarDiameter = BAR_2,
OrthogonalRebarSpacing = SPACING_2,
AlignmentTopEnabled = true,
AlignmentBottomEnabled = false,
},
};
}
static double ToDouble(object? cell) => Convert.ToDouble(cell, CultureInfo.InvariantCulture);
static string ToText(object? cell) => cell?.ToString() ?? string.Empty;
// Returns the row with the highest design ratio for the given design check type.
static DataFrameRow GetGoverningCheck(DataFrame designRatios, string checkType)
{
return designRatios.Rows
.Where(row => ToText(row["design_check_type"]) == checkType)
.OrderByDescending(row => ToDouble(row["design_ratio"]))
.First();
}
// Prints the RFEM values next to the values of the hand calculation with their deviation.
static void PrintComparison(Dictionary<string, double> rfemValues, List<(string Key, double Value, string Unit, string Caption)> reference)
{
Console.WriteLine($"\n{"Quantity",-56}{"RFEM",10}{"Hand calc.",12}{"Deviation",11}");
foreach (var (key, refValue, unit, caption) in reference)
{
double deviation = (rfemValues[key] - refValue) / refValue * 100;
Console.WriteLine(string.Format(CultureInfo.InvariantCulture,
"{0,-56}{1,10:F3}{2,12:F3}{3,10:F1}%", $"{caption} [{unit}]", rfemValues[key], refValue, deviation));
}
}
// -------------------------------------------------------
// MAIN SCRIPT
// -------------------------------------------------------
ApplicationRfem? rfemApp = null;
try
{
rfemApp = new ApplicationRfem();
rfemApp.create_model(name: "concrete_design_surface_reinforcement");
var baseData = rfemApp.get_base_data();
baseData.Addons.ConcreteDesignActive = true;
baseData.Standards.ConcreteDesignStandard = Rfem.BaseData.Types.Standards.Types.ConcreteDesignStandard.ConcreteDesignNationalAnnexAndEditionEn1992Cen201411Standard;
rfemApp.set_base_data(baseData: baseData);
rfemApp.delete_all_objects();
rfemApp.create_object_list(
DefineConcreteDesign()
.Concat(DefineStructure())
.Concat(DefineLoading())
.ToList()
);
var meshSettings = rfemApp.get_mesh_settings();
meshSettings.GeneralTargetLengthOfFe = MESH_SIZE;
rfemApp.set_mesh_settings(meshSettings: meshSettings);
var calculationInfo = rfemApp.calculate_all(skipWarnings: true);
if (!calculationInfo.Succeeded)
{
throw new InvalidOperationException($"Calculation failed: {calculationInfo.Message}");
}
// Design ratios of all surface checks, the maximum per check type
DataFrame designRatios = rfemApp.get_results(
resultsType: Rfem.Results.ResultsType.ConcreteDesignSurfacesDesignRatios
).Data;
Console.WriteLine("\nGoverning design ratios per check type:");
foreach (var row in designRatios.Rows
.Where(row => ToDouble(row["design_ratio"]) > 0)
.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,10:F3} {2,-5}{3}",
row["design_check_type"], ToDouble(row["design_ratio"]), row["loading"], row["design_check_description"]));
}
// Required reinforcement in the span direction along the centre line of the strip,
// enveloped over both combinations, every 0.5 m between the slab ends. It includes the
// minimum reinforcement (9.2.1.1(1)) wherever that side is in tension.
DataFrame required = rfemApp.get_result_table(
table: Rfem.Results.ResultTable.ConcreteDesignRequiredReinforcementAreaOnSurfacesByLocationTable,
loading: null
).Data;
var centreLine = required.Rows
.Where(row => ToText(row["surface_no"]) != string.Empty
&& ToDouble(row["mesh_node_or_grid_point_coordinates_y_direction"]) == WIDTH / 2)
.Select(row => (X: ToDouble(row["mesh_node_or_grid_point_coordinates_x_direction"]), Row: row))
.Where(point => Math.Abs(point.X * 2 - Math.Round(point.X * 2)) < 1e-6
&& point.X > 0 && point.X < SPAN + CANTILEVER)
.GroupBy(point => Math.Round(point.X, 6))
.Select(group => group.First())
.OrderBy(point => point.X);
Console.WriteLine("\nRequired reinforcement in the span direction [cm2/m]:");
Console.WriteLine($"{"x [m]",8}{"a_s1,top",12}{"a_s1,bottom",14}");
foreach (var (x, row) in centreLine)
{
Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0,8:F2}{1,12:F2}{2,14:F2}",
x,
ToDouble(row["longitudinal_reinforcement_area_a_s1_top"]) * 1e4,
ToDouble(row["longitudinal_reinforcement_area_a_s1_bottom"]) * 1e4));
}
// Returns the governing row of the check type and a reader for the values of its design check details.
(DataFrameRow Governing, Func<string, double> Value) GetCheckDetails(string checkType)
{
var governing = GetGoverningCheck(designRatios, checkType);
DataFrame details = rfemApp.get_results(
resultsType: Rfem.Results.ResultsType.ConcreteDesignDesignCheckDetails,
filters: new List<Rfem.Results.ResultsFilter>
{
new Rfem.Results.ResultsFilter
{
ColumnId = "design_check_details_id",
FilterExpression = ToText(governing["design_check_details_id"]),
},
}
).Data;
return (governing, key => ToDouble(details.Rows.First(row => ToText(row["key"]) == key)["value_si"]));
}
// Details of the bending design into direction 1: top side over the support, bottom side in the span
var (top, topValue) = GetCheckDetails("UL0101.01"); // 1st direction on top side (-z)
var (bottom, bottomValue) = GetCheckDetails("UL0101.03"); // 1st direction on bottom side (+z)
var rfemValues = new Dictionary<string, double>
{
["d"] = bottomValue("d_1_z_bottom") * 1e3,
["m_ed_top"] = -topValue("m_x") / 1e3,
["z_top"] = topValue("z_1_z_top") * 1e3,
["a_s_req_top"] = topValue("a_s_dim_1_z_top") * 1e4,
["eta_top"] = ToDouble(top["design_ratio"]),
["m_ed_bottom"] = bottomValue("m_x") / 1e3,
["z_bottom"] = bottomValue("z_1_z_bottom") * 1e3,
["a_s_req_bottom"] = bottomValue("a_s_dim_1_z_bottom") * 1e4,
["eta_bottom"] = ToDouble(bottom["design_ratio"]),
["eta_min"] = ToDouble(GetGoverningCheck(designRatios, "DM0300.04")["design_ratio"]),
["eta_sec"] = ToDouble(GetGoverningCheck(designRatios, "DM0308.02")["design_ratio"]),
};
Console.WriteLine($"\nBending design into direction 1 (UL0101.01 top in {top["loading"]}, " +
$"UL0101.03 bottom in {bottom["loading"]}) | comparison with the hand calculation:");
PrintComparison(rfemValues, REFERENCE);
Console.WriteLine(string.Format(CultureInfo.InvariantCulture,
"\nMaximum sagging moment at x = {0:F2} m; RFEM designs the nearest mesh node.", xMax));
Console.WriteLine(string.Format(CultureInfo.InvariantCulture,
"RFEM: steel stress sigma_s = {0:F0} MPa (hand calc.: f_yd = {1:F0} MPa), lever arm used for both directions " +
"z_min = {2:F1} mm (top), {3:F1} mm (bottom)",
bottomValue("sigma_s_1_z_bottom") / 1e6, F_YD / 1e6, topValue("z_min_z_top") * 1e3, bottomValue("z_min_z_bottom") * 1e3));
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
finally
{
if (rfemApp != null) rfemApp.close_connection();
}