Height-Averaged Navier-Stokes (HANS) solver for 2D lubrication problems
Project description
HANS
This code implements the Height-Averaged Navier-Stokes (HANS) scheme for two-dimensional lubrication problems as described in the following paper:
Holey, H. et al. (2022) Tribology Letters, 70(2), p. 36.
Installation
Packaged versions can be installed via
pip install hans
Multiscale simulations require a working installation of LAMMPS. New molecular dynamics runs are triggered using the Python interface of LAMMPS. Therefore LAMMPS has to be build as a shared library. Please follow the installation instructions of LAMMPS.
Examples
Run from the command line with
mpirun -n <NP> python3 -m hans -i <input_file> [-p] [-r <restart_file>]
where NP is the number of MPI processes. The plot option (-p, --plot) is only available for serial execution. Example input files as well as jupyter-notebooks can be found in the examples directory.
The command line interface contains some scripts for plotting and creating animations. For instance, 1D profiles of converged solutions can be displayed with
plot1D_last.py
Tests
Run all tests from the main source directory with
pytest
or append the path to the test definition file (located in tests) to run selected tests only.
Documentation
A Sphinx-generated documentation can be built locally with
cd doc
sphinx-apidoc -o . ../hans
make html
Funding
This work is funded by the German Research Foundation (DFG) through GRK 2450.
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 Distribution
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 hans-0.3.2.tar.gz.
File metadata
- Download URL: hans-0.3.2.tar.gz
- Upload date:
- Size: 60.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e536d4d48536f0361cb972a82cae23615d14b2dc243d6606b295160936f6de1
|
|
| MD5 |
7b4953dab6782bb78e94a1f6dc81c82a
|
|
| BLAKE2b-256 |
a42473870c3488ef043cf555cde4d87f3cc1deea145dc2e0fd516470c4671d21
|
Provenance
The following attestation bundles were made for hans-0.3.2.tar.gz:
Publisher:
ci.yaml on hannes-holey/hans
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hans-0.3.2.tar.gz -
Subject digest:
5e536d4d48536f0361cb972a82cae23615d14b2dc243d6606b295160936f6de1 - Sigstore transparency entry: 261755855
- Sigstore integration time:
-
Permalink:
hannes-holey/hans@4a2d86a8df45381164a512b415464f7cd4d6182e -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/hannes-holey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@4a2d86a8df45381164a512b415464f7cd4d6182e -
Trigger Event:
push
-
Statement type:
File details
Details for the file hans-0.3.2-py3-none-any.whl.
File metadata
- Download URL: hans-0.3.2-py3-none-any.whl
- Upload date:
- Size: 95.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ecd82d5f30a0c7fa846e1517a1681f6dfc04363c9ced8731623d2c02905250e
|
|
| MD5 |
50e164e44f5c4f2f2edef2be142ca4fc
|
|
| BLAKE2b-256 |
867aa520bb35c488cfb5ed17e093221b0c071cc8ac26faa64d376b2d2ca0975a
|
Provenance
The following attestation bundles were made for hans-0.3.2-py3-none-any.whl:
Publisher:
ci.yaml on hannes-holey/hans
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hans-0.3.2-py3-none-any.whl -
Subject digest:
9ecd82d5f30a0c7fa846e1517a1681f6dfc04363c9ced8731623d2c02905250e - Sigstore transparency entry: 261755860
- Sigstore integration time:
-
Permalink:
hannes-holey/hans@4a2d86a8df45381164a512b415464f7cd4d6182e -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/hannes-holey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@4a2d86a8df45381164a512b415464f7cd4d6182e -
Trigger Event:
push
-
Statement type: