-
Notifications
You must be signed in to change notification settings - Fork 57
Example for N Waves #42
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
Conversation
|
@salhus Prior to completing my review can you change the repository you are pushing this PR to from WEC-Sim:master to WEC-Sim:Dev for the WEC-Sim Applications Repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Suggest deleting since this is not used to demonstrate new feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Suggest deleting since this is not used to demonstrate new feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus This README.md needs to be update to reflect the N Waves implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Please ensure this is updated to reflect your N Waves updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus I do not believe this file is needed. If you are trying to compare with passive yaw on and off with N Waves then please update as required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus This file does not seem required as we are not plotting the two Yaw Cases, nor is plotYawCases included.
Suggestion is to remove this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done
| pto(1).stiffness = 0; % PTO Stiffness Coeff [Nm/rad] | ||
| pto(1).damping = 120000; % PTO Damping Coeff [Nsm/rad] | ||
| pto(1).location = [0 0 -8.9]; % PTO Location [m] | ||
| % pto(1).orientation.z=[0 1 0]; % switching so device will yaw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Did you want to allow the OSWEC to Yaw based on the multiple wave directions? If not we can probably delete lines 78-79 and relabel this folder as "Multiple_Waves" as we would not be demonstrating the passive yaw feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nathanmtom
Yes, if someone wants to check if the different wave-directions have an impact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Apologies, last minor comment here but if you want the OSWEC to yaw then lines 79-80 would have to be uncommented. When I run the application with these lines uncommented there is not much yaw motion since the wave directions are either perpendicular or parallel without spreading.
Recommendation is to either delete these lines and keep the OSWEC rotating about the y-axis as designed or uncomment the lines and have one wave group come from 45 degrees to induce greater yaw motion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nathanmtom
I deleted 78-79 to keep the demo more clear.
Passive_Yaw_with_N_Waves/README.md
Outdated
| **Geometry** OSWEC | ||
|
|
||
|
|
||
| Example on using [N-Wave Spectra](http://wec-sim.github.io/WEC-Sim/advanced_features.html#NWave) with [Passive Yaw](http://wec-sim.github.io/WEC-Sim/advanced_features.html#passive-yaw-implementation) to run WEC-Sim for the [OSWEC](http://wec-sim.github.io/WEC-Sim/tutorials.html#oscillating-surge-wec-oswec) geometry. Execute the `runYawCases.m` script to run this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Need to remove Execute the 'runYawCases.m' script to run this case. If you decide to eliminate that function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done, after the latest push
| waves(1).period = 3; % Wave Period [s] | ||
| waves(1).spectrumType = 'PM'; | ||
| waves(1).direction = 0; | ||
| waves(1).spread = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus suggest removing line 20 and line 38 as the default spread option is already 1 so this is not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- done, in the latest push
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salhus Moderate request: The current example is for irregular so this .mat file would be unnecessary; however, it may be worth creating several examples for each wave type (i.e. regular, regularCIC, irregular, spectrumImport, and elevationImport) to be run to ensure this added capability is not broken with other updates.
Your decision on how you would like to proceed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- removed after the latest push,
- done
|
Thanks @salhus, I have no further comments on this PR. Thank you for addressing my comments. I'll plan to merge this PR once the WEC-Sim/WEC-Sim PR that enables this feature is merged and final checks are completed. |
|
@salhus Apologies, but something in the last few commits appears to be causing additional test cases to fail. Can you review and see if you can identify why this might be. Unfortunately, I do not want to merge until we know the cause and if it can be fixed. |
|
@nathanmtom |
This is the accompnaying PR to WEC-Sim/WEC-Sim#1123