Conversation
…ization, azimuthal angle, polar angle).
|
Some users might find this an interesting feature. However, I am resistant to merge the current implementation due to two different reasons.
In my opinion it is better to define two scalar fields for the magnetization angles phi and theta, and to not define the in-plane magnetization component rxy. |
…sted test accordingly.
|
I agree. I removed the vector field and implemented the theta and phi scalar fields. |
|
@peytondmurray Looks good to me.
The |
…ontributed functions.
|
Okay, I've attached the |
|
Cheers! |
I needed some functions which give the magnetization in terms of the usual spherical coordinates θ and ϕ. I also needed to know the in-plane component of the magnetization rxy, so I implemented all three as a single vector field
ext_rxyphithetawith components (rxy, ϕ, θ). The field is calculated on the GPU before being transferred back to host memory, so it's pretty quick. Would anyone else find this useful?