Lidar bug fix + other minor changes#2415
Conversation
- ExtLoads is an option under `Aero` - External Platform (ExtPtfm_MCKF) is now with SD under`Substructure` - ExternalInflow Integration is now with InflowWind under `Inflow`
Microsoft Visual C complains about a couple of routines without this
not sure why WrapToPi and WrapTo180 aren't in NWTC_Num; particularly since WrapToPi is basically identical to NWTC_Num.f90 :: mpi2pi() [function vs subroutine]
Previously would read only the first value of the array, so apparently RotorApexOffsetPos could only be offset in the X direction.
These are set in the InflowWind input file now, and the values aren't passed to the module from the External interface any more. Removing the values to reduce confusion in future.
andrew-platt
left a comment
There was a problem hiding this comment.
My only concern is with the lidar connection to the OpenFAST_Library. Hopefully we don't break someones connection to another code with this change (I'm guessing we don't)
|
The change to that interface should be only (1) removing the definition of |
|
That's what I was wondering about; does someone link it to SimuLink and I'm not aware of it. If we get a complaint about that, we can add it back in then (and maybe fix a few things at that point). |
Well, even if they were linking to Simulink another way, I didn't actually change any functionality that's been there since #1464 was merged in April 2023. The code was not doing anything with those variables that used to get passed from Simulink. They are read from the InflowWind input file. You can still pass them in that Simulink interface, they just now get ignored earlier than they used to. |
|
Thanks for the clarification! Given that the variables weren't getting passed all the way, this change shouldn't affect anyone. |
Feature or improvement description
Bug fixes:
RotorApexOffsetPosinput in the InflowWind input file was reading only the first (x) component of the 3-dimensional array, so the other two were likely uninitialized when used in the Lidar module. This change also required an update to one of the r-test InflowWind input files that didn't have all 3 values.Other updates:
Related issue, if one exists
#2413
Impacted areas of the software
InflowWind, Lidar, HydroDyn, MAP++, glue code, NWTC_Library, ServoDyn
Additional supporting information
Test results, if applicable
This doesn't affect any results.