-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
130 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
======= | ||
History | ||
======= | ||
|
||
0.1.0 (2018-01-09) | ||
------------------ | ||
|
||
* First release on PyPI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Top-level package for WTC_toolbox Repo.""" | ||
|
||
__author__ = """Paul Fleming""" | ||
__email__ = 'paul.fleming@nrel.gov' | ||
__version__ = '0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
# Example_01 | ||
# Load a turbine model | ||
# Load a turbine model | ||
# In this example load a turbine model from FAST using AeroelasticSE | ||
# Use the NREL baseline included with open FAST | ||
# | ||
# Some notes on dependencies | ||
# https://github.com/WISDEM/AeroelasticSE | ||
# https://github.com/OpenFAST/openfast | ||
# Be sure to clone the repo with the --recursive flag or execute git submodule update --init --recursive after cloning. | ||
|
||
from WTC_toolbox import turbine as wtc_turbine | ||
from WTC_toolbox import controller as wtc_controller | ||
from WTC_toolbox import sim as wtc_sim | ||
|
||
# PARAMETERS | ||
|
||
# (USES AERODYN 15, a problem for now) | ||
# FAST_InputFile = '5MW_OC3Spar_DLL_WTurb_WavesIrr.fst' | ||
# FAST_directory = '/Users/pfleming/Desktop/git_tools/floating/OpenFAST/reg_tests/r-test/glue-codes/openfast/5MW_OC3Spar_DLL_WTurb_WavesIrr' | ||
|
||
FAST_InputFile = '5MW_ITIBarge_DLL_WTurb_WavesIrr.fst' | ||
FAST_directory = 'example_fast_input/5MW_ITIBarge_DLL_WTurb_WavesIrr' | ||
|
||
|
||
|
||
# Initialiize a turbine class | ||
turbine = wtc_turbine.Turbine() | ||
|
||
# Load the turbine model from a FAST input folder | ||
turbine.load_from_fast(FAST_InputFile,FAST_directory,dev_branch=True) |