Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors resuming OpenFAST from a different directory #2553

Open
mayankchetan opened this issue Dec 10, 2024 · 0 comments
Open

Errors resuming OpenFAST from a different directory #2553

mayankchetan opened this issue Dec 10, 2024 · 0 comments

Comments

@mayankchetan
Copy link
Contributor

mayankchetan commented Dec 10, 2024

Bug description
When using WrVTK=3, the checkpoint stores the path to the .out or .outb file relative to the run/execution directory (where OpenFAST was run from). If the execution path is changed when generating the mode shape visualizations, OpenFAST throws the error:

FAST_RestoreForVTKModeShape_Tary:FAST_RestoreFromCheckpoint_Tary:FAST_RestoreFromCheckpoint_T:Cann
ot open file "Turbine/Case01/Turbine.out". Another program like MS Excel may
have locked it for writing.

This error is generated AFTER OpenFAST writes the mode shape viz files to currentPath + path in checkpoint file.

Use Case: Running OpenFAST linerization sweep on HPC and downloading results to process locally with ACDC.

To Reproduce

Folder structure:

Project << execution dir initially >>

Turbine

Case01 << execution directory for mode shape generation >>

vtk
Turbine.fst
Turbine_***dyn.dat
Turbine.ModeShapeVTK.chkp
....
Turbine/Case01/vtk/****.vtp << newly created when generate mode shape viz >>

Case02
....

Run.Bash

Steps to reproduce the behavior:

  1. Compile current dev branch
  2. Run any model with above folder structure from the Project dir, with WrVTK=3
  3. Generate the .MBC and .viz file using your preferred tool (openfast-toolbox, Matlab-toolbox, ACDC)
  4. Run mode shape viz using openfast -VTKLin Turbine.ModeShapeVTK.viz from within directory Case01
  5. See the error above
  6. new folder Turbine/Case01/vtk is generated inside Case01 with mode shape files even after the error. <>

Expected behavior

  • Allow OpenFAST to resume execution form any directory OR Throw error to user when the resume directory is different from initial execution.
  • Should not generate the Turbine/Case01/vtk folder and mode shape files when executed form a different directory

Screenshots, if applicable
NA

OpenFAST Version

 **************************************************************************************************
 OpenFAST

 Copyright (C) 2024 National Renewable Energy Laboratory
 Copyright (C) 2024 Envision Energy USA LTD

 This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
 See the "LICENSE" file distributed with this software for details.
 **************************************************************************************************

 OpenFAST-v3.5.4-1939-gdc04b703
 Compile Info:
  - Compiler: GCC version 13.2.0
  - Architecture: 64 bit
  - Precision: double
  - OpenMP: No
  - Date: Dec  5 2024
  - Time: 14:14:06
 Execution Info:
  - Date: 12/10/2024
  - Time: 09:25:10-0700

System Information (please complete the following information):

  • OS: Kestrel & MacOS
  • Compiler: GCC/Gfortran
  • Compiler settings: cmake ..

Additional context
Discussed with @deslaughter

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

No branches or pull requests

1 participant