<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear José Xavier,<div class=""><br class=""></div><div class="">There is no way any reasonable smearing may affect a gap of several eV. The only effect of electronic smearing (Gaussian or otherwise) is to average the contribution of neighboring energy level to the ground-state electronic charge-density distribution (“neighbouring” means within the width of the smearing function). In “real” metals (i.e. conducting crystals) this allows one to replace the sum over occupied states enclosed by the Fermi surface (which amounts to integrating a discontinuous function: a numerically difficult task) with a more tractable integration of a continuous function over the entire Brillouin zone. For isolated molecules, smearing helps dumping the convergence oscillations arising from HOMO-LUMO level crossings. Neither of these two instances occur in your case: only a smearing of the order of (or larger than) the HOMO-LUMO gap may affect the result, and hopefully you won’t be using a smearing of 3 volts.</div><div class=""><br class=""></div><div class="">If no mistakes or oversights are being done, the only elements of a calculation that may affect the gap are the XC functional and the quality of the pseudo-potential. In covalent materials, the HOMO and LUMO usually derive from the same atomic orbitals, so that a pseudo-potential that accurately describes occupied states is also fit for the low-lying unoccupied ones. In molecular crystals, this is not necessarily the case and a pseudopotential that is good for the HOMO may not be as good for the LUMO. Not a frequent case, but not impossible either, I believe.</div><div class=""><br class=""></div><div class="">Oh, one last thing: members of this mailing list usually appreciate knowing the identity and affiliation of their correspondents.</div><div class=""><br class=""></div><div class="">Hope this helps — Stefano B<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 4 Nov 2021, at 08:25, José Xavier via users <<a href="mailto:users@lists.quantum-espresso.org" class="">users@lists.quantum-espresso.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear,<br class=""><br class="">Sorry. <br class="">The group I'm working with has published some papers describing the properties of the crystal of biomolecules using castep code and I would like to introduce the QE to perform similar calculations. Then, I am now trying to reproduce a paper published by the group last year to set up the input files for the next calculation that I will perform, also with the crystal structure of a biomolecule. <br class=""><br class="">I do not know if I can attach the paper here, so this is the reference: R. L. Araújo et al., Chemical Physics Letters 761 (2020) 138033. <br class=""><br class="">The band gap for Dopamine was 3.8 eV, and the other papers published by them showed values between 3-5 eV. That is why I have asked about the better option for the occupancy of semiconductors. It is one of the points that I'm trying to understand in QE to add to the calculations. <br class=""><br class="">It is the input file<br class="">&control<br class="">calculation = 'scf',<br class="">nstep = 1500,<br class="">etot_conv_thr = 5.0D-7,<br class="">forc_conv_thr = 1.0D-4,<br class="">verbosity = 'high',<br class="">/<br class=""><br class="">&system<br class="">ibrav = 8,<br class="">a = 10.50228,<br class="">b = 10.89998,<br class="">c = 7.70059,<br class="">nat = 96,<br class="">ntyp = 5,<br class="">ecutwfc = 73.49,<br class="">ecutrho = 293.99,<br class="">input_dft = 'PBE',<br class="">vdw_corr = 'ts',<br class="">/<br class=""><br class="">&electrons<br class="">electron_maxstep = 500,<br class="">conv_thr = 1.0D-8,<br class="">/<br class=""><br class="">&ions<br class="">/<br class=""><br class="">&cell<br class="">/<br class=""><br class="">ATOMIC_SPECIES<br class="">Cl 35.452702 Cl.upf<br class="">C 12.011000 C.upf<br class="">N 14.006700 N.upf<br class="">O 15.999400 O.upf<br class="">H 1.007900 H.upf<br class=""><br class=""><br class="">ATOMIC_POSITIONS (angstrom)<br class="">Cl 0.0817992817 3.5576016812 2.0615460194<br class="">C 5.5672207516 2.3820020182 1.5383881642<br class="">C 6.8676172680 2.3016151531 2.0378186594<br class="">C 7.6740917486 1.2139979213 1.7109111992<br class="">C 7.1708614134 0.2052409474 0.8660364342<br class="">C 5.8641017691 0.2888392074 0.3824664792<br class="">C 5.0461091419 1.3745015880 0.7211106768<br class="">C 3.6078113637 1.4316201905 0.2725853451<br class="">C 2.7518815143 0.4607516679 1.0837652041<br class="">N 1.2927740324 0.7293581046 0.9097604338<br class="">O 8.9420606908 1.0405633732 2.1969666347<br class="">O 7.9421528767 -0.8592157994 0.4969485133<br class="">H 4.9507875742 3.2382085016 1.7978112316<br class="">H 7.2567722381 3.0757711119 2.6983831238<br class="">H 5.4944176415 -0.5103602212 -0.2609621157<br class="">H 3.5211750076 1.1867086798 -0.7944499632<br class="">H 3.2341044736 2.4553300348 0.4002708665<br class="">H 2.9544617954 0.5610191735 2.1528589679<br class="">H 2.9305129146 -0.5797510968 0.7909394044<br class="">H 1.0163150923 0.8290194264 -0.0876428360<br class="">H 0.7377473441 -0.0519386975 1.3201503246<br class="">H 1.0094717266 1.6180109698 1.3674476912<br class="">H 9.3583518315 1.9253421323 2.3588599841<br class="">H 8.7739063725 -0.9001600265 1.0247860732<br class="">Cl 10.4204815314 9.0075931626 2.0615460194<br class="">C 4.9350600615 7.8319934996 1.5383881642<br class="">C 3.6346635451 7.7516066345 2.0378186594<br class="">C 2.8281890645 6.6639894027 1.7109111992<br class="">C 3.3314193997 5.6552324288 0.8660364342<br class="">C 4.6381790440 5.7388306888 0.3824664792<br class="">C 5.4561716712 6.8244930694 0.7211106768<br class="">C 6.8944694494 6.8816116719 0.2725853451<br class="">C 7.7503992987 5.9107431493 1.0837652041<br class="">N 9.2095067806 6.1793495860 0.9097604338<br class="">O 1.5602201223 6.4905548545 2.1969666347<br class="">O 2.5601279363 4.5907756820 0.4969485133<br class="">H 5.5514932389 8.6881999830 1.7978112316<br class="">H 3.2455085750 8.5257625933 2.6983831238<br class="">H 5.0078631716 4.9396312602 -0.2609621157<br class="">H 6.9811058055 6.6367001612 -0.7944499632<br class="">H 7.2681763394 7.9053215162 0.4002708665<br class="">H 7.5478190177 6.0110106549 2.1528589679<br class="">H 7.5717678985 4.8702403846 0.7909394044<br class="">H 9.4859657207 6.2790109078 -0.0876428360<br class="">H 9.7645334690 5.3980527839 1.3201503246<br class="">H 9.4928090865 7.0680024512 1.3674476912<br class="">H 1.1439289816 7.3753336137 2.3588599841<br class="">H 1.7283744406 4.5498314548 1.0247860732<br class="">Cl 0.0817992817 1.8923898002 5.9118373550<br class="">C 5.5672207516 3.0679894631 5.3886794997<br class="">C 6.8676172680 3.1483763283 5.8881099949<br class="">C 7.6740917486 4.2359935601 5.5612025347<br class="">C 7.1708614134 5.2447505339 4.7163277697<br class="">C 5.8641017691 5.1611522740 4.2327578147<br class="">C 5.0461091419 4.0754898934 4.5714020123<br class="">C 3.6078113637 4.0183712909 4.1228766806<br class="">C 2.7518815143 4.9892398135 4.9340565396<br class="">N 1.2927740324 4.7206333768 4.7600517694<br class="">O 8.9420606908 4.4094281082 6.0472579702<br class="">O 7.9421528767 6.3092072808 4.3472398488<br class="">H 4.9507875742 2.2117829797 5.6481025671<br class="">H 7.2567722381 2.3742203695 6.5486744594<br class="">H 5.4944176415 5.9603517026 3.5893292198<br class="">H 3.5211750076 4.2632828016 3.0558413723<br class="">H 3.2341044736 2.9946614466 4.2505622020<br class="">H 2.9544617954 4.8889723078 6.0031503034<br class="">H 2.9305129146 6.0297425782 4.6412307399<br class="">H 1.0163150923 4.6209720549 3.7626484995<br class="">H 0.7377473441 5.5019301789 5.1704416601<br class="">H 1.0094717266 3.8319805115 5.2177390267<br class="">H 9.3583518315 3.5246493491 6.2091513196<br class="">H 8.7739063725 6.3501515079 4.8750774087<br class="">Cl 10.4204815314 7.3423812815 5.9118373550<br class="">C 4.9350600615 8.5179809445 5.3886794997<br class="">C 3.6346635451 8.5983678096 5.8881099949<br class="">C 2.8281890645 9.6859850415 5.5612025347<br class="">C 3.3314193997 10.6947420153 4.7163277697<br class="">C 4.6381790440 10.6111437554 4.2327578147<br class="">C 5.4561716712 9.5254813747 4.5714020123<br class="">C 6.8944694494 9.4683627722 4.1228766806<br class="">C 7.7503992987 10.4392312948 4.9340565396<br class="">N 9.2095067806 10.1706248581 4.7600517694<br class="">O 1.5602201222 9.8594195896 6.0472579702<br class="">O 2.5601279363 11.7591987621 4.3472398488<br class="">H 5.5514932389 7.6617744611 5.6481025671<br class="">H 3.2455085750 7.8242118508 6.5486744594<br class="">H 5.0078631716 11.4103431839 3.5893292198<br class="">H 6.9811058055 9.7132742830 3.0558413723<br class="">H 7.2681763394 8.4446529280 4.2505622020<br class="">H 7.5478190177 10.3389637892 6.0031503034<br class="">H 7.5717678985 11.4797340595 4.6412307399<br class="">H 9.4859657207 10.0709635363 3.7626484995<br class="">H 9.7645334690 10.9519216602 5.1704416601<br class="">H 9.4928090865 9.2819719929 5.2177390267<br class="">H 1.1439289816 8.9746408304 6.2091513196<br class="">H 1.7283744406 11.8001429893 4.8750774087<br class=""><br class=""><br class="">K_POINTS (automatic)<br class=""> 2 2 2 0 0 0<br class=""><br class=""><br class=""><br class=""><br class="">Em quinta-feira, 4 de novembro de 2021 03:06:30 BRT, Kazume NISHIDATE <<a href="mailto:nisidate@iwate-u.ac.jp" class="">nisidate@iwate-u.ac.jp</a>> escreveu: <br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class=""> would like to ask if you could tell me why this question generates so different answers. <br class=""></blockquote>It is partly because you did not provide the detailed information on your calculation.<br class=""><br class="">I supposed it is a crystal composed of molecules and you applied some<br class="">k-point mesh to incorporate its periodicity. I thought that the system<br class="">might be in a semiconducting state since you were interested in the<br class="">gap value. In that case, you should apply the 'smearing' method.<br class=""><br class="">If you are calculating an isolated molecule in vacuume with only the<br class="">gamma for the k-point, then the 'fixed' method is a good choice since<br class="">the occupancy can be defined explicitly at the gamma.<br class=""><br class="">- note<br class="">The 'nbnd' is the number of band. You should include sufficient empty<br class="">bands to draw a nice band/dos structure.<br class=""><br class=""><br class=""><br class="">best regards<br class="">kazume NISHIDATE<br class="">敬具 西館数芽<br class=""><br class=""><a href="mailto:nisidate@iwate-u.ac.jp" class="">nisidate@iwate-u.ac.jp</a><br class="">kazume.nishidate@gmail.com<br class=""><br class=""><br class="">2021年11月4日(木) 14:09 José Xavier <jxln_karate@yahoo.com.br>:<br class=""><blockquote type="cite" class="">Dear,<br class=""><br class="">Thank you for your explanation. <br class="">I'll try both occupancies to see if the results of bandgap and DOS are very different. When I got the values, I can post the differences here.<br class=""><br class="">I would like to ask if you could tell me why this question generates so different answers. As just like in the tutorials I saw, each one gave me a different answer.<br class=""><br class="">Best wishes,<br class="">José Xavier<br class=""><br class=""><br class="">Em terça-feira, 2 de novembro de 2021 00:41:19 BRT, Mahmoud Payami Shabestari <mpayami@aeoi.org.ir> escreveu: <br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class="">Dear Xavier,<br class=""><br class=""> <br class=""><br class=""><blockquote type="cite" class="">So, I can use the Fixed occupation and, if the energy levels show a small bandgap, I introduce the >Smearing. Is it right?<br class=""></blockquote><br class=""> <br class=""><br class="">Yes, exactly.<br class=""><br class=""><br class=""> <br class=""><br class=""><blockquote type="cite" class="">If yes, I just have to add the nbnd function in the input file?<br class=""></blockquote><br class=""> <br class=""><br class="">Yes. It suffices to put nbnd equal to N/2 + 1 (N is number of electrons).<br class=""><br class=""> <br class=""><br class="">Mahmoud<br class=""><br class=""><blockquote type="cite" class="">From: xavier neto via users <users@lists.quantum-espresso.org><br class=""><br class="">To: Mahmoud Payami Shabestari <mpayami@aeoi.org.ir>, Quantum ESPRESSO users Forum <users@lists.quantum-espresso.org><br class="">Date: Mon, 1 Nov 2021 21:04:31 -0300<br class="">Subject: [QE-users] occupation in biological molecules and band gap<br class=""> <br class="">Dear Mahmoud Payami,<br class=""><br class="">Thank you for your answer. It helps me a lot.<br class=""><br class="">So, I can use the Fixed occupation and, if the energy levels show a small bandgap, I introduce the Smearing. Is it right?<br class=""><br class=""> <br class=""><br class="">About the second question. I've read that the result of HOMO - LUMO, obtained after the SCF calculation, can give the bandgap. Can I obtain the bandgap in that way? If yes, I just have to add the nbnd function in the input file?<br class=""><br class="">On 11/1/21 02:04, Mahmoud Payami Shabestari wrote:<br class=""><br class=""><blockquote type="cite" class=""> <br class="">Dear José Xavier,<br class=""><br class="">Hi.<br class=""><br class="">Smearing for the occupations is used when the levels near HOMO are so close (commonly in metals near Fermi level) that in consecutive iterations they may exchange positions and lead to nonconvergence. For semiconductors with 3-5 eV gap I think it won't help. <br class=""><br class="">Bests<br class=""><br class=""> <br class="">Mahmoud Payami<br class=""><br class="">NSTRI, AEOI, Tehran, Iran<br class=""><br class=""> <br class=""><br class=""><br class=""> <br class=""><blockquote type="cite" class="">From: José Xavier via users <users@lists.quantum-espresso.org><br class="">To: "users@lists.quantum-espresso.org" <users@lists.quantum-espresso.org><br class="">Date: Mon, 1 Nov 2021 00:18:55 +0000 (UTC)<br class="">Subject: [QE-users] occupation in biological molecules and band gap<br class=""> <br class="">Dear all,<br class=""><br class="">I'm new in QE. The group that I'm working with usually calculates the properties of biologically relevant molecules, like amino acids, hormones, neurotransmitters, and drugs, and I would like to introduce the QE code to the group. Their previous papers have shown that the bandgap of these crystals is something between 3-5 eV, which I understand to be in the semiconductor range.<br class=""><br class="">I've watched/read some tutorials about QE, and some of these showed that the occupation of semiconductors should be "smearing", other ones that it should be "fixed", but no one showed calculations with this kind of molecules. What value should I use for the SCF and electronic calculations of the crystals that I'm going to work on (amino acids, hormones, neurotransmitters, and drugs)?<br class=""><br class="">*Are there any differences when the molecule has a metal, like the Heme group?<br class=""><br class="">Besides, I would like to ask if there is a calculation that I could perform to obtain the bandgap of these molecules. Is it only possible if I create the band structure figure and calculate the difference between the peaks in VB and CB?<br class=""><br class="">Thank you for your help,<br class=""><br class="">Sincerely,<br class="">José Xavier<br class=""><br class="">_______________________________________________<br class="">Quantum ESPRESSO is supported by MaX (www.max-centre.eu)<br class="">users mailing list users@lists.quantum-espresso.org<br class="">https://lists.quantum-espresso.org/mailman/listinfo/users<br class=""><br class=""></blockquote><br class=""><br class=""></blockquote><br class=""></blockquote><br class=""><br class=""><br class=""></blockquote><br class="">_______________________________________________<br class="">Quantum ESPRESSO is supported by MaX (www.max-centre.eu)<br class="">users mailing list users@lists.quantum-espresso.org<br class="">https://lists.quantum-espresso.org/mailman/listinfo/users</div></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span style="font-size: 12px;" class="">— </span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="margin: 0px;" class=""><font class="Apple-style-span"><span style="font-size: 12px;" class="">Stefano Baroni - Trieste — </span><a href="http://stefano.baroni.me" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">http://stefano.baroni.me</a><span style="font-size: 12px;" class=""> </span></font></div></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class=""><br class=""></div></div></div></div></div></div></div></span></span></div></div></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>