Closed carlosRios2020 closed 5 years ago
Hi @musgo2015,
Thank you for you question. As I understand from the code you posted (unfortunately, I do not speak Spanish), you have an issue with JOOMMF. Can I ask you to translate your question in English and post it as an issue in the https://github.com/joommf/help repository.
I will close this issue here and wait for its English version in https://github.com/joommf/help repository.
Many thanks!
Hola, alquien que haya hechos los problemas propuesto en la documentacion de joommf con oommf de micromagnetismo.
estoy haciendo el 3 este el el codigo que puse en jupyter notebook
import discretisedfield as df import oommfc as oc
import numpy as np
Function for initiaising the flower state.
def m_init_flower(pos): x, y, z = pos[0]/1e-9, pos[1]/1e-9, pos[2]/1e-9 mx = 0 my = 2z - 1 mz = -2y + 1 norm_squared = mx2 + my2 + mz**2 if norm_squared <= 0.05: return (1, 0, 0) else: return (mx, my, mz)
Function for initialising the vortex state.
def m_init_vortex(pos): x, y, z = pos[0]/1e-9, pos[1]/1e-9, pos[2]/1e-9 mx = 0 my = np.sin(np.pi/2 (x-0.5)) mz = np.cos(np.pi/2 (x-0.5))
def minimise_system_energy(L, m_init): print("L={:9}, {} ".format(L, m_init.name), end="") N = 16 # discretisation in one dimension cubesize = 100e-9 # cube edge length (m) cellsize = cubesize/N # discretisation in all three dimensions. lex = cubesize/L # exchange length.
%matplotlib inline system = minimise_system_energy(8, m_init_vortex) system.m.plot_plane("y")
system = minimise_system_energy(8, m_init_flower) system.m.plot_plane("x")
me esta botando este error si alguien me puede ayudar o le a pasado antes agradezco mucho la ayuda
PermissionError Traceback (most recent call last)