Runs with fixed magnetization

Concerns any physical issues arising during the setup step (-i option). This includes problems with symmetries, k/q-point sets, and so on. For technical problems (running in parallel, etc), refer to the Technical forum.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, Daniele Varsano

Post Reply
nthiliniek
Posts: 36
Joined: Mon Oct 24, 2022 7:23 pm

Runs with fixed magnetization

Post by nthiliniek » Thu Apr 17, 2025 8:10 pm

Hello,

Does Yambo support the QE runs with fixed magnetization? Or should I stick with the option " starting magnetization"?

Thanks.
Niranji Ekanayake
PhD Candidate
Department of Chemistry
Queen's University
Kingston, ON K7L 3N6
Canada

andrea.ferretti
Posts: 214
Joined: Fri Jan 31, 2014 11:13 am

Re: Runs with fixed magnetization

Post by andrea.ferretti » Fri Apr 18, 2025 10:54 am

Dear nthiliniek,

QE implements fixed magnetization in spin-collinear calculations by using two fermi levels.
As far as I remember this option was not directly compatible with Yambo (which works only with one fermi level)...

One possibility, though, is to first converge with fixed mag and two fermi levels, and then check whether
one could go back to a description with 1 fermi level.

This could be done eg at the QE level by having a follow up scf run, starting with the existing spin densities, without the magnetic constraint.
If it stays with the desired magnetization you are done.
Within Yambo, if the system allows (eg you are working with a magnetic semiconductor), one could identify a unique fermi level even if QE has used two...
Then one needs to hack the datafile_schema.xml in QE $prefix.save to trick Yambo (this is a bit for advanced users, though).

short answer: not obvious to make fix mag working with Yambo (though not always impossible)
take care

Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Post Reply