open_grid.x

Index

Documentation

QuantumEspressoIO.read_opengrid_outMethod
read_opengrid_out(io)

Read the open_grid.x output file.

Arguments

  • io::Union{IO,AbstractString}: The IO stream or filename to read from.

Returns

  • kgrid: The k-point grid size.
  • kpoints: The list of k-points in fractional coordinates.
  • kweights: The weights of the k-points.

Examples

io = IOBuffer("""
...
     EXX: q-point mesh:     3    3    3
     EXX: setup a grid of 27 q-points centered on each k-point
     (set verbosity='high' to see the list)

     EXX grid:    25821 G-vectors     FFT dimensions: (  40,  40,  40)
     Message from routine rotate_becxx:
     skipping rotation of <beta|psi>, this will only work for open_grid

     Writing all to output data dir out/qe.save/ :
     XML data file, pseudopotentials, collected wavefunctions
     Grid of q-points
     Dimensions:   1   1   1
     Shift:        0   0   0
     List to be put in the .win file of wannier90: (already in crystal/fractionary coordinates):
    0.000000000000000    0.000000000000000    0.000000000000000    0.0370370370
    0.000000000000000    0.000000000000000    0.333333333333333    0.0370370370
    0.000000000000000    0.000000000000000   -0.333333333333333    0.0370370370
    0.000000000000000    0.333333333333333    0.000000000000000    0.0370370370
    0.000000000000000    0.333333333333333    0.333333333333333    0.0370370370
    0.000000000000000    0.333333333333333   -0.333333333333333    0.0370370370
    0.000000000000000   -0.333333333333333    0.000000000000000    0.0370370370
    0.000000000000000   -0.333333333333333    0.333333333333333    0.0370370370
    0.000000000000000   -0.333333333333333   -0.333333333333333    0.0370370370
    0.333333333333333    0.000000000000000    0.000000000000000    0.0370370370
    0.333333333333333    0.000000000000000    0.333333333333333    0.0370370370
    0.333333333333333    0.000000000000000   -0.333333333333333    0.0370370370
    0.333333333333333    0.333333333333333    0.000000000000000    0.0370370370
    0.333333333333333    0.333333333333333    0.333333333333333    0.0370370370
    0.333333333333333    0.333333333333333   -0.333333333333333    0.0370370370
    0.333333333333333   -0.333333333333333    0.000000000000000    0.0370370370
    0.333333333333333   -0.333333333333333    0.333333333333333    0.0370370370
    0.333333333333333   -0.333333333333333   -0.333333333333333    0.0370370370
   -0.333333333333333    0.000000000000000    0.000000000000000    0.0370370370
   -0.333333333333333    0.000000000000000    0.333333333333333    0.0370370370
   -0.333333333333333    0.000000000000000   -0.333333333333333    0.0370370370
   -0.333333333333333    0.333333333333333    0.000000000000000    0.0370370370
   -0.333333333333333    0.333333333333333    0.333333333333333    0.0370370370
   -0.333333333333333    0.333333333333333   -0.333333333333333    0.0370370370
   -0.333333333333333   -0.333333333333333    0.000000000000000    0.0370370370
   -0.333333333333333   -0.333333333333333    0.333333333333333    0.0370370370
   -0.333333333333333   -0.333333333333333   -0.333333333333333    0.0370370370

     OPEN_GRID    :   1m48.42s CPU   2m27.19s WALL
...
""")
outputs = read_opengrid_out(io)
println(outputs)
# output
([3, 3, 3], [[0.0, 0.0, 0.0], [0.0, 0.0, 0.333333333333333], [0.0, 0.0, -0.333333333333333], [0.0, 0.333333333333333, 0.0], [0.0, 0.333333333333333, 0.333333333333333], [0.0, 0.333333333333333, -0.333333333333333], [0.0, -0.333333333333333, 0.0], [0.0, -0.333333333333333, 0.333333333333333], [0.0, -0.333333333333333, -0.333333333333333], [0.333333333333333, 0.0, 0.0], [0.333333333333333, 0.0, 0.333333333333333], [0.333333333333333, 0.0, -0.333333333333333], [0.333333333333333, 0.333333333333333, 0.0], [0.333333333333333, 0.333333333333333, 0.333333333333333], [0.333333333333333, 0.333333333333333, -0.333333333333333], [0.333333333333333, -0.333333333333333, 0.0], [0.333333333333333, -0.333333333333333, 0.333333333333333], [0.333333333333333, -0.333333333333333, -0.333333333333333], [-0.333333333333333, 0.0, 0.0], [-0.333333333333333, 0.0, 0.333333333333333], [-0.333333333333333, 0.0, -0.333333333333333], [-0.333333333333333, 0.333333333333333, 0.0], [-0.333333333333333, 0.333333333333333, 0.333333333333333], [-0.333333333333333, 0.333333333333333, -0.333333333333333], [-0.333333333333333, -0.333333333333333, 0.0], [-0.333333333333333, -0.333333333333333, 0.333333333333333], [-0.333333333333333, -0.333333333333333, -0.333333333333333]], [0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037, 0.037037037])
source