Skip to content

feat: EC2 2023 8.2-Shear#121

Open
DanielGMorenaFhecor wants to merge 42 commits intofib-international:dev-ec2-2023from
MestreCarlos:ec2_2023-8.2
Open

feat: EC2 2023 8.2-Shear#121
DanielGMorenaFhecor wants to merge 42 commits intofib-international:dev-ec2-2023from
MestreCarlos:ec2_2023-8.2

Conversation

@DanielGMorenaFhecor
Copy link
Copy Markdown
Collaborator

I have completed the chapter '8.2 - Shear' from the EC2-2023.

mortenengen and others added 30 commits December 13, 2022 21:01
Co-authored-by: talledodiego <38036285+talledodiego@users.noreply.github.com>
@DanielGMorenaFhecor DanielGMorenaFhecor self-assigned this Aug 1, 2024
@DanielGMorenaFhecor DanielGMorenaFhecor changed the title Ec2 2023 8.2 - Shear Design EC2 2023 8.2-Shear Aug 1, 2024
@DanielGMorenaFhecor DanielGMorenaFhecor changed the title EC2 2023 8.2-Shear feat: EC2 2023 8.2-Shear Aug 1, 2024
@DanielGMorenaFhecor DanielGMorenaFhecor linked an issue Aug 5, 2024 that may be closed by this pull request
1 task
@mortenengen mortenengen removed this from the EC2 2023: Ultimate limit state milestone Aug 5, 2024
@mortenengen mortenengen changed the base branch from dev to dev-ec2-2023 October 10, 2024 19:29
Copy link
Copy Markdown
Member

@mortenengen mortenengen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great contribution 😃

I have merged dev and fixed the docstrings.

There is a significant number of lines that are not covered by tests. Please add tests so that we reach 100% coverage on the added code.

@DanielGMorenaFhecor
Copy link
Copy Markdown
Collaborator Author

I have added tests to cover all 100% lines of code. Also, I have merged changes from dev into this branch!

@mortenengen mortenengen changed the base branch from dev-ec2-2023 to dev September 17, 2025 12:11
@mortenengen mortenengen changed the base branch from dev to dev-ec2-2023 September 17, 2025 12:12
Copy link
Copy Markdown
Collaborator

@talledodiego talledodiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this gigantic contribution. This is definitely a massive work!
I finished the review excluded the tests that I will check after the changes requested are performed on the other file.

Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Copy link
Copy Markdown
Collaborator

@talledodiego talledodiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this gigantic contribution. This is definitely a massive work!
I finished the review excluded the tests that I will check after the changes requested are performed on the other file.

@talledodiego talledodiego moved this from Compliance review to Changes requested in EC2 2023 PR tracker Oct 17, 2025
@DanielGMorenaFhecor
Copy link
Copy Markdown
Collaborator Author

Thanks a lot, @talledodiego , for taking the time to review this PR, I really appreciate it, especially given the large number of lines to go through.

I've addressed all your comments and applied the suggested changes.
Additionally, the tests now cover 100% of the updated code.

Please let me know if you spot anything else that needs adjustment!

@talledodiego talledodiego moved this from Changes requested to Review changes in EC2 2023 PR tracker Mar 22, 2026
Copy link
Copy Markdown
Collaborator

@talledodiego talledodiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent revision! Thanks. Some pending comments are still there for your evaluation.

)

k1 = 0.5 * a_cs_0 / (e_p + d / 3) * (A_c / (b_w * z))
k1 = 0.5 / a_cs_0 / (e_p + d / 3) * (A_c / (b_w * z))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be * instead of /?

* (e_p + d / 3)

Comment on lines +233 to +234
ValueError: If any input values are negative
or if gamma_v or d are non-positive.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would switch these two:

ValueError: if gamma_v or d are non-posititve or if any other input values are negative

Comment on lines +668 to +682
# Tension case
cot_theta_min = 2.5 - 0.1 * NEd / abs(VEd)
cot_theta_min = max(cot_theta_min, 1.0)
elif NEd < 0:
# Compression case
sigma_c = abs(NEd) * 1000 / Ac # Convert to MPa
if sigma_c >= 0.0 and x < 0.25 * d:
# Significant compressive stress and x < 0.25d
# Interpolate: 2.5 at 0 MPa, 3.0 at 3 MPa and above
# Formula: 2.5 + (3.0-2.5) * sigma_c / (3.0-0.0)
cot_theta_min = 3.0 if sigma_c >= 3.0 else 2.5 + sigma_c / 6.0
else:
# Use tension formula for other compression cases
cot_theta_min = 2.5 - 0.1 * NEd / abs(VEd)
cot_theta_min = max(cot_theta_min, 1.0)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not interpreting correctly this I guess.

This was my interpretation of EC2:2023

  • if Ned = 0 -> 2.5
  • if sigma > 3 (there is the strange absolute value that I guess makes no much sense to me) and x <= 0.25 we are in significant axial stress condition -> 3.0
  • if sigma is between 0 and 3 in compression -> linear interpolation between 2.5 and 3.0
  • if sigma > 3 and x > 0.25 we are in high compression and clause (11) should be applied (not the one for tension?)
Image

Comment thread structuralcodes/codes/ec2_2023/_section_8_2_shear.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EC2 2023 Eurocode 2 (2023) enhancement New feature or request

Projects

Status: Review changes
Status: Under review 👀

Development

Successfully merging this pull request may close these issues.

EC2 2023: Shear

3 participants