cliff.helpers package

Submodules

cliff.helpers.cell module

class cliff.helpers.cell.Cell(cellh)[source]

Bases: object

Cell geometry

classmethod lattice_parameters(a, b, c, alpha=90.0, beta=90.0, gamma=90.0)[source]

Units: distance in Angstroem, angles in degrees.

pbc_distance(coords1, coords2)[source]

cliff.helpers.constants module

cliff.helpers.options module

class cliff.helpers.options.Options(config_file='config.ini', name=None)[source]

Bases: object

Class to parse and store options

load_atomic_density_options()[source]
load_disp_options()[source]
load_elst_options()[source]
load_exch_options()[source]
load_hirsh_options()[source]
load_indu_options()[source]
load_multipole_options()[source]
set_atomicdensity_cutoff(val)[source]
set_atomicdensity_krr_kernel(val)[source]
set_atomicdensity_krr_lambda(val)[source]
set_atomicdensity_krr_sigma(val)[source]
set_atomicdensity_ref_adens(val)[source]
set_atomicdensity_refpath(val)[source]
set_atomicdensity_save_path(val)[source]
set_atomicdensity_save_to_disk(val)[source]
set_atomicdensity_training(val)[source]
set_damping_exponents(val)[source]
set_disp_beta(val)[source]
set_disp_coeffs(val)[source]
set_disp_method(val)[source]
set_disp_radius(val)[source]
set_elst_type(val)[source]
set_exchange_int_params(val)[source]
set_hirsh_save_path(val)[source]
set_hirsh_save_to_disk(val)[source]
set_hirshfeld_cutoff(val)[source]
set_hirshfeld_file_read(val)[source]
set_hirshfeld_filepath(val)[source]
set_hirshfeld_krr_kernel(val)[source]
set_hirshfeld_krr_lambda(val)[source]
set_hirshfeld_krr_sigma(val)[source]
set_hirshfeld_max_neighbors(val)[source]
set_hirshfeld_ref_hirsh(val)[source]
set_hirshfeld_training(val)[source]
set_indu_smearing_coeff(val)[source]
set_induction_conv(val)[source]
set_induction_omega(val)[source]
set_induction_sr_params(val)[source]
set_logger_level(val)[source]
set_mtp_to_disk(val)[source]
set_multipole_correct_charge(val)[source]
set_multipole_kernel(val)[source]
set_multipole_krr_lambda(val)[source]
set_multipole_krr_sigma(val)[source]
set_multipole_ml_method(val)[source]
set_multipole_rcut(val)[source]
set_multipole_ref_mtp(val)[source]
set_multipole_ref_path(val)[source]
set_multipole_save_path(val)[source]
set_multipole_training(val)[source]
set_name(name)[source]
set_pol_exponent(val)[source]
set_pol_scs_cutoff(val)[source]

cliff.helpers.system module

class cliff.helpers.system.System(options, xyz=None, log=False)[source]

Bases: object

Common system class for molecular system

build_slatm(mbtypes, cutoff, xyz=None)[source]
compute_basis()[source]

Basis for multipole expansion

expand_multipoles()[source]

Expand coefficients along basis set to compute multipoles

identify_atom_types(logger=None)[source]

Identifies the atom type and bonds of every atom in the molecule

initialize_multipoles()[source]

Initialize multipoles to 0

load_qcel_mol(mol, name)[source]
load_xyz(logger)[source]
save_mtp()[source]
set_mtp_save_path(path)[source]
set_properties(props)[source]

cliff.helpers.utils module

cliff.helpers.utils.build_coulomb_matrix(coords, atom_types, central_atom_id, max_neighbors, direction=None)[source]

Build Coulomb matrix ordered by distance to central_atom_id

cliff.helpers.utils.build_r(c1, c2, cell)[source]
cliff.helpers.utils.cart_to_sphere(cart)[source]

Convert cartesian to spherical multipoles

cliff.helpers.utils.extract_atomic_numbers(cartesian, atom_types)[source]

Extract atomic number from name of atom type

cliff.helpers.utils.file_finder(fname, ref=None, jobdir=None)[source]

Compiles xyz files for multiple computations

dirs points to directories, one for each computation

cliff.helpers.utils.neighboring_vectors(coords, atom_types, central_atom_id)[source]

Returns neighboring pairwise vectors starting from central atom up to 3. If it’s less than 3, complete by orthogonal vectors.

cliff.helpers.utils.read_file(infile)[source]

Read file and return content

cliff.helpers.utils.reorder_atoms(coords, atom_types, central_atom_id, max_neighbors)[source]

Reorder list of atoms from the central atom and by its distance

cliff.helpers.utils.set_logger_level(level)[source]
cliff.helpers.utils.slater_mbis(cell, coord_i, N_i, v_i, U_i, coord_j, N_j, v_j, U_j)[source]

Returns overlap of two atoms scaled by global parameters

@params:

cliff.helpers.utils.slater_mbis_funcform(rij, N_i, v_i, N_j, v_j)[source]
cliff.helpers.utils.slater_ovp_mat(r, v1, v2)[source]
cliff.helpers.utils.spher_to_cart(quad, stone_convention=True)[source]

convert spherical to cartesian multipoles

Module contents