4Subsea / waveresponse-python

Vessel motion and wave utilities
https://docs.4insight.io/waveresponse/python/latest/
MIT License
12 stars 4 forks source link

ENH: mirror an RAO about a symmetry plane #35

Closed daniel-lobo-4ss closed 1 year ago

daniel-lobo-4ss commented 1 year ago

This PR is related to user story DST-336 As 4S engineer I want to mirror the symmetric RAOs when creating RAO object using waveresponse

Description

Often, RAOs are provided from 0 to 180 degrees considering symmetry in x-z (surge-heave) plane. In these cases, it is usefull to mirror the RAO to obtain the full extended version defined in directional range [0, 360) degrees (or [0, 2 * numpy.pi) radians)

This PR adds a mirror function in _core.py outside RAO class to mirror and RAO object defined in the range [0, 180] degrees (or [0, $\pi$] radians) to obtain the full extended version defined in range [0, 360) degrees (or [0, $2 \pi$) radians).

Checklist

PR title tips: