Skip to main content

FreePATHS - Free Phonon And THermal Simulator

This Monte Carlo algorithm simulates trajectories of phonons or electrons in 3D models of nanostructures, which consists of a box with holes, pillars, or interfaces of various shapes. For phonons, the algorithm outputs heat fluxes, temperature maps and profiles, thermal conductivity, scattering maps and statistics, and other information. For electrons, it outputs electrical conductivity, Seebeck coefficient, electronic thermal conductivity, power factor, and related quantities as a function of Fermi level. See documentation for the details of the simulation.

Screenshot

Installation

Installation is detailed in documentation. In short, install the package from PyPi repository by entering this command into a terminal or a python console:

pip install --upgrade freepaths

Usage

FreePATHS is a command line application, so it runs inside Linux, MacOS, or Windows terminal. It takes an input file from the user, which contains all the settings, and outputs the results in a new folder.

There are two modes of using the program. Main mode traces a large number of phonons through a structure and collects statistics about their paths. The MFP sampling mode measures phonon mean free paths using a small number of phonons and calculates the thermal conductivity by integrating phonon dispersion.

Getting started

If you run freepaths without any arguments, the program will print a usage summary. To run a demo simulation with default parameters, use the --demo flag:

freepaths --demo

Example input files are available in the examples folder.

Main mode

In the main mode, the program traces large number of phonons through a structure and calculates various statistical distributions and maps. In this mode, the thermal conductivity will be calculated via Fourier law. Note that the thermal conductivity will be correct only in the absence of holes.

Run the program as:

freepaths your_input_file.py

See documentation for explanations about creating your own input files. In the examples folder, you will find examples of various input files. Try using one of them, for instance as:

freepaths simple_nanowire.py

After the simulation, see the results in a newly created Results folder.

Electron mode

FreePATHS can also simulate electron transport. In this mode, electrons are traced through the structure and thermoelectric properties — electrical conductivity, Seebeck coefficient, electronic thermal conductivity, and power factor — are computed as a function of Fermi level. To run in electron mode, add the -e flag:

freepaths -e your_input_file.py

See the tutorial and theory for details.

MFP sampling mode

Alternatively, you can run FreePATHS in the mean free path sampling mode, which is designed to calculate the thermal conductivity by integrating phonon dispersion. To run the program in this mode, it is advised to reduce the number of phonons to about 30 and add -s flag in the command:

freepaths -s simple_nanowire.py

The calculated thermal conductivity will be output in the terminal. However, other statistical quantities and plots will still be calculated and output in the Results folder.

Troubleshooting

Disclaimer

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 and the references below for more details on the code. Please use only officially published releases of the code and not current main branch, which can be unstable.

References and acknowledgments

The code is developed by Roman Anufriev, Philipp Gassmann, Simon Defradas and other contributors in Nomura lab at the University of Tokyo since 2018. 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. Details of the code and examples of the output can be found in the following papers:

  1. Anufriev et al. Materials Today Physics 15, 100272 (2021)
  2. Anufriev et al. Nanoscale, 11, 13407-13414 (2019)
  3. Anufriev et al. ACS Nano 12, 11928 (2018)
  4. Huang et al. ACS Applied Materials & Interfaces 12, 25478 (2020)

Development of this code was funded by the following grants:

  • PRESTO JST (No. JPMJPR19I1)
  • CREST JST (No. JPMJCR19Q3)
  • Kakenhi (15H05869, 15K13270, and 18K14078)
  • Postdoctoral Fellowship program of Japan Society for the Promotion of Science.

Release files for freepaths 2.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for freepaths 2.3.4
File Size Uploaded
freepaths-2.3.4.tar.gz 61.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for freepaths 2.3.4
File Interpreter ABI Platform
freepaths-2.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 132.0 kB

Release files / freepaths-2.3.4.tar.gz

Download URL freepaths-2.3.4.tar.gz
Size 61.2 kB
Tags Source
SHA-256 checksum
How to use checksums
756902dc9685750af3b065aefdac1a951704930d93fb29465e3a7c22edccb043
BLAKE2b-256 checksum
How to use checksums
4c29d59839c993db13b1a345bac6ac15bb8ed2214a269f1c1fc582235de15464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / freepaths-2.3.4-py3-none-any.whl

Download URL freepaths-2.3.4-py3-none-any.whl
Size 70.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
705031bbdff09646ab9e1dcab1f24dd81d7bc72bfd92ac802230f53614604e59
BLAKE2b-256 checksum
How to use checksums
2614603ddca3ffb461384e91da7c1a5169ec621e7b0fb56852dbf95b2d17194f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

3.4

2 release files

2.5.0

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

This release

2.3.4 This release

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.4

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1

2 release files

2.0.1

2 release files

2.0

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.4.1

2 release files

1.4

2 release files

1.3

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

3 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page