Skip to content

Conversation

@salhus
Copy link
Contributor

@salhus salhus commented Sep 21, 2023

This is the accompnaying PR to WEC-Sim/WEC-Sim#1123

@salhus salhus requested a review from nathanmtom September 21, 2023 04:53
@nathanmtom nathanmtom self-assigned this Sep 27, 2023
@nathanmtom
Copy link

@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.

@salhus salhus changed the base branch from master to dev September 27, 2023 21:31

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • done

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • done

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • done

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

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

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.

Copy link
Contributor Author

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.

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.

Copy link
Contributor Author

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.

**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.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nathanmtom

  • done, after the latest push

waves(1).period = 3; % Wave Period [s]
waves(1).spectrumType = 'PM';
waves(1).direction = 0;
waves(1).spread = 1;

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.

Copy link
Contributor Author

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

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.

Copy link
Contributor Author

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

@nathanmtom
Copy link

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.

@nathanmtom
Copy link

@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.

@salhus
Copy link
Contributor Author

salhus commented Sep 28, 2023

@nathanmtom
Hi Nathan,
I am quite puzzled and trying to figure out as well. I will update you when I understand what is happening.

@salhus salhus mentioned this pull request Sep 28, 2023
@salhus salhus closed this Sep 29, 2023
@salhus salhus deleted the Example_Nwave_Sept23 branch October 4, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants