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.
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
File details
Details for the file hans-0.2.2.tar.gz
.
File metadata
- Download URL: hans-0.2.2.tar.gz
- Upload date:
- Size: 48.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d6928188baf39806882949c4badea6b54611183779ae686f02024a4600da9a |
|
MD5 | bf2e07616a395f46ef2e3d8923c62adc |
|
BLAKE2b-256 | a969a09e44903368c405ba20e66c28a883a3c9ce83b28f509471660864a48fab |
File details
Details for the file hans-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: hans-0.2.2-py3-none-any.whl
- Upload date:
- Size: 74.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91c0e08d756e671fdb6b53b5217d87275fb04e8854cf7c6631da2689685bda3 |
|
MD5 | 2ca95b07df04f82cf56b8172e5e769b6 |
|
BLAKE2b-256 | 329921f4a19017b1da49705b0c35388a51cbea3ff2afa3f3de1e1a4dff6f7dd0 |