Leslie-Wong-H / OpenBTE

Phonon Boltzmann Transport Equation

Home Page:https://www.openbte.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Space-dependent Boltzmann transport equation solver for phonons

Community

Mailing list

Reference

G. Romano et al. J. Heat Transfer (2015)

Installation

The easiest way to install OpenBTE on Linux/MacOS/Windows is through Anaconda:

  1. Install Anaconda 3
  2. On Anaconda Prompt type:
conda create -n openbte python=3.6
activate openbte
conda install -c conda-forge -c gromano openbte

For Windows you will have to install MSMPI

If you want to avoid installing Anaconda, you can still use the pip system (see below)

Linux

Requirements:

apt-get install -y libopenmpi-dev

pip install --upgrade openbte

Note that some users report that Gmsh does not work properly if installed via the package manager and launched in parallel. If you have trouble, install Gmsh via command line

wget http://geuz.org/gmsh/bin/Linux/gmsh-3.0.0-Linux64.tgz
tar -xzf gmsh-3.0.0-Linux64.tgz
cp gmsh-3.0.0-Linux/bin/gmsh /usr/bin/
rm -rf gmsh-3.0.0-Linux
rm gmsh-3.0.0-Linux64.tgz

MacOS

You will have to install gmsh from source, then type

pip install --no-cache-dir --upgrade openbte

Tutorial

Nongray disordered material

Example

from openbte import Material,Geometry,Solver,Plot

#Create material file
Material(filename='Si-300K.dat')

#Create geometry file
Geometry(porosity=0.30,lx=100,ly=100,step=10,shape='square')

#Create solver file
Solver(multiscale=True,max_bte_error=1e-2)

#Plot the temperature map
Plot(variable='map/temperature',iso_values=True)

flux.png

About

Phonon Boltzmann Transport Equation

https://www.openbte.org

License:GNU General Public License v2.0


Languages

Language:Python 95.8%Language:Jupyter Notebook 4.0%Language:Dockerfile 0.1%Language:Shell 0.1%