Skip to content

Commit 63867d3

Browse files
committed
Fixing the MFP sampling mode
1 parent f969511 commit 63867d3

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ The calculated thermal conductivity will be output in the terminal. However, oth
5454

5555
## Disclaimer
5656

57-
The code is still in development and provided as is. It likely contains bugs or might be inappropriate for your research. It is your responsibility to understand the underlying physics, test the code, and verify that all the equations and the code are correct. See [documentation](https://anufrievroman.gitbook.io/freepaths/algorithm) and the references below for more details on the code.
57+
The code is still in development and provided as is. It likely contains bugs or might be inappropriate for your research. It is your responsibility to understand the underlying physics, test the code, and verify that the equations and the code are correct. See [documentation](https://anufrievroman.gitbook.io/freepaths) and the references below for more details on the code. Please use only [officially published releases](https://anufrievroman.gitbook.io/freepaths/installation) of the code and not current main branch, which can be unstable.
5858

5959

6060
## References and acknowledgments
6161

62-
The code has been developed by [Roman Anufriev](https://anufrievroman.com) in [Nomura lab](https://www.nlab.iis.u-tokyo.ac.jp/index-e.html) at the University of Tokyo in 2018-2022.
62+
The code is developed by [Roman Anufriev](https://anufrievroman.com) and other contributors in [Nomura lab](https://www.nlab.iis.u-tokyo.ac.jp/index-e.html) at the University of Tokyo since 2018.
6363
If you would like to use this code for your research, please see the disclaimer above and consider citing the papers below, if it is appropriate.
6464
Details of the code and examples of the output can be found in the following papers:
6565

freepaths/phonon.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def __init__(self, material, branch_number=None, phonon_number=None):
4646

4747
# Otherwise, frequency is just asigned depending on the phonon number:
4848
else:
49-
f_upper = abs(material.dispersion[phonon_number + 1, self.branch_number])
50-
f_lower = abs(material.dispersion[phonon_number, self.branch_number])
51-
self.f = (f_apper + f_lower) / 2
49+
f_upper = abs(material.dispersion[phonon_number + 1, self.branch_number + 1])
50+
f_lower = abs(material.dispersion[phonon_number, self.branch_number +1])
51+
self.f = (f_upper + f_lower) / 2
5252

5353
self.assign_speed(material)
5454
self.assign_internal_scattering_time(material)

schemes/hole_shapes.svg

Lines changed: 12 additions & 12 deletions
Loading

0 commit comments

Comments
 (0)