Skip to content

Fix MoorDyn v2 table replacement in case generation - #88

Open
maoji-y wants to merge 1 commit into
OpenFAST:mainfrom
maoji-y:fix/moordyn-v2-table-replacement
Open

maoji-y wants to merge 1 commit into
OpenFAST:mainfrom
maoji-y:fix/moordyn-v2-table-replacement

Conversation

@maoji-y

@maoji-y maoji-y commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #81.

  • Allow case generation to replace MoorDyn v2 tables whose row counts are inferred from section boundaries. Keep synchronizing explicit counts in counted input files.
  • Read the ID Type point-table header used by the IEA 15 MW VolturnUS-S reference deck. Preserve the MoorDyn output channel list when writing the generated deck, including when the file uses the default dtM.

Validation

  • The new cases cover recursive templateReplace for both point-table headers, resizing a line-type table without adding count lines, updating an explicit v1 count, and round-tripping populated and empty output lists. The v2 replacements and output round trips reproduced failures on d986c9a.
  • Windows / Python 3.13 with MPLBACKEND=Agg: python -m unittest discover -v passed 94 of 95 tests. The remaining linearization.tests.test_modesID.Test.test_HD failure reproduces with the same result on the unmodified base.
  • The OpenFAST v4.0.5 MoorDyn driver ran the IEA 15 MW VolturnUS-S reference deck and a generated copy that assigned a physically identical second line type. The 24 valid output channels, including FAIRTEN1, matched exactly across 20 samples. Both runs produced the same pre-existing warnings for the FX, FY, and FZ requests.
  • git diff --check passed.

GitHub's ubuntu-latest job failed during Python 3.9 setup with Version 3.9 with arch x64 not found and cancelled the other matrix jobs. The base commit failed at the same step with the same message. PR job · Base job

Codex assisted with implementation and validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running casegeneration with a table (e.g. Moordyn line inputs) error with "AUTO" not found

1 participant