GPTFF¶
Optional dependency
GPTFFCalculator has no materialsframework extra. The pinned upstream revision requires ase<3.29, but MaterialsFramework requires ase>=3.29; a normal install would downgrade ASE and break MaterialsFramework's MD imports. The verified sequence bypasses GPTFF's dependency metadata and installs its non-core runtime dependencies explicitly. See Non-Extra Calculators for details.
GPTFFCalculator
¶
GPTFFCalculator(
model: str = "GPTFF-MatPES_PBE_2025.2",
device: Literal["cpu", "cuda"] = "cpu",
**kwargs: Any,
)
Calculator for material property calculations and structure relaxation using the GPTFF potential.
Attributes:
| Name | Type | Description |
|---|---|---|
AVAILABLE_PROPERTIES |
list[str]
|
A list of properties that this calculator can compute, including "energy", "forces", and "stresses". |
References
- GPTFF: https://doi.org/10.1016/j.scib.2024.08.039
Initializes the GPTFFCalculator with the specified model and calculation settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
str
|
Path to the GPTFF model file. Defaults to "GPTFF-MatPES_PBE_2025.2". |
'GPTFF-MatPES_PBE_2025.2'
|
device
|
Literal['cpu', 'cuda']
|
Device to use for calculations ("cpu" or "cuda"). Defaults to "cpu". |
'cpu'
|
**kwargs
|
Any
|
Additional keyword arguments passed to the |
{}
|
calculator
¶
Lazily builds the ASE Calculator object for the GPTFF potential, using the settings from initialization.
Returns:
| Name | Type | Description |
|---|---|---|
Calculator |
Calculator
|
The ASE Calculator object configured with the GPTFF potential. |