-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement thermal expansion for quasi-harmonic and energy-volume curve
- Loading branch information
1 parent
8493d47
commit 26179f3
Showing
4 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import numpy as np | ||
|
||
from atomistics.shared.thermo.debye import get_debye_model | ||
from atomistics.shared.thermo.thermo import get_thermo_bulk_model | ||
|
||
|
||
def get_thermal_expansion_with_evcurve( | ||
fit_dict, masses, t_min=1, t_max=1500, t_step=50, temperatures=None | ||
): | ||
if temperatures is None: | ||
temperatures = np.arange(t_min, t_max + t_step, t_step) | ||
debye_model = get_debye_model(fit_dict=fit_dict, masses=masses, num_steps=50) | ||
pes = get_thermo_bulk_model( | ||
temperatures=temperatures, | ||
debye_model=debye_model, | ||
) | ||
return temperatures, pes.get_minimum_energy_path() |
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