Skip to main content

Hydrodynamics module for the DTOcean tools

Project description

dtocean-hydrodynamics actions codecov PyPI - Python Version

dtocean-hydrodynamics

This package provides the Hydrodynamics design module for the DTOcean tools. It can calculate the energy output of arrays of fixed or floating wave or tidal ocean energy converters, including the effect of interactions. It can optimise the position of the devices for maximum energy yield, constrained by the given environment.

Part of the DTOcean suite of tools.

Installation

pip install dtocean-hydrodynamics

After installation, ensure that all the necessary data files are downloaded using the following command:

dtocean-hydro init

Alternatively, if dtocean-core is installed, use:

dtocean init

Usage

Examples

Example scripts are available in the examples folder of the source code.

For tidal energy converters:

cd examples
python tidal_fixed_layout.py

For wave energy converters:

cd examples
python wave_fixed_layout.py

Command Line Tools

A graphical user interface to the WEC analysis tool is provided. This tool is a required pre-processing step for analysing the interactions of wave energy converters. To get help:

dtocean-wec -h

Alternatively, if dtocean-core is installed, the GUI can be accessed using:

dtocean hydrodynamics wec

Documentation

Video tutorials describing how to use the WEC simulator tool can be found on the Data Only Greater YouTube Channel.

Development

Development of dtocean-hydrodynamics uses the Poetry dependency manager. Poetry must be installed and available on the command line.

To install:

poetry install

After installation, ensure that all the necessary data files are downloaded using the following command:

dtocean-hydro init

Alternatively, if dtocean-core is installed, use:

dtocean init

Tests

A test suite is provided with the source code that uses pytest.

Install the testing dependencies:

poetry install --with test

Additional tests are available for the plugins to dtocean-core and dtocean-app. Enable these tests by installing the test-extras group:

poetry install --with test --with test-extras

Run the tests:

poetry run pytest

Code quality can also be audited using the ruff and pyright tools. Install the dependencies:

poetry install --with audit

Run the audit:

poetry run ruff
poetry run pyright src

Contributing

Please see the dtocean GitHub repository for contributing guidelines.

Credits

This package was initially created as part of the EU DTOcean project by:

It is now maintained by Mathew Topper at Data Only Greater.

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dtocean_hydrodynamics-4.0.1-cp314-cp314-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.14Windows x86-64

dtocean_hydrodynamics-4.0.1-cp314-cp314-manylinux_2_39_x86_64.whl (382.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

dtocean_hydrodynamics-4.0.1-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

dtocean_hydrodynamics-4.0.1-cp313-cp313-manylinux_2_39_x86_64.whl (382.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

dtocean_hydrodynamics-4.0.1-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

dtocean_hydrodynamics-4.0.1-cp312-cp312-manylinux_2_39_x86_64.whl (382.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

Details for the file dtocean_hydrodynamics-4.0.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 58caceb6226a6013abc49eeb0aecc4dbc13e12bede650cf7969e1dea2545267a
MD5 36c082641de45141845431cd8bb624b7
BLAKE2b-256 12a63f4e0a487aa6966082237c58c3efa7ac69d6c3b95479cc1f21cf3045eb98

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.1-cp314-cp314-win_amd64.whl:

Publisher: release.yml on DTOcean/dtocean

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dtocean_hydrodynamics-4.0.1-cp314-cp314-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.1-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 8d922e40cdcec4d27fcfb8a1a5aa79f23955f9111512312bacf5ee76e3727e5e
MD5 a1ac7b8a11d566e1af91085e9f68af00
BLAKE2b-256 f0264a14abbc379aa2ec33514e642273963adb6e9dba64d26ad862b247fb73d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.1-cp314-cp314-manylinux_2_39_x86_64.whl:

Publisher: release.yml on DTOcean/dtocean

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dtocean_hydrodynamics-4.0.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 931a24dcefd049227830c971f78bff663fb43a618b2ffee400f55c25cc99d52d
MD5 454c8d28c6f7fc7e0a8eee24a4a02003
BLAKE2b-256 23623eea39119d43497b39f95edeabc32c3225548a987a21b2bc5970fb807d51

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.1-cp313-cp313-win_amd64.whl:

Publisher: release.yml on DTOcean/dtocean

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dtocean_hydrodynamics-4.0.1-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.1-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 1c57c67325996019ea0f7a274d866be6deb246e1d989eff05fb83298ba9267c6
MD5 3e32d10c53ad016e269a2de7c339f3fa
BLAKE2b-256 924a930536dcf98612b0a6480bbd63b8d6774a9cea155d56b8ad1c30b67c77c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.1-cp313-cp313-manylinux_2_39_x86_64.whl:

Publisher: release.yml on DTOcean/dtocean

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dtocean_hydrodynamics-4.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b9ec1e14e8a1282a7cd5c4a47eb92356c29ab9f70662f9c8753162bb93ce96f
MD5 af910383cda849efe271392430246511
BLAKE2b-256 a52d088a682f67c23c57f4dadcd98ec85a93899b574fd15c407b33f1b8b0debc

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.1-cp312-cp312-win_amd64.whl:

Publisher: release.yml on DTOcean/dtocean

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dtocean_hydrodynamics-4.0.1-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.1-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 650c5934619fc220193c822ed779aff32ff90e621d312745ebabe68bb0fd752a
MD5 94ccee93b43c64cf891234757cfbabd7
BLAKE2b-256 4e9ba44455d5e54f0e57232cbe4e1aa5820ca12d2da419211105b085c0b47819

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.1-cp312-cp312-manylinux_2_39_x86_64.whl:

Publisher: release.yml on DTOcean/dtocean

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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