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
mnpbem_mesh2d-0.1.3.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.3.tar.gz.
File metadata
- Download URL: mnpbem_mesh2d-0.1.3.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 |
76f05d34fd59911accab6cedc544b63dea54726c8651d99f71c3b12aad7d67c0
|
|
| MD5 |
97881850fbb8c2e6cca44ac7dce177e3
|
|
| BLAKE2b-256 |
35373ff41a9c285180f5415822e0ecd5c921f072b168bc7f6b63a8dbc840dc5e
|
File details
Details for the file mnpbem_mesh2d-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mesh2d-0.1.3-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.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e270832c04b3b6bf6196ce10e64d3f2dd01e7e5ef4271d2b3de920fc16ed004
|
|
| MD5 |
b5a8cdbd7a5b15f45af26315b8c88898
|
|
| BLAKE2b-256 |
8645ddbcc1377f4daec2948826711f24f2a7d31a38cbb53824fc102cdbba8d6b
|