Runtime Parameters#
Overview#
Runtime parameters and options in LibRPA are generally managed through the LibrpaOptions object.
When using the API, you can directly assign values to the corresponding attributes to control the runtime behavior of LibRPA.
When using the driver, parameters are read from a file named
librpa.inin the working directory, using the syntaxkey = value. For example:task = rpa input_dir = ../librpa_dataset nfreq = 16 cs_threshold = 1e-4
If
librpa.inis not found, the driver stops with an error. Unlike the API, the driver requirestaskto be explicitly specified. For all other parameters, default values are used when the corresponding keywords are not provided. Please refer to manual page of driver usage for more information.
Additional Parameters for Driver#
Parameter Name |
Description |
Type |
Default Value (Options) |
|---|---|---|---|
|
Task type |
string |
(required: rpa, g0w0, exx, g0w0_band, exx_band) |
|
Input directory to find and read the AO dataset |
string |
|
|
Screening threshold when reading the RI coefficient data |
double |
1e-6 |
Common Parameter Settings for LibRPA#
Parameter Name |
Description |
Type |
Default Value (Options) |
|---|---|---|---|
|
Output directory for results |
string |
|
|
Parallel scheme of LibRPA |
string |
auto (auto, atompair, rtau, libri) |
|
Verbosity level |
int |
2 (0=silent, 1=critical, 2=info, 3=warn, 4=debug) |
|
Real-space Coulomb matrices screening threshold |
double |
0.0 |
|
Flag for parallel distribution of SCF eigenvectors |
bool |
|
|
Type of time-frequency integration grid |
string |
minimax (gl, gci, gcii, minimax, evenspaced, evenspaced_tf) |
|
Number of frequency integration grid points |
int |
6 |
|
Minimum frequency for grid (Hartree) |
double |
0.0 |
|
Frequency interval for even-spaced grid (Hartree) |
double |
0.1 |
|
Maximum frequency for grid (Hartree) |
double |
10.0 |
|
Minimum time for grid (Hartree^-1) |
double |
0.0 |
|
Time interval for even-spaced grid (Hartree^-1) |
double |
0.1 |
RPA-specific Parameters#
Parameter Name |
Description |
Type |
Default Value (Options) |
|---|---|---|---|
|
Real-space Green’s function screening threshold for response function |
double |
1e-4 |
|
Flag to use ScaLapack for calculating \(E_\text{c}^{\text{RPA}}\) |
bool |
|
GW-specific Parameters#
Parameter Name |
Description |
Type |
Default Value (Options) |
|---|---|---|---|
|
Number of parameters for analytic continuation |
int |
-1 (will use all |
|
Flag to use ScaLAPACK for computing Wc from chi0 |
bool |
|
|
Flag to replace head of dielectric matrix by macroscopic dielectric function |
bool |
|
|
Option for computing dielectric function on imaginary axis |
int |
0 (0=direct, 1=model fit, 2=spline) |
|
Threshold for eigenvalues to perform square root of Coulomb matrices |
double |
1e-6 |
LibRI Parameters#
Parameter Name |
Description |
Type |
Default Value (Options) |
|---|---|---|---|
|
Threshold of LRI triple coefficients for response function |
double |
0.0 |
|
Threshold of Green’s function for response function |
double |
0.0 |
|
Threshold of LRI triple coefficients for exact exchange |
double |
0.0 |
|
Threshold of density matrices for exact exchange |
double |
0.0 |
|
Threshold of Coulomb matrices for exact exchange |
double |
0.0 |
|
Threshold of LRI triple coefficients for G0W0 correlation self-energy |
double |
0.0 |
|
Threshold of Green’s function for G0W0 correlation self-energy |
double |
0.0 |
|
Threshold of screened Coulomb matrix for G0W0 correlation self-energy |
double |
0.0 |
Output Control Parameters#
Parameter Name |
Description |
Type |
Default Value (Options) |
|---|---|---|---|
|
Output correlation self-energy matrix (k-space, imaginary frequencies) |
bool |
false |
|
Output correlation self-energy matrix (real-space, imaginary time) |
bool |
false |
|
Output correlation self-energy matrix (real-space, imaginary frequencies) |
bool |
false |
For details on all parameters, you can visit the API documentation of struct LibrpaOptions.