Skip to main content

TBNN-s - Tensor Basis Neural Network for Scalar Mixing

Project description

## TBNN-s v0.5.0 - Tensor Basis Neural Network for Scalar Mixing

This package implements the vanilla Tensor Basis Neural Network [1] as the TBNN class, and also the Tensor Basis Neural Network for Scalar Flux Modeling [2] as the TBNNS class. They are described in the following references:

[1] Ling, Kurzawski, Templeton. “Reynolds averaged turbulence modelling using deep neural networks with embedded invariance.” J. Fluid Mech. 807 (2016)

[2] Milani, Ling, Eaton. “Turbulent scalar flux in inclined jets in crossflow: counter gradient transport and deep learning modelling” J. Fluid Mech. (under review)

Author: Pedro M. Milani (email: pmmilani@stanford.edu)

Last modified: 08/06/2020

Developed and tested in Python 3.7 using tensorflow 1.15

### Installation To install, run the following (optionally within a virtual environment):

pip install tbnns [–user] [–upgrade]

This will install the stable version from the Python Package Index. Use the flag –user in case you do not have administrator privileges and the flag –upgrade to get the newest version.

To test the program while it is being developed, run the command below from the current directory. This is useful when you are developing the code.

pip install -e .

To uninstall, run:

pip uninstall tbnns

The commands above will also install some dependencies (included in the file “requirements.txt”) needed for this package.

### Examples and Testing

The folder test contains a script example_usage.py and three representative datasets. For an example of training a TBNN-s and applying it to a test set, run the following inside the folder test:

python example_usage_tbnns.py

python example_usage_tbnn.py

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

tbnns-0.5.0.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tbnns-0.5.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file tbnns-0.5.0.tar.gz.

File metadata

  • Download URL: tbnns-0.5.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for tbnns-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b7462a3d6ecd4fd8c96befe71e2ac0a8ef33290432f984be7e35be1701d6772d
MD5 ddf57738ddf448765dbc4167be3cf8a1
BLAKE2b-256 a92289c28012c3a8970824b4eb0e8d2622be929b2b1f9d40a4b33bcdf1f90cfa

See more details on using hashes here.

File details

Details for the file tbnns-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: tbnns-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for tbnns-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e746dfdcb5eec5e3c2ac05e6300ed4a6dae697b265ae08979e876b24192320a
MD5 2fcb8cb86157f7a03b3ceb79f0aaa3df
BLAKE2b-256 fceaa73adbf17c286c012102fa8231ad99302eed557dafcc69c80c5a17f9a8ca

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