Skip to content

fix TMax to be the same #2

fix TMax to be the same

fix TMax to be the same #2

Workflow file for this run

name: CI_IEA_LB
# We run CI on push commits and pull requests on all branches
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: False
matrix:
os: ["ubuntu-latest"]
python-version: [3.13]
steps:
- uses: actions/checkout@v5
- uses: conda-incubator/setup-miniconda@v3
# https://github.com/marketplace/actions/setup-miniconda
with:
miniconda-version: "latest"
channels: conda-forge
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: "test"
# Install OpenFAST and ROSCO
- name: Install OpenFAST and ROSCO
shell: bash -l {0}
run: |
conda install -y openfast=5.0.0 rosco=2.10.4
# Run OpenFAST IEA-6.3-200-RWT
- name: Run OpenFAST IEA-6.3-200-RWT
shell: bash -l {0}
run: |
cd IEA-6.3-200-RWT/OpenFAST
# Update ROSCO library path
sed -i "s|\".*libdiscon.*\"|\"$CONDA_PREFIX/lib/libdiscon.so\"|" IEA-6.3-200-RWT_ServoDyn.dat
# Update simulation time
sed --separate --in-place=BAK 's/720.0 \{1,\} TMax/1.0 TMax/' IEA-6.3-200-RWT.fst
sed --separate --in-place=BAK 's/120.0 \{1,\} TStart/0.0 TStart/' IEA-6.3-200-RWT.fst
openfast IEA-6.3-200-RWT.fst
# Run OpenFAST IEA-6.9-187.5-RWT
- name: Run OpenFAST IEA-6.9-187.5-RWT
shell: bash -l {0}
run: |
cd IEA-6.9-187.5-RWT/OpenFAST
# Update ROSCO library path
sed -i "s|\".*libdiscon.*\"|\"$CONDA_PREFIX/lib/libdiscon.so\"|" IEA-6.9-187.5-RWT_ServoDyn.dat
# Update simulation time
sed --separate --in-place=BAK 's/720.0 \{1,\} TMax/1.0 TMax/' IEA-6.9-187.5-RWT.fst
sed --separate --in-place=BAK 's/120.0 \{1,\} TStart/0.0 TStart/' IEA-6.9-187.5-RWT.fst
openfast IEA-6.9-187.5-RWT.fst
# Run OpenFAST IEA-7.2-175-RWT
- name: Run OpenFAST IEA-7.2-175-RWT
shell: bash -l {0}
run: |
cd IEA-7.2-175-RWT/OpenFAST
# Update ROSCO library path
sed -i "s|\".*libdiscon.*\"|\"$CONDA_PREFIX/lib/libdiscon.so\"|" IEA-7.2-175-RWT_ServoDyn.dat
# Update simulation time
sed --separate --in-place=BAK 's/720.0 \{1,\} TMax/1.0 TMax/' IEA-7.2-175-RWT.fst
sed --separate --in-place=BAK 's/120.0 \{1,\} TStart/0.0 TStart/' IEA-7.2-175-RWT.fst
openfast IEA-7.2-175-RWT.fst