Skip to content

Instantly share code, notes, and snippets.

View mducle's full-sized avatar

Duc Le mducle

View GitHub Profile
public: void __cdecl NeXus::File::getData<__int64>(class std::vector<__int64,class std::allocator<__int64> > & __ptr64) __ptr64
public: void __cdecl NeXus::File::getData<__int64>(__int64 * __ptr64 const) __ptr64
public: void __cdecl NeXus::File::getData<unsigned __int64>(class std::vector<unsigned __int64,class std::allocator<unsigned __int64> > & __ptr64) __ptr64
public: void __cdecl NeXus::File::getData<unsigned __int64>(unsigned __int64 * __ptr64 const) __ptr64
public: void __cdecl NeXus::File::getData<BOOL>(BOOL * __ptr64 const) __ptr64
public: void __cdecl NeXus::File::getData<signed char>(class std::vector<signed char,class std::allocator<signed char> > & __ptr64) __ptr64
public: void __cdecl NeXus::File::getData<signed char>(signed char * __ptr64 const) __ptr64
public: void __cdecl NeXus::File::getData<char>(class std::vector<char,class std::allocator<char> > & __ptr64) __ptr64
public: void __cdecl NeXus::File::getData<char>(char * __ptr64) __ptr64
public: void __cdecl NeXus::File::getData<unsigned cha
Updating specs:
- mantidworkbench
Package Version Build Channel Size
----------------------------------------------------------------------------------------------------
Install:
----------------------------------------------------------------------------------------------------
""" Antiferromagnetic chain example """
from multiprocessing.spawn import freeze_support
from pyspinw.coupling import HeisenbergCoupling
from pyspinw.hamiltonian import Hamiltonian
from pyspinw.interface import (generate_exchanges, filter, axis_anisotropies, generate_structure,
generate_helical_structure)
from pyspinw.path import Path, Path1D
from pyspinw.site import LatticeSite
close all
%%
AFMchain = spinw;
AFMchain.genlattice('lat_const',[8 3 8],'angled',[90 90 90],'spgr',0);
AFMchain.addatom('r',[0 0 0],'S',1,'label','MCu1','color','blue');
AFMchain.gencoupling('maxDistance',7)
AFMchain.addmatrix('label','Ja','value',1,'color','red');
AFMchain.addcoupling('mat','Ja','bond',1);
%AFMchain.genmagstr('mode','direct','k',[1/2 0 0],'n',[1 0 0],'S',[0; 1 ;0],'nExt');
AFMchain.genmagstr('mode','direct','nExt',[2 1 1],'S',[0 0; 1 -1; 0 0]);