Dear Professor,
This issue is related to: wamit2vessel.m
WAMIT deliveres RAOs from 0 to 180 deg. I noticed that the motionRAO, forceRAO en driftfrcRAOs are mirrored incorrectly to 190 to 350.
The heading, sign and phase are all incorrect in some cases.
I solved this by the following code from line 669:
%-------------------------------------------------------------------------%
%% map data from 0-180 deg to 180-360 deg (symmetry about x-axes)
%-------------------------------------------------------------------------
vessel.headings = (pi/180)*[0:10:350];
% To change sign phase is shifted 180deg
rao_sign = [0 1 1 1 0 0];
for i = 1:6
vessel.motionRAO.amp{i}(:,20:36,1) = vessel.motionRAO.amp{i}(:,flip(2:18),1);
vessel.motionRAO.phase{i}(:,20:36,1) = rao_sign(i)*pi+vessel.motionRAO.phase{i}(:,flip(2:18),1);
vessel.forceRAO.amp{i}(:,20:36,1) = vessel.forceRAO.amp{i}(:,flip(2:18),1);
vessel.forceRAO.phase{i}(:,20:36,1) = rao_sign(i)*pi+vessel.forceRAO.phase{i}(:,flip(2:18),1);
end
rao_sign_WD = [1 -1 -1];
for i = 1:3
vessel.driftfrc.amp{i}(:,20:36,1) = rao_sign_WD(i)*vessel.driftfrc.amp{i}(:,flip(2:18),1);
end
clear rao_sign_WD