Skip to main content

2D mesh geometry primitives for computational plasmonics meshes.

Project description

mnpbem-mesh2d

PyPI version Python versions Publish 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.1.tar.gz (3.2 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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mnpbem_mesh2d-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mnpbem_mesh2d-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b16c9f219d3f8e85d51fbbfddd6747ebe882f2b0848893ea6cd90a9280da018
MD5 f0814b205deb4fe18cb42f809c6a13a0
BLAKE2b-256 3a3c443717d89c8ec146d3eeb7016cb6a55acb969fdd137fbc4c882283519a41

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mnpbem_mesh2d-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2afb35e14b7a660d5ead508d4687b0c8726507f8362ce663a01678d3cb0d1be9
MD5 b98b5907effc9c48eb074a857c6f5450
BLAKE2b-256 22b9da746f9e725891b1aef2ab729eb67e2f2715ce7e71e365b2c17606ec3948

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