compas-cem


Namecompas-cem JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/arpastrana/compas_cem
SummaryThe Combinatorial Equilibrium Modeling framework for COMPAS
upload_time2023-04-07 14:42:17
maintainer
docs_urlNone
authorRafael Pastrana
requires_python>=3.6
licenseMIT license
keywords
VCS
bugtrack_url
requirements compas nlopt trimesh autograd compas_singular
Travis-CI
coveralls test coverage No coveralls.
            ********************************************************************************
COMPAS CEM
********************************************************************************

.. start-badges

.. image:: https://github.com/arpastrana/compas_cem/workflows/build/badge.svg
    :target: https://github.com/arpastrana/compas_cem/actions
    :alt: Github Actions Build Status

.. image:: https://img.shields.io/github/license/arpastrana/compas_cem.svg
    :target: https://github.com/arpastrana/compas_cem/blob/main/LICENSE
    :alt: License

.. image:: https://img.shields.io/pypi/v/compas-cem.svg
    :target: https://pypi.python.org/pypi/compas-cem
    :alt: PyPI Package latest release

.. image:: https://img.shields.io/pypi/pyversions/compas-cem
   :target: https://pypi.org/project/compas-cem
   :alt: Python versions

.. image:: https://img.shields.io/badge/arXiv-2111.02607-b31b1b.svg
   :target: https://arxiv.org/abs/2111.02607
   :alt: ArXiv paper

.. image:: https://zenodo.org/badge/278780552.svg
   :target: https://zenodo.org/badge/latestdoi/278780552
   :alt: Zenodo DOI

.. image:: https://img.shields.io/twitter/follow/compas_dev?style=social
   :target: https://twitter.com/compas_dev
   :alt: Twitter follow

.. end-badges

.. _COMPAS: https://compas.dev/
.. _COMPAS CEM Docs: https://arpastrana.github.io/compas_cem/latest/index.html
.. _CEM Framework: https://arxiv.org/abs/2111.02607
.. _Rafael Pastrana: https://pastrana.xyz/
.. _Princeton: https://soa.princeton.edu/
.. _Ole Ohlbrock: https://schwartz.arch.ethz.ch/Team/patrickoleohlbrock.php?lan=en
.. _Pierluigi D'Acunto: https://www.professoren.tum.de/en/dacunto-pierluigi
.. _Stefana Parascho: https://soa.princeton.edu/content/stefana-parascho
.. _Anaconda: https://www.anaconda.com/
.. _Rhino: https://www.rhino3d.com/
.. _Blender: https://www.blender.org/
.. _Grasshopper: https://grasshopper3d.com/
.. _metaverse: https://apnews.com/article/meta-facebook-explaining-the-metaverse-f57e01cd5739840945e89fd668b0fa27



.. figure:: ./docs/images/staircase_24_fps_128_colors.gif
    :figclass: figure
    :class: figure-img img-fluid


The `Combinatorial Equilibrium Modeling (CEM) <https://arxiv.org/abs/2111.02607>`_ framework for `COMPAS`_.

The `CEM framework`_ is a numerical form-finding approach to generate forms in static equilibrium for spatial bar structures subjected to combinations of tension-compression forces and design constraints.
**COMPAS CEM** encapsulates the `CEM framework`_ into an open-source structural design tool that enables the formulation and the solution of constrained form-finding problems in plain and simple `Python <https://www.python.org/>`_ code.


Main features
=============

* **Mix tension and compression forces:** Explore a wider spectrum of structural typologies by combining internal tension and compression forces in the same structure. Design space frames, bridges, tensegrities, and staircases and go beyond the conventional catalog of compression-only shells and cable-nets!

* **Solve constrained form-finding problems efficiently via automatic differentiation:** Generate forms in static equilibrium that simultaneously meet a priori design constraints such as best-fitting a global target shape, restraining bar lengths, and controlling the reaction forces at the supports of a structure.

* **Usable across different 3D modeling software and operating systems:** COMPAS CEM runs on Windows, MacOS and Linux (perhaps one day in the `metaverse`_) and it does not depend on any CAD software to work. However, it provides the necessary interfaces to be seamlessly used inside popular design environments like `Rhino`_, `Blender`_, and `Grasshopper`_. As a `COMPAS`_ extension, COMPAS CEM offers native integration and data exchange with other extensions and plugins in the COMPAS ecosystem.

