2D mesh geometry primitives for computational plasmonics meshes.
Project description
mnpbem-mesh2d
mnpbem-mesh2d provides triangle geometry operators used in mesh-quality and circumcircle computations.
Implemented Formulations
Signed doubled triangle area:
$$ A_2 = (\mathbf{d}_{12})x(\mathbf{d}{13})y-(\mathbf{d}{12})y(\mathbf{d}{13})_x $$
Circumcircle radius squared:
$$ R^2=|\mathbf{p}_1-\mathbf{c}|^2 $$
Mesh quality indicator:
$$ q = 3.4641,\frac{|A_2|}{|\mathbf{d}{12}|^2+|\mathbf{d}{13}|^2+|\mathbf{d}_{23}|^2},\quad 0\le q\le 1 $$
Implementation
- Geometry operators:
src/mnpbem_mesh2d/geometry.py
Dependencies
numpy>=1.24
Installation
pip install mnpbem-mesh2d
Example
Runnable example:
examples/basic_usage.py
Run:
python examples/basic_usage.py
Author
- GALIH RIDHO UTOMO
- g4lihru@students.unnes.ac.id
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
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
File details
Details for the file mnpbem_mesh2d-0.1.1.tar.gz.
File metadata
- Download URL: mnpbem_mesh2d-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b16c9f219d3f8e85d51fbbfddd6747ebe882f2b0848893ea6cd90a9280da018
|
|
| MD5 |
f0814b205deb4fe18cb42f809c6a13a0
|
|
| BLAKE2b-256 |
3a3c443717d89c8ec146d3eeb7016cb6a55acb969fdd137fbc4c882283519a41
|
File details
Details for the file mnpbem_mesh2d-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mesh2d-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afb35e14b7a660d5ead508d4687b0c8726507f8362ce663a01678d3cb0d1be9
|
|
| MD5 |
b98b5907effc9c48eb074a857c6f5450
|
|
| BLAKE2b-256 |
22b9da746f9e725891b1aef2ab729eb67e2f2715ce7e71e365b2c17606ec3948
|