OpenFAST / matlab-toolbox

Collection of Matlab tools developed for use with OpenFAST
Apache License 2.0
50 stars 68 forks source link

Campbell functions #22

Closed ebranlard closed 4 years ago

ebranlard commented 4 years ago

In this pull request I attempt to provide different helper functions to produce a Campbell diagram. All functions are gathered in the Campbell folder. The functions require an input file, which is a tabulated file that defines the operating points at which linearization is to occur. The filenames are automatically generated, but the user can override this by precising the filenames of each simulations in the input file (see readOperatingPoints.m)

Two example scripts are provided:

Data to run this scripts were added to the repository (in folder _ExampleData).

The trim script also provides options to generate the visualization (VTK) files and movies (provided the user install paraview-python).

The scripts and functions are inspired from the legacy example script from B. Jonkman, located here: Campbell/examples/legacy/runCampbell_Trim.m

I've provided some minimal documentation in the README of the repository, and quite some comments in the example scripts and functions. We will likely need to provide additional documentation in the OpenFAST readthedocs.

ebranlard commented 4 years ago

I'm tented to merge this this week if no one has objections. It should also close #17, #18, #19