# Code automatically extracted from steel_lnp_profile.ipynb.
from blueprints.structural_sections.steel.standard_profiles import LNP

lnp_profile = LNP.LNP100x65x9

lnp_profile = lnp_profile.with_corrosion(corrosion=1.0)

plot = lnp_profile.plot(show=True)

properties = lnp_profile.section_properties()

from blueprints.structural_sections.steel.profile_definitions import LNPProfile

custom_lnp_profile = LNPProfile(
    total_width=40,  # mm
    total_height=80,  # mm
    web_thickness=4.5,  # mm
    base_thickness=10,  # mm
    root_radius=11,  # mm (optional, can be None)
    back_radius=5,  # mm (optional, can be None)
    web_toe_radius=4,  # mm (optional, can be None)
    base_toe_radius=4,  # mm (optional, can be None)
    name="Custom LNP 120x80x4/10",
)

plot = custom_lnp_profile.plot(show=True)

properties = custom_lnp_profile.section_properties()
