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.4.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.4.tar.gz.
File metadata
- Download URL: mnpbem_mesh2d-0.1.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c1b7ef09dc311c9e33ad4749b29edbf442999fcb0d46d386997b0e1d6775099
|
|
| MD5 |
f860f1a3da41b95dc67788aa8e72740a
|
|
| BLAKE2b-256 |
1f1e1da2c66ab8cfb40df12e979651cf1e2dcc98b6e968f811e5621492c2c8c5
|
File details
Details for the file mnpbem_mesh2d-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mesh2d-0.1.4-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.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
047be60d4ecd54f8089251101b3a80a56f659d954f1f8f1e0cfd0456a78efe4e
|
|
| MD5 |
4db03764b9fc8c080dba851c697eef89
|
|
| BLAKE2b-256 |
0c1e631eeeaeb1d6c54d894b257424c0b05a10ef6e23ba030963975fad982c98
|