Skip to main content

treillis logo

treillis: lattices generation and simulation

treillis (/tʁɛji/, French for truss) is a Python library built to help researchers and whoever is interested in microlattices. It provides tools to modelize 2D and 3D microlattices, to compute their elastic properties as well as calculate stresses, strains and elastic constants. It was written by experimental physicists with the language that they know, and may need some optimization work, but aims at being as easy to use and iterate on as possible.

treillis offers tools to

  • generate lattices from different periodic or random base meshes
  • modify lattice structures by playing with the connectivity, the element shape, the node position...
  • display lattices in paper-quality figures or in interactive 3D figures
  • apply solid mechanics models to the lattices by treating them as basic meshes

Install

Install from the source as editable

Clone the repository.

Using Pixi

Install the latest version of Pixi, open a command terminal in the folder root and input pixi shell.

Using pip or conda

  • Open a conda command terminal in the folder root.
  • Create the treillis environment from environment.yml with conda env create --name treillis --file=environment.yml
  • install treillis in the environment as editable
    • with pip: pip install -e .
    • with conda: conda install conda-build; conda develop .

Pypi

Due to a packing error in scikit-sparse, installation fails from Pypi. We are working on changing the interactive plotting to VisPy to allow conda installation.

Documentation

Find the treillis documentation here.

License

treillis is under a GNU lesser general public license v3.0. See LICENSE.

Citation

If you use this library, please kindly cite us! See the CITATION file.

Metadata

Release files for treillis 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treillis 1.4
File Size Uploaded
treillis-1.4.tar.gz 44.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for treillis 1.4
File Interpreter ABI Platform
treillis-1.4-py3-none-any.whl Python 3 none any Details

Total release size: 88.6 MB

Release files / treillis-1.4.tar.gz

Download URL treillis-1.4.tar.gz
Size 44.0 MB
Tags Source
SHA-256 checksum
How to use checksums
027a148c0a59e59d6b3032cf36e6d9ca1a72b289e5cd592580c6f12d6515d5a7
BLAKE2b-256 checksum
How to use checksums
4936269f0ab6310bd8920cef20d8bca71b43284e19a2825b056b324aedef3e9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / treillis-1.4-py3-none-any.whl

Download URL treillis-1.4-py3-none-any.whl
Size 44.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
db6899a9a80c25d36fe45809986ccdf682e8702d32e2b35406b3e0b38a33a398
BLAKE2b-256 checksum
How to use checksums
89cafd9cae19d42f14a205ed06e2ae3b97acbaab4847c9ba4bdb1d5a11dbadff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page