A submodule that provides the fundamental classes used in the analysis module

Created on July 10, 2016

Author: Andrew Abi-Mansour

This is the:

██████╗ ██╗   ██╗ ██████╗ ██████╗  █████╗ ███╗   ██╗
██╔══██╗╚██╗ ██╔╝██╔════╝ ██╔══██╗██╔══██╗████╗  ██║
██████╔╝ ╚████╔╝ ██║  ███╗██████╔╝███████║██╔██╗ ██║
██╔═══╝   ╚██╔╝  ██║   ██║██╔══██╗██╔══██║██║╚██╗██║
██║        ██║   ╚██████╔╝██║  ██║██║  ██║██║ ╚████║
╚═╝        ╚═╝    ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝

DEM simulation and analysis toolkit,

Core developer and main author: Andrew Abi-Mansour,

PyGran is open-source, distributed under the terms of the GNU Public License, version 2 or later. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of the GNU General Public License along with PyGran. If not, see . See also top-level README and LICENSE files.



A sorting function by numerical numbers for glob.glob

select(data, *region)

Create a selection of particles based on a region-defined subsystem.



A factory for system class.


The Mesh class stores a list of meshes and their associated attributes / methods.


The Particle class stores all particle properties and the methods that operate on these properties.


The SubSystem is an abstract class the implementation of which stores all DEM object properties and the methods that operate on these properties.


A System contains all the information describing a DEM system.