computationalmodelling / fidimag

Finite DIfference microMAGnetic code, based on Python, Cython and C
http://computationalmodelling.github.io/fidimag/
Other
60 stars 24 forks source link

Added demag energy density calc #120

Closed davidcortesortuno closed 6 years ago

davidcortesortuno commented 6 years ago

Updated demag C/Cython libraries to allow the calculation of energy density per mesh site

davidcortesortuno commented 6 years ago

I'm not completely sure if it's the best approach since we still have to scale the demag energy in the Python code.

rpep commented 6 years ago

Lets merge this for now because we can always introduce a faster way later.