* **Move those sliders with the Grasshopper plugin:** Are you a `Grasshopper`_ person? Worry not. COMPAS CEM is also shipped as a precooked Grasshopper plugin to readily integrate our constrained form-finding engine into your next spaghetti pipeline 🍝.


Installation
============


These are succint instructions to install **COMPAS CEM** and its `Grasshopper`_ plugin.
For detailed guidance, please refer to the `COMPAS CEM Docs`_.

Install **COMPAS CEM** in a dedicated `Anaconda`_ environment via ``pip``:

::

   pip install compas-cem

To double-check that everything is up and running, type the following in the
command line and hit enter:

::

    python -c "import compas_cem"

If no errors show up, celebrate 🎉! You have a working installation of **COMPAS CEM**.


Grasshopper plugin
------------------

Once **COMPAS CEM** was installed from the comment line, we can additionally link it to `Rhino`_ and use it as `Grasshopper`_ plugin:

::

    python -m compas_rhino.install -v 7.0

The flag ``-v 7.0`` indicates that we will be installing **COMPAS CEM** and company in Rhino 7. If you are working with Rhino 6, replace that last bit with ``-v 6.0``.


First steps
===========

* `COMPAS CEM Docs`_
* `COMPAS CEM Examples <https://arpastrana.github.io/compas_cem/latest/examples.html>`_
* `COMPAS CEM API Reference <https://arpastrana.github.io/compas_cem/latest/api.html>`_
* `COMPAS Tutorials <https://compas.dev/compas/latest/tutorial.html>`_
* `COMPAS API Reference <https://compas.dev/compas/latest/api.html>`_


Are you a bug hunter?
=====================

If you find a bug or want to suggest a potential enhancement,
please help us tackle it by filing a `report <https://github.com/arpastrana/compas_cem/issues>`_.


Questions and feedback
======================

We encourage the use of the `COMPAS framework forum <https://forum.compas-framework.org/>`_ for questions and discussions.


Contributing
============

Pull requests are warmly welcome! Check the `Contributor's Guide <https://github.com/arpastrana/compas_cem/blob/main/CONTRIBUTING.md>`_
for more details.


Citing
======

If you use **COMPAS CEM** for a project or research, please cite us using these `references <https://arpastrana.github.io/compas_cem/latest/citing.html>`_.


Acknowledgements
================

This work has been supported in part by the U.S. National Science Foundation under grant OAC-2118201 and the `NSF Institute for Data Driven Dynamical Design <https://www.mines.edu/id4>`_.


License
=======

