Contents
antiferromagnetic chain
afc = spinw;
afc.genlattice('lat_const',[3 4 4])
afc.addatom('r',[ 0 0 0],'S',1)
afc.addmatrix('label','A','value',diag([0 0 0.1]))
afc.addmatrix('label','J1','value',1)
afc.addmatrix('label','J2-','value',1/3,'color','orange')
afc.gencoupling
afc.addcoupling('J1',1)
afc.addcoupling('J2-',5)
afc.addaniso('A')
plot(afc,'range',[2 1 1])
Error using sw_readparam (line 105)
Necessary input option is missing 'mat'
Error in spinw/addcoupling (line 69)
param = sw_readparam(inpForm, varargin{:});
Error in tutorial22 (line 10)
afc.addcoupling('J1',1)
opt magnetic structure
afc.optmagstr('func',@gm_spherical3d,'xmin',[0 0, 0 0 0,0 0],'xmax',[pi/2 0,1/2 0 0,0 0])
E0 = afc.energy;
magnetic field
optRes = afc.optmagsteep('random',false,'nRun',400);
figure;
plot(optRes.e,'o-')
spin wave
spec = afc.spinwave({[0 0 0] [2 0 0] 500},'hermit',true);
spec = sw_egrid(spec,'Evect',linspace(0,3,300));
figure
sw_plotspec(spec);
axis([0 2 0 3])