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

Refactor RotM transformation out of WhitneyAV #432

Open
ettaka opened this issue Dec 12, 2023 · 0 comments
Open

Refactor RotM transformation out of WhitneyAV #432

ettaka opened this issue Dec 12, 2023 · 0 comments

Comments

@ettaka
Copy link
Contributor

ettaka commented Dec 12, 2023

Original idea by @raback #429 (comment)

So the idea would be to refactor RotM functionality and its application to tensor transformation.
Use a test case, for example this and refactor the AV solver side such that the
conductivity and homogenization parameters are transformed correctly. The tensor would be treated like this:

TYPE(Rotate_t) :: Rotate
IF(Init) CALL ListInitRotation(Model, Rotate)

MagnetizationAtIp = ListGetElementReal3D(Mag_h,Basis,Element,...)
CALL ListGetElementRotate(Rotate,MagnetizationAtIp)

Instead of the old way:
Call to get the transformation matrix RotM

CALL GetElementRotM(Element, RotM, n)

Then that is used to transform the conductivity tensor

C = MATMUL(MATMUL(RotMLoc, C),TRANSPOSE(RotMLoc))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant