+
Skip to content

Add @total_lagrange and @updated_lagrange decorators for MaterialAD #773

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

Merged
merged 15 commits into from
May 14, 2024

Conversation

adtzlr
Copy link
Owner

@adtzlr adtzlr commented May 14, 2024

for Total-Lagrange materials to be used in MaterialAD.

Example

import felupe as fem
import tensortrax.math as tm

@fem.total_lagrange
def neo_hooke_total_lagrange(F, mu=1):
    C = F.T @ F
    S = mu * tm.special.dev(tm.linalg.det(C)**(-1/3) * C) @ tm.linalg.inv(C)
    return S

umat = fem.MaterialAD(neo_hooke_total_lagrange, mu=1)

see #772

 for Total-Lagrange materials to be used in `Hyperelastic`
@adtzlr adtzlr added the enhancement New feature or request label May 14, 2024
@adtzlr adtzlr self-assigned this May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.56%. Comparing base (40bbc25) to head (3cf410e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #773      +/-   ##
==========================================
+ Coverage   97.54%   97.56%   +0.02%     
==========================================
  Files         126      131       +5     
  Lines        5450     5499      +49     
==========================================
+ Hits         5316     5365      +49     
  Misses        134      134              

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

@adtzlr
Copy link
Owner Author

adtzlr commented May 14, 2024

It could be a better idea to create @total_lagrange or @updated_lagrange for MaterialAD.

@adtzlr adtzlr changed the title Add @total_lagrange decorator Add @total_lagrange and @updated_lagrange decorators for MaterialAD May 14, 2024
@adtzlr adtzlr merged commit 9c76659 into main May 14, 2024
@adtzlr adtzlr deleted the add-total-lagrange-decorator branch May 14, 2024 18:22
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载