Skip to main content

Microstructure generation

Project description

Microgen logo

Microgen is a simple python library that helps to generate and mesh microstructures.

Here are the main features:

  • Entirely written in Python 3 and based on CadQuery and PyVista libraries.
  • It allows to generate simple reinforcement geometries (spheres, cylinder, ellipsoids, …) to generate virtual composites microstructures.
  • Three-dimensional Voronoi tessellation rallons to simulate the response granular materials and polycrystalline metals.
  • Regular mesh and periodic mesh are implemented using Gmsh, remeshing using Mmg is also implemented.

Gyroid TPMS

build-and-test workflow Anaconda-Server Badge PyPI version 3MAH DOI Binder

Documentation

Provider Status
Read the Docs Documentation Status

Installation


With conda:

conda install -c conda-forge -c cadquery -c set3mah microgen

With pip (Linux only):

pip install microgen

You may need to install dependencies mentioned in the requirements.txt file

pip install -r requirements.txt

To modify the sources, clone this repository and set up the following environment:

Create a conda environment with all the required dependencies

conda env create -f environment.yml -n microgen-dev
conda activate microgen-dev

Then install microgen:

python setup.py install

Examples

Click on the image to be redirected to the corresponding example on Microgen's documentation

Basic shapes

Repeated cells

Triply Periodic Minimal Surfaces (TPMS)

3D operations

Mesh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microgen-1.0.1.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

microgen-1.0.1-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

Details for the file microgen-1.0.1.tar.gz.

File metadata

  • Download URL: microgen-1.0.1.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for microgen-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3a01840368e7c11d5ff09322d6a20b5f1624996ba943ec8bbc8bf35e058bd0b0
MD5 449a3b82edd632534a651c587325ec14
BLAKE2b-256 5dba55b5a280cf0963b2b8da5c26b959060fcbf939fd7630d7a75c2a42f3da99

See more details on using hashes here.

File details

Details for the file microgen-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: microgen-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for microgen-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f44a0b071d6eb42b419fcb129c5e8a5a7e6bb8ac18ec6f46755db944cc25a1de
MD5 6b3869bff6d09d32d1d79a51f6ea563e
BLAKE2b-256 ede1da44d66ec4bf4f7760bd7f0e411e297672a521d507d58c4bd5c6eadb4656

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page