Skip to content
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

Enhance the performance #654

Merged
merged 19 commits into from
Feb 24, 2024
Merged

Enhance the performance #654

merged 19 commits into from
Feb 24, 2024

Conversation

adtzlr
Copy link
Owner

@adtzlr adtzlr commented Feb 23, 2024

Add NeoHooke.gradient(out=None) and NeoHooke.hessian(out=None) for a location to store the results. Also for NeoHookeCompressible.

Enhance the performance of

  • NeoHooke
  • NeoHookeCompressible
  • SolidBody
  • SolidBodyNearlyIncompressible

Fix mutable keyword-arguments in SolidBody._vector(kwargs={}) by SolidBody._vector(kwargs=None). Also for ._matrix() and for SolidBodyNearlyIncompressible.

@adtzlr adtzlr added the enhancement New feature or request label Feb 23, 2024
@adtzlr adtzlr self-assigned this Feb 23, 2024
Copy link

codecov bot commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 97.94521% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 97.03%. Comparing base (d7503e4) to head (bae6b24).

Files Patch % Lines
src/felupe/constitution/_models_hyperelasticity.py 95.94% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #654      +/-   ##
==========================================
- Coverage   97.03%   97.03%   -0.01%     
==========================================
  Files          94       94              
  Lines        4792     4891      +99     
==========================================
+ Hits         4650     4746      +96     
- Misses        142      145       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adtzlr adtzlr merged commit d9685c6 into main Feb 24, 2024
9 checks passed
@adtzlr adtzlr deleted the enhance-performance-nh branch February 24, 2024 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant