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.7.tar.gz
(3.2 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.7.tar.gz.
File metadata
- Download URL: mnpbem_mesh2d-0.1.7.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f125ee797ca365d25f1f7d5861671ed1d63c418cde85c652b56ead98698feab2
|
|
| MD5 |
7e1f3c6ec9a37a42f95eb8a74dde1c51
|
|
| BLAKE2b-256 |
8e97432b734811e5692dfd1e77dfeec2ff4b74fcb1e5d3a9a89dbb5d91d03a6d
|
File details
Details for the file mnpbem_mesh2d-0.1.7-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mesh2d-0.1.7-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 |
baf912edb88c7f0bedcc10dcfc651fddbfabab5421ab95b8543093fd6ea140e8
|
|
| MD5 |
f47150d65259ab141cca1e371814522c
|
|
| BLAKE2b-256 |
faacb8adfd2245ecafcf27535981c71ca1e6dbd2e2dfdb0d26be6626ac08d0a4
|