Skip to main content

A flexible Python package for lattice Boltzmann method

Project description

pylbm

Binder GithubAction Doc badge Join the chat at https://gitter.im/pylbm/pylbm

pylbm is an all-in-one package for numerical simulations using Lattice Boltzmann solvers.

This package gives all the tools to describe your lattice Boltzmann scheme in 1D, 2D and 3D problems.

We choose the D’Humières formalism to describe the problem. You can have complex geometry with a set of simple shape like circle, sphere, …

pylbm performs the numerical scheme using Cython, NumPy or Loo.py from the scheme and the domain given by the user. Pythran and Numba wiil be available soon. pylbm has MPI support with mpi4py.

Installation

You can install pylbm in several ways

With mamba or conda

mamba install pylbm -c conda-forge
conda install pylbm -c conda-forge

With Pypi

pip install pylbm

or

pip install pylbm --user

From source

You can also clone the project and install the latest version

git clone https://github.com/pylbm/pylbm

To install pylbm from source, we encourage you to create a fresh environment using conda.

conda create -n pylbm_env python

As mentioned at the end of the creation of this environment, you can activate it using the comamnd line

conda activate pylbm_env

Now, you just have to go into the pylbm directory that you cloned and install the dependencies

conda install --file requirements-dev.txt -c conda-forge

and then, install pylbm

pip install .

For more information about what you can achieve with pylbm, take a look at the documentation

http://pylbm.readthedocs.io

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylbm-0.11.0.tar.gz (116.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylbm-0.11.0-py3-none-any.whl (152.6 kB view details)

Uploaded Python 3

File details

Details for the file pylbm-0.11.0.tar.gz.

File metadata

  • Download URL: pylbm-0.11.0.tar.gz
  • Upload date:
  • Size: 116.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for pylbm-0.11.0.tar.gz
Algorithm Hash digest
SHA256 5114b84d735b9d80490afc75350fa0103b988ffe53c57181a56c2ce8a372d386
MD5 b7da77edf35a7df5d36edba22cccfc78
BLAKE2b-256 f69841f23dae77bf5a4f02673a0017ed981acdcd8f037cbf59d5938fb1798152

See more details on using hashes here.

File details

Details for the file pylbm-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: pylbm-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 152.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for pylbm-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cac16513487831b82ca2b28e53d0165816b78f9acddbff0315d2db92835574c
MD5 021bbedd71bd04435dec1ac4dc3e8613
BLAKE2b-256 825f1f60913ecb37483306c3ca93dc2aaa2b26034a5afc63c4e431eb348cb92c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page