-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: main
Are you sure you want to change the base?
feat: add formulas 6.36, 6.37, and 6.38 implementations and tests #593
Conversation
Thank you so much for contributing to Blueprints! This is your Pull Request # 18 to this project. 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! |
…m-eurocode-1993-1-1
…ence equations 6.38a and 6.38n
…1993-1-1' of https://github.com/Blueprints-org/blueprints into 592-formula-request-add-formulas-636-638-from-eurocode-1993-1-1
…lude correct article number
a: float, | ||
n: float, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from blueprints.type_alias import NMM | |
from blueprints.type_alias import NMM, DIMENSIONLESS |
a : float | ||
Reduction factor for cross-sectional area, see equation 6.38a. | ||
n : float | ||
Axial force ratio, see equation 6.38n. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessarily right?
a: float, | ||
n: float, | ||
) -> NMM: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a: float, | |
n: float, | |
) -> NMM: | |
a: DIMENSIONLESS, | |
n: DIMENSIONLESS, | |
) -> NMM: |
a : float | ||
Reduction factor for cross-sectional area, see equation 6.38a. | ||
n : float | ||
Axial force ratio, see equation 6.38n. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. | |
""" |
a: float, | ||
n: float, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from blueprints.type_alias import MM, MM2, NMM, N | |
from blueprints.type_alias import MM, MM2, NMM, N, DIMENSIONLESS |
a: float, | ||
n: float, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a: float, | |
n: float, | |
a: DIMENSIONLESS, | |
n: DIMENSIONLESS, |
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
Checklist: