Skip to content

Cleanup OpenFAST VTK output for HydroDyn#1319

Merged
andrew-platt merged 1 commit intoOpenFAST:devfrom
bjonkman:b/VTK
Nov 9, 2022
Merged

Cleanup OpenFAST VTK output for HydroDyn#1319
andrew-platt merged 1 commit intoOpenFAST:devfrom
bjonkman:b/VTK

Conversation

@bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Nov 9, 2022

This PR is ready to be merged.

Feature or improvement description
I have cleaned up the HydroDyn meshes that are written as VTK files when all meshes are output. This update makes sure all 3 HD input meshes can be output, and their sibling meshes are also output. The names of these VTK files have been updated to match names in the code.

Related issue, if one exists
None.

Impacted areas of the software
VTK output of HD meshes

Test results, if applicable
This does not change any test results.


! Blades
IF ( p_FAST%CompAero == Module_AD ) THEN ! These meshes may have airfoil data associated with nodes...
IF ( p_FAST%CompAero == Module_AD .and. ALLOCATED(AD%Input) ) THEN ! These meshes may have airfoil data associated with nodes...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this potentially fail with AD14 or AeroDisk in use? If I remember correctly, AD%Input will be allocated even if AD15 isn't used, but things inside it wouldn't be.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind. This is not an issue (reread logic above).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The biggest concern is that if the code is aborting due to error and is trying to output the DebugError versions of the VTK files, we need to make sure things are allocated before using them. We should probably also check that AD%Input(1)%rotors and AD%y%rotors are allocated. I'll add that to another PR.

@andrew-platt andrew-platt self-assigned this Nov 9, 2022
@andrew-platt andrew-platt merged commit 6feb609 into OpenFAST:dev Nov 9, 2022
@bjonkman bjonkman deleted the b/VTK branch November 9, 2022 20:25
@rafmudaf rafmudaf mentioned this pull request Dec 19, 2022
10 tasks
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.

2 participants

Comments