Metadata-Version: 2.4
Name: open-flash
Version: 1.0.7
Summary: A Python package for semi-analytical hydrodynamics modeling including matched eigenfunction expansion method
Author: SEA Lab
Project-URL: Homepage, https://github.com/symbiotic-engineering/semi-analytical-hydro.git
Keywords: matched eigenfunctions,hydrodynamics,semi-analytical
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: CITATION.cff
Requires-Dist: numpy>=1.21
Requires-Dist: scipy>=1.7
Requires-Dist: pandas>=1.5
Requires-Dist: matplotlib>=3.5
Requires-Dist: h5netcdf>=0.12
Requires-Dist: xarray>=2023.0
Requires-Dist: streamlit>=1.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: sphinx>=3.0; extra == "dev"
Requires-Dist: sphinx-rtd-theme>=0.5; extra == "dev"
Requires-Dist: sphinx-tabs>=1.0; extra == "dev"
Requires-Dist: sphinx_design>=0.0.8; extra == "dev"
Requires-Dist: sphinx-copybutton; extra == "dev"
Requires-Dist: sphinx-last-updated-by-git; extra == "dev"
Requires-Dist: nbsphinx>=0.8; extra == "dev"
Requires-Dist: jupyter>=1.0.0; extra == "dev"
Requires-Dist: ipykernel; extra == "dev"
Requires-Dist: twine>=4.0; extra == "dev"
Requires-Dist: build>=0.8; extra == "dev"
Requires-Dist: readme_renderer>=30.0; extra == "dev"
Requires-Dist: watchdog>=3.0; extra == "dev"
Requires-Dist: black>=23.0; extra == "dev"
Requires-Dist: ruff>=0.0.280; extra == "dev"
Provides-Extra: hydro
Requires-Dist: capytaine>=2.2; extra == "hydro"
Dynamic: license-file

# OpenFLASH ⚡️
Open-source Flexible Library for Analytical and Semi-analytical Hydrodynamics 

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Unit Tests](https://github.com/symbiotic-engineering/OpenFLASH/actions/workflows/ci.yml/badge.svg)](https://github.com/symbiotic-engineering/OpenFLASH/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/symbiotic-engineering/OpenFLASH/graph/badge.svg?token=BKOU81RS8Q)](https://codecov.io/gh/symbiotic-engineering/OpenFLASH)
[![GitHub](https://img.shields.io/github/license/symbiotic-engineering/OpenFLASH)](https://github.com/symbiotic-engineering/OpenFLASH/blob/main/LICENSE)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17453419.svg)](https://doi.org/10.5281/zenodo.17453419)
![GitHub Release](https://img.shields.io/github/v/release/symbiotic-engineering/OpenFLASH)
![PyPI - Version](https://img.shields.io/pypi/v/open-flash)
![Conda Version](https://img.shields.io/conda/v/sea-lab/open-flash)



## About The OpenFLASH Project

The OpenFLASH project is a Python package designed for solving hydrodynamic boundary value problems using eigenfunction expansion methods. It provides a modular framework for defining complex geometries, setting up multi-domain problems, performing numerical computations, and analyzing results, particularly for linear potential flow hydrodynamics. It can be significantly faster than Boundary Element Method calculations although is restricted to certain geometries (currently axisymmetric compound cylinders).  

When referencing this work, please reference our `citation.cff`.

This project is licensed under the MIT License. See the `LICENSE` file for details.

## Installation
Three common installation options are shown below. For more details, see the [installation](https://symbiotic-engineering.github.io/OpenFLASH/installation.html) section of the docs.

Option 1: via pypi (recommended for users who manage environments with venv or similar)

```bash
pip install open-flash
```

Option 2: via conda (recommended for users who manage environments with conda)

```bash
conda create -n openflash-env sea-lab::open-flash
conda activate openflash-env
```

Option 3: via git (recommended for developers)

Note - if you are a developer outside of the SEA Lab, please create a fork and clone your fork.
1.  **Clone the repository:**
```bash
git clone https://github.com/symbiotic-engineering/OpenFLASH.git
cd OpenFLASH
```
2.  **Install the package:**
```bash
pip install -e .
```
3.  **Install dependencies:**
```bash
pip install -r requirements.txt
```

## Usage

Please see our [documentation](https://symbiotic-engineering.github.io/OpenFLASH/) and [tutorial notebook](https://symbiotic-engineering.github.io/OpenFLASH/tutorial_walk.html). The documentation provides detailed instructions and API reference for the different modules and classes within the `openflash` package.

If you prefer not to utilize the package programatically, the model can also be run with an [interactive web app](http://symbiotic-engineering.github.io/OpenFLASH/app_streamlit.html) (the site may take several seconds to load).

## Theory
Please see our [equations documentation](https://symbiotic-engineering.github.io/OpenFLASH/multi_equations.html) and [references](https://symbiotic-engineering.github.io/OpenFLASH/citations.html) for mathematical background and derivations as well as validation information.

## MATLAB
We also have a MATLAB code version, although the Python package is intended as primary for future development. MATLAB only supports bodies consisting of 2 concentric cylinders, rather than the arbitrary N concentric cylinders in the Python package.

See `matlab/src/run_MEEM.m` for the symbolic and numeric code, see `matlab/test/` for some scripts to get results, and `matlab/dev` for various matlab experiments.
