Closed srmainwaring closed 1 year ago
This PR linearly interpolates the hydro coefficients given a regular wave frequency.
Previously the hydro coefficients lookup from hdf5 was hardcoded to a frequency 1.042 rad/s (wave period 6s).
The simulation should now use the correct coefficients from the hdf5 file when no overrides are provided in the sdf file.
Other minor fixes:
The interpolation uses Parsiad Azimzadeh's mlinterp library which is covered by the MIT license.
This PR linearly interpolates the hydro coefficients given a regular wave frequency.
Previously the hydro coefficients lookup from hdf5 was hardcoded to a frequency 1.042 rad/s (wave period 6s).
The simulation should now use the correct coefficients from the hdf5 file when no overrides are provided in the sdf file.
Other minor fixes:
The interpolation uses Parsiad Azimzadeh's mlinterp library which is covered by the MIT license.