Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ipsuite/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ from .models import (
ORCAModel,
TBLiteModel,
TorchDFTD3,
VASPModel,
)

# Project
Expand All @@ -133,6 +134,7 @@ __all__ = [
# Models
"EnsembleModel",
"CP2KModel",
"VASPModel",
"TBLiteModel",
"ORCAModel",
"MACEMPModel",
Expand Down
2 changes: 2 additions & 0 deletions ipsuite/models/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ from .mace import MACEMPModel
from .orca import ORCAModel
from .tblite import TBLiteModel
from .torch_d3 import TorchDFTD3
from .vasp import VASPModel

__all__ = [
"MLModel",
"EnsembleModel",
"CP2KModel",
"VASPModel",
"TBLiteModel",
"ORCAModel",
"MACEMPModel",
Expand Down
23 changes: 23 additions & 0 deletions ipsuite/models/vasp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import dataclasses
from pathlib import Path

from ase.calculators.calculator import Calculator

from ipsuite.interfaces import NodeWithCalculator


@dataclasses.dataclass
class VASPModel(NodeWithCalculator):
"""
Docstring for VASPModel
"""

xc: str = "hse06"
hfscreen: float = 0.4
# config: dict = dataclasses.field(default_factory=dict)

def get_calculator(self, directory: str | Path, **kwargs) -> Calculator:
from ase.calculators.vasp import Vasp

return Vasp(xc="hse06", hfscreen=0.4)
raise NotImplementedError()
Comment on lines +9 to +23

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still a draft, please let me know once this is ready. Looking forward to it!

Loading