[gpaw-users] Spin Polarized Calculations
Rolf Wuerdemann
rowue at digitalis.org
Fri Jul 16 00:43:57 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael F. Peintinger schrieb:
> Dear all,
Hi Michael,
>
> how do i perform a spin polarized calculation with fixes spin.
>
> I need to calculate the energy difference between singlet and triplet
> state.
>
> Is there a way to set that there are two unpaired electrons in the
> system?
I would try to set the initial magnetic moments and afterwards
"fixmagmom=true" in the calculator:
<code snippet>
nratoms=len(s) # say we have two here
mm = [0] * nratoms # setup some array
mm[0] = 1.0 # set the magnetic moment according
mm[1] = 1.0 # to your system, two unpaired e-
s.set_initial_magnetic_moments(mm) # s is our ase-atoms object
c = GPAW(_some_options,
occupations=FermiDirac(width=0.1, fixmagmom=True),
_some_more_options)
s.set_calculator(c) # have some fun
</code snippet>
But be aware - gpaw will calculate _two_ fermi levels in this
case (one for each spin)
>
> Regards
>
>
> Michael
>
Hope this fits your needs,
kind regards,
Rolf
- --
- --
Security is an illusion - Datasecurity twice
Rolf Würdemann - rowue at digitalis.org
GnuPG fingerprint: 7383 348F 67D1 CD27 C90F DDD0 86A3 31B6 67F0 D02F
jabber: rowue at digitalis.org ECF127C7 EAB85F87 BC75ACB5 2EC646D4 99211A31
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkw/jy0ACgkQhqMxtmfw0C9QAwCgjM4wS7/Fmhpe5k3o4BRvXpfu
9y0AoJrmuWFUUfRVLuebYfVM8GFmnPb3
=zLXF
-----END PGP SIGNATURE-----
More information about the gpaw-users
mailing list