Skip to main content

2D mesh geometry primitives for computational plasmonics meshes.

Project description

mnpbem-mesh2d

PyPI version Python versions

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.2.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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for mnpbem_mesh2d-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f2f5f0ae054eeeeeea4f27fd8d83d0f7e23ad778c1646e128709617d1103d6df
MD5 3f96109cf6a9b74043d3975d5c9db42e
BLAKE2b-256 6f10a1b9ce2bebd4887776d8b0c4bd39d00ec34013453ce1d1b56d6bb7ff367d

See more details on using hashes here.

File details

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

File metadata

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

Hashes for mnpbem_mesh2d-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbf19b5a7d4fb33da08096c7dfd32e10a86a34dfd4654634170990bbfcb49a5
MD5 cebf2b9e738e1ab9cb53930b44ba37f1
BLAKE2b-256 2380d1a0b621c7995ba722852d0d26d12e077c3935be3629b3bba27d5c6bd467

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