Skip to content
/ lime Public

Tool for the application of Likhtman& McLeish' polymer tube theory.

License

Notifications You must be signed in to change notification settings

Dmry/lime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status CodeFactor License: GPL v3

lime

Tool for the application of Likhtman& McLeish' polymer tube theory.

Currently only compiles on linux. Windows users should use the Docker version.

Optional Text

Package contents

  • Command-line interface (lime)
  • Python library (lime_python - see python.cpp for API details)
  • GTK3 interface (lime-gui)

References

Installing from .rpm (Fedora)

Download the release from this page and run

sudo yum install Lime-1.0.0-2.x86_64.rpm

Compiling from source

Requirements

  • Boost ≥ 1.66
  • C++17 with parallel algorithms (GCC ≥ 9)
  • GNU Scientific Library ≥ 2.4
  • Intel-tbb ≥ 2018
  • GUI: Python 3: NumPy, Matplotlib, GObject

Fedora

sudo yum install gcc git g++ cmake make boost-devel gsl-devel tbb-devel
# GUI
sudo yum install pybind11-devel python3-devel python3-matplotlib python3-matplotlib-gtk3 python3-gobject python3-numpy

Arch linux

sudo pacman -S gcc git g++ cmake make boost gsl tbb
# GUI
sudo pacman -S pybind11 python-matplotlib python-numpy python-gobject

Ubuntu

sudo apt install gcc g++ cmake git make libboost-dev libgsl-dev libtbb-dev
# GUI
sudo apt install python3-pybind11 python3-matplotlib python3-cairo python3-cairocffi python3-gi

Compiling

git clone https://github.com/Dmry/lime.git
mkdir lime/build && cd "$_"
cmake ..
make lime
make install

Beware! Pybind11 seems to have issues with python3.8 on Ubuntu 20.04.1. If you want to use the UI, use the following instead of cmake ..

cmake .. -DPYTHON_INCLUDE_DIRS=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  -DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") -DPYTHON_EXECUTABLE:FILEPATH=`which python3`

Packaging

Fedora

Assuming you have followed the instructions under 'Requirements' and 'Compiling', from the 'build' directory:

sudo yum install rpm-build
cpack