Adaptive mesh generation and refinement
Project description
adaptmesh
Create triangular meshes by the adaptive process.
Installation
Installation happens via PyPI/pip:
pip install adaptmesh
Dependencies
numpy
scipy
matplotlib
scikit-fem
Examples
Square with default settings
from adaptmesh import triangulate
m = triangulate([(0., 0.),
(1., 0.),
(1., 1.),
(0., 1.),])
Non-convex shape
from adaptmesh import triangulate
m = triangulate([(0.0, 0.0),
(1.1, 0.0),
(1.2, 0.5),
(0.7, 0.6),
(2.0, 1.0),
(1.0, 2.0),
(0.5, 1.5),], quality=0.95) # default: 0.9
Licensing
The main source code of adaptmesh
is distributed under the MIT License; see
LICENSE.
adaptmesh
ships with customized versions of the following packages:
tri v0.3.1.dev0
(ported to Python 3; MIT)optimesh v0.6.2
(last version with MIT - later versions are GPLv3; trimmed down version with minor changes)meshplex v0.12.3
(last version with MIT - later versions are GPLv3; trimmed down version with minor changes)
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
adaptmesh-0.1.0.tar.gz
(41.6 kB
view hashes)
Built Distribution
adaptmesh-0.1.0-py3-none-any.whl
(45.1 kB
view hashes)
Close
Hashes for adaptmesh-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8404f149660be5578e920eb742beb9b7adcc6a0091229dc684cae8c5de98b9c |
|
MD5 | c662f03f26c3a33995cf97eaf8801d2f |
|
BLAKE2b-256 | 1aa89c83085e9a6a1c8fd1dccfa4fe746d1557fc8841c8357eebc61bdcee3908 |