@@ -1381,16 +1381,17 @@ def scf_for_phonons(structure, pseudos, kppa=None, ecut=None, pawecutdg=None, nb
1381
1381
1382
1382
def ddkpert_from_gsinput (gs_input , ddk_pert , nband = None , use_symmetries = False , ddk_tol = None , manager = None ) -> AbinitInput :
1383
1383
"""
1384
- Returns an |AbinitInput| to perform a DDK calculations for a specific perturbation and based on a ground state |AbinitInput|.
1384
+ Returns an |AbinitInput| to perform a DDK calculations for a specific perturbation based on a ground state |AbinitInput|.
1385
1385
1386
1386
Args:
1387
- gs_input: an |AbinitInput| representing a ground state calculation, likely the SCF performed to get the WFK.
1387
+ gs_input: an |AbinitInput| representing a ground state calculation, likely the SCF performed to get the WFK.
1388
1388
ddk_pert: dict with the Abinit variables defining the perturbation
1389
1389
Example: {'idir': 1, 'ipert': 4, 'qpt': [0.0, 0.0, 0.0]},
1390
1390
use_symmetries: boolean that determines if the irreducible components of the perturbation are used.
1391
1391
Default to False. (TODO: Should be implemented)
1392
- ddk_tol: a dictionary with a single key defining the type of tolerance used for the DDK calculations and its value. Default: {"tolvrs": 1.0e-22}.
1393
- manager: |TaskManager| of the task. If None, the manager is initialized from the config file.
1392
+ ddk_tol: a dictionary with a single key defining the type of tolerance used for the DDK calculations and its value.
1393
+ Default: {"tolvrs": 1.0e-22}.
1394
+ manager: |TaskManager| of the task. If None, the manager is initialized from the config file.
1394
1395
"""
1395
1396
gs_input = gs_input .deepcopy ()
1396
1397
gs_input .pop_irdvars ()
@@ -1409,19 +1410,20 @@ def ddkpert_from_gsinput(gs_input, ddk_pert, nband=None, use_symmetries=False, d
1409
1410
1410
1411
return ddk_inp
1411
1412
1413
+
1412
1414
def ddepert_from_gsinput (gs_input , dde_pert , use_symmetries = True , dde_tol = None , manager = None ) -> AbinitInput :
1413
1415
"""
1414
- Returns an |AbinitInput| to perform a DDE calculations for a specific perturbation and based on a ground state |AbinitInput|.
1416
+ Returns an |AbinitInput| to perform a DDE calculations for a specific perturbation based on a ground state |AbinitInput|.
1415
1417
1416
1418
Args:
1417
- gs_input: an |AbinitInput| representing a ground state calculation, likely the SCF performed to get the WFK.
1419
+ gs_input: an |AbinitInput| representing a ground state calculation, likely the SCF performed to get the WFK.
1418
1420
dde_pert: dict with the Abinit variables defining the perturbation
1419
- Example: {'idir': 1, 'ipert': 4, 'qpt': [0.0, 0.0, 0.0]},
1421
+ Example: {'idir': 1, 'ipert': 4, 'qpt': [0.0, 0.0, 0.0]},
1420
1422
use_symmetries: boolean that determines if the irreducible components of the perturbation are used.
1421
1423
Default to True. Should be set to False for nonlinear coefficients calculation.
1422
- dde_tol: a dictionary with a single key defining the type of tolerance used for the DDE calculations and
1424
+ dde_tol: a dictionary with a single key defining the type of tolerance used for the DDE calculations and
1423
1425
its value. Default: {"tolvrs": 1.0e-22}.
1424
- manager: |TaskManager| of the task. If None, the manager is initialized from the config file.
1426
+ manager: |TaskManager| of the task. If None, the manager is initialized from the config file.
1425
1427
"""
1426
1428
gs_input = gs_input .deepcopy ()
1427
1429
gs_input .pop_irdvars ()
@@ -1434,15 +1436,16 @@ def ddepert_from_gsinput(gs_input, dde_pert, use_symmetries=True, dde_tol=None,
1434
1436
1435
1437
return dde_inp
1436
1438
1439
+
1437
1440
def dtepert_from_gsinput (gs_input , dte_pert , manager = None ) -> AbinitInput :
1438
1441
"""
1439
1442
Returns an |AbinitInput| to perform a DTE calculations for a specific perturbation and based on a ground state |AbinitInput|.
1440
1443
1441
1444
Args:
1442
- gs_input: an |AbinitInput| representing a ground state calculation, likely the SCF performed to get the WFK.
1445
+ gs_input: an |AbinitInput| representing a ground state calculation, likely the SCF performed to get the WFK.
1443
1446
dte_pert: dict with the Abinit variables defining the perturbation
1444
- Example: {'idir': 1, 'ipert': 4, 'qpt': [0.0, 0.0, 0.0]},
1445
- manager: |TaskManager| of the task. If None, the manager is initialized from the config file.
1447
+ Example: {'idir': 1, 'ipert': 4, 'qpt': [0.0, 0.0, 0.0]},
1448
+ manager: |TaskManager| of the task. If None, the manager is initialized from the config file.
1446
1449
"""
1447
1450
gs_input = gs_input .deepcopy ()
1448
1451
gs_input .pop_irdvars ()
@@ -1452,6 +1455,7 @@ def dtepert_from_gsinput(gs_input, dte_pert, manager=None) -> AbinitInput:
1452
1455
1453
1456
return dte_inp
1454
1457
1458
+
1455
1459
def dte_from_gsinput (gs_input , use_phonons = True , ph_tol = None , ddk_tol = None , dde_tol = None ,
1456
1460
skip_dte_permutations = False , manager = None ) -> MultiDataset :
1457
1461
"""
@@ -1509,7 +1513,7 @@ def dte_from_gsinput(gs_input, use_phonons=True, ph_tol=None, ddk_tol=None, dde_
1509
1513
gs_input .set_vars (nband = nband )
1510
1514
gs_input .pop ('nbdbuf' , None )
1511
1515
multi_dte = gs_input .make_dte_inputs (phonon_pert = use_phonons , skip_permutations = skip_dte_permutations ,
1512
- manager = manager )
1516
+ manager = manager )
1513
1517
multi_dte .add_tags (atags .DTE )
1514
1518
multi .extend (multi_dte )
1515
1519
0 commit comments