def set_domain(): """ Create a specific domain, with its parameters, and return it. Available models : Stoner_Wohlfarth, Meiklejohn_Bean, Garcia_Otero, Franco_Conde, Rotatable_AF, Double_MacroSpin """ # Create the domain, with argument (model, 'folder_name') domain = StoneX.create_domain( StoneX.Stoner_Wohlfarth, 'Stoner_Wohlfarth_example', mkdir=True ) # Setting the domain's temperature # domain.T = 10 # Theta discretization, with (step, 'unit') domain.theta = (0.1, 'deg') # Alpha step # domain.alpha = (2, 'deg') # Setting the physical parameters domain.Ms = 1740e3 # Magnetization in A/m, 1400kA/m for Co d_f = 8e-9 # size of the particule, in meter domain.V_f = 4/3 * np.pi * (d_f / 2)**3 domain.K_f = 50e3 # Uniaxial anisotropy, in J/m**3 domain.gamma_f = 0 # Uniaxial anisotropy direction, in radians domain.K_bq = 0 domain.gamma_bq = 0 domain.K_iso = 0 # AF parameters # domain.t_af = 0.5e-9 # Thickness of the AF shell, in m # d_af = d_f + domain.t_af * 2 # Global size of the F/AF core-shell, in m # domain.V_af = 4/3 * np.pi * ((d_af / 2)**3 - (d_f / 2)**3) # AF volume # domain.J_ex = 10e-6 # 3e-7 # Exchange energy # domain.S = 4 * np.pi * (d_f / 2)**2 # Exchange surface area # domain.K_af = 100e3 # AF anisotropy StoneX.logger.info(domain) return domain
vsm.plot_energyLandscape = False #Takes a lot of time vsm.plot_T = True # Export vsm.export_data = False # Displaying parameters logger.info(vsm) ################################################################################ # SAMPLE CREATION ################################################################################ # First, we create a specific domain, changing if necessary the parameters # Models available : Stoner_Wohlfarth, Meiklejohn_Bean, Garcia_Otero, Franco_Conde, Rotatable_AF, Double_MacroSpin domain = StoneX.create_domain(StoneX.Franco_Conde, 'Xmpl_FC') # Setting the temperature domain.T = 1 # Theta step domain.theta = (0.2, 'deg') # Setting the physical parameters domain.Ms = 1.4e6 # Magnetization in A/m r_f = 2e-9 # radius of the particule, in meter domain.V_f = 4/3*np.pi * r_f**3 domain.K_f = 1e5 # Uniaxial anisotropy, in J/m**3 domain.gamma_f = 0 # Uniaxial anisotropy direction, in radians domain.K_bq = 0 domain.gamma_bq = 0
vsm.plot_energyPath = False vsm.plot_energyLandscape = False #Takes a lot of time vsm.plot_T = False # Export vsm.export_data = True # Displaying parameters logger.info(vsm) ################################################################################ # SAMPLE CREATION ################################################################################ # First, we create a specific domain, changing if necessary the parameters # Models available : Stoner_Wohlfarth, Meiklejohn_Bean, Garcia_Otero, Franco_Conde, Rotatable_AF, Double_MacroSpin domain = StoneX.create_domain(StoneX.Stoner_Wohlfarth, 'Xmpl_SW') # Setting the temperature domain.T = 0 # Theta step domain.theta = (0.1, 'deg') # Setting the physical parameters domain.Ms = 1.4e6 # Magnetization in A/m r = 2e-9 # radius of the particule, in meter domain.V_f = 4/3*np.pi * r**3 domain.K_f = 1e5 # Uniaxial anisotropy, in J/m**3 domain.gamma_f = 0 # Uniaxial anisotropy direction, in radians domain.K_bq = 0 domain.gamma_bq = 0
vsm.plot_energyLandscape = False #Takes a lot of time vsm.plot_T = True # Export vsm.export_data = True # Displaying parameters logger.info(vsm) ################################################################################ # SAMPLE CREATION ################################################################################ # First, we create a specific domain, changing if necessary the parameters # Models available : Stoner_Wohlfarth, Meiklejohn_Bean, Garcia_Otero, Franco_Conde, Rotatable_AF, Double_MacroSpin domain = StoneX.create_domain(StoneX.Garcia_Otero, 'Xmpl_GO') # Setting the temperature domain.T = 1 # Theta step domain.theta = (0.2, 'deg') # Setting the physical parameters domain.Ms = 1.4e6 # Magnetization in A/m r_f = 2e-9 # radius of the particule, in meter domain.V_f = 4/3*np.pi * r_f**3 domain.K_f = 1e5 # Uniaxial anisotropy, in J/m**3 domain.gamma_f = 0 # Uniaxial anisotropy direction, in radians domain.K_bq = 0 domain.gamma_bq = 0
vsm.plot_energyLandscape = False #Takes a lot of time and memory vsm.plot_T = True # Export vsm.export_data = False # Displaying parameters logger.info(vsm) ################################################################################ # SAMPLE CREATION ################################################################################ # First, we create a specific domain, changing if necessary the parameters # Models available : Stoner_Wohlfarth, Meiklejohn_Bean, Garcia_Otero, Franco_Conde, Rotatable_AF, Double_MacroSpin domain = StoneX.create_domain(StoneX.Rotatable_AF, 'sampleRA') # Setting the temperature domain.T = 1 # Theta step domain.theta = (1, 'deg') # Alpha step domain.alpha = (2, 'deg') # Setting the physical parameters domain.Ms = 1.1e6*5#1.4e6 # Magnetization in A/m r_f = 4e-9 # radius of the particule, in meter domain.V_f = 4/3*np.pi * r_f**3 domain.K_f = 3e4 /5 # Uniaxial anisotropy, in J/m**3
vsm.plot_energyLandscape = False #Takes a lot of time vsm.plot_T = False # Export vsm.export_data = False # Displaying parameters logger.info(vsm) ################################################################################ # SAMPLE CREATION ################################################################################ # First, we create a specific domain, changing if necessary the parameters # Models available : Stoner_Wohlfarth, Meiklejohn_Bean, Garcia_Otero, Franco_Conde, Rotatable_AF, Double_MacroSpin domain = StoneX.create_domain(StoneX.Meiklejohn_Bean, 'sample') # Setting the temperature domain.T = 0 # Theta step domain.theta = (0.1, 'deg') # Setting the physical parameters domain.Ms = 1.4e6 # Magnetization in A/m r_f = 2e-9 # radius of the particule, in meter domain.V_f = 4/3*np.pi * r_f**3 domain.K_f = 1e5 # Uniaxial anisotropy, in J/m**3 domain.gamma_f = 0 # Uniaxial anisotropy direction, in radians domain.K_bq = 0 domain.gamma_bq = 0