Skip to content

Bug when using B2B and CI calculation together #437

@akeeste

Description

@akeeste

When running the WEC-Sim_Applications repo body-to-body case 4 (B2B and CI calculation). A dimension error is generated in the convolution integral calculation within the radiation force calculation block.

the full error message is:
Error using wecSim (line 292)
Non-singleton dimensions of the two input arrays must match each other.
Error in 'RM3/Float/Hydrodynamic Body/Wave Radiation Forces Calculation/SS CI and Constant-Damping-CoeVariant
Subsystem/Convolution Integral Calculation/MATLAB Function1'.

Within that function, line 21 throws an error because IRKB_interp and velocity are different dimensions:
time_series = bsxfun(@times, IRKB_interp, velocity);

Metadata

Metadata

Assignees

Labels

B2Bbody-to-body interactions (simu.b2b = 1)Bugbug in WEC-Sim source, high priorityMATLAB/SimulinkMATLAB or Simulink related issuesVersionMATLAB version issue, aka related to version compatibility

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions