I noticed a funny behavior when working on a case study with a regular wave where energy was bleeding into additional frequencies. After hunting down every other potential source, I found that the frequencies coming back from Nemoh were very slightly (something close to machine epsilon) different from those requested in the calibration file (Nemoh.cal). I haven't dug too much deeper, but I guess this is probably something with either the I/O that we're using with Nemoh of the precision that Nemoh operates at.
My somewhat dirty, but I believe justifiable, fix was to add an option for using nearest interpolation instead of the default linear (f6381c6de2e3f55c142da6e223b08eb46264a552). While not a big deal, I just thought I'd make a note...
I noticed a funny behavior when working on a case study with a regular wave where energy was bleeding into additional frequencies. After hunting down every other potential source, I found that the frequencies coming back from Nemoh were very slightly (something close to machine epsilon) different from those requested in the calibration file (
Nemoh.cal
). I haven't dug too much deeper, but I guess this is probably something with either the I/O that we're using with Nemoh of the precision that Nemoh operates at.With
linear
interpolationWith
nearest
interpolationMy somewhat dirty, but I believe justifiable, fix was to add an option for using
nearest
interpolation instead of the default linear (f6381c6de2e3f55c142da6e223b08eb46264a552). While not a big deal, I just thought I'd make a note...