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_fileis the path to the mesh filevariableis the variable to be interpolated, associated with the elements of the meshmethodis the interpolation method to be used (can be checked withinterpolator.supported_methods)weightsis a sparse matrix of shape(n_nodes, n_elements)containing the interpolation weights for each node.neumannis a numpy array of shape(n_nodes)containing the value of the Neumann boundary condition values for each node. It's filled with0'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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66cbe592ab858f2b700ac65d4debeb2efd4851d630bf6b03832b762525fe8423
|
|
| MD5 |
af84dbe20e785b181737fd8a9fe59fc0
|
|
| BLAKE2b-256 |
de88a1ace7fdab792891743db620c29b8353426d0cd1520cf2b6f6338b38d391
|
File details
Details for the file ninpol-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 6.3 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41a24ed21e681cae1e76c8d918af8cdb8e3ce5091d5a9d902e78f755b3c5c1ae
|
|
| MD5 |
7534d858bd26b099e1a6802354e0e19f
|
|
| BLAKE2b-256 |
e01f547143f885609c1ee7525580ab3bf637b68a3832eaf73a34b1147010e982
|
File details
Details for the file ninpol-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6126e1b9f40b8c26b49c17ba3ce7e6415588231b5b0dd6f1a074c8002cda1f
|
|
| MD5 |
cac2bd39bcdd8e5fc2187593f0813742
|
|
| BLAKE2b-256 |
083e9a5489bfe098a8cef6f02d71e6624e0785028395c5a6197c1fdeec1f9257
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a30773048d50b7bb0046a574f4548865892e41017d20dd7f8602395305ab926
|
|
| MD5 |
67f8201fdac3dba64fb3d08dee1a3a06
|
|
| BLAKE2b-256 |
2e808a9d6d00057c14e256e77d99ce051ed75d2a23526262c001388bce058446
|
File details
Details for the file ninpol-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 6.3 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a7148198774a0d6c4c9effb2143afdf45af639bcd193df162cdcef51e73bad6
|
|
| MD5 |
85de44fae712597e8bf5d32182d4b7a4
|
|
| BLAKE2b-256 |
36ac4ab95b475411c7f625f33cb6d5d9559012687118f3bf795ff4cd470ba8ff
|
File details
Details for the file ninpol-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eb8e59702d1c7978751b42fbf2bbac5da06b10b27d93127b5a26dbcea9cd3df
|
|
| MD5 |
20fddcfce5b4583b576d20bfb8f97a93
|
|
| BLAKE2b-256 |
d2fa7f68097e726bd85d2639cbc88ad254188d6b70e958a5f3417dc97a00e4ac
|
File details
Details for the file ninpol-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e301b62afe583dbd21d1dbd213b8ad52ff702a251d7c123e1bc521ec247379a8
|
|
| MD5 |
9a34de9450dd64346a3b8dfb0b2709a0
|
|
| BLAKE2b-256 |
ce69c08d5f59ba9e949fcd717344392bbd66ef52e5ec0c2344af1131daa7f898
|
File details
Details for the file ninpol-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852076432c5129452d45a3d3ac247364c227953f39568ff98dd30110c064f48c
|
|
| MD5 |
5dfa70feb7ce11fc419f53df194366a1
|
|
| BLAKE2b-256 |
0aabf4c6620bfab8ae6503f7e38d013f1460a44f004bc11652c9a5ed32568326
|
File details
Details for the file ninpol-1.0.2-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a853af7e10ff7eeb6d2e798e418d6abec4bb1750270629a6e9b7df0aa9b598a4
|
|
| MD5 |
ccba1c27dfa2d99b4aa38885ab70f831
|
|
| BLAKE2b-256 |
b15bd478a3a1ee108cbf00506363d9033dc6d6d061c337d4799be07925a4f501
|
File details
Details for the file ninpol-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ninpol-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dc58ade161ce006e7fcc3c29f9798b2b12ffc391901b819b9232fb34c666af7
|
|
| MD5 |
4fb42f72666df837f77dc63a14a77408
|
|
| BLAKE2b-256 |
07b7537e066be08de903c46516b768b4d84e937c2006c2b2cc5beba2560ea316
|