API Documentation
WEC Design Optimization Toolbox (WecOptTool) developed by Sandia National Laboratories. See sandialabs.github.io/WecOptTool/.
The top-level wecopttool
module contains:
The
wecopttool.WEC
class, which is the main way to interact with WecOptTool.Support functions for basic functionality, accessed as
wecoptool.<function>
.
Other functionalities are implemented in the submodules, and can be
accessed as wecopttool.<module>.<function>
.
Type Aliases
Alias |
Type |
---|---|
|
|
Modules
Core functionality for solving the pseudo-spectral problem for WEC. |
|
Geometry and parameters for some example devices (WEC). |
|
Provide power take-off (PTO) forces and produced energy functions for common PTO control approaches. |
|
Functions that are useful for WEC analysis and design. |
|
Provide the wave definition structure and provide functions for creating different common types of waves. |
Classes
A wave energy converter (WEC) object for performing simulations using the pseudo-spectral solution method. |
Functions
Add linear friction to BEM data. |
|
Ensure an array is at least 2D, otherwise add trailing dimensions to make it 2D. |
|
Change the convention from \(-iωt\) to \(+iωt\). |
|
Ensure that the real part of the impedance (resistive) is positive. |
|
Ensure that the linear hydrodynamics (friction + radiation damping) have positive damping. |
|
Convert from one complex amplitude to two real amplitudes per frequency. |
|
Split the state vector into the WEC dynamics state and the optimization (control) state. |
|
Convert a 1D array of angles in degrees to radians in the range \([-π, π)\) and optionally sort them. |
|
Assemble the second derivative matrix that converts the state vector of a response to the state vector of its second derivative. |
|
Assemble the derivative matrix that converts the state vector of a response to the state vector of its derivative. |
|
Flatten a matrix that has one column per DOF. |
|
Convert a complex array of Fourier coefficients to a real array of time-domain responses. |
|
Create a force function from its impedance. |
|
Create a force function from its position transfer matrix. |
|
Create a force function from waves excitation coefficients. |
|
Construct equally spaced frequency array. |
|
Return the fundamental frequency and the number of frequencies in a frequency array. |
|
Calculate hydrodynamic intrinsic impedance. |
|
Create the inertia "force" from the inertia matrix. |
|
Get the metadata for the named package. |
|
Create a block matrix of the MIMO transfer function. |
|
Number of Fourier components ( |
|
Read a NetCDF file with possibly complex entries as a |
|
Convert from two real amplitudes to one complex amplitude per frequency. |
|
Run Capytaine for a range of frequencies and wave directions. |
|
Create a scaling vector based on a different scale for each DOF. |
|
Sets default properties if not provided by the user: - center_of_mass is set to the geometric centroid - rotation_center is set to the center of mass |
|
Change the logging level of the |
|
Create functions for linear hydrodynamic forces. |
|
Check if the first set |
|
Convert a real array of time-domain responses to a complex array of Fourier coefficients. |
|
Assemble the time vector with |
|
Assemble the time matrix that converts the state to a time-series. |
|
Create a |
|
Convert a vector back to a matrix with one column per DOF. |
|
Calculate the complex, frequency-domain, excitation force due to waves. |
|
Save an |