This repository serves as a container for regression test data for system-level and module-level testing of OpenFAST. The repository contains:
- Input files for test case execution
- Baseline solutions for various machine and compiler combinations
- Turbine models used in the regression test cases
The baseline solutions serve as "gold standards" for the regression test suite and are updated periodically as OpenFAST and it's modules are improved.
A partion of the OpenFAST physics modules contain regression tests. These modules include a driver-code that runs the module in stand-alone mode rather than coupled through the OpenFAST glue-code.
The module-level tests are found in r-test/modules/
.
The majority of the existing tests are system-level tests for the OpenFAST glue-code and are found in r-test/glue-codes/
.
The tests are realistic cases initially taken from the GL certification process and formerly known as the FAST V8 CertTests. As physics models are changed or improved, we continuously update the tests cases to capture new features and conform to the new input file specification. Each test case directory contains the OpenFAST input file, .fst
, and all other case-specific inputs. All turbine-specific inputs are linked by relative paths to their corresponding turbine data directory. See the individual test case README's for more information regarding the particular turbine model and portion of the OpenFAST system that is being tested.
The included turbine model are listed below.
Turbine Name | Description and Info |
---|---|
|
|
|
|
|
|
|
|
|
|
|
For reference, a mapping of the legacy CertTest case naming scheme from TestNN
to the current test names is given below.
Legacy | Current |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The regression test compares locally generated solutions to the baseline solutions generated on a series of system and compiler combinations. Currently, the supported system/compiler combinations for successful regression testing along with the toolsets use are given below.
System-Compiler | System Version | Compiler | Math Library |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The regression test only supports double precision solutions, so all baseline solutions are generated with a double precision build.
The baseline directories can be updated with the included updateBaselineSolutions.py
. This script copies locally generated OpenFAST solutions into the appropriate system - compiler baseline solution directory.
Usage:
Example:
The cases using the 5MW turbine require an external controller for ServoDyn. The source code for three external controllers are provided, but they must be compiled and installed.
On Linux and Mac, cmake projects exist to compile the controllers with make. For Windows systems, cmake can generate a Visual Studio project to compile and install the controllers.
For all system types, create build
directories at
and run cmake ..
in each one. For Windows, add your Visual Studio version and architecture in the following command:
Ultimately, three .dll
libraries should be compiled and placed in the 5MW_Baseline
parallel to the test cases that will be executed. For example, if the regression test is executed automatically with ctest
or manualRegressionTest.py
, all case files will be copied to openfast/build
. In this case, these three controller libraries must exist: