-
Notifications
You must be signed in to change notification settings - Fork 29
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
143 refactor notch approximation #150
Conversation
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
The LUTs are implementation details and should not be accessed directly by tests. Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
c2dd7b9
to
a7105fd
Compare
The epsilon_min_LF and epsilon_max_LF values where wrongly picked for open hysteresis loops. Now the epsilon_(min|max)_LF calculation is identical to the state of bf10295. Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
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.
fkm_nonlinear.py
There is a typo HYSTORY_COLUMNS
-> HISTORY_COLUMNS
review continues... |
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.
Seems reasonable overall, it would be nice to have the issues addressed before merge.
src/pylife/strength/fkm_nonlinear/assessment_nonlinear_standard.py
Outdated
Show resolved
Hide resolved
Oh gee, I got that one wrong ever so often. "hysteresis", "history". Will fix it. |
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Signed-off-by: Johannes Mueller <[email protected]>
Thanks @maierbn for your hints. I've merged this now. The rest we will treat in follow up issues if needed. |
Closes #143
In a nutshell:
NotchApproxBinner
new class to do the binning for the notch approximation.NotchApproximationLawBase.primary
andNotchApproximationLawBase.secondary
in order to be able to get stress strain data in only one lookup.load
argument can be dropped in the methods for strain calculation.NotchApproximationBinner
has the method.initialize
to set the maximum load. That means, that determining the maximum load can be left toFKMRainflowDetector
.Binned
class in favor ofNotchApproxBinner
tests/strength/fkm_nonlinear/test_fkm_nonlinear.py
had to be dropped because they were using internals ofBinned
.This adds a performance boost of roughly factor 10.
Open point
As we now do no longer need to precondition the binner with the maximum load, we need to rethink the role of
"max_load_independently_for_nodes"
in the assessment parameters and find a neat way how to handle it. This will be treated in a follow up issue.@maierbn take your time to review, no rush. We can discuss details after the winter break. I put some effort into arranging the commits in a meaningful way. So reviewing them individually might be easier to understand what's going on.