Skip to content

Commit

Permalink
Add new ff with MPtraj and jarvis_dft.
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Aug 29, 2024
1 parent 3d86580 commit 3b9d417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion alignn/ff/ff.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def get_figshare_model_ff(

def default_path():
"""Get default model path."""
dpath = get_figshare_model_ff(model_name="v5.27.2024")
dpath = get_figshare_model_ff(model_name="v8.29.2024_dft_3d")
# dpath = get_figshare_model_ff(model_name="v5.27.2024")
# dpath = get_figshare_model_ff(model_name="alignnff_wt10")
# dpath = get_figshare_model_ff(model_name="alignnff_fmult")
# print("model_path", dpath)
Expand Down
3 changes: 2 additions & 1 deletion alignn/models/alignn_atomwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def cutoff_function_based_edges(r, inner_cutoff=4, exponent=3):
# r_sq = r * r
# r_on_sq = r_on * r_on
# r_cut_sq = r_cut * r_cut
# envelope = (r_cut_sq - r_sq) ** 2 * (r_cut_sq + 2 * r_sq - 3 * r_on_sq)/ (r_cut_sq - r_on_sq) ** 3
# envelope = (r_cut_sq - r_sq)
# ** 2 * (r_cut_sq + 2 * r_sq - 3 * r_on_sq)/ (r_cut_sq - r_on_sq) ** 3
return torch.where(r <= inner_cutoff, envelope, torch.zeros_like(r))


Expand Down

0 comments on commit 3b9d417

Please sign in to comment.