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.1.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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for ninpol-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f5867c33bdd2cf82f11e4b8abda008d9a34807a8890f41498eaa38013064e392
MD5 e02f569a1ef5ca2cb5cb56d1ad7c4673
BLAKE2b-256 7d0cc2f643630ae3d52341cc1dddb408723c9aa9e88352a2367fc961be008172

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4247620a90be6cdbbc35fded22358b7bd04245cd6adff28a56114267e5c814de
MD5 30c93d6afcec51f5223d09e98a8078d7
BLAKE2b-256 4f9c2a8f7fbf93806d5d3f4b07c9704415b83796b969b3df0e8e55be475b06dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34486b7dfb71b1ff1bb6b406175424738dc49aef2dbf5dc6003515555532a2e8
MD5 f5297891494cd626a7b11d808322b2e5
BLAKE2b-256 fcca1785caf6a63c079f5867328586c9f20fdfb57494dbb52757566b54b8587c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 52fd651f3bf0516e7a88a5d0df7f57516c7fb592a87dd8c0e76a65e510a38352
MD5 55a8a9d83d677ef71965868e2e972774
BLAKE2b-256 97ffdf67706f4cd29c044195dfe89e916acb13af621808c7e31bf019862457ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0ea3ce08c1da5b6affbfdff1fe927f468d9f25237e125dd50fde555ce9afcdf
MD5 86c3534a7e34611e317196a8afe61a6c
BLAKE2b-256 49d9eab47bd785b961d8cc465bee3bfaa5c23686c6c85f0b7988ab44a764ca6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 85b71efc9cbcedfc99df3a50b1f3e9d7a9362a23bd902fa7e018641020323147
MD5 e9fd9f58a95e52eb296226128ced8f96
BLAKE2b-256 6b237f9eb16a8e34e532c26e76fc6fcbb773320d631bee0c3b0488659889fe23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13dcaf2eed8f9714f2bcc753dbe251339bdaf777e4128dbd8062368457632564
MD5 91bc0b860e9188c1deff954bf642eded
BLAKE2b-256 1f15afa6bdaf352e4a9074fe3f70ec8f5960b8f48cacc4caf40e258f3f16629d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0611ada25d45c5e47c067173e0776ca753fe8916e3751475c1c03c787f735f41
MD5 76a01fccf5448324d705b28653507255
BLAKE2b-256 8554bd0851fe92004d36c279789b2b32c7f7a950f6ae61d3c11dcc2c3ba04b19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ninpol-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e94852f803c0c8d7f56d34c317d4fe09466afe3c03922d9bc71ef9d7022d409
MD5 36ddb0d27f7f1f81f227e3b88adc8bba
BLAKE2b-256 2f680859de655ef653aa5ff0e2a6edf57d7f0f0757c468c1070efb10034f2c50

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