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.0-cp314-cp314-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.14Windows x86-64

dtocean_hydrodynamics-4.0.0-cp314-cp314-manylinux_2_39_x86_64.whl (382.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

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

Uploaded CPython 3.13Windows x86-64

dtocean_hydrodynamics-4.0.0-cp313-cp313-manylinux_2_39_x86_64.whl (382.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

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

Uploaded CPython 3.12Windows x86-64

dtocean_hydrodynamics-4.0.0-cp312-cp312-manylinux_2_39_x86_64.whl (382.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d71b562a1a65f22d54f9f86844c3d547690da5345e147d68bafa658eca2e4917
MD5 ad4b592beedfbcf63056347687777740
BLAKE2b-256 3949ef1bba3fe7c8eb99963c53f6e738a2db00afc8103f59874be1029eb4a96a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.0-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.0-cp314-cp314-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.0-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 407b846eb85765df45a97757208b3f3f0bd04e38b4499a39b7a099a92eed4305
MD5 78e0b2b25faa1acbb59fb3cfed8eb244
BLAKE2b-256 89d8fa3a10d3bf8e299232e8e85872edaa24903daf34fe9105577c91049a29bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.0-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.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 265618718710488cfe6d221e5fc6b776cf7f9b1fbd04bc45fc08c11480f025ea
MD5 dfad0a7cabaf834f828cb57be776663e
BLAKE2b-256 35b5cee0b75a300380c3873d6a8c08cadde0e368620e99a5f4f04ec8d0a133ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.0-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.0-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.0-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 c23132e549e6b04751b3e144a87f164dfdd5a7744551b6e2716b7ce9866ef0a9
MD5 8e812b09a11724321f9c5fa00e674b4c
BLAKE2b-256 6bbeb68b55f0872889067207f98468ff97d6811f2a12917139eb20a0706057c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.0-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.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9183b992295c22a9e76e096a938937cc4eb8f87b9f31ce45c407dac5ef1c6bc3
MD5 cc015271da69238fc9a47c5e7c925882
BLAKE2b-256 a2ebc5340b2ee6961d944cce31d6df89b02e05750564ed81b55236387b613647

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.0-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.0-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.0-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 c743a46fb419de6a075d1e31c7376d8b2bdedcf79d750c98d59b44bae6f7c573
MD5 c567a50684767ec0b567266380b45b16
BLAKE2b-256 d4316182eba650be44c6e1e2944e3896626663cfc35e517472ac1b7f67f75a9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtocean_hydrodynamics-4.0.0-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