pwin
Classes for reading/manipulating PWscf xml files.
ControlNamelist(*args, **kwargs)
Bases: InputNamelist
&CONTROL namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
SystemNamelist(*args, **kwargs)
Bases: InputNamelist
&SYSTEM namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
ElectronsNamelist(*args, **kwargs)
Bases: InputNamelist
&ELECTRONS namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
IonsNamelist(*args, **kwargs)
Bases: InputNamelist
&IONS namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
CellNamelist(*args, **kwargs)
Bases: InputNamelist
&CELL namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
FcpNamelist(*args, **kwargs)
Bases: InputNamelist
&FCP namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
RismNamelist(*args, **kwargs)
Bases: InputNamelist
&RISM namelist
Source code in pymatgen/io/espresso/inputs/base.py
227 228 |
|
AtomicSpeciesCard(option, symbols, masses, files)
Bases: InputCard
ATOMIC_SPECIES card
symbols: List of atomic symbols
masses: List of atomic masses
files: List of pseudopotential file names
Source code in pymatgen/io/espresso/inputs/pwin.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
from_string(s)
classmethod
Parse a string containing an ATOMIC_SPECIES card
Source code in pymatgen/io/espresso/inputs/pwin.py
111 112 113 114 115 116 117 118 |
|
AtomicPositionsCard(option, symbols, positions, force_multipliers)
Bases: InputCard
ATOMIC_POSITIONS card
symbols: List of atomic symbols
positions: List of atomic positions
force_multipliers: List of force multipliers (0 or 1 for each atom's x, y, z coordinates. 0 means fixed, 1 means can move. See pw.x documentation for more details.)
Source code in pymatgen/io/espresso/inputs/pwin.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
from_string(s)
classmethod
Parse a string containing an ATOMIC_SPECIES card
Source code in pymatgen/io/espresso/inputs/pwin.py
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
|
KPointsCard(option, grid, shift, k, weights, labels)
Bases: InputCard
K_POINTS card
Source code in pymatgen/io/espresso/inputs/pwin.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
|
line_mode: bool
property
Whether the k-points are in line mode
band_mode: bool
property
Whether the k-points are in band mode
coords_are_cartesian: bool
property
Whether the k-points are in cartesian coordinates
from_string(s)
classmethod
Parse a string containing K_POINTS card
Source code in pymatgen/io/espresso/inputs/pwin.py
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
|
AdditionalKPointsCard(option, k, weights, labels)
Bases: InputCard
ADDITIONAL_K_POINTS card
Source code in pymatgen/io/espresso/inputs/pwin.py
311 312 313 314 315 316 317 318 319 320 321 322 |
|
from_string(s)
classmethod
Parse a string containing an ATOMIC_SPECIES card
Source code in pymatgen/io/espresso/inputs/pwin.py
332 333 334 335 336 337 338 339 340 341 342 343 344 |
|
CellParametersCard(option, a1, a2, a3)
Bases: InputCard
CELL_PARAMETERS card
Source code in pymatgen/io/espresso/inputs/pwin.py
361 362 363 364 365 366 367 368 369 |
|
from_string(s)
classmethod
Parse a string containing an ATOMIC_SPECIES card
Source code in pymatgen/io/espresso/inputs/pwin.py
389 390 391 392 393 394 |
|
ConstraintsCard(option, body)
Bases: InputCard
CONSTRAINTS card (not fully implemented)
body (list): The body of the card
Source code in pymatgen/io/espresso/inputs/base.py
261 262 263 264 265 266 267 268 269 270 |
|
OccupationsCard(option, body)
Bases: InputCard
OCCUPATIONS card (not fully implemented)
body (list): The body of the card
Source code in pymatgen/io/espresso/inputs/base.py
261 262 263 264 265 266 267 268 269 270 |
|
AtomicVelocitiesCard(option, body)
Bases: InputCard
ATOMIC_VELOCITIES card (not fully implemented)
body (list): The body of the card
Source code in pymatgen/io/espresso/inputs/base.py
261 262 263 264 265 266 267 268 269 270 |
|
AtomicForcesCard(option, body)
Bases: InputCard
ATOMIC_FORCES card (not fully implemented)
body (list): The body of the card
Source code in pymatgen/io/espresso/inputs/base.py
261 262 263 264 265 266 267 268 269 270 |
|
SolventsCard(option, body)
Bases: InputCard
SOLVENTS card (not fully implemented)
body (list): The body of the card
Source code in pymatgen/io/espresso/inputs/base.py
261 262 263 264 265 266 267 268 269 270 |
|
HubbardCard(option, body)
Bases: InputCard
HUBBARD card (not fully implemented)
body (list): The body of the card
Source code in pymatgen/io/espresso/inputs/base.py
261 262 263 264 265 266 267 268 269 270 |
|
PWin(namelists, cards)
Bases: BaseInputFile
Class for PWscf input files. Unlikely to be constructed directly, use
the from_file
method instead.
The namelist attributes pretty much work like dictionaries, while the card attributes are all based on the InputCard class and its subclasses.
ATTRIBUTE | DESCRIPTION |
---|---|
structure |
Structure object
TYPE:
|
lattice |
Lattice object
TYPE:
|
alat |
alat (either celldm(1) or A) in ANGSTROM
TYPE:
|
site_symbols |
List of site symbols in the input file
TYPE:
|
celldm |
List of celldm parameters (6 elements, first is alat in ANGSTROM)
TYPE:
|
atomic_species |
ATOMIC_SPECIES card
TYPE:
|
atomic_positions |
ATOMIC_POSITIONS card
TYPE:
|
k_points |
K_POINTS card
TYPE:
|
additional_k_points |
ADDITIONAL_K_POINTS card
TYPE:
|
cell_parameters |
CELL_PARAMETERS card
TYPE:
|
constraints |
CONSTRAINTS card
TYPE:
|
occupations |
OCCUPATIONS card
TYPE:
|
atomic_velocities |
ATOMIC_VELOCITIES card
TYPE:
|
atomic_forces |
ATOMIC_FORCES card
TYPE:
|
solvents |
SOLVENTS card
TYPE:
|
hubbard |
HUBBARD card
TYPE:
|
control |
&CONTROL namelist
TYPE:
|
system |
&SYSTEM namelist
TYPE:
|
electrons |
&ELECTRONS namelist
TYPE:
|
ions |
&IONS namelist
TYPE:
|
cell |
&CELL namelist
TYPE:
|
fcp |
&FCP namelist
TYPE:
|
rism |
&RISM nam
TYPE:
|
Source code in pymatgen/io/espresso/inputs/base.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
site_symbols
property
The list of site symbols in the input file (i.e., the atomic_species card)
structure: Structure
property
writable
RETURNS | DESCRIPTION |
---|---|
Structure
|
Structure object |
lattice: Lattice
property
writable
RETURNS | DESCRIPTION |
---|---|
Lattice
|
Lattice object (in ANGSTROM no matter what's in the input file) |
alat: float
property
Returns alat (either celldm(1) or A) in ANGSTROM with proper error handling
celldm: list
property
Gets celldm from the input file. If celldm is in the input file, returns it with the first element converted to angstrom and padded with zeros to length 6. If A is in the input instead, then it returns: celldm = [A, B/A, C/A, cosBC, cosAC, cosAB] (with A in angstrom) with missing values padded to zeros
RETURNS | DESCRIPTION |
---|---|
celldm
|
list of celldm parameters, with shape (6,)
TYPE:
|
PWinCards
PWinNamelists
PWinParserError
Bases: Exception
Exception class for PWin parsing.