dxtb.config.ConfigSCF#
- class dxtb.config.ConfigSCF(*, strict=False, method=1, guess=0, maxiter=100, mixer=2, mix_guess=True, damp=0.5, damp_init=0.1, damp_dynamic=False, damp_dynamic_factor=0.99, damp_soft_start=True, damp_generations=5, damp_diagonal_offset=0.01, scf_mode=0, scp_mode=2, x_atol=0.0001, x_atol_max=1e-05, f_atol=0.0001, force_convergence=False, batch_mode=0, fermi_etemp=300.0, fermi_maxiter=200, fermi_thresh=None, fermi_partition=0, device=device(type='cpu'), dtype=torch.float32)[source]#
Bases:
objectConfiguration for the SCF.
All configuration options are represented as integers. String options are converted to integers in the constructor.
The settings for Fermi smearing are stored separately in the
ConfigFermiclass, which can be accessed via thefermiattribute.Methods
Return a dictionary with the SCF configuration.
Attributes
Strict mode for SCF configuration.
Integer code for tight-binding method.
Initial guess for the SCF.
Maximum number of SCF iterations.
Mixing scheme for SCF iterations.
Include the initial guess in the mixing scheme.
Damping factor for the SCF iterations.
Initial damping factor for the SCF iterations.
Whether to use dynamic damping in the SCF iterations.
Damping factor for dynamic damping in the SCF iterations, i.e., when the norm of the error falls below a threshold.
If enabled, then simple mixing will be used for the first
generationsnumber of steps, otherwise only for the first (in Anderson mixing only).Number of generations to use during mixing.
Offset added to the equation system's diagonal's to prevent a linear dependence during the mixing process.
SCF convergence approach (denoted by backward strategy).
SCF convergence target (self-consistent property).
Absolute tolerance for argument (x) in SCF solver.
Absolute tolerance for max norm (L∞) of the error in the SCF.
Absolute tolerance for function value (f(x)) the SCF solver.
Force convergence of the SCF iterations.
Batch mode for the SCF iterations.
Electronic temperature for Fermi smearing.
Maximum number of iterations for Fermi smearing.
Threshold for Fermi iterations.
Partitioning scheme for electronic free energy.
Device for calculations.
Data type for calculations.
- Parameters:
strict (bool)
method (int)
guess (int)
maxiter (int)
mixer (int)
mix_guess (bool)
damp (float)
damp_init (float)
damp_dynamic (bool)
damp_dynamic_factor (float)
damp_soft_start (bool)
damp_generations (int)
damp_diagonal_offset (float)
scf_mode (int)
scp_mode (int)
x_atol (float)
x_atol_max (float)
f_atol (float)
force_convergence (bool)
batch_mode (int)
fermi_etemp (float)
fermi_maxiter (int)
fermi_thresh (dict)
fermi_partition (int)
device (device)
dtype (dtype)
-
batch_mode:
int# Batch mode for the SCF iterations. - 0: Single system - 1: Multiple systems with padding - 2: Multiple systems with no padding (conformer ensemble)
-
damp_diagonal_offset:
float# Offset added to the equation system’s diagonal’s to prevent a linear dependence during the mixing process. If set to
Nonethen rescaling will be disabled.
-
damp_dynamic_factor:
float# Damping factor for dynamic damping in the SCF iterations, i.e., when the norm of the error falls below a threshold.
-
damp_generations:
int# Number of generations to use during mixing. Defaults to 5 as suggested by Eyert.