Reduce monomial basis for SDP computations for ROM of Rayleigh–Bénard convection.
Project description
ReduceMonomsRBC
ReduceMonomsRBC is a Python package that reduces the list of monomials for sum-of-squares (SOS) optimization of reduced-order models (ROMS). The monomials are reduced by applying highest-degree cancellation and symmetry conditions derived from the structure of the ROM. This package is built for ROMs of 2D Rayleigh–Bénard convection, but can be adapted to any ROM whose general structure is known.
Features:
- Reduce list of monomials and save list for use in SOS optimization
- Generate ouptut file with number of monomials at each reduction step.
Package Requirements
- numpy (Version 1.5 or later)
- sympy (Version 1.6 or later)
- csv (any version)
- scipy (Version 0.10 or later)
Installation
To install the package, either:
- download or clone this repository and use
from ReduceMonomsRBC import monom_reduction
from the directory containing the package, OR - install package directly using
pip install ReduceMonomsRBC
thenfrom ReduceMonomsRBC import monom_reduction
Instructions
To construct a system of ROMs, use the command monom_reduction(*args)
. Options can be passed as function arguments as detailed below.
Options:
ode_name
: Name of ODEnum_vars
: Number of variables in ODEmonom_deg
: Maximum degree of auxilary functions. Typically an even numberhk_hier
: IfTrue
, uses HK hierarchy for Rayleigh–Bénardhier_num
: Model number in the HK hierarchy. Only matters ifhk_hier=True
monom_stats
: IfTrue
, outputs stats on number of monomials after each stepout_file
: Name of output fileout_dir
: Specify output directory
Examples:
monom_reduction('HK4', 4, 6, hk_hier=True, hier_num=1)
Generates and reduces list of monomials of degree 6 for the HK4 model (in the HK hierarchy of ROMs)
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 ReduceMonomsRBC-0.1.tar.gz
.
File metadata
- Download URL: ReduceMonomsRBC-0.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77679b5d32a15c872ec3730961e68e0ee663afdbf3720615f0ef51f75005d6c2 |
|
MD5 | 7be1852463497048d5ebc503db0e2b37 |
|
BLAKE2b-256 | 2017e479ab3a410de8d868dc18cfc23d219115df3d3134db752e4b79cff5ebd2 |
File details
Details for the file ReduceMonomsRBC-0.1-py3-none-any.whl
.
File metadata
- Download URL: ReduceMonomsRBC-0.1-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15397f23eba1338ad2b340c9516650764c6dedd12dbddd264fcb7d82648742f |
|
MD5 | aeb0ad274c966e2d27f78d4cbded0c3b |
|
BLAKE2b-256 | 8bf3deed8cfa24e9090b3755de01da8e1b8c6476c065d52102c0c56900b13d98 |