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

Add RegionBoundary.tangents and math.inplane() #873

Merged
merged 4 commits into from
Oct 28, 2024
Merged

Conversation

adtzlr
Copy link
Owner

@adtzlr adtzlr commented Oct 28, 2024

this PR enables the evaluation of a symmetric second order tensor on a given plane, defined by its standard unit vectors.

import felupe as fem

mesh = fem.Cube(n=2)
region = fem.RegionHexahedronBoundary(mesh, mask=mesh.z == mesh.z.max())

field = fem.FieldsMixed(region, n=1)
field[0].values[mesh.x == mesh.x.max(), 0] += 1

strain = field.evaluate.log_strain()

w = fem.math.eigvalsh(fem.math.inplane(strain, region.tangents))

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

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@85b54aa). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #873   +/-   ##
=======================================
  Coverage        ?   97.55%           
=======================================
  Files           ?      149           
  Lines           ?     5759           
  Branches        ?        0           
=======================================
  Hits            ?     5618           
  Misses          ?      141           
  Partials        ?        0           

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

@adtzlr adtzlr merged commit 03d6506 into main Oct 28, 2024
5 checks passed
@adtzlr adtzlr deleted the add-tangents-inplane branch October 28, 2024 21:42
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