Skip to main content

RAFT: Response Amplitudes of Floating Turbines

Project description

RAFT - Response Amplitudes of Floating Turbines

RAFT is a Python code for frequency-domain analysis of floating wind turbines. It constitutes the "Level 1" of modeling fidelity in the WEIS toolset for floating wind turbine controls co-design. RAFT provides frequency-domain modeling of full floating wind turbine systems including turbine aerodynamics, controls, rigid-body platform hydrodynamics, and mooring response. The rotor aerodynamics are provided by CCBlade and the mooring system is represented by NREL's new quasi-static mooring system model, MoorPy. Potential-flow hydrodynamics can optionally be used via pyHAMS, a Python wrapper of the HAMS (Hydrodynamic Analysis of Marine Structures) tool for boundary-element-method solution of the potential flow problem developed by Yingyi Liu.

RAFT v1.0.0 includes the capabilities described above, and further development is planned to expand these capabilities. Documentation and verification efforts are ongoing. Please see RAFT's documentation for more information.

Getting Started

New users of RAFT as a standalone model are recommended to begin by looking at the input file and script provided in the examples folder, and seeking further information from the RAFT documentation. For use as part of the WEIS toolset, information will be provided once this capability is completed in the WEIS documentation. For now, the following will help get started with running RAFT as a standalone model.

RAFT uses a number of prerequisites, or other python package dependencies, to run its calculations. The most notable ones are listed below:

* CCBlade is a module of WISDEM, but can be used separately. RAFT only requires CCBlade (and some additional related functions) out of the larger WISDEM code. New users can install either CCBlade or WISDEM, but for highest efficiency, we recommend installing CCBlade, without the entire WISDEM installation.

To install all required python packages to run RAFT, follow the steps below.

  1. Install most of the required python packages to run RAFT from the "requirements" yaml.

     (base) PS ANY_PATH> conda env create -f raft-env.yaml
    

    This will create a new python virtual environment on a new user's local machine called "raft-env"

  2. Activate the new virtual environment

     (base) PS ANY_PATH> conda activate raft-env
    

    This will activate the newly created virtual environment, where we will install the remaining dependencies

  3. Install the RAFT package

    • Navigate to a directory of your choosing on your local machine and clone this RAFT repository to that new directory

        (raft-env) PS YOUR_PATH> git clone https://github.com/WISDEM/RAFT.git
      
    • Staying in the same directory, install the RAFT package in it's "editable" mode

        (raft-env) PS YOUR_PATH/RAFT> pip install -e .
      
  4. Repeat Step 3 two more times, one for CCBlade, and one for MoorPy

     (raft-env) PS YOUR_PATH> git clone https://github.com/WISDEM/CCBlade.git
     (raft-env) PS YOUR_PATH/CCBlade> pip install -e .
     (raft-env) PS YOUR_PATH/CCBlade> cd ..
     (raft-env) PS YOUR_PATH> git clone https://github.com/NREL/MoorPy.git
     (raft-env) PS YOUR_PATH/MoorPy> pip install -e .
    

    ** If you are running into errors with installing CCBlade, make sure there is not a file called "_bem.cp39-win_amd64.pyd" inside of CCBlade/ccblade. Deleting this file will allow the above commands to run.

This new raft-env should now be compatible to run RAFT standalone. Dependencies like CCBlade and MoorPy are still under development, which is why for now, it will be easier to install them in their editable forms.

The other main dependency, PyHAMS, is included within the raft-env.yaml file and is installed in Step 1.

Another point to note is that python setup.py develop has become outdated, and pip install -e . is preferred.

If you need to remove any virtual environment for any reason, you can run

conda env remove -n "name-of-the-virtual-environment"

Documentation and Issues

Please see https://weis.readthedocs.io/en/latest/ for documentation.

Questions and issues can be posted at https://github.com/WISDEM/RAFT/issues.

License

RAFT is licensed under the Apache License, Version 2.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 Distribution

openraft-1.2.4.tar.gz (191.9 kB view details)

Uploaded Source

Built Distribution

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

OpenRAFT-1.2.4-py3-none-any.whl (156.3 kB view details)

Uploaded Python 3

File details

Details for the file openraft-1.2.4.tar.gz.

File metadata

  • Download URL: openraft-1.2.4.tar.gz
  • Upload date:
  • Size: 191.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for openraft-1.2.4.tar.gz
Algorithm Hash digest
SHA256 d9535d9f56633607712a0680797a5922de72b933bbb0d208a4f4d8f6d3a061d6
MD5 f09309a5b13edd643d73bf4db846912c
BLAKE2b-256 b50f33b7d2020c28a1caefa324c6ef61211ef3bdb955bab84b238f5b727b9261

See more details on using hashes here.

File details

Details for the file OpenRAFT-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: OpenRAFT-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 156.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for OpenRAFT-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ac27095fe573d8511ee18d55705224a11f082552682a8109085d49d6ae3b906f
MD5 fbe837289e4fe4e89497ece16eb30fd5
BLAKE2b-256 ffe3d6294cd31710bc9f76d03d1b95d1139e3978391f78daf14efc71eded3409

See more details on using hashes here.

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