Skip to content

feat: add formulas 6.36, 6.37, and 6.38 implementations and tests #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

GerjanDorgelo
Copy link
Contributor

Description

add formulas 6.36, 6.37, and 6.38 implementations and tests. with n and a being single use formula, i plugged it into the main equation like it has been done many times in blueprints.

Fixes #592

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

@GerjanDorgelo GerjanDorgelo self-assigned this May 2, 2025
@GerjanDorgelo GerjanDorgelo linked an issue May 2, 2025 that may be closed by this pull request
7 tasks
Copy link

github-actions bot commented May 2, 2025

Thank you so much for contributing to Blueprints! This is your Pull Request # 18 to this project.
Your contributions help thousands of engineers work more efficiently and accurately.

Now that you've created your pull request, please don't go away; take a look at the bottom of this page for the automated checks that should already be running. If they pass, great! If not, please click on 'Details' and see if you can fix the problem they've identified. A maintainer should be along shortly to review your pull request and help get it added!

@GerjanDorgelo GerjanDorgelo marked this pull request as draft May 3, 2025 05:16
@GerjanDorgelo GerjanDorgelo marked this pull request as ready for review May 3, 2025 05:31
@viktor-rick viktor-rick self-requested a review May 7, 2025 10:22
@viktor-rick viktor-rick added the in review This MR has been reviewed, and changes are made accordingly label May 7, 2025
Comment on lines +19 to +20
a: float,
n: float,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a: float,
n: float,
a: DIMENSIONLESS,
n: DIMENSIONLESS,

from blueprints.codes.eurocode.nen_en_1993_1_1_c2_a1_2016 import NEN_EN_1993_1_1_C2_A1_2016
from blueprints.codes.formula import Formula
from blueprints.codes.latex_formula import LatexFormula, latex_replace_symbols
from blueprints.type_alias import NMM
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
from blueprints.type_alias import NMM
from blueprints.type_alias import NMM, DIMENSIONLESS

Comment on lines +30 to +33
a : float
Reduction factor for cross-sectional area, see equation 6.38a.
n : float
Axial force ratio, see equation 6.38n.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a : float
Reduction factor for cross-sectional area, see equation 6.38a.
n : float
Axial force ratio, see equation 6.38n.
a : DIMENSIONLESS
Reduction factor for cross-sectional area, see equation 6.38a.
n : DIMENSIONLESS
Axial force ratio, see equation 6.38n.

n: float,
) -> NMM:
"""Evaluates the formula, for more information see the __init__ method."""
raise_if_less_or_equal_to_zero(a=a)
Copy link
Collaborator

Choose a reason for hiding this comment

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

not necessarily right?

Comment on lines +43 to +45
a: float,
n: float,
) -> NMM:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a: float,
n: float,
) -> NMM:
a: DIMENSIONLESS,
n: DIMENSIONLESS,
) -> NMM:

Comment on lines +30 to +34
a : float
Reduction factor for cross-sectional area, see equation 6.38a.
n : float
Axial force ratio, see equation 6.38n.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a : float
Reduction factor for cross-sectional area, see equation 6.38a.
n : float
Axial force ratio, see equation 6.38n.
"""
a : DIMENSIONLESS
Reduction factor for cross-sectional area, see equation 6.38a.
n : DIMENSIONLESS
Axial force ratio, see equation 6.38n.
"""

Comment on lines +19 to +20
a: float,
n: float,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a: float,
n: float,
a: DIMENSIONLESS,
n: DIMENSIONLESS,

from blueprints.codes.eurocode.nen_en_1993_1_1_c2_a1_2016 import NEN_EN_1993_1_1_C2_A1_2016
from blueprints.codes.formula import Formula
from blueprints.codes.latex_formula import LatexFormula, latex_replace_symbols
from blueprints.type_alias import MM, MM2, NMM, N
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
from blueprints.type_alias import MM, MM2, NMM, N
from blueprints.type_alias import MM, MM2, NMM, N, DIMENSIONLESS

Comment on lines +43 to +44
a: float,
n: float,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a: float,
n: float,
a: DIMENSIONLESS,
n: DIMENSIONLESS,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review This MR has been reviewed, and changes are made accordingly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🔧 Formula Request]: Add formulas 6.36-6.38 from Eurocode 1993-1-1.
2 participants