-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update aims, librpa, and kpath linearizer
- Loading branch information
Showing
9 changed files
with
343 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,39 @@ | ||
# -*- coding: utf-8 -*- | ||
"""workflow objects for FHI-aims""" | ||
import os | ||
import pathlib | ||
|
||
from mushroom.aims.stdout import StdOut | ||
|
||
class Aims: | ||
"""class to define a FHI-aims calculation""" | ||
|
||
class AimsWorkdir: | ||
"""Class to handle a FHI-aims calculation working folder""" | ||
|
||
def __init__(self, dirpath: str, aimsout: str = "aims.out", aimserr: str = None): | ||
dirpath = pathlib.Path(dirpath).absolute() | ||
self.dirpath = dirpath | ||
self.path_control = dirpath / "control.in" | ||
self.path_geometry = dirpath / "geometry.in" | ||
self.path_aimsout = dirpath / aimsout | ||
self.path_aimserr = None | ||
if aimserr is not None: | ||
self.path_aimserr = dirpath / aimserr | ||
|
||
self.band_output_glob = "band[0-9][0-9][0-9][0-9].out" | ||
|
||
self.efermi = None | ||
self.nspin = None | ||
self.nelect = None | ||
|
||
# Objects to handle inputs and outputs | ||
self._control = None | ||
self._geometry = None | ||
self._aimsout = None | ||
|
||
def load_output(self): | ||
self._aimsout = StdOut(self.path_aimsout, lazy_load=False) | ||
|
||
def is_finished(self): | ||
return self._aimsout.is_finished(False) | ||
|
||
def is_converged(self): | ||
return self._aimsout.is_finished(True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.