TB2Jflows 0.0.1__py3-none-any.whl → 0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
TB2Jflows/ase_siesta.py CHANGED
@@ -24,6 +24,7 @@ class SiestaFlow:
24
24
  restart=True,
25
25
  metadata={},
26
26
  fdf_arguments={},
27
+ relax_arguments={},
27
28
  split_soc=False,
28
29
  **kwargs,
29
30
  ):
@@ -50,6 +51,7 @@ class SiestaFlow:
50
51
  self.root_path = root_path
51
52
  self.restart = restart
52
53
  self.kwargs = kwargs
54
+ self.relax_args = relax_arguments
53
55
 
54
56
  # paths
55
57
  self.metadata_path = os.path.join(self.root_path, "metadata.json")
@@ -227,19 +229,20 @@ class SiestaFlow:
227
229
  def scf_calculatoin_split_soc(self, atoms, label="siesta", nscf=False):
228
230
  fdf_args = {
229
231
  "SOC_split_SR_SO": True,
230
- #"Spin.OrbitStrength": 3,
232
+ # "Spin.OrbitStrength": 3,
231
233
  "SaveHS.so": True,
232
234
  "SaveHS": True,
233
- "Spin.Fix": False,
235
+ "Spin.Fix": False,
236
+ }
237
+ nscf_args = {
238
+ "SCF.DM.Converge": True,
239
+ "SCF.DM.Tolerance": 1e4,
240
+ "SCF.H.Converge": False,
241
+ "SCF.EDM.Converge": False,
242
+ "SCF.Mix.First": False,
243
+ "SCF.Mix": "density",
244
+ "MaxSCFIterations": 1,
234
245
  }
235
- nscf_args={"SCF.DM.Converge": True,
236
- "SCF.DM.Tolerance": 1e4,
237
- "SCF.H.Converge": False,
238
- "SCF.EDM.Converge": False,
239
- "SCF.Mix.First": False,
240
- "SCF.Mix": "density",
241
- "MaxSCFIterations": 1,
242
- }
243
246
  if nscf:
244
247
  fdf_args.update(nscf_args)
245
248
 
@@ -288,14 +291,17 @@ class SiestaFlow:
288
291
  )
289
292
 
290
293
  def set_nonscf_params(self):
291
- nscf_params={"SCF.DM.Converge": False,
292
- "SCF.DM.Tolerance": 1e4,
293
- "SCF.H.Converge": False,
294
- "SCF.EDM.Converge": False,
295
- "SCF.Mix.First": False,
296
- "SCF.Mix": "density",
297
- "MaxSCFIterations": 1,
298
- }
294
+ nscf_params = {
295
+ "SCF.DM.Converge": False,
296
+ "SCF.DM.Tolerance": 1e4,
297
+ "SCF.H.Converge": False,
298
+ "SCF.EDM.Converge": False,
299
+ "SCF.Mix.First": False,
300
+ "SCF.Mix": "density",
301
+ "MaxSCFIterations": 1,
302
+ }
303
+
304
+ self.fdf_arguments.update(nscf_params)
299
305
 
300
306
  def run_TB2J_split_soc(self, **kwargs):
301
307
  path = os.path.join(self.scf_path, "split_soc")
@@ -352,9 +358,9 @@ class SiestaFlow:
352
358
  write_path=os.path.join(self.root_path, "TB2J_results_merged"),
353
359
  )
354
360
 
355
- def runall_collinear(self, atoms, relax=True, scf=True, TB2J=True, **kwargs):
361
+ def runall_collinear(self, atoms, relax=True, scf=True, TB2J=True, **kwargs):
356
362
  if relax:
357
- atoms = self.relax(atoms)
363
+ atoms = self.relax(atoms, **self.relax_args)
358
364
  if scf:
359
365
  self.scf_calculation_collinear(atoms, label="siesta")
360
366
  if TB2J:
@@ -364,7 +370,7 @@ class SiestaFlow:
364
370
  self, atoms, relax=True, scf=True, TB2J=True, rotate_type="structure", **kwargs
365
371
  ):
366
372
  if relax:
367
- atoms = self.relax(atoms)
373
+ atoms = self.relax(atoms, **self.relax_args)
368
374
  if scf:
