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

Uploaded CPython 3.14Windows x86-64

dtocean_hydrodynamics-4.0.2-cp314-cp314-manylinux_2_39_x86_64.whl (382.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

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

Uploaded CPython 3.13Windows x86-64

dtocean_hydrodynamics-4.0.2-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.2-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

dtocean_hydrodynamics-4.0.2-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.2-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d04a6573d744f7934fd1aa15bb02676bc61e69ed8e68a6f3b2126c422b555bce
MD5 eeee92af064f85967391d7e2a1020fd6
BLAKE2b-256 dab7d51dd082d66bf5d6f4fa662359c935c4763c8ed239930ead4db17510aa08

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.2-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 6f0c2e187c8a1c177d89a8f04051e92afb497511e8321c7f827ad2c9a0e188f7
MD5 2cb985eaf64f35a3a8be71df58cae17b
BLAKE2b-256 cc193fa7c32aea909bc620106702a62c89783a07a3fe82c10226151e7a3b1fe9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 58d34cc85a7e1954c3db20fea283e37729cae04532508542f07800fdb798ef8d
MD5 022127992cbeea8e249fcc4593943170
BLAKE2b-256 5e0f90d463f84cb0590b040b99c72c63b8680a6aa577823a27f7d02bb30a5714

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.2-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 a2956b6dfad20de1e4a16b69d4bb626778c56f9412a71714755872014bd3c026
MD5 8419c0932f83b48be040a74909461b75
BLAKE2b-256 873b9caa31ff744ef8952a86a9447adb94b58e92174620b303cb6cf56552d65d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c6e720cca648e25b6927c319c43315bcb483c0557add5da19fab5b03c160736
MD5 196a28d38450559486ec8a45c12be6e8
BLAKE2b-256 f20e99055a457f06f1669abd1e77ca3e465d256882606725a91013c75b63d122

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.2-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 5edb8c7b4f06b79fad4a11108296befe94c9c2b6636e20176dc89012818c0b4d
MD5 c2faee115b7676936fad107ceaa69e52
BLAKE2b-256 bb244af655d1395c314953e9aa403d7ef6677c283bd50ceb67b52911129b8b56

See more details on using hashes here.

Provenance

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