Metadata-Version: 2.2
Name: cromosim
Version: 3.1.2
Summary: Crowd motion simulation library
Keywords: crowd,simulation,numerical methods
Author-Email: Sylvain Faure <sylvain.faure@universite-paris-saclay.fr>, Bertrand Maury <bertrand.maury@universite-paris-saclay.fr>
License:     CROMOSIM is a python package which contains the programs used in the
             book "Crowds in Equations: An Introduction to the Microscopic Modeling
             of Crowds", Advanced Textbooks In Mathematics, World Scientific Europe
             Ltd (oct. 2018) written by B. Maury and S. Faure.
         
             Copyright (C) 2018  Sylvain Faure and Bertrand Maury
         
             This program is free software: you can redistribute it and/or modify
             it under the terms of the GNU General Public License as published by
             the Free Software Foundation, either version 3 of the License, or
             any later version.
         
             This program 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.  See the
             GNU General Public License for more details.
         
             You should have received a copy of the GNU General Public License
             along with this program.  If not, see <http://www.gnu.org/licenses/>
         
             Contacts :
             sylvain.faure@universite-paris-saclay.fr
             bertrand.maury@universite-paris-saclay.fr
             Université Paris-Saclay, Laboratoire de Mathématiques d'Orsay, Bât. 307
             91 405 Orsay Cedex, France
         
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Mathematics
Project-URL: Homepage, https://www.cromosim.fr
Project-URL: Repository, https://github.com/sylvain-faure/cromosim
Requires-Python: <3.14,>=3.10
Requires-Dist: cvxopt
Requires-Dist: imageio
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: Pillow
Requires-Dist: scikit-fmm
Requires-Dist: scipy
Requires-Dist: vtk
Requires-Dist: pyvista
Requires-Dist: imageio-ffmpeg
Provides-Extra: docs
Requires-Dist: numpydoc; extra == "docs"
Requires-Dist: sphinx; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest>=7; extra == "test"
Description-Content-Type: text/markdown

# cromosim

CROMOSIM is a Python Library for Crowd Motion Simulation.

- **Website:** https://www.cromosim.fr
- **Source code:** https://github.com/sylvain-faure/cromosim

The aim of this open source project is to make it possible to users to run simulations based from several models (cellular automata, microscopic simulations or using compartments), to test new configurations, and even to investigate the possibility to program their own model in complex geometry : do-it yourself !

This package proposes Python implementations of the numerical methods detailed in the book “Crowds in equations: an introduction to the microscopic modeling of crowds” by Bertrand Maury (ENS Ulm & Univ. Paris-Saclay) and Sylvain Faure (CNRS), World Scientific 2018, Advanced textbooks in mathematics.



Installation
------------

You can either install the main modules with pip

    ~$ pip install cromosim

and then manually download the files for one of the examples you're interested in, such as

    https://github.com/sylvain-faure/cromosim/blob/master/examples/micro/social/micro_social.py
    https://github.com/sylvain-faure/cromosim/blob/master/examples/micro/social/input_room.json
    https://github.com/sylvain-faure/cromosim/blob/master/examples/micro/social/room.png

and finally, once you've retrieved the files, you can run the script:

    ~$ python micro_social.py --json input_room.json

Or clone the repository and install it with a C++17 compiler:

    ~$ git clone https://github.com/sylvain-faure/cromosim.git
    ~$ cd cromosim
    cromosim$ python -m pip install .

and then try one of the scripts in the 'examples' folder:
    
    cromosim$ cd examples/micro/social
    cromosim/examples/micro/social$ python micro_social.py --json input_room.json

The build uses CMake, scikit-build-core and pybind11. Python 3.10 to 3.13 is
supported on Linux, macOS and Windows.

For more information
---------------------

https://www.cromosim.fr
