Hi<div>I work with two-dimensional hexagonal boron nitride. The valency of the N (B) element calculated by XTB is -0.45(0.45), and I've seen some papers give it as -2.6. I don't know if that's right. I've been told by some scholars that changes in charge are important. The value of charge is affected by the way it is divided, and the value of charge is also different from the way it is divided, so I do not care about the size of the value of charge. (I don't know what you mean by physically
sound )<br />I have calculated the mechanical properties of hexagonal boron nitride with XTB, and the results are in a reasonable range.<br /></div><div><br /></div><div>regards</div><div>EN</div><div><br /><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, March 1, 2024 at 4:58:05 PM UTC+8 Jürg Hutter wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi
<br>
<br>did you check that the xTB Hamiltonian correctly describes your basic system?
<br>Are fundamental properties correct (without EField)?
<br>You also disable the check on atomic charges, did you make sure that the
<br>final atomic charges (again without Efield) are physically sound?
<br>
<br>regards
<br>JH
<br>
<br>________________________________________
<br>From: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Evelyn Navarro <<a href data-email-masked rel="nofollow">easa...@gmail.com</a>>
<br>Sent: Thursday, February 29, 2024 3:33 PM
<br>To: cp2k
<br>Subject: Re: [CP2K:19978] Does the boundary setting affect the charge distribution under the electric field?
<br>
<br>Hi
<br>I tried to use the periodic electric field to calculate the two-dimensional piezoelectric material at the periodic boundary, but the charge seemed to accumulate towards the middle of the two-dimensional material, which was unreasonable. The normal ones should gather towards both ends of the material. I want to know what the problem is. (This does not seem to be a problem with aperiodic boundaries.)
<br>&GLOBAL
<br> PROJECT 468-zhouqi-0.003d-xyzbianjie-2024-M-EWALD
<br> PRINT_LEVEL LOW
<br> RUN_TYPE MD
<br>&END GLOBAL
<br>
<br>&FORCE_EVAL
<br> METHOD Quickstep
<br> &SUBSYS
<br> &CELL
<br> ABC 38.9946780817 32.5196269485 100.000
<br> PERIODIC XYZ #Direction of applied PBC (geometry aspect)
<br> &END CELL
<br> &TOPOLOGY
<br>COORD_FILE_FORMAT XYZ
<br> COORD_FILE_NAME <a href="http://468.xyz" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://468.xyz&source=gmail&ust=1709386752068000&usg=AOvVaw0OT9xVmmepYXmMnCu_cFLw">468.xyz</a>
<br> &CENTER_COORDINATES #Centering the atoms in the box
<br> &END
<br> &END
<br># &VELOCITY #You can set initial atomic velocities in this section
<br># &END VELOCITY
<br> &END SUBSYS
<br>
<br> &DFT
<br># WFN_RESTART_FILE_NAME 400-RESTART.wfn
<br> CHARGE 0 #Net charge
<br> MULTIPLICITY 1 #Spin multiplicity
<br>
<br> &PERIODIC_EFIELD
<br> INTENSITY 0.003
<br> POLARISATION -1.00000 0.00000 0.00000
<br> &END
<br>
<br> &QS
<br> EPS_DEFAULT 1E-10 #This is default. Set all EPS_xxx to values such that the energy will be correct up to this value
<br> EXTRAPOLATION ASPC #Extrapolation for wavefunction during e.g. MD. ASPC is default, PS also be used
<br> EXTRAPOLATION_ORDER 3 #Order for PS or ASPC extrapolation. 3 is default
<br> METHOD xTB
<br> &xTB
<br> DO_EWALD T
<br> CHECK_ATOMIC_CHARGES F #xTB calculation often crashes without setting this to false
<br> &PARAMETER
<br> DISPERSION_PARAMETER_FILE dftd3.dat
<br> PARAM_FILE_NAME xTB_parameters
<br> &END PARAMETER
<br> &END xTB
<br> &END QS
<br> &POISSON
<br> &EWALD
<br> ALPHA 1.0
<br> EWALD_TYPE SPME
<br> GMAX 75
<br> &END EWALD
<br>
<br> PERIODIC XYZ #Direction(s) of PBC for calculating electrostatics
<br> PSOLVER PERIODIC ##ANALYTIC #The way to solve Poisson equation
<br> &END POISSON
<br> &SCF
<br> MAX_SCF 20 #Maximum number of steps of inner SCF
<br> EPS_SCF 1.0E-05 #Convergence threshold of density matrix of inner SCF
<br># SCF_GUESS RESTART #Use wavefunction from WFN_RESTART_FILE_NAME file as initial guess
<br> &OT
<br> PRECONDITIONER FULL_SINGLE_INVERSE
<br> MINIMIZER DIIS #CG is worth to consider in difficult cases
<br> LINESEARCH 2PNT #1D line search algorithm for CG. 2PNT is default, 3PNT is better but more costly. GOLD is best but very expensive
<br> &END OT
<br> &OUTER_SCF
<br> MAX_SCF 20 #Maximum number of steps of outer SCF
<br> EPS_SCF 1.0E-05 #Convergence threshold of outer SCF
<br> &END OUTER_SCF
<br> &PRINT
<br> &RESTART OFF #Do not generate wfn file to suppress meaningless I/O cost
<br> &END RESTART
<br> &END PRINT
<br> &END SCF
<br> &PRINT
<br> &MULLIKEN
<br> FILENAME muliken
<br> &EACH
<br> MD 1
<br> &END
<br> PRINT_ALL F #If T, then printing full net AO and overlap population matrix
<br> &END MULLIKEN
<br> &END PRINT
<br>
<br> &END DFT
<br>&END FORCE_EVAL
<br>
<br>&MOTION
<br> &MD
<br> ENSEMBLE NVT
<br> STEPS 250000 #Number of steps to run
<br> TIMESTEP 1.0 #Step size in fs. Decrease it properly for high temperature simulation
<br> TEMPERATURE 5 #Initial and maintained temperature (K)
<br> &THERMOSTAT
<br> TYPE NOSE
<br> &END THERMOSTAT
<br> &END MD
<br> &CONSTRAINT
<br> &FIXED_ATOMS #Set atoms to be fixed
<br> COMPONENTS_TO_FIX XYZ #Which fractional components will be fixed, can be X, Y, Z, XY, XZ, YZ, XYZ
<br> LIST 357..468
<br>
<br> &END FIXED_ATOMS
<br> &END CONSTRAINT
<br> &PRINT
<br> &TRAJECTORY
<br> &EACH
<br> MD 1 #Output frequency of coordinate
<br> &END EACH
<br> FORMAT xyz
<br> &END TRAJECTORY
<br> &RESTART
<br> BACKUP_COPIES 0 #Maximum number of backing up restart file, 0 means never
<br> &EACH
<br> MD 100 #Frequency of updating last restart file. Default is 20
<br> &END EACH
<br> &END RESTART
<br> &RESTART_HISTORY
<br> &EACH
<br> MD 1000 #How many steps a history .restart file is generated. Default is 500
<br> &END EACH
<br> &END RESTART_HISTORY
<br> &END PRINT
<br>&END MOTION
<br>
<br>On Monday, February 26, 2024 at 5:07:59 PM UTC+8 Jürg Hutter wrote:
<br>Hi
<br>
<br>you are using a probably not tested combination of features.
<br>xTB with 2D periodicity and external electrical field (and hoping
<br>for the correct default Ewald setting) might not result in a
<br>correct setup. You should also use the PERIODIC_EFIELD option.
<br>I would suggest to simplify your system: use 3 D periodic cell with a large
<br>vacuum space (e.g. 80 A). This should correctly choose the Ewald settings
<br>and together with PERIODIC_EFIELD might work.
<br>
<br>regards
<br>JH
<br>
<br>________________________________________
<br>From: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Evelyn Navarro <<a href data-email-masked rel="nofollow">easa...@gmail.com</a>>
<br>Sent: Friday, February 23, 2024 2:03 PM
<br>To: cp2k
<br>Subject: [CP2K:19964] Does the boundary setting affect the charge distribution under the electric field?
<br>
<br>Dear all
<br>I was studying the charge changes of two-dimensional piezoelectric materials under electric fields, and found that when the boundary is set as a period, the charge is actually concentrated in the middle of the material, which is not understandable. But if you use aperiodic boundaries, the charge will accumulate towards both ends of the material, which is normal. I tried the electric field and the periodic electric field respectively, and as long as the boundary is periodic, the charge will gather in the middle, which is incomprehensible, and I want to know why. What I want to study is periodic materials, and this periodic boundary is unavoidable.
<br>
<br>&GLOBAL
<br>PROJECT 468-zhouqi-0.004d-xybianjie-2024
<br>PRINT_LEVEL LOW
<br>RUN_TYPE MD
<br>&END GLOBAL
<br>
<br>&FORCE_EVAL
<br>METHOD Quickstep
<br>&SUBSYS
<br>&CELL
<br>ABC 38.9946780817 32.5196269485 20.000
<br>PERIODIC XY #Direction of applied PBC (geometry aspect)
<br>&END CELL
<br>&TOPOLOGY
<br>COORD_FILE_FORMAT XYZ
<br>COORD_FILE_NAME <a href="http://468.xyz" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://468.xyz&source=gmail&ust=1709386752068000&usg=AOvVaw0OT9xVmmepYXmMnCu_cFLw">468.xyz</a><<a href="http://468.xyz" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://468.xyz&source=gmail&ust=1709386752068000&usg=AOvVaw0OT9xVmmepYXmMnCu_cFLw">http://468.xyz</a>>
<br>&CENTER_COORDINATES #Centering the atoms in the box
<br>&END
<br>&END
<br># &VELOCITY #You can set initial atomic velocities in this section
<br># &END VELOCITY
<br>&END SUBSYS
<br>
<br>&DFT
<br># WFN_RESTART_FILE_NAME 400-RESTART.wfn
<br>CHARGE 0 #Net charge
<br>MULTIPLICITY 1 #Spin multiplicity
<br>
<br>&EFIELD
<br>INTENSITY 0.004
<br>POLARISATION -1.00000 0.00000 0.00000
<br>&END
<br>
<br>&QS
<br>EPS_DEFAULT 1E-10 #This is default. Set all EPS_xxx to values such that the energy will be correct up to this value
<br>EXTRAPOLATION ASPC #Extrapolation for wavefunction during e.g. MD. ASPC is default, PS also be used
<br>EXTRAPOLATION_ORDER 3 #Order for PS or ASPC extrapolation. 3 is default
<br>METHOD xTB
<br>&xTB
<br>CHECK_ATOMIC_CHARGES F #xTB calculation often crashes without setting this to false
<br>&PARAMETER
<br>DISPERSION_PARAMETER_FILE dftd3.dat
<br>PARAM_FILE_NAME xTB_parameters
<br>&END PARAMETER
<br>&END xTB
<br>&END QS
<br>&POISSON
<br>PERIODIC XY #Direction(s) of PBC for calculating electrostatics
<br>PSOLVER ANALYTIC #The way to solve Poisson equation
<br>&END POISSON
<br>&SCF
<br>MAX_SCF 20 #Maximum number of steps of inner SCF
<br>EPS_SCF 1.0E-05 #Convergence threshold of density matrix of inner SCF
<br># SCF_GUESS RESTART #Use wavefunction from WFN_RESTART_FILE_NAME file as initial guess
<br>&OT
<br>PRECONDITIONER FULL_SINGLE_INVERSE
<br>MINIMIZER DIIS #CG is worth to consider in difficult cases
<br>LINESEARCH 2PNT #1D line search algorithm for CG. 2PNT is default, 3PNT is better but more costly. GOLD is best but very expensive
<br>&END OT
<br>&OUTER_SCF
<br>MAX_SCF 20 #Maximum number of steps of outer SCF
<br>EPS_SCF 1.0E-05 #Convergence threshold of outer SCF
<br>&END OUTER_SCF
<br>&PRINT
<br>&RESTART OFF #Do not generate wfn file to suppress meaningless I/O cost
<br>&END RESTART
<br>&END PRINT
<br>&END SCF
<br>&END DFT
<br>&END FORCE_EVAL
<br>
<br>&MOTION
<br>&MD
<br>ENSEMBLE NVT
<br>STEPS 250000 #Number of steps to run
<br>TIMESTEP 1.0 #Step size in fs. Decrease it properly for high temperature simulation
<br>TEMPERATURE 5 #Initial and maintained temperature (K)
<br>&THERMOSTAT
<br>TYPE NOSE
<br>&END THERMOSTAT
<br>&END MD
<br>&CONSTRAINT
<br>&FIXED_ATOMS #Set atoms to be fixed
<br>COMPONENTS_TO_FIX XYZ #Which fractional components will be fixed, can be X, Y, Z, XY, XZ, YZ, XYZ
<br>LIST 357..468
<br>
<br>&END FIXED_ATOMS
<br>&END CONSTRAINT
<br>&PRINT
<br>&TRAJECTORY
<br>&EACH
<br>MD 1 #Output frequency of coordinate
<br>&END EACH
<br>FORMAT xyz
<br>&END TRAJECTORY
<br>&RESTART
<br>BACKUP_COPIES 0 #Maximum number of backing up restart file, 0 means never
<br>&EACH
<br>MD 100 #Frequency of updating last restart file. Default is 20
<br>&END EACH
<br>&END RESTART
<br>&RESTART_HISTORY
<br>&EACH
<br>MD 1000 #How many steps a history .restart file is generated. Default is 500
<br>&END EACH
<br>&END RESTART_HISTORY
<br>&END PRINT
<br>&END MOTION
<br>
<br>Thanks
<br>Evelyn Navarro
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a><mailto:<a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>>.
<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/0b163d78-c506-4817-97d6-ba7f187a4e85n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/0b163d78-c506-4817-97d6-ba7f187a4e85n%2540googlegroups.com&source=gmail&ust=1709386752068000&usg=AOvVaw1t592MZkpyYDhCHWPjJ1N7">https://groups.google.com/d/msgid/cp2k/0b163d78-c506-4817-97d6-ba7f187a4e85n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/0b163d78-c506-4817-97d6-ba7f187a4e85n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/0b163d78-c506-4817-97d6-ba7f187a4e85n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1709386752068000&usg=AOvVaw0BN55Xwuul6S4vOyP9ZiH8">https://groups.google.com/d/msgid/cp2k/0b163d78-c506-4817-97d6-ba7f187a4e85n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a><mailto:<a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>>.
<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/c242bead-ebad-4fe0-b0ae-d29874facc32n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/c242bead-ebad-4fe0-b0ae-d29874facc32n%2540googlegroups.com&source=gmail&ust=1709386752068000&usg=AOvVaw0SE8pw2_pHWGsiYuggWkaM">https://groups.google.com/d/msgid/cp2k/c242bead-ebad-4fe0-b0ae-d29874facc32n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/c242bead-ebad-4fe0-b0ae-d29874facc32n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/c242bead-ebad-4fe0-b0ae-d29874facc32n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1709386752068000&usg=AOvVaw1ajKEab9PZMfZ2aSRLPrll">https://groups.google.com/d/msgid/cp2k/c242bead-ebad-4fe0-b0ae-d29874facc32n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/f72c9de6-a387-4c31-b852-2d5e63a8266fn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/f72c9de6-a387-4c31-b852-2d5e63a8266fn%40googlegroups.com</a>.<br />