Database
Class Methods
|
Initialize database connection. |
Return the global database instance. |
|
|
Get model potential parameters. |
|
Get Rydberg-Ritz parameters. |
|
Set the global database instance. |
- class ryd_numerov.model.Database(database_file=None)[source]
Initialize database connection.
- Parameters:
database_file (
Optional
[str
]) – Optional path to SQLite database file. If None, use the default database.sql in the same directory as this file.
- classmethod set_global_instance(instance)[source]
Set the global database instance.
- Return type:
None
- Parameters:
instance (Database)
- get_model_potential_parameters(species, l)[source]
Get model potential parameters.
- Parameters:
species (
str
) – Atomic speciesl (
int
) – Angular momentum quantum number
- Returns:
ac, Z, a1, a2, a3, a4, rc If no match is found for l, returns parameters for largest available l.
- Return type:
The model potential parameters for the given species and l, i.e.
- get_quantum_defect_parameters(species, l, j)[source]
Get Rydberg-Ritz parameters.
- Parameters:
species (
str
) – Atomic speciesl (
int
) – Angular momentum quantum numberj (
float
) – Total angular momentum quantum number
- Returns:
d0, d2, d4, d6, d8, Ry If no match is found for l and j, returns d_i = 0 and the normal Ry.
- Return type:
The quantum defect parameters for the given species, l and j, i.e.