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

Uploaded CPython 3.14Windows x86-64

dtocean_hydrodynamics-4.0.3-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.3-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

dtocean_hydrodynamics-4.0.3-cp313-cp313-manylinux_2_39_x86_64.whl (382.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

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

Uploaded CPython 3.12Windows x86-64

dtocean_hydrodynamics-4.0.3-cp312-cp312-manylinux_2_39_x86_64.whl (382.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3af8dda1c0f8850af7fa9a0886e39152b35ea339e066047de4983399da458cec
MD5 c4f6f7a0d4e0c846df33229af79064c8
BLAKE2b-256 11c8427ef4e392354f477c0a4b56e758d59fad5dfe89042e99478cf0cc4c8802

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.3-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 8583e797d0dc17a3d4831a3ebec1cead1f6b2ec6a160acf9c3b0d03a438b7d6b
MD5 1c0a6ac0f124da7aa5dafbb17c10bca9
BLAKE2b-256 c2da254e670774719b8453f2dd05781e95a69575528acb162f4c031b64b4c90d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 64882e7c0cb5522cc118e418064edf6737c560e4743ce37456a1c296bc1280ce
MD5 a557ac34ca31934d28eb11819811ace0
BLAKE2b-256 79590d858fff5f6647aac4ba8f814a51311993db8761430a3e1ca1599aafcb34

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.3-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 36087cd9f9fdb042e31e4a9118adb1de8e3242838f2bf58bd264493e28921a87
MD5 c59272cc42812351b74715e99897ec9b
BLAKE2b-256 583d0d8cdbdfbf128dc28e57f50c8287171492589aa736fc15479cfb65ec90d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dfe382f5ff8b78b1c9737e0578fb04a1993b7ea377bebedca5d1c96a03ed31f1
MD5 141d9863eeccc69675490109d59a0a86
BLAKE2b-256 52522125bb6ad65e536b8b39975ccb8451722bdce5b5dd2a4f0147755ef90bbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dtocean_hydrodynamics-4.0.3-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 d00d9a07b85af66cfe03e4de7724e51d3335674b828a13ade2982623bdbf7ae9
MD5 e76e74dac7ee3adc7235f72ec920d64c
BLAKE2b-256 68491aa679d366c6a68e45f022583044355de41b9742f76a6b567ac506026fa0

See more details on using hashes here.

Provenance

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