Hi! Make an example of ld1.x input file
- User
Hi! Make an example of ld1.x input file
- Assistant
In the LAMMPS environment, an ld1.x input file is used for Density Functional Theory (DFT) calculations using Quantum Espresso. Here's a simple example of an ld1.x input file for the generation of a pseudopotential of Hydrogen (H):
&input title = 'H Pseudopotential', prefix = 'h', zed = 1, rel = 1, iswitch = 2, config = '[He] 2s1', dft = 'PZ', / &inputp pseudotype = 1, file_pseudopw = 'h_pz_lda_upf.upf', lloc = .FALSE., / &inputwfc eminld = 20, emaxld = 30, filkem = 'h_kem' / &psd epsq = 0.8, rcloc = 1.0, /This file sets up a norm-conserving pseudopotential calculation using Perdew-Zunger (PZ) LDA functional for the hydrogen atom.
Some explanations for each option block are as follows:
input: General information about the calculation, pseudopotential type, and related settings.inputp: Output file name and related settings for the generated pseudopotential.inputwfc: Information about wavefunction calculations.psd: Information about pseudopotential and related settings.
- User
Ok, how to run a full electronic calculation in QE?
- Assistant
To run a full electronic calculation in Quantum Espresso (QE), you'll need to create an input file for the 'pw.x' executable, which performs the electronic structure calculation using plane wave DFT. Here's an example input file for a calculation of a simple Silicon (Si) crystal:
&control calculation = 'scf', prefix = 'si', outdir = './output/', pseudo_dir = './pseudopotentials/', verbosity = 'high', wf_collect = .true., disk_io = 'low', / &system ibrav = 2, celldm(1) = 10.20, nat = 2, ntyp = 1, ecutwfc = 30, ecutrho = 240, occupations = 'smearing', smearing = 'gaussian', degauss = 0.02, / &electrons conv_thr = 1.0d-8, mixing_beta = 0.5, electron_maxstep = 100, / ATOMIC_SPECIES Si 28.0855 Si.pz-vbc.UPF ATOMIC_POSITIONS {crystal} Si 0.00 0.00 0.00 Si 0.25 0.25 0.25 K_POINTS {automatic} 4 4 4 0 0 0Now, follow these steps to perform the calculation:
- Save the input file, for example, as
si_scf.in. - Make sure you have the necessary pseudopotential file (in this case,
Si.pz-vbc.UPF) in the./pseudopotentials/directory. - Open a terminal and navigate to the directory containing the input file and pseudopotentials.
- Run the QE calculation with the following command:
pw.x < si_scf.in > si_scf.outThis will run the quantum espresso calculation using the input file
si_scf.inand redirect the output to a file namedsi_scf.out. The output file will contain the results of the self-consistent calculation, including total energy, charge density, and wavefunctions.It's important to note that for different systems, you'll need to adapt the input file parameters like the crystal structure, atomic positions, k-points, and other settings.
- Save the input file, for example, as