Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Spacetime Tents in NGSolve

This NGS-Tents (ngstents) package is a c++ extension of the NGSolve finite element library, designed to ease experimentation with solvers based on spacetime tents for hyperbolic systems. A python front-end allows new equations (linear or nonlinear conservation laws) to be solved by easily defining required fluxes and numerical fluxes in a few lines of code.

Install

Build using pip

On a computer with a build system (compiler etc), you can install NGS-Tents by

python3 -m pip install git+https://github.com/jayggg/ngstents.git

If you do not have the dependency ngsolve installed, this command will attempt to install ngsolve first, before proceeding to install ngstents. If you prefer to use your own existing install of ngsolve, please use the --no-build-isolation argument:

python3 -m pip install --no-build-isolation git+https://github.com/jayggg/ngstents.git

Build using CMake

If you built ngsolve from source, you can also build and install ngstents in the traditional manner. After cloning this repository, compile the c++ code here and install as follows:

cd src
mkdir build && cd build
cmake -DNGSolve_DIR=<Path2YourNGSolveInstallCMake>  ..
make install

(Often CMake is able to correctly detect the path to your NGSolve installation in which case you do not have to specify the NGSolve_DIR variable.)

Binary install

If you do not have a compiler, then you can install NGS-Tents using a binary installer. To do so on linux, mac, and windows (with python>= 3.9), use the following command.

pip install --pre ngstents

Use

To start using this code's python interface, import the module after installation:

import ngstents

It contains classes named Tent and TentSlab used to partition spacetime into tents. It also has a submodule named conslaw which contains specific pre-programmed hyperbolic equations and also facilities to define and solve new hyperbolic systems using the python interface. Use python's help system to query for documentation on each object. The demo folder contains example scripts. The docs folder contains more documentation, explained next.

Documentation

Read the docs online. This documentation is generated from hands-on style tutorial notebooks in the docs folder.

Offline, to build and test the docs locally, navigate to the ngstents/docs folder and run these:

pip install -r requirements.txt
sphinx-build -b html . _build_docs

You can then open the docs from ngstents/docs/_build_docs/INDEX.html.

Alternately, you can build a jupyter book of the documentation by navigating to the ngstents/docs folder and issuing

jupyter-book build .

which creates documentation in ngstents/docs/_build/INDEX.html.

Check

If you extend the code, your new code changes can be cross-checked against a test suite provided in the 'tests' folder. For example, if you have pytest installed, move to the ngstents/tests folder and use pytest:

pytest .

Organization

  • src: c++ source code
  • py: python packaging files
  • doc: tutorials and explanations
  • demo: examples of applications
  • tests: test suite

Metadata

Release files for ngstents 0.1.dev443

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngstents 0.1.dev443
File Size Uploaded Provenance Actions
ngstents-0.1.dev443.tar.gz 353.1 kB Without provenance Details for ngstents-0.1.dev443.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ngstents 0.1.dev443
File Actions
ngstents-0.1.dev443-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for ngstents-0.1.dev443-cp312-cp312-win_amd64.whl
ngstents-0.1.dev443-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for ngstents-0.1.dev443-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
ngstents-0.1.dev443-cp312-cp312-macosx_10_15_universal2.whl CPython 3.12 CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64) Details for ngstents-0.1.dev443-cp312-cp312-macosx_10_15_universal2.whl
ngstents-0.1.dev443-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for ngstents-0.1.dev443-cp311-cp311-win_amd64.whl
ngstents-0.1.dev443-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for ngstents-0.1.dev443-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
ngstents-0.1.dev443-cp311-cp311-macosx_10_15_universal2.whl CPython 3.11 CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64) Details for ngstents-0.1.dev443-cp311-cp311-macosx_10_15_universal2.whl
ngstents-0.1.dev443-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for ngstents-0.1.dev443-cp310-cp310-win_amd64.whl
ngstents-0.1.dev443-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for ngstents-0.1.dev443-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
ngstents-0.1.dev443-cp310-cp310-macosx_10_15_universal2.whl CPython 3.10 CPython 3.10 macOS 10.15+ universal2 (ARM64, x86-64) Details for ngstents-0.1.dev443-cp310-cp310-macosx_10_15_universal2.whl
ngstents-0.1.dev443-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for ngstents-0.1.dev443-cp39-cp39-win_amd64.whl
ngstents-0.1.dev443-cp39-cp39-manylinux_2_28_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for ngstents-0.1.dev443-cp39-cp39-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
ngstents-0.1.dev443-cp39-cp39-macosx_10_15_universal2.whl CPython 3.9 CPython 3.9 macOS 10.15+ universal2 (ARM64, x86-64) Details for ngstents-0.1.dev443-cp39-cp39-macosx_10_15_universal2.whl

Total release size: 20.1 MB

Release files / ngstents-0.1.dev443.tar.gz

Download URL ngstents-0.1.dev443.tar.gz
Size 353.1 kB
Tags Source
SHA-256 checksum
How to use checksums
452fa988fa36ecdc7f242bf610466aa26ab2a9a38edb44ba9421932afaf1c401
BLAKE2b-256 checksum
How to use checksums
6e90e8e4a39b09e10b7f5d59299977726b71843ff94092e2cbb0f983bd54db3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp312-cp312-win_amd64.whl