369
375
  self.scf_calculation_with_rotations(
370
376
  atoms, rotate_type=rotate_type, label="siesta"
@@ -375,7 +381,7 @@ class SiestaFlow:
375
381
 
376
382
  def runall_split_soc(self, atoms, relax=True, scf=True, TB2J=True, **kwargs):
377
383
  if relax:
378
- atoms = self.relax(atoms)
384
+ atoms = self.relax(atoms, **self.relax_args)
379
385
  if scf:
380
386
  self.scf_calculatoin_split_soc(atoms, label="siesta")
381
387
  if TB2J:
@@ -52,6 +52,7 @@ def auto_siesta_TB2J(
52
52
  TB2J=True,
53
53
  rotate_type="structure",
54
54
  fincore=True,
55
+ relax_arguments={},
55
56
  siesta_kwargs={},
56
57
  TB2J_kwargs={},
57
58
  fdf_kwargs={},
@@ -99,6 +100,7 @@ def auto_siesta_TB2J(
99
100
  fincore=fincore,
100
101
  Udict=Udict,
101
102
  split_soc=split_soc,
103
+ relax_arguments = relax_arguments,
102
104
  **siesta_kwargs,
103
105
  )
104
106
  flow.write_metadata()
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: TB2Jflows
3
- Version: 0.0.1
3
+ Version: 0.1
4
4
  Summary: TB2Jflows: Workflows for automatically calculation of exchange parameters using TB2J
5
5
  Author: Xu He
6
6
  Author-email: mailhexu@gmail.com
@@ -23,6 +23,7 @@ Dynamic: author-email
23
23
  Dynamic: classifier
24
24
  Dynamic: description
25
25
  Dynamic: license
26
+ Dynamic: license-file
26
27
  Dynamic: requires-dist
27
28
  Dynamic: requires-python
28
29
  Dynamic: summary
@@ -0,0 +1,9 @@
1
+ TB2Jflows/__init__.py,sha256=0aRVj9v-u64LxJl7Cyxcr4YUjpeMkBGPuv-nJbxbHOg,100
2
+ TB2Jflows/ase_siesta.py,sha256=zvKfKPidFvndfMQH0PHDprnFpwirk4yKdqwWDBe-_EI,14493
3
+ TB2Jflows/auto_siesta_TB2J.py,sha256=hrnJos-Rkx1bngFOSr4wATUr0NVyBXmSOsrvscfMLmg,3180
4
+ TB2Jflows/run_abacus.py,sha256=96tZ2n02FFLl8IZf4W_4TvkCcsd6oS1FVEIqhZpY76o,2692
5
+ tb2jflows-0.1.dist-info/licenses/LICENSE,sha256=KNu68sa-XR_2jZJKhDcSnxoNve8jtHgkw_w9PjP1YOk,1315
6
+ tb2jflows-0.1.dist-info/METADATA,sha256=BFLB9Ngpq9iLlEAxF245S9snQgmTFTp3FBypy5azHkY,967
7
+ tb2jflows-0.1.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
8
+ tb2jflows-0.1.dist-info/top_level.txt,sha256=iYRLHB7ZeHb59fEZLnbqJDymBKWPqfVgmvqd9S51Txw,10
9
+ tb2jflows-0.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.1.0)
2
+ Generator: setuptools (77.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- TB2Jflows/__init__.py,sha256=0aRVj9v-u64LxJl7Cyxcr4YUjpeMkBGPuv-nJbxbHOg,100
2
- TB2Jflows/ase_siesta.py,sha256=BagiujWCwUZ6Aj03oRFdAL1DzJ4pw1_upW4G5d9tMXw,14363
3
- TB2Jflows/auto_siesta_TB2J.py,sha256=c5dviznEbXyO3BJbh-LNBlC9efT7YbdC7ydWxyCJZ5E,3113
4
- TB2Jflows/run_abacus.py,sha256=96tZ2n02FFLl8IZf4W_4TvkCcsd6oS1FVEIqhZpY76o,2692
5
- tb2jflows-0.0.1.dist-info/LICENSE,sha256=KNu68sa-XR_2jZJKhDcSnxoNve8jtHgkw_w9PjP1YOk,1315
6
- tb2jflows-0.0.1.dist-info/METADATA,sha256=avwrwge2xfv6PgTUy92JCpBdqUFrJNbiNlQpurzX7Ss,947
7
- tb2jflows-0.0.1.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
8
- tb2jflows-0.0.1.dist-info/top_level.txt,sha256=iYRLHB7ZeHb59fEZLnbqJDymBKWPqfVgmvqd9S51Txw,10
9
- tb2jflows-0.0.1.dist-info/RECORD,,