Skip to content

[BUG] Sign mismatch in Rotary To Linear Adjustable Rod #993

@jwills801

Description

@jwills801

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

  1. Go to WEC-Sim/WEC-Sim_Appications/OSWEC/OSWEC_Hydraulic_PTO
  2. Adjust the .slx file so that translational position and velocity of the hydraulic cylinder can be observed.
  3. run wecSim from command line
  4. Plot translational position and velocity

Expected behavior
The integral of velocity should be position

Screenshots
image
image

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

Metadata

Metadata

Assignees

Labels

PTO-SimPTO-Sim (ptoSimClass.m)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions