-
Notifications
You must be signed in to change notification settings - Fork 1
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
Include rotation matrix in cell values #25
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #25 +/- ##
==========================================
- Coverage 88.61% 87.82% -0.80%
==========================================
Files 5 5
Lines 281 312 +31
==========================================
+ Hits 249 274 +25
- Misses 32 38 +6 ☔ View full report in Codecov by Sentry. |
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.
I could use some help defining a proper test case...
Not sure if the current one is fine.
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.
For cohesive elements, this would be very useful to make the traction-separation implementation interface cleaner.
I believe there is a mistake (added a test proposal to show). I think the way one would need to calculate this would be (but haven't tested)
v1 = J[:, 1]
if 3d
v3 = v1 × J[:, 2] # normal vector
v2 = v3 × v1 # Ensures v2 perpendicular to v1 and v3
R = Tensor{2, 3}((normalize(v1)..., normalize(v2)..., normalize(v3)...))
else if 2d
v2 = Vec{2}(((-v[2], v[1]))
R = Tensor{2, 2}((normalize(v1)..., normalize(v2)...))
end
Co-authored-by: Knut Andreas Meyer <[email protected]>
Thanks for the feedback 👍 |
Regarding the notation here, I believe that formally this should always be a coordinate transformation tensor, That has no practical meaning since
(personally I think the |
No description provided.