Skip to main content

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

Project details


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.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mnpbem_mesh2d-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mnpbem_mesh2d-0.1.5.tar.gz.

File metadata

  • Download URL: mnpbem_mesh2d-0.1.5.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

Hashes for mnpbem_mesh2d-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4c2b8fc421be65a2cb8581c6d3479fe5f0436a160a3b5076c9239542448adc53
MD5 9fb259bbee75268bbde606d666cd3279
BLAKE2b-256 0be23e38117509de457b47f1da5eb69a5e116b6ffb772e64da7c3076f7c5a41d

See more details on using hashes here.

File details

Details for the file mnpbem_mesh2d-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mnpbem_mesh2d-0.1.5-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

Hashes for mnpbem_mesh2d-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 716fd7f17ecde5efee4fed5bbf93efb34efa8c8ad722e81dca196e6253f9e03c
MD5 dd46411e7a6cb5bc6e35440cc956eb3b
BLAKE2b-256 3629a0064273b659dedaf36bb5714420412fdfc3a4a29616b1ecd4b5c1d7c443

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page