-
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.
Merge pull request #93 from pyiron/thermalexpansion
Implement thermal expansion for quasi-harmonic and energy-volume curve
- Loading branch information
Showing
7 changed files
with
116 additions
and
92 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Large diffs are not rendered by default.
Oops, something went wrong.