Closed swapneelap closed 2 years ago
@swapneelap is there a reason we cannot define two vector fields and one has to be a df.Field
?
If this is a restriction of Mumax3
maybe we should automatically convert a vector to df.Field
object in this case otherwise the user will end up having to do it each time.
@samjrholt This is another "special" feature of Mumax3. As much as I understand, one can define as many Bext.Add()
but only one Bext =
. Since the Add()
method only takes slices (or for us ovf
files), the additional Bext must be df.Field.
@samjrholt This is another "special" feature of Mumax3. As much as I understand, one can define as many
Bext.Add()
but only oneBext =
. Since theAdd()
method only takes slices (or for usovf
files), the additional Bext must be df.Field.
I understand, in this case shall we deal with this behind the scenes and convert it to an ovf
behind the sense rather than asking the user to do it? Should be relatively straight forward, I'm happy to make the edit if you like?
Sounds good to me. You can add the changes 👍.
@swapneelap I've added the functionality so please have a quick look and check that it works for you.
@swapneelap I've added the functionality so please have a quick look and check that it works for you.
Looks good to me. I will need to add a few tests.
@swapneelap what happens to the table if there are multiple Zeeman terms? Are do they have separate energy quantities or all just included in one?
Everything is included in one column.
I think for OOMMF multiple Zeeman fields would have independent columns is the table (based on the unique field names). I think we should have the same here. We could probably use the term names as mm.energy
(the Container
subclass) will (should) ensure that term names are unique.
@lang-m I agree with you. The problem is I have not figured out a way in Mumax3 to output the individual energy contribution of the different Zeeman fields. I am inclined to believe that it is not possible. (atleast not in a simple way)
@swapneelap Quite possible that they internally just collect all individual Zeeman terms and combine them into an effective external field and hence have only one "effective" output.
(Linux) Tests are failing because of the updated STT latex rep in micromagnetic model. I'll fix it soon.