Skip to content

Commit

Permalink
update waveSpread calculation in irregular waves (WEC-Sim#1290)
Browse files Browse the repository at this point in the history
* fix on pDis function call

* preliminary fix for issue WEC-Sim#1288
  • Loading branch information
dforbush2 authored Aug 9, 2024
1 parent d9bd629 commit 0520f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/functions/simulink/model/irregExcF.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
B1= sin(bsxfun(@plus,A1,phaseRand(:,ii)));
B11 = sin(bsxfun(@plus,w*time,phaseRand(:,ii)));
C0 = bsxfun(@times,A*spread(ii),dw);
C1 = sqrt(bsxfun(@times,A*spread(ii),dw));
C1 = sqrt(bsxfun(@times,A*spread(ii).^2,dw));
D0 =bsxfun(@times,squeeze(fExtMD(ii,:,:)),C0);
D1 =bsxfun(@times,squeeze(fExtRE(ii,:,:)),C1);
D11 = bsxfun(@times,squeeze(fExtIM(ii,:,:)),C1);
Expand Down
2 changes: 1 addition & 1 deletion source/functions/simulink/model/irregnLYaw.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
B1= sin(bsxfun(@plus,A1,phaseRandint));
B11 = sin(bsxfun(@plus,w*time,phaseRandint));
C0 = bsxfun(@times,A*WaveSpreadint,dw);
C1 = sqrt(bsxfun(@times,A*WaveSpreadint,dw));
C1 = sqrt(bsxfun(@times,A*WaveSpreadint.^2,dw));
D0 =bsxfun(@times,fExtMDint,C0);
D1 =bsxfun(@times,fExtREint,C1);
D11 = bsxfun(@times,fExtIMint,C1);
Expand Down

0 comments on commit 0520f46

Please sign in to comment.