Package schrodinger :: Package application :: Package matsci :: Package espresso :: Module qeinput :: Class StructureType
[hide private]
[frames] | no frames]

Class StructureType

object --+
         |
        StructureType

Class to generate QE input XML section related to structure.

Instance Methods [hide private]
 
__init__(self, struct, functional)
Initialize StructureType object.
str
getAtomicStructure(self)
Generate XML input related to atomic_structure.
str
getAtomicSpecies(self, ppfiles, ecutwfc, ecutrho)
Generate XML input related to atomic species.
float
_getPPNelect(self, zvals)
Get number of the valence electrons based on the Z valence values of the pseudopotentials.
dict, float, float, float
fetchPPDB(self)
Get pseudopotentials file paths and other related data from the database having the same functional and family.
 
_getAtomicSpecies(self)
Extract number of electrons (in self.nelect) and species (in self.species) from self.struct.
str
_getCell(self)
Generate XML input related to cell.
 
_validatePBCs(self)
Check that PBCs are present for the self.structure.
numpy.array(3x3), numpy.array(3x3)
_genConvMatrix(self)
Get matrices that transform atom coordinates from Cartesian to fractional and back.
structure.Structure
moveAtomsIntoCell(self, overlap_distance=0.5)
Get structure with all the atoms moved into the first cell.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, struct, functional)
(Constructor)

 

Initialize StructureType object.

Parameters:
  • struct (structure.Structure) - Structure to generate XML from.
  • functional (str) - Functional (one of the DFT_FUNCTIONALS)
Overrides: object.__init__

getAtomicStructure(self)

 

Generate XML input related to atomic_structure.

Returns: str
cell xml data

getAtomicSpecies(self, ppfiles, ecutwfc, ecutrho)

 

Generate XML input related to atomic species.

Parameters:
  • ecutwfc (float) - Energy cutoff
  • ecutrho (float) - Density cutoff
  • ppfiles (dict[str:str])
Returns: str
species xml data

_getPPNelect(self, zvals)

 

Get number of the valence electrons based on the Z valence values of the pseudopotentials.

Parameters:
  • zvals (dict) - Dict with valence electrons: {'element': 'zval'}
Returns: float
Total number of valence electrons for self.struct

fetchPPDB(self)

 

Get pseudopotentials file paths and other related data from the database having the same functional and family.

Returns: dict, float, float, float
Dict with paths to PPs ({'element': 'path'}), number of valence electrons, max ecutwfc, max ecutrho for elements

_getCell(self)

 

Generate XML input related to cell.

Returns: str
cell xml data

_validatePBCs(self)

 

Check that PBCs are present for the self.structure. Also set the space group.

_genConvMatrix(self)

 

Get matrices that transform atom coordinates from Cartesian to fractional and back.

Returns: numpy.array(3x3), numpy.array(3x3)
matrix to convert from fract to cart, matrix to convert from cart to fract coordinates

moveAtomsIntoCell(self, overlap_distance=0.5)

 

Get structure with all the atoms moved into the first cell.

Parameters:
  • overlap_distance (float) - Distance between two atoms, such that they are considered overlapping
Returns: structure.Structure
Structure with all the atoms moved inside first unit cell