Download URL ngstents-0.1.dev443-cp312-cp312-win_amd64.whl
Size 729.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
21aca1abe9aa5e65df7f99b1de1f165663da23b5cbc30bdf32fa54782c4ba8c5
BLAKE2b-256 checksum
How to use checksums
5c826c8480a7a73b5effeccd1d97c8620660ddc4cd97a325892d457b28b8d7b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL ngstents-0.1.dev443-cp312-cp312-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
95554429b5609873302e768c1b1e4117233d9570cfe082a8ae29ad77209743d4
BLAKE2b-256 checksum
How to use checksums
961e793a531511c0f18f7784ebbc2c0108cb699cbb50aaaff0819ca65f6dba3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp312-cp312-macosx_10_15_universal2.whl

Download URL ngstents-0.1.dev443-cp312-cp312-macosx_10_15_universal2.whl
Size 3.1 MB
Tags CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
abf9f405076f7693a0f44edc3685a4c81a6510ca704c2f3dd3b084ef99a14c99
BLAKE2b-256 checksum
How to use checksums
057969021532c1d65e557b1e228d68a66e32390b1ea87f4a3be3cde33963c0c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp311-cp311-win_amd64.whl

Download URL ngstents-0.1.dev443-cp311-cp311-win_amd64.whl
Size 728.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
ce7cea58a83536872629b8f7d9c6a5bdfdb0b296aaf06aab62dad74d2874c3aa
BLAKE2b-256 checksum
How to use checksums
b73b3d7222834e98b8c5ebff9bb7a502c35147bc8933906dec0df4a327b58cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL ngstents-0.1.dev443-cp311-cp311-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f2df4508287821bebbea7605bc73b4ea79d32aab9120016a46047508174d94b4
BLAKE2b-256 checksum
How to use checksums
339c39f45a065ee5ab30d0499eb0a7bec85b20794a18ca310286d4146a5dba8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp311-cp311-macosx_10_15_universal2.whl

Download URL ngstents-0.1.dev443-cp311-cp311-macosx_10_15_universal2.whl
Size 3.1 MB
Tags CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
6a59ed03f18107c03f8417fcfa7e0782d385297882c4d39c13a22b3f4dff4f32
BLAKE2b-256 checksum
How to use checksums
db847c8627a6ba5ad278d801a167d4ddd00a616072ccab1a8fb1f26c7a1ce20c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp310-cp310-win_amd64.whl

Download URL ngstents-0.1.dev443-cp310-cp310-win_amd64.whl
Size 726.5 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a80845dd45f79d10a60c9a1baaabd365ab1f8641d2c5afb2787e42894bba8c7e
BLAKE2b-256 checksum
How to use checksums
ec46ce316489b206f695517f9b23ca8a7058c3bcdf9338c559fc79d1dc16758a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL ngstents-0.1.dev443-cp310-cp310-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0bdde1c0b8083cbf411a313f6e6a9159b0de59c922b6c10eab137af136545eee
BLAKE2b-256 checksum
How to use checksums
ae186703d490407085d67981e05764d4977c4323ab5f405479e0a486b8ace2ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp310-cp310-macosx_10_15_universal2.whl

Download URL ngstents-0.1.dev443-cp310-cp310-macosx_10_15_universal2.whl
Size 3.1 MB
Tags CPython 3.10 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
d7471403e8ce5b1e8424bb20873732696d0de306b5f10222845ba8ea6b78ec77
BLAKE2b-256 checksum
How to use checksums
263866f987da4f704d222ba817b201e3a066eba8cf94c4d38a349440601a81ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp39-cp39-win_amd64.whl

Download URL ngstents-0.1.dev443-cp39-cp39-win_amd64.whl
Size 730.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
e8c1568fdf8f32728778c275356e441a8b7d24e7e97fbd282c0ebdb3e399e814
BLAKE2b-256 checksum
How to use checksums
521034eb8a8ecae6c669d5a3281921ba2ebeea8ec9889221e4d6fdc4ab269a21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp39-cp39-manylinux_2_28_x86_64.manylinux2014_x86_64.whl

Download URL ngstents-0.1.dev443-cp39-cp39-manylinux_2_28_x86_64.manylinux2014_x86_64.whl
Size 1.1 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
052b8e79b6bae1e671e5994960712115e97ec28ff4dec90e77a7f70be85ba17b
BLAKE2b-256 checksum
How to use checksums
65d574501ef96e7b6fdf6e616fb8eb84e8d294aca22cde20a71fa12e29def638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / ngstents-0.1.dev443-cp39-cp39-macosx_10_15_universal2.whl

Download URL ngstents-0.1.dev443-cp39-cp39-macosx_10_15_universal2.whl
Size 3.1 MB
Tags CPython 3.9 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
d16bbc2703d47a8ccd25898596c77f81e61731b3838b159bfa9c79d639b1cab1
BLAKE2b-256 checksum
How to use checksums
91582bffd41c64a284a65fb47640c859aa9490c8c9e8146ccf206ba2250c6d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for ngstents 0.1.dev443

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page