# pymatgen.io.zeopp module¶

class ZeoCssr(structure)[source]

ZeoCssr adds extra fields to CSSR sites to conform with Zeo++ input CSSR format. The coordinate system is rorated from xyz to zyx. This change aligns the pivot axis of pymatgen (z-axis) to pivot axis of Zeo++ (x-axis) for structurural modifications.

Parameters: structure – A structure to create ZeoCssr object
static from_file(filename)[source]

Reads a CSSR file to a ZeoCssr object.

Parameters: filename – Filename to read from. ZeoCssr object.
static from_string(string)[source]

Reads a string representation to a ZeoCssr object.

Parameters: string – A string representation of a ZeoCSSR. ZeoCssr object.
class ZeoVoronoiXYZ(mol)[source]

Class to read Voronoi Nodes from XYZ file written by Zeo++. The sites have an additional column representing the voronoi node radius. The voronoi node radius is represented by the site property voronoi_radius.

Parameters: mol – Input molecule holding the voronoi node information
static from_file(filename)[source]

Creates XYZ object from a file.

Parameters: filename – XYZ filename XYZ object
static from_string(contents)[source]

Creates Zeo++ Voronoi XYZ object from a string. from_string method of XYZ class is being redefined.

Parameters: contents – String representing Zeo++ Voronoi XYZ file. ZeoVoronoiXYZ object
get_free_sphere_params(structure, rad_dict=None, probe_rad=0.1)[source]

Analyze the void space in the input structure using voronoi decomposition Calls Zeo++ for Voronoi decomposition.

Parameters: structure – pymatgen.core.structure.Structure rad_dict (optional) – Dictionary of radii of elements in structure. If not given, Zeo++ default values are used. Note: Zeo++ uses atomic radii of elements. For ionic structures, pass rad_dict with ionic radii probe_rad (optional) – Sampling probe radius in Angstroms. Default is 0.1 A voronoi nodes as pymatgen.core.structure.Strucutre within the unit cell defined by the lattice of input structure voronoi face centers as pymatgen.core.structure.Strucutre within the unit cell defined by the lattice of input structure
get_high_accuracy_voronoi_nodes(structure, rad_dict, probe_rad=0.1)[source]

Analyze the void space in the input structure using high accuracy voronoi decomposition. Calls Zeo++ for Voronoi decomposition.

Parameters: structure – pymatgen.core.structure.Structure rad_dict (optional) – Dictionary of radii of elements in structure. If not given, Zeo++ default values are used. Note: Zeo++ uses atomic radii of elements. For ionic structures, pass rad_dict with ionic radii probe_rad (optional) – Sampling probe radius in Angstroms. Default is 0.1 A voronoi nodes as pymatgen.core.structure.Strucutre within the unit cell defined by the lattice of input structure voronoi face centers as pymatgen.core.structure.Strucutre within the unit cell defined by the lattice of input structure
get_void_volume_surfarea(structure, rad_dict=None, chan_rad=0.3, probe_rad=0.1)[source]

Computes the volume and surface area of isolated void using Zeo++. Useful to compute the volume and surface area of vacant site.

Parameters: structure – pymatgen Structure containing vacancy rad_dict (optional) – Dictionary with short name of elements and their radii. chan_rad (optional) – Minimum channel Radius. probe_rad (optional) – Probe radius for Monte Carlo sampling. floating number representing the volume of void volume
get_voronoi_nodes(structure, rad_dict=None, probe_rad=0.1)[source]

Analyze the void space in the input structure using voronoi decomposition Calls Zeo++ for Voronoi decomposition.

Parameters: structure – pymatgen.core.structure.Structure rad_dict (optional) – Dictionary of radii of elements in structure. If not given, Zeo++ default values are used. Note: Zeo++ uses atomic radii of elements. For ionic structures, pass rad_dict with ionic radii probe_rad (optional) – Sampling probe radius in Angstroms. Default is 0.1 A voronoi nodes as pymatgen.core.structure.Strucutre within the unit cell defined by the lattice of input structure voronoi face centers as pymatgen.core.structure.Strucutre within the unit cell defined by the lattice of input structure