-
Notifications
You must be signed in to change notification settings - Fork 184
Description
Note: italicized text below is include as an example and should be updated before submission. If you feel any section is not applicable to your request, please replace with 'N/A' rather than delete a section.
Describe the bug
I am using the check valve power take off for the RM5 as is done in the applications directory of wec-sim and is documented in the WEC-SIM PTO-Sim documentation page. I wanted to investigate the sign convention used (i.e. does positive velocity mean the the cylinder is moving toward side A or B?), so I added a To Workspace block to look at the position and velocity of the hydraulic cylinder in matlab. They did not seem to match so I integrated the velocity signal and compared it to the position signal. They were mirrors of each other. Changing the sign of one of them resulted in a near perfect match between position and integral of velocity.
WEC-Sim file(s)
The Rotary to Linear Adjustable Rod library block in PTO-Sim
To Reproduce
- Go to WEC-Sim/WEC-Sim_Appications/OSWEC/OSWEC_Hydraulic_PTO
- Adjust the .slx file so that translational position and velocity of the hydraulic cylinder can be observed.
- run wecSim from command line
- Plot translational position and velocity
Expected behavior
The integral of velocity should be position
Workstation Information (this section MUST BE completed):
- OS: macOS Monterey 12.6.1
- MATLAB/Simulink Release: 2021a
- WEC-Sim Release: 5.0.1
Additional context
N/A

