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:
A2 = d12_x * d13_y - d12_y * d13_x
Circumcircle radius squared:
R2 = ||p1 - c||^2
Mesh quality indicator:
q = (2 * sqrt(3) * |A2|) / (||d12||^2 + ||d13||^2 + ||d23||^2), 0 <= q <= 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
mnpbem_mesh2d-0.1.6.tar.gz
(3.1 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
File details
Details for the file mnpbem_mesh2d-0.1.6.tar.gz.
File metadata
- Download URL: mnpbem_mesh2d-0.1.6.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52ff1d8c53ba21b4e607a6d1199735b57c2af48271cee114de9a8c7e3787aa69
|
|
| MD5 |
670dfd9fea2c4b1f19959f0fff1f6599
|
|
| BLAKE2b-256 |
8dc3536f3a77e161dcd8f6adf0b67ff856ec5975a7c5e20bd45efbb4bab5e029
|
File details
Details for the file mnpbem_mesh2d-0.1.6-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mesh2d-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c22f7959b3bd00d3bd2dbbec11eb277ec860be0a58e2dcaa0cd9f3c083e634d
|
|
| MD5 |
e801c60c9ca2dc66cd9a15a83cb4f753
|
|
| BLAKE2b-256 |
3d1653d0fb4c4720a833dfbeb8be086dce08bac9ac401a2162ad673f4ea098b9
|