Skip to content

3.1 Relax a water molecule with trustworthy forces

These are unexecuted teaching inputs and starting models. Original diagrams are schematics, not calculated results. Validate version-specific syntax, licensed or authorized data, numerical convergence and the scientific model before using this workflow.

3.1.1 Model, units and provenance

PW cutoffs and energies use Ry, common force output uses Ry/bohr, and pressure uses kbar. Geometry cards state their coordinate units. Different executables have distinct grammars and time-unit conventions.

Shared inputs, conventions and evidence

Original schematic: Relax a water molecule with trustworthy forces. No numerical results are claimed.
Original schematic: Relax a water molecule with trustworthy forces. No numerical results are claimed.

3.1.2 Unexecuted inputs and explicit deltas

Use the accompanying instructions to identify the parent calculation and placement of every delta; a snippet is not automatically a standalone input. Preserve all blank-line and file-provenance requirements.

3.1.2.1 Input block 1

&CONTROL
 calculation='relax', prefix='water', pseudo_dir='./pseudo',
 outdir='./scratch/water', tprnfor=.true.,
 etot_conv_thr=1.0d-6, forc_conv_thr=1.0d-4, nstep=100
/
&SYSTEM
 ibrav=1, A=18.0, nat=3, ntyp=2,
 ecutwfc=70, ecutrho=560, occupations='fixed'
/
&ELECTRONS
 conv_thr=1.0d-10, mixing_beta=0.3
/
&IONS
 ion_dynamics='bfgs'
/
ATOMIC_SPECIES
O 15.999 O.PBE.UPF
H 1.008 H.PBE.UPF
ATOMIC_POSITIONS angstrom
O 9.000 9.000 9.000
H 9.780 9.000 9.620
H 8.230 9.000 9.600
K_POINTS gamma

3.1.3 Worked investigation

3.1.3.1 Intuition and prerequisites

Geometry optimization follows forces, so noisy forces can create a false minimum even when the total energy changes little. Build a neutral water molecule in an 18 Å cubic cell with consistent H and O PBE pseudopotentials. Keep the cell fixed: vacuum is a boundary choice, not a lattice parameter to optimize. The initial geometry below is intentionally plausible but unoptimized.

3.1.3.2 Complete original template

See input block 1 above.

3.1.3.3 Checks, pitfalls and exercise

The energy threshold is in Ry and force threshold in Ry/bohr. Both optimization criteria and the actual final force matter. If BFGS repeatedly resets, diagnose SCF noise, poor initial geometry and constraints before merely increasing nstep. A gas-phase molecule has translational/rotational freedoms; small whole-molecule drift is not a chemical distortion. Exercise: start from a second asymmetric geometry, compare final internal coordinates and energies, then check box-size sensitivity of the dipolar molecule.

3.1.5 Sources and further reading