Create meshes from segmented imaging data for finite element simulations using Gmsh.
Project description
biomesh
Usage
To generate a finite element mesh from multiple colored stl-files, you simply need to do
import biomesh
mesh = biomesh.mesh_colored_stl_files(
"path/to/part1.stl",
"path/to/part2.stl",
"path/to/part3.stl",
mesh_size=2.0
)
# make all elements quadratic
mesh = biomesh.lin_to_quad(mesh)
# reorder nodes to reduce bandwidth of matrix
mesh = biomesh.reorder(mesh)
The nodes of all stl-files are matched. Each stl-file will be considered as an own volume.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
biomesh-0.4.0.tar.gz
(87.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
biomesh-0.4.0-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file biomesh-0.4.0.tar.gz.
File metadata
- Download URL: biomesh-0.4.0.tar.gz
- Upload date:
- Size: 87.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7b4af76da82e1c948e529e453fda508746dccb8078d28e8a23c891821d42795
|
|
| MD5 |
dc8924d767ba56ea7fa5deae3a93c014
|
|
| BLAKE2b-256 |
70e84b98b606fb0d0a5e5e6a773a2527e3cd59a36f46b3a3752929db864944be
|
File details
Details for the file biomesh-0.4.0-py3-none-any.whl.
File metadata
- Download URL: biomesh-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ac2a68e2d6f8e5b5568b5b055d34872b823c5c546a398c71b165c721a7efbf
|
|
| MD5 |
6f038854b5a8e2484c384db20029170c
|
|
| BLAKE2b-256 |
1e2ece6f1715812183a509f78edb178694854fc3a03e2034b9c5bd202c84d0dd
|