Skip to content

Python normal mode code for wave propagation in stratified fluid media

License

Notifications You must be signed in to change notification settings

hunterakins/pykrak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python translation of Michael Porter's KRAKEN (not KRAKENC).

An alternative implementation which provided an internal wave mode equation solver using the same numerical methods as Richard Evans FORTRAN model WAVE is found on an archived branch of the code called rev1_archive.

The code is provided "as is", with no guarantees of correctness. When in doubt, compare to KRAKEN and to KRAKENC. Comparisons for a number of test environments are provided in tests/.

Installation

This repository use uv to manage its dependency

uv sync # install necessary dependency
source .venv/bin/activate # activate the virtual environment (you can also use `uv run $SHELL`)

For development and testing

Install development and testing dependencies using

uv sync --all-groups

Tests

Some basic tests are implemented to compare the results of the modal parameters $k_r$ and $\Psi$ to the original KRAKEN program.

uv run pytest

About

Python normal mode code for wave propagation in stratified fluid media

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages