Skip to main content

Library of Nodal Interpolation Techniques for Finite Volume Schemes

Project description

ninpol

Library of Nodal Interpolation Techniques for Finite Volume Schemes

Installation

pip install ninpol

Pre-requisites

requires = [
  "setuptools",
  "wheel",
  "Cython",
  "numpy",
  "scipy"
]

Usage

import ninpol

interpolator = ninpol.Interpolator(logging = True)
interpolator.load_mesh(mesh_file)

weights, neumann = interpolator.interpolate(variable, method)

Where:

  • mesh_file is the path to the mesh file
  • variable is the variable to be interpolated, associated with the elements of the mesh
  • method is the interpolation method to be used (can be checked with interpolator.supported_methods)
  • weights is a sparse matrix of shape (n_nodes, n_elements) containing the interpolation weights for each node.
  • neumann is a numpy array of shape (n_nodes) containing the value of the Neumann boundary condition values for each node. It's filled with 0's if there's no node in a Neumann boundary condition domain.

Tests

On linux, run, on the project root directory:

make test

On Windows or MacOS:

pytest -s --tb=short
python3 ./tests/results/graph.py

The second command will generate the graphs and .csv files with the results of the tests. OBS: Requires pytest to be installed.

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

ninpol-1.0.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

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

ninpol-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

ninpol-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

ninpol-1.0.2-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

ninpol-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

ninpol-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ninpol-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

ninpol-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ninpol-1.0.2-cp310-cp310-musllinux_1_2_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

ninpol-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file ninpol-1.0.2.tar.gz.

File metadata

  • Download URL: ninpol-1.0.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for ninpol-1.0.2.tar.gz
Algorithm Hash digest
SHA256 66cbe592ab858f2b700ac65d4debeb2efd4851d630bf6b03832b762525fe8423
MD5 af84dbe20e785b181737fd8a9fe59fc0
BLAKE2b-256 de88a1ace7fdab792891743db620c29b8353426d0cd1520cf2b6f6338b38d391

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 41a24ed21e681cae1e76c8d918af8cdb8e3ce5091d5a9d902e78f755b3c5c1ae
MD5 7534d858bd26b099e1a6802354e0e19f
BLAKE2b-256 e01f547143f885609c1ee7525580ab3bf637b68a3832eaf73a34b1147010e982

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee6126e1b9f40b8c26b49c17ba3ce7e6415588231b5b0dd6f1a074c8002cda1f
MD5 cac2bd39bcdd8e5fc2187593f0813742
BLAKE2b-256 083e9a5489bfe098a8cef6f02d71e6624e0785028395c5a6197c1fdeec1f9257

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: ninpol-1.0.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for ninpol-1.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7a30773048d50b7bb0046a574f4548865892e41017d20dd7f8602395305ab926
MD5 67f8201fdac3dba64fb3d08dee1a3a06
BLAKE2b-256 2e808a9d6d00057c14e256e77d99ce051ed75d2a23526262c001388bce058446

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9a7148198774a0d6c4c9effb2143afdf45af639bcd193df162cdcef51e73bad6
MD5 85de44fae712597e8bf5d32182d4b7a4
BLAKE2b-256 36ac4ab95b475411c7f625f33cb6d5d9559012687118f3bf795ff4cd470ba8ff

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5eb8e59702d1c7978751b42fbf2bbac5da06b10b27d93127b5a26dbcea9cd3df
MD5 20fddcfce5b4583b576d20bfb8f97a93
BLAKE2b-256 d2fa7f68097e726bd85d2639cbc88ad254188d6b70e958a5f3417dc97a00e4ac

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e301b62afe583dbd21d1dbd213b8ad52ff702a251d7c123e1bc521ec247379a8
MD5 9a34de9450dd64346a3b8dfb0b2709a0
BLAKE2b-256 ce69c08d5f59ba9e949fcd717344392bbd66ef52e5ec0c2344af1131daa7f898

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 852076432c5129452d45a3d3ac247364c227953f39568ff98dd30110c064f48c
MD5 5dfa70feb7ce11fc419f53df194366a1
BLAKE2b-256 0aabf4c6620bfab8ae6503f7e38d013f1460a44f004bc11652c9a5ed32568326

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a853af7e10ff7eeb6d2e798e418d6abec4bb1750270629a6e9b7df0aa9b598a4
MD5 ccba1c27dfa2d99b4aa38885ab70f831
BLAKE2b-256 b15bd478a3a1ee108cbf00506363d9033dc6d6d061c337d4799be07925a4f501

See more details on using hashes here.

File details

Details for the file ninpol-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ninpol-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5dc58ade161ce006e7fcc3c29f9798b2b12ffc391901b819b9232fb34c666af7
MD5 4fb42f72666df837f77dc63a14a77408
BLAKE2b-256 07b7537e066be08de903c46516b768b4d84e937c2006c2b2cc5beba2560ea316

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