MIT



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/arpastrana/compas_cem",
    "name": "compas-cem",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Rafael Pastrana",
    "author_email": "arpj@princeton.edu",
    "download_url": "https://files.pythonhosted.org/packages/a1/a2/300a0dda097195c0a4f46b458f7fd9acd664c83ac2c3a81de0ebfdfd3913/compas_cem-0.8.0.tar.gz",
    "platform": null,
    "description": "********************************************************************************\r\nCOMPAS CEM\r\n********************************************************************************\r\n\r\n.. start-badges\r\n\r\n.. image:: https://github.com/arpastrana/compas_cem/workflows/build/badge.svg\r\n    :target: https://github.com/arpastrana/compas_cem/actions\r\n    :alt: Github Actions Build Status\r\n\r\n.. image:: https://img.shields.io/github/license/arpastrana/compas_cem.svg\r\n    :target: https://github.com/arpastrana/compas_cem/blob/main/LICENSE\r\n    :alt: License\r\n\r\n.. image:: https://img.shields.io/pypi/v/compas-cem.svg\r\n    :target: https://pypi.python.org/pypi/compas-cem\r\n    :alt: PyPI Package latest release\r\n\r\n.. image:: https://img.shields.io/pypi/pyversions/compas-cem\r\n   :target: https://pypi.org/project/compas-cem\r\n   :alt: Python versions\r\n\r\n.. image:: https://img.shields.io/badge/arXiv-2111.02607-b31b1b.svg\r\n   :target: https://arxiv.org/abs/2111.02607\r\n   :alt: ArXiv paper\r\n\r\n.. image:: https://zenodo.org/badge/278780552.svg\r\n   :target: https://zenodo.org/badge/latestdoi/278780552\r\n   :alt: Zenodo DOI\r\n\r\n.. image:: https://img.shields.io/twitter/follow/compas_dev?style=social\r\n   :target: https://twitter.com/compas_dev\r\n   :alt: Twitter follow\r\n\r\n.. end-badges\r\n\r\n.. _COMPAS: https://compas.dev/\r\n.. _COMPAS CEM Docs: https://arpastrana.github.io/compas_cem/latest/index.html\r\n.. _CEM Framework: https://arxiv.org/abs/2111.02607\r\n.. _Rafael Pastrana: https://pastrana.xyz/\r\n.. _Princeton: https://soa.princeton.edu/\r\n.. _Ole Ohlbrock: https://schwartz.arch.ethz.ch/Team/patrickoleohlbrock.php?lan=en\r\n.. _Pierluigi D'Acunto: https://www.professoren.tum.de/en/dacunto-pierluigi\r\n.. _Stefana Parascho: https://soa.princeton.edu/content/stefana-parascho\r\n.. _Anaconda: https://www.anaconda.com/\r\n.. _Rhino: https://www.rhino3d.com/\r\n.. _Blender: https://www.blender.org/\r\n.. _Grasshopper: https://grasshopper3d.com/\r\n.. _metaverse: https://apnews.com/article/meta-facebook-explaining-the-metaverse-f57e01cd5739840945e89fd668b0fa27\r\n\r\n\r\n\r\n.. figure:: ./docs/images/staircase_24_fps_128_colors.gif\r\n    :figclass: figure\r\n    :class: figure-img img-fluid\r\n\r\n\r\nThe `Combinatorial Equilibrium Modeling (CEM) <https://arxiv.org/abs/2111.02607>`_ framework for `COMPAS`_.\r\n\r\nThe `CEM framework`_ is a numerical form-finding approach to generate forms in static equilibrium for spatial bar structures subjected to combinations of tension-compression forces and design constraints.\r\n**COMPAS CEM** encapsulates the `CEM framework`_ into an open-source structural design tool that enables the formulation and the solution of constrained form-finding problems in plain and simple `Python <https://www.python.org/>`_ code.\r\n\r\n\r\nMain features\r\n=============\r\n\r\n* **Mix tension and compression forces:** Explore a wider spectrum of structural typologies by combining internal tension and compression forces in the same structure. Design space frames, bridges, tensegrities, and staircases and go beyond the conventional catalog of compression-only shells and cable-nets!\r\n\r\n* **Solve constrained form-finding problems efficiently via automatic differentiation:** Generate forms in static equilibrium that simultaneously meet a priori design constraints such as best-fitting a global target shape, restraining bar lengths, and controlling the reaction forces at the supports of a structure.\r\n\r\n* **Usable across different 3D modeling software and operating systems:** COMPAS CEM runs on Windows, MacOS and Linux (perhaps one day in the `metaverse`_) and it does not depend on any CAD software to work. However, it provides the necessary interfaces to be seamlessly used inside popular design environments like `Rhino`_, `Blender`_, and `Grasshopper`_. As a `COMPAS`_ extension, COMPAS CEM offers native integration and data exchange with other extensions and plugins in the COMPAS ecosystem.\r\n\r\n* **Move those sliders with the Grasshopper plugin:** Are you a `Grasshopper`_ person? Worry not. COMPAS CEM is also shipped as a precooked Grasshopper plugin to readily integrate our constrained form-finding engine into your next spaghetti pipeline \ud83c\udf5d.\r\n\r\n\r\nInstallation\r\n============\r\n\r\n\r\nThese are succint instructions to install **COMPAS CEM** and its `Grasshopper`_ plugin.\r\nFor detailed guidance, please refer to the `COMPAS CEM Docs`_.\r\n\r\nInstall **COMPAS CEM** in a dedicated `Anaconda`_ environment via ``pip``:\r\n\r\n::\r\n\r\n   pip install compas-cem\r\n\r\nTo double-check that everything is up and running, type the following in the\r\ncommand line and hit enter:\r\n\r\n::\r\n\r\n    python -c \"import compas_cem\"\r\n\r\nIf no errors show up, celebrate \ud83c\udf89! You have a working installation of **COMPAS CEM**.\r\n\r\n\r\nGrasshopper plugin\r\n------------------\r\n\r\nOnce **COMPAS CEM** was installed from the comment line, we can additionally link it to `Rhino`_ and use it as `Grasshopper`_ plugin:\r\n\r\n::\r\n\r\n    python -m compas_rhino.install -v 7.0\r\n\r\nThe flag ``-v 7.0`` indicates that we will be installing **COMPAS CEM** and company in Rhino 7. If you are working with Rhino 6, replace that last bit with ``-v 6.0``.\r\n\r\n\r\nFirst steps\r\n===========\r\n\r\n* `COMPAS CEM Docs`_\r\n* `COMPAS CEM Examples <https://arpastrana.github.io/compas_cem/latest/examples.html>`_\r\n* `COMPAS CEM API Reference <https://arpastrana.github.io/compas_cem/latest/api.html>`_\r\n* `COMPAS Tutorials <https://compas.dev/compas/latest/tutorial.html>`_\r\n* `COMPAS API Reference <https://compas.dev/compas/latest/api.html>`_\r\n\r\n\r\nAre you a bug hunter?\r\n=====================\r\n\r\nIf you find a bug or want to suggest a potential enhancement,\r\nplease help us tackle it by filing a `report <https://github.com/arpastrana/compas_cem/issues>`_.\r\n\r\n\r\nQuestions and feedback\r\n======================\r\n\r\nWe encourage the use of the `COMPAS framework forum <https://forum.compas-framework.org/>`_ for questions and discussions.\r\n\r\n\r\nContributing\r\n============\r\n\r\nPull requests are warmly welcome! Check the `Contributor's Guide <https://github.com/arpastrana/compas_cem/blob/main/CONTRIBUTING.md>`_\r\nfor more details.\r\n\r\n\r\nCiting\r\n======\r\n\r\nIf you use **COMPAS CEM** for a project or research, please cite us using these `references <https://arpastrana.github.io/compas_cem/latest/citing.html>`_.\r\n\r\n\r\nAcknowledgements\r\n================\r\n\r\nThis work has been supported in part by the U.S. National Science Foundation under grant OAC-2118201 and the `NSF Institute for Data Driven Dynamical Design <https://www.mines.edu/id4>`_.\r\n\r\n\r\nLicense\r\n=======\r\n\r\nMIT\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "The Combinatorial Equilibrium Modeling framework for COMPAS",
    "version": "0.8.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc03849e97fb91c583ac4ce9dfe143c5fab5427e92d342346190517a8d04c67c",
                "md5": "7b979e8534cdbad7bd309fa344532076",
                "sha256": "623c5d1b6e6c7befc045bc9b3019e9ee9d266e3c2af9f7ade5ffbc12a9f9fbba"
            },
            "downloads": -1,
            "filename": "compas_cem-0.8.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7b979e8534cdbad7bd309fa344532076",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 339080,
            "upload_time": "2023-04-07T14:42:16",
            "upload_time_iso_8601": "2023-04-07T14:42:16.510220Z",
            "url": "https://files.pythonhosted.org/packages/cc/03/849e97fb91c583ac4ce9dfe143c5fab5427e92d342346190517a8d04c67c/compas_cem-0.8.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1a2300a0dda097195c0a4f46b458f7fd9acd664c83ac2c3a81de0ebfdfd3913",
                "md5": "c6d15792cdf7a82af7b022c1ecd93fa9",
                "sha256": "9b99a14112ed53a8abd4ff7876c7f909d1cf84e91a5d153d7da84007329d7791"
            },
            "downloads": -1,
            "filename": "compas_cem-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c6d15792cdf7a82af7b022c1ecd93fa9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 200527,
            "upload_time": "2023-04-07T14:42:17",
            "upload_time_iso_8601": "2023-04-07T14:42:17.714609Z",
            "url": "https://files.pythonhosted.org/packages/a1/a2/300a0dda097195c0a4f46b458f7fd9acd664c83ac2c3a81de0ebfdfd3913/compas_cem-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-07 14:42:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "arpastrana",
    "github_project": "compas_cem",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "compas",
            "specs": []
        },
        {
            "name": "nlopt",
            "specs": []
        },
        {
            "name": "trimesh",
            "specs": []
        },
        {
            "name": "autograd",
            "specs": []
        },
        {
            "name": "compas_singular",
            "specs": []
        }
    ],
    "lcname": "compas-cem"
}
        
Elapsed time: 0.05076s