Skip to main content

2D mesh geometry primitives for computational plasmonics meshes.

Project description

mnpbem-mesh2d

Publish mnpbem-mesh2d PyPI status

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

PyPI publication for mnpbem-mesh2d is pending first release.

Track publication status:

Install from repository source:

pip install git+https://github.com/galihru/mnpbem.git#subdirectory=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.0.tar.gz (3.4 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.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mnpbem_mesh2d-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 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.0.tar.gz
Algorithm Hash digest
SHA256 8b65af5c54ea3859a045344eef37b7ad3ea8a1727ae33e2b81eca88fa2c9ff96
MD5 d91b0ad34294b3b7361b10f41cdd0c84
BLAKE2b-256 39c6bca31c4d3046c196ae21f3ad929ecbecef4ffe802f7730045bc68971c9f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mnpbem_mesh2d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6763b24208a9b2a6b2269336018a6166af618890ba776a8049df84d365e920e3
MD5 6454b0fede0f3236795078408a55542d
BLAKE2b-256 f98a1e99dc79635949f1181690e8fbc2e419075e4ef32e327fa6c0610bccf9bd

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