Skip to content

Conversation

@MShabara
Copy link
Contributor

@MShabara MShabara commented May 17, 2025

This PR introduces modifications to both the body library and the secondOrderExt.m function in order to account for body rotation when computing second-order wave excitation forces.

This ensures that the second-order force components are accurately aligned with the body's orientation as it evolves in time, improving the physical fidelity of the force application, especially in simulations with large rotational motions.

This PR was requested by a user in Issue #1443

@MShabara MShabara requested a review from akeeste May 17, 2025 00:25
dforbush2 and others added 2 commits May 30, 2025 10:41
* match PR 1478 changes on main

---------

Co-authored-by: jtgrasb <87095491+jtgrasb@users.noreply.github.com>
Co-authored-by: akeeste <akeeste@sandia.gov>
* Fixing Regression Tests for RM3

* Updating the correct _org.mat files

* resolving figure issues

---------

Co-authored-by: Ruehl <kmruehl@sandia.gov>
@kmruehl kmruehl requested a review from jtgrasb July 15, 2025 22:19
@kmruehl kmruehl assigned jtgrasb and unassigned jniffene Jul 15, 2025
@kmruehl
Copy link
Collaborator

kmruehl commented Jul 15, 2025

@jtgrasb can you please review this PR and it's associated application, WEC-Sim/WEC-Sim_Applications#86? thank you!

@jtgrasb
Copy link
Contributor

jtgrasb commented Jul 15, 2025

@MShabara The implementation makes sense, but I am getting some errors when I try to run it. I believe the body library hasn't been updated to account for the additional function input (Displacement) to the secondOrderExt function.

image

It also looks like there is a conflict in the library file. What I would recommend (assuming the only change to the body library needed is to add the Displacement as an input to that function) is to accept the body library from the dev branch, then add the displacement as an input in Simulink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants