Documentation is available at libmobility.readthedocs.io
This repository contains several GPU solvers that can compute the action of the hydrodynamic mobility (at the RPY/FCM level) of a group of particles (in different geometries) with forces acting on them.
In particular, given a group of forces,
Where
Each solver in libMobility allows for computing either the deterministic term, the stochastic term, or both at the same time.
For each solver, a Python interface is provided. All solvers have the same interface, although some input parameters might change (an open boundaries solver does not accept a box size as a parameter).
This repository is organized into the following directories:
-
solvers/: This directory hosts a subfolder for each solver module. Each subfolder contains the implementation of the
libMobilityinterface specific to that solver. -
examples/: Contains examples on how to use the library from Python and C++.
-
include/: Includes the essential C++ base classes and utility files needed to construct the modules.
-
devtools/: Contains dev-specific scripts and files, like a meta.yaml file to build a conda package for libMobility using conda-build.
-
docs/: Contains the source files for the documentation.
-
tests/: Contains the tests for the library.
You can install the latest libMobility release through the conda-forge channel:
$ conda install -c conda-forge libmobilityCheck the documentation for additional information on installation, such as how to compile from source.
Importing libMobility will make available any module under "solvers".
A usage example is available in python/example.py.
Calling
help(SolverName)will provide more in-depth information about the